Skip to content

Commit

Permalink
Path prefix changes (#203)
Browse files Browse the repository at this point in the history
Signed-off-by: Janos SUTO <sj@acts.hu>
  • Loading branch information
jsuto authored Nov 20, 2024
1 parent 49166d9 commit b2c06fa
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 17 deletions.
11 changes: 11 additions & 0 deletions RELEASE_NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@
- Removed non-functioning clamd support
I suggest to run an anti-virus software on your MX

- Path prefix changes

If you want to override the default PATH_PREFIX (/) in
config-site.php, then fix the following settings as well in config-site.php:

* BRANDING_FAVICON
* BRANDING_LOGO
* SITE_LOGO_LG




1.4.6:
-----
Expand Down
38 changes: 21 additions & 17 deletions config.php.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ $config = [];
* variable to be overridden in config-site.php
*/


$config['BRANDING_FAVICON'] = '
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="/assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="/assets/ico/favicon.png">
';

$config['SITE_LOGO_LG'] = '/assets/images/archive-logo-lg.png';

$config['BRANDING_TEXT'] = '';
$config['BRANDING_URL'] = '';
$config['BRANDING_LOGO'] = '/assets/images/archive-logo-sm.png';

$config['COMPATIBILITY'] = 'Which browsers are supported, etc';

$config['PREVIEW_PANE'] = 1; // 0: display message in a fullscreen modal
Expand All @@ -26,9 +42,13 @@ if(isset($_COOKIE['SCREEN_X']) && (int)$_COOKIE['SCREEN_X'] < 992) {
$config['FULL_GUI'] = 0;
}

// If you override the default PATH_PREFIX in config-site.php,
// then fix the following settings as well in config-site.php:
// - BRANDING_FAVICON
// - BRANDING_LOGO
// - SITE_LOGO_LG
$config['PATH_PREFIX'] = '/';

$config['SUPPORT_LINK'] = '';
$config['TITLE_PREFIX'] = '';

$config['CUSTOM_PRE_AUTH_FUNCTION'] = '';
Expand Down Expand Up @@ -384,24 +404,8 @@ $config['CSS_CODE'] = '
';


$config['BRANDING_FAVICON'] = '
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="' . $config['PATH_PREFIX'] . 'assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="' . $config['PATH_PREFIX'] . 'assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="' . $config['PATH_PREFIX'] . 'assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="' . $config['PATH_PREFIX'] . 'assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="' . $config['PATH_PREFIX'] . 'assets/ico/favicon.png">
';

$config['SITE_LOGO_LG'] = $config['PATH_PREFIX'] . 'assets/images/archive-logo-lg.png';
$config['SITE_LOGO_SM'] = $config['PATH_PREFIX'] . 'assets/images/archive-logo-sm.png';

$config['BRANDING_LOGO_PLACEHOLDER'] = $config['PATH_PREFIX'] . 'assets/images/branding-logo.png';

$config['BRANDING_TEXT'] = '';
$config['BRANDING_URL'] = '';
$config['BRANDING_LOGO'] = $config['SITE_LOGO_SM'];

$config['ICON_DOC'] = $config['PATH_PREFIX'] . 'assets/images/fileicons/doc.png';
$config['ICON_XLS'] = $config['PATH_PREFIX'] . 'assets/images/fileicons/xls.png';
$config['ICON_PDF'] = $config['PATH_PREFIX'] . 'assets/images/fileicons/pdf.png';
Expand Down

0 comments on commit b2c06fa

Please sign in to comment.