(cp 27caef885) fixes #2486 add stdPgs config tab in admin

This commit is contained in:
HWFord
2025-12-19 16:07:07 +01:00
parent 4ff398552e
commit 6858acda37
49 changed files with 4335 additions and 68 deletions
+1
View File
@@ -162,6 +162,7 @@ function add_core_tabs($sheets, $tab_id)
$sheets['update'] = array('caption' => '<span class="icon-arrows-cw"></span>'.l10n('Check for updates'), 'url' => $my_base_url.'&amp;tab=update');
$sheets['new'] = array('caption' => '<span class="icon-plus-circled"></span>'.l10n('Add New Theme'), 'url' => $my_base_url.'&amp;tab=new');
}
$sheets['standard_pages'] = array('caption' => '<span class="icon-cog-alt"></span>'.l10n('Standard pages'), 'url' => $my_base_url.'&amp;tab=standard_pages');
break;
case 'updates':
+4 -1
View File
@@ -373,7 +373,6 @@ SELECT
'mobile' => false,
);
$theme_data = implode('', file($path.'/themeconf.inc.php'));
if (preg_match("|Theme Name:\\s*(.+)|", $theme_data, $val))
{
$theme['name'] = trim( $val[1] );
@@ -419,6 +418,10 @@ SELECT
{
$theme['mobile'] = get_boolean($val[1]);
}
if (preg_match('/["\']use_standard_pages["\'].*?(true|false)/i', $theme_data, $val))
{
$theme['use_standard_pages'] = get_boolean($val[1]);
}
// screenshot
$screenshot_path = $path.'/screenshot.png';