mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ jQuery(document).ready(function() {
|
||||
<div class="themeBoxes">
|
||||
{foreach from=$active_themes item=theme}
|
||||
<div class="themeBox{if $theme.is_default} themeDefault{/if}">
|
||||
<div class="themeName">{$theme.name}{if $theme.is_default} <em>({'default'|@translate})</em>{/if} {if $theme.mobile} <em>({'mobile'|@translate})</em>{/if}</div>
|
||||
<div class="themeName">{$theme.name}{if $theme.is_default} <em>({'default'|@translate})</em>{/if} {if $theme.mobile} <em>({'Mobile'|@translate})</em>{/if}</div>
|
||||
<div class="themeShot"><a href="{$theme.screenshot}" class="preview-box" title="{$theme.name}"><img src="{$theme.screenshot}" alt=""></a></div>
|
||||
<div class="themeActions">
|
||||
<div>
|
||||
@@ -47,7 +47,7 @@ jQuery(document).ready(function() {
|
||||
<div class="themeBoxes">
|
||||
{foreach from=$inactive_themes item=theme}
|
||||
<div class="themeBox">
|
||||
<div class="themeName">{$theme.name}{if $theme.mobile} <em>({'mobile'|@translate})</em>{/if}</div>
|
||||
<div class="themeName">{$theme.name}{if $theme.mobile} <em>({'Mobile'|@translate})</em>{/if}</div>
|
||||
<div class="themeShot"><a href="{$theme.screenshot}" class="preview-box" title="{$theme.name}"><img src="{$theme.screenshot}" alt=""></a></div>
|
||||
<div class="themeActions">
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user