From 2405b41e02f4bd6a2f99e5836d9199dee447eb0f Mon Sep 17 00:00:00 2001 From: patdenice Date: Sat, 18 Feb 2012 21:18:34 +0000 Subject: feature:2577 Automaticaly install smartpocket during install or upgrade. hide mobile theme from themes list on user side. git-svn-id: http://piwigo.org/svn/trunk@13242 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions_install.inc.php | 2 +- admin/themes/default/template/themes_installed.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'admin') diff --git a/admin/include/functions_install.inc.php b/admin/include/functions_install.inc.php index e564311b2..5eb251da7 100644 --- a/admin/include/functions_install.inc.php +++ b/admin/include/functions_install.inc.php @@ -134,7 +134,7 @@ function activate_core_themes() $themes = new themes(); foreach ($themes->fs_themes as $theme_id => $fs_theme) { - if (in_array($theme_id, array('Sylvia', 'clear', 'dark'))) + if (in_array($theme_id, array('Sylvia', 'clear', 'dark', 'smartpocket'))) { $themes->perform_action('activate', $theme_id); } diff --git a/admin/themes/default/template/themes_installed.tpl b/admin/themes/default/template/themes_installed.tpl index 57df78a79..82d57a439 100644 --- a/admin/themes/default/template/themes_installed.tpl +++ b/admin/themes/default/template/themes_installed.tpl @@ -17,7 +17,7 @@ jQuery(document).ready(function() {
{foreach from=$active_themes item=theme}
-
{$theme.name}{if $theme.is_default} ({'default'|@translate}){/if} {if $theme.mobile} ({'mobile'|@translate}){/if}
+
{$theme.name}{if $theme.is_default} ({'default'|@translate}){/if} {if $theme.mobile} ({'Mobile'|@translate}){/if}
@@ -47,7 +47,7 @@ jQuery(document).ready(function() {
{foreach from=$inactive_themes item=theme}
-
{$theme.name}{if $theme.mobile} ({'mobile'|@translate}){/if}
+
{$theme.name}{if $theme.mobile} ({'Mobile'|@translate}){/if}
-- cgit v1.2.3