aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/intro.php10
-rw-r--r--template/yoga/admin/intro.tpl63
2 files changed, 36 insertions, 37 deletions
diff --git a/admin/intro.php b/admin/intro.php
index 6014b2d19..03c5e8f9b 100644
--- a/admin/intro.php
+++ b/admin/intro.php
@@ -184,7 +184,7 @@ SELECT COUNT(*)
;';
list($nb_comments) = mysql_fetch_row(pwg_query($query));
-$template->assign_vars(
+$template->assign(
array(
'PWG_VERSION' => PHPWG_VERSION,
'OS' => PHP_OS,
@@ -219,7 +219,7 @@ SELECT MIN(date_available)
;';
list($first_date) = mysql_fetch_row(pwg_query($query));
- $template->assign_block_vars(
+ $template->assign(
'first_added',
array(
'DB_DATE' =>
@@ -241,7 +241,7 @@ list($nb_waiting) = mysql_fetch_row(pwg_query($query));
if ($nb_waiting > 0)
{
- $template->assign_block_vars(
+ $template->assign(
'waiting',
array(
'URL' => PHPWG_ROOT_PATH.'admin.php?page=upload',
@@ -260,7 +260,7 @@ list($nb_comments) = mysql_fetch_row(pwg_query($query));
if ($nb_comments > 0)
{
- $template->assign_block_vars(
+ $template->assign(
'unvalidated',
array(
'URL' => PHPWG_ROOT_PATH.'admin.php?page=comments',
@@ -270,7 +270,7 @@ if ($nb_comments > 0)
}
// Add the PhpWebGallery Official menu
- $template->assign_block_vars( 'pwgmenu', pwg_URL() );
+ $template->assign( 'pwgmenu', pwg_URL() );
// +-----------------------------------------------------------------------+
// | sending html code |
diff --git a/template/yoga/admin/intro.tpl b/template/yoga/admin/intro.tpl
index f4b064489..63ba16307 100644
--- a/template/yoga/admin/intro.tpl
+++ b/template/yoga/admin/intro.tpl
@@ -1,57 +1,56 @@
-<!-- DEV TAG: not smarty migrated -->
<!-- $Id$ -->
-<h2>{lang:title_default}</h2>
-<!-- BEGIN pwgmenu -->
+<h2>{'title_default'|@translate}</h2>
+{if isset($pwgmenu)}
<ul class="pwgmenu">
<!-- Keep Doctype XHTML Strict acceptable even in Admin -->
<!-- New window is open if Js available (Webmasters accept it usually) -->
- <li><a href="{pwgmenu.HOME}" onclick="window.open(this.href, ''); return false;">{lang:HOME}</a></li>
- <li><a href="{pwgmenu.WIKI}" onclick="window.open(this.href, ''); return false;">{lang:WIKI / DOC}</a></li>
- <li><a href="{pwgmenu.FORUM}" onclick="window.open(this.href, ''); return false;">{lang:FORUM}</a></li>
- <li><a href="{pwgmenu.BUGS}" onclick="window.open(this.href, ''); return false;">{lang:BUGS}</a></li>
- <li><a href="{pwgmenu.EXTENSIONS}" onclick="window.open(this.href, ''); return false;">{lang:EXTENSIONS}</a></li>
+ <li><a href="{$pwgmenu.HOME}" onclick="window.open(this.href, ''); return false;">{'HOME'|@translate}</a></li>
+ <li><a href="{$pwgmenu.WIKI}" onclick="window.open(this.href, ''); return false;">{'WIKI / DOC'|@translate}</a></li>
+ <li><a href="{$pwgmenu.FORUM}" onclick="window.open(this.href, ''); return false;">{'FORUM'|@translate}</a></li>
+ <li><a href="{$pwgmenu.BUGS}" onclick="window.open(this.href, ''); return false;">{'BUGS'|@translate}</a></li>
+ <li><a href="{$pwgmenu.EXTENSIONS}" onclick="window.open(this.href, ''); return false;">{'EXTENSIONS'|@translate}</a></li>
</ul>
-<!-- END pwgmenu -->
+{/if}
<dl>
- <dt>{lang:PhpWebGallery version}</dt>
+ <dt>{'PhpWebGallery version'|@translate}</dt>
<dd>
<ul>
- <li>PhpWebGallery {PWG_VERSION}</li>
- <li><a href="{U_CHECK_UPGRADE}">{lang:Check for upgrade}</a></li>
+ <li>PhpWebGallery {$PWG_VERSION}</li>
+ <li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li>
</ul>
</dd>
- <dt>{lang:Environment}</dt>
+ <dt>{'Environment'|@translate}</dt>
<dd>
<ul>
- <li>{lang:Operating system}: {OS}</li>
- <li>PHP: {PHP_VERSION} (<a href="{U_PHPINFO}">{lang:Show info}</a>) [{PHP_DATATIME}]</li>
- <li>MySQL: {MYSQL_VERSION} [{DB_DATATIME}]</li>
+ <li>{'Operating system'|@translate}: {$OS}</li>
+ <li>PHP: {$PHP_VERSION} (<a href="{$U_PHPINFO}">{'Show info'|@translate}</a>) [{$PHP_DATATIME}]</li>
+ <li>MySQL: {$MYSQL_VERSION} [{$DB_DATATIME}]</li>
</ul>
</dd>
- <dt>{lang:Database}</dt>
+ <dt>{'Database'|@translate}</dt>
<dd>
<ul>
<li>
- {DB_ELEMENTS}
- <!-- BEGIN waiting -->
- (<a href="{waiting.URL}">{waiting.INFO}</a>)
- <!-- END waiting -->
+ {$DB_ELEMENTS}
+ {if isset($waiting)}
+ (<a href="{$waiting.URL}">{$waiting.INFO}</a>)
+ {/if}
- <!-- BEGIN first_added -->
- ({first_added.DB_DATE})
- <!-- END first_added -->
+ {if isset($first_added)}
+ ({$first_added.DB_DATE})
+ {/if}
</li>
- <li>{DB_CATEGORIES} ({DB_IMAGE_CATEGORY})</li>
- <li>{DB_TAGS} ({DB_IMAGE_TAG})</li>
- <li>{DB_USERS}</li>
- <li>{DB_GROUPS}</li>
+ <li>{$DB_CATEGORIES} ({$DB_IMAGE_CATEGORY})</li>
+ <li>{$DB_TAGS} ({$DB_IMAGE_TAG})</li>
+ <li>{$DB_USERS}</li>
+ <li>{$DB_GROUPS}</li>
<li>
- {DB_COMMENTS}
- <!-- BEGIN unvalidated -->
- (<a href="{unvalidated.URL}">{unvalidated.INFO}</a>)
- <!-- END unvalidated -->
+ {$DB_COMMENTS}
+ {if isset($unvalidated)}
+ (<a href="{$unvalidated.URL}">{$unvalidated.INFO}</a>)
+ {/if}
</li>
</ul>
</dd>