mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-04 00:42:20 +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:
@@ -757,7 +757,7 @@ function url_is_remote($url)
|
||||
/**
|
||||
* returns available themes
|
||||
*/
|
||||
function get_pwg_themes()
|
||||
function get_pwg_themes($show_mobile=false)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
@@ -773,6 +773,14 @@ SELECT
|
||||
$result = pwg_query($query);
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
if ($row['id'] == $conf['mobile_theme'])
|
||||
{
|
||||
if (!$show_mobile)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
$row['name'] .= ' ('.l10n('Mobile').')';
|
||||
}
|
||||
if (check_theme_installed($row['id']))
|
||||
{
|
||||
$themes[ $row['id'] ] = $row['name'];
|
||||
|
||||
Reference in New Issue
Block a user