mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
2 templates migrated
git-svn-id: http://piwigo.org/svn/trunk@2225 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
a95bc3f7da
commit
7818a7715b
3 changed files with 25 additions and 29 deletions
|
@ -2,9 +2,8 @@
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
// | PhpWebGallery - a PHP based picture gallery |
|
// | PhpWebGallery - a PHP based picture gallery |
|
||||||
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
|
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
|
||||||
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
|
// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
// | branch : BSF (Best So Far)
|
|
||||||
// | file : $Id$
|
// | file : $Id$
|
||||||
// | last update : $Date$
|
// | last update : $Date$
|
||||||
// | last modifier : $Author$
|
// | last modifier : $Author$
|
||||||
|
@ -126,7 +125,7 @@ $template->set_filenames(
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$template->assign_vars(
|
$template->assign(
|
||||||
array(
|
array(
|
||||||
'TITLE' =>
|
'TITLE' =>
|
||||||
sprintf(
|
sprintf(
|
||||||
|
@ -161,8 +160,6 @@ $result = pwg_query($query);
|
||||||
|
|
||||||
if (mysql_num_rows($result) > 0)
|
if (mysql_num_rows($result) > 0)
|
||||||
{
|
{
|
||||||
$template->assign_block_vars('groups', array());
|
|
||||||
|
|
||||||
$cats = array();
|
$cats = array();
|
||||||
while ($row = mysql_fetch_array($result))
|
while ($row = mysql_fetch_array($result))
|
||||||
{
|
{
|
||||||
|
@ -173,11 +170,9 @@ if (mysql_num_rows($result) > 0)
|
||||||
|
|
||||||
foreach ($cats as $category)
|
foreach ($cats as $category)
|
||||||
{
|
{
|
||||||
$template->assign_block_vars(
|
$template->append(
|
||||||
'groups.category',
|
'categories_because_of_groups',
|
||||||
array(
|
get_cat_display_name_cache($category['uppercats'], null, false)
|
||||||
'NAME' => get_cat_display_name_cache($category['uppercats'], null, false)
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +1,23 @@
|
||||||
<!-- DEV TAG: not smarty migrated -->
|
{* $Id$ *}
|
||||||
<h2>{TITLE}</h2>
|
<h2>{$TITLE}</h2>
|
||||||
|
|
||||||
<!-- BEGIN groups -->
|
{if isset($categories_because_of_groups) }
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{lang:Categories authorized thanks to group associations}</legend>
|
<legend>{'Categories authorized thanks to group associations'|@translate}</legend>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<!-- BEGIN category -->
|
{foreach from=$categories_because_of_groups item=cat }
|
||||||
<li>{groups.category.NAME}</li>
|
<li>{$cat}</li>
|
||||||
<!-- END category -->
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<!-- END groups -->
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{lang:Other private categories}</legend>
|
<legend>{'Other private categories'|@translate}</legend>
|
||||||
|
|
||||||
<form method="post" action="{F_ACTION}">
|
<form method="post" action="{$F_ACTION}">
|
||||||
{DOUBLE_SELECT}
|
{$DOUBLE_SELECT}
|
||||||
</form>
|
</form>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<!-- DEV TAG: not smarty migrated -->
|
{* $Id$ *}
|
||||||
<!-- BEGIN high -->
|
{if isset($high) }
|
||||||
<a href="javascript:phpWGOpenWindow('{high.U_HIGH}','{high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')">
|
<a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')">
|
||||||
<!-- END high -->
|
{/if}
|
||||||
<img src="{SRC_IMG}" style="width:{WIDTH_IMG}px;height:{HEIGHT_IMG}px;" alt="{ALT_IMG}">
|
<img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}">
|
||||||
<!-- BEGIN high -->
|
{if isset($high) }
|
||||||
</a>
|
</a>
|
||||||
<p>{lang:picture_high}</p>
|
<p>{'picture_high'|@translate}</p>
|
||||||
<!-- END high -->
|
{/if}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue