- Timestamp:
- Feb 18, 2012, 10:18:34 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_install.inc.php
r12922 r13242 135 135 foreach ($themes->fs_themes as $theme_id => $fs_theme) 136 136 { 137 if (in_array($theme_id, array('Sylvia', 'clear', 'dark' )))137 if (in_array($theme_id, array('Sylvia', 'clear', 'dark', 'smartpocket'))) 138 138 { 139 139 $themes->perform_action('activate', $theme_id); -
trunk/admin/themes/default/template/themes_installed.tpl
r13172 r13242 18 18 {foreach from=$active_themes item=theme} 19 19 <div class="themeBox{if $theme.is_default} themeDefault{/if}"> 20 <div class="themeName">{$theme.name}{if $theme.is_default} <em>({'default'|@translate})</em>{/if} {if $theme.mobile} <em>({' mobile'|@translate})</em>{/if}</div>20 <div class="themeName">{$theme.name}{if $theme.is_default} <em>({'default'|@translate})</em>{/if} {if $theme.mobile} <em>({'Mobile'|@translate})</em>{/if}</div> 21 21 <div class="themeShot"><a href="{$theme.screenshot}" class="preview-box" title="{$theme.name}"><img src="{$theme.screenshot}" alt=""></a></div> 22 22 <div class="themeActions"> … … 48 48 {foreach from=$inactive_themes item=theme} 49 49 <div class="themeBox"> 50 <div class="themeName">{$theme.name}{if $theme.mobile} <em>({' mobile'|@translate})</em>{/if}</div>50 <div class="themeName">{$theme.name}{if $theme.mobile} <em>({'Mobile'|@translate})</em>{/if}</div> 51 51 <div class="themeShot"><a href="{$theme.screenshot}" class="preview-box" title="{$theme.name}"><img src="{$theme.screenshot}" alt=""></a></div> 52 52 <div class="themeActions"> -
trunk/include/functions.inc.php
r13240 r13242 758 758 * returns available themes 759 759 */ 760 function get_pwg_themes( )760 function get_pwg_themes($show_mobile=false) 761 761 { 762 762 global $conf; … … 774 774 while ($row = pwg_db_fetch_assoc($result)) 775 775 { 776 if ($row['id'] == $conf['mobile_theme']) 777 { 778 if (!$show_mobile) 779 { 780 continue; 781 } 782 $row['name'] .= ' ('.l10n('Mobile').')'; 783 } 776 784 if (check_theme_installed($row['id'])) 777 785 { -
trunk/install/config.sql
r13004 r13242 74 74 INSERT INTO piwigo_config (param,value) VALUES ('original_resize_maxheight','2016'); 75 75 INSERT INTO piwigo_config (param,value) VALUES ('original_resize_quality','95'); 76 INSERT INTO piwigo_config (param,value) VALUES ('mobile_theme',null); -
trunk/plugins/LocalFilesEditor/include/css.inc.php
r11586 r13242 11 11 $edited_file = $_POST['edited_file']; 12 12 } 13 elseif (isset($_GET['theme']) and in_array($_GET['theme'], array_keys(get_pwg_themes( ))))13 elseif (isset($_GET['theme']) and in_array($_GET['theme'], array_keys(get_pwg_themes(true)))) 14 14 { 15 15 $edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . 'css/'.$_GET['theme'].'-rules.css';
Note: See TracChangeset
for help on using the changeset viewer.