Replace all flat_cat by flat.
git-svn-id: http://piwigo.org/svn/trunk@1800 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
67a8036768
commit
e79d03c1fc
7 changed files with 24 additions and 24 deletions
|
|
@ -269,7 +269,7 @@ function add_well_known_params_in_url($url, $params)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($params['flat_cat']))
|
if (isset($params['flat']))
|
||||||
{
|
{
|
||||||
$url.= '/flat';
|
$url.= '/flat';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -275,7 +275,7 @@ else
|
||||||
case 'picture':
|
case 'picture':
|
||||||
{
|
{
|
||||||
//access a picture only by id, file or id-file without given section
|
//access a picture only by id, file or id-file without given section
|
||||||
$page['flat_cat'] = true;
|
$page['flat'] = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'index':
|
case 'index':
|
||||||
|
|
@ -314,7 +314,7 @@ while (isset($tokens[$i]))
|
||||||
'flat' == $tokens[$i])
|
'flat' == $tokens[$i])
|
||||||
{
|
{
|
||||||
// indicate a special list of images
|
// indicate a special list of images
|
||||||
$page['flat_cat'] = true;
|
$page['flat'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match('/^(posted|created)/', $tokens[$i] ))
|
if (preg_match('/^(posted|created)/', $tokens[$i] ))
|
||||||
|
|
@ -396,7 +396,7 @@ if ('categories' == $page['section'])
|
||||||
'title' =>
|
'title' =>
|
||||||
get_cat_display_name($result['name'], '', false),
|
get_cat_display_name($result['name'], '', false),
|
||||||
'thumbnails_include' =>
|
'thumbnails_include' =>
|
||||||
(($result['nb_images'] > 0) or (isset($page['flat_cat'])))
|
(($result['nb_images'] > 0) or (isset($page['flat'])))
|
||||||
? 'include/category_default.inc.php'
|
? 'include/category_default.inc.php'
|
||||||
: 'include/category_cats.inc.php'
|
: 'include/category_cats.inc.php'
|
||||||
)
|
)
|
||||||
|
|
@ -406,12 +406,12 @@ if ('categories' == $page['section'])
|
||||||
{
|
{
|
||||||
$page['title'] = $lang['no_category'];
|
$page['title'] = $lang['no_category'];
|
||||||
$page['thumbnails_include'] =
|
$page['thumbnails_include'] =
|
||||||
(isset($page['flat_cat']))
|
(isset($page['flat']))
|
||||||
? 'include/category_default.inc.php'
|
? 'include/category_default.inc.php'
|
||||||
: 'include/category_cats.inc.php';
|
: 'include/category_cats.inc.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($page['flat_cat']))
|
if (isset($page['flat']))
|
||||||
{
|
{
|
||||||
$page['title'] = $lang['recent_pics_cat'].' : '.$page['title'] ;
|
$page['title'] = $lang['recent_pics_cat'].' : '.$page['title'] ;
|
||||||
}
|
}
|
||||||
|
|
@ -421,7 +421,7 @@ if ('categories' == $page['section'])
|
||||||
(!isset($page['chronology_field'])) and
|
(!isset($page['chronology_field'])) and
|
||||||
(
|
(
|
||||||
(isset($page['category'])) or
|
(isset($page['category'])) or
|
||||||
(isset($page['flat_cat']))
|
(isset($page['flat']))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
@ -430,7 +430,7 @@ if ('categories' == $page['section'])
|
||||||
$conf[ 'order_by' ] = ' ORDER BY '.$result['image_order'];
|
$conf[ 'order_by' ] = ' ORDER BY '.$result['image_order'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($page['flat_cat']))
|
if (isset($page['flat']))
|
||||||
{
|
{
|
||||||
// flat recent categories mode
|
// flat recent categories mode
|
||||||
$query = '
|
$query = '
|
||||||
|
|
@ -742,7 +742,7 @@ SELECT id,file
|
||||||
|
|
||||||
// add meta robots noindex, nofollow to avoid unnecesary robot crawls
|
// add meta robots noindex, nofollow to avoid unnecesary robot crawls
|
||||||
$page['meta_robots']=array();
|
$page['meta_robots']=array();
|
||||||
if ( isset($page['chronology_field']) or isset($page['flat_cat'])
|
if ( isset($page['chronology_field']) or isset($page['flat'])
|
||||||
or 'list'==$page['section'] or 'recent_pics'==$page['section'] )
|
or 'list'==$page['section'] or 'recent_pics'==$page['section'] )
|
||||||
{
|
{
|
||||||
$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
|
$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
|
||||||
|
|
|
||||||
16
index.php
16
index.php
|
|
@ -106,22 +106,22 @@ if (isset($page['cat_nb_images']) and $page['cat_nb_images'] > 0)
|
||||||
$template_title.= ' ['.$page['cat_nb_images'].']';
|
$template_title.= ' ['.$page['cat_nb_images'].']';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($page['flat_cat']) or isset($page['chronology_field']))
|
if (isset($page['flat']) or isset($page['chronology_field']))
|
||||||
{
|
{
|
||||||
$template->assign_block_vars(
|
$template->assign_block_vars(
|
||||||
'mode_normal',
|
'mode_normal',
|
||||||
array(
|
array(
|
||||||
'URL' => duplicate_index_url( array(), array('chronology_field', 'start', 'flat_cat') )
|
'URL' => duplicate_index_url( array(), array('chronology_field', 'start', 'flat') )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($page['flat_cat']) and 'categories' == $page['section'])
|
if (!isset($page['flat']) and 'categories' == $page['section'])
|
||||||
{
|
{
|
||||||
$template->assign_block_vars(
|
$template->assign_block_vars(
|
||||||
'flat_cat',
|
'flat',
|
||||||
array(
|
array(
|
||||||
'URL' => duplicate_index_url(array('flat_cat' => ''), array('start', 'chronology_field'))
|
'URL' => duplicate_index_url(array('flat' => ''), array('start', 'chronology_field'))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -137,7 +137,7 @@ if (!isset($page['chronology_field']))
|
||||||
$template->assign_block_vars(
|
$template->assign_block_vars(
|
||||||
'mode_created',
|
'mode_created',
|
||||||
array(
|
array(
|
||||||
'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_cat') )
|
'URL' => duplicate_index_url( $chronology_params, array('start', 'flat') )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -145,7 +145,7 @@ if (!isset($page['chronology_field']))
|
||||||
$template->assign_block_vars(
|
$template->assign_block_vars(
|
||||||
'mode_posted',
|
'mode_posted',
|
||||||
array(
|
array(
|
||||||
'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_cat') )
|
'URL' => duplicate_index_url( $chronology_params, array('start', 'flat') )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -161,7 +161,7 @@ else
|
||||||
}
|
}
|
||||||
$url = duplicate_index_url(
|
$url = duplicate_index_url(
|
||||||
array('chronology_field'=>$chronology_field ),
|
array('chronology_field'=>$chronology_field ),
|
||||||
array('chronology_date', 'start', 'flat_cat')
|
array('chronology_date', 'start', 'flat')
|
||||||
);
|
);
|
||||||
$template->assign_block_vars(
|
$template->assign_block_vars(
|
||||||
'mode_'.$chronology_field,
|
'mode_'.$chronology_field,
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
// | 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-2006 PhpWebGallery Team - http://phpwebgallery.net |
|
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
// | branch : BSF (Best So Far)
|
// | branch : BSF (Best So Far)
|
||||||
// | file : $RCSfile$
|
// | file : $RCSfile$
|
||||||
|
|
@ -489,7 +489,7 @@ $lang['maxheight'] = 'Maximum height of the pictures';
|
||||||
$lang['maxheight_error'] = 'Maximum height must be a number superior to 50';
|
$lang['maxheight_error'] = 'Maximum height must be a number superior to 50';
|
||||||
$lang['maxwidth'] = 'Maximum width of the pictures';
|
$lang['maxwidth'] = 'Maximum width of the pictures';
|
||||||
$lang['maxwidth_error'] = 'Maximum width must be a number superior to 50';
|
$lang['maxwidth_error'] = 'Maximum width must be a number superior to 50';
|
||||||
$lang['flat_cat_hint'] = 'flat display elements of categories and sub-categories';
|
$lang['flat_hint'] = 'flat display elements of categories and sub-categories';
|
||||||
$lang['start_filter_hint'] = 'displays only recent elements';
|
$lang['start_filter_hint'] = 'displays only recent elements';
|
||||||
$lang['stop_filter_hint'] = 'return to display all elements';
|
$lang['stop_filter_hint'] = 'return to display all elements';
|
||||||
$lang['mode_created_hint'] = 'displays a calendar by creation date';
|
$lang['mode_created_hint'] = 'displays a calendar by creation date';
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
// | 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-2006 PhpWebGallery Team - http://phpwebgallery.net |
|
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
// | branch : BSF (Best So Far)
|
// | branch : BSF (Best So Far)
|
||||||
// | file : $RCSfile$
|
// | file : $RCSfile$
|
||||||
|
|
@ -489,7 +489,7 @@ $lang['maxheight'] = 'Hauteur maximum des images';
|
||||||
$lang['maxheight_error'] = 'La hauteur maximum des images doit être supérieure à 50';
|
$lang['maxheight_error'] = 'La hauteur maximum des images doit être supérieure à 50';
|
||||||
$lang['maxwidth'] = 'Largeur maximum des images';
|
$lang['maxwidth'] = 'Largeur maximum des images';
|
||||||
$lang['maxwidth_error'] = 'La largeur des images doit être supérieure à 50';
|
$lang['maxwidth_error'] = 'La largeur des images doit être supérieure à 50';
|
||||||
$lang['flat_cat_hint'] = 'affiche à plat les éléments des catégories et des sous-catégories';
|
$lang['flat_hint'] = 'affiche à plat les éléments des catégories et des sous-catégories';
|
||||||
$lang['start_filter_hint'] = 'afficher que les éléments récents';
|
$lang['start_filter_hint'] = 'afficher que les éléments récents';
|
||||||
$lang['stop_filter_hint'] = 'retourner à l\'affichage de tous les éléments';
|
$lang['stop_filter_hint'] = 'retourner à l\'affichage de tous les éléments';
|
||||||
$lang['mode_created_hint'] = 'afficher un calendrier par date de création';
|
$lang['mode_created_hint'] = 'afficher un calendrier par date de création';
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 754 B After Width: | Height: | Size: 754 B |
|
|
@ -31,9 +31,9 @@
|
||||||
<li><a href="{mode_normal.URL}" title="{lang:mode_normal_hint}"><img src="{pwg_root}{themeconf:icon_dir}/normal_mode.png" class="button" alt="{lang:mode_normal_hint}"></a></li>
|
<li><a href="{mode_normal.URL}" title="{lang:mode_normal_hint}"><img src="{pwg_root}{themeconf:icon_dir}/normal_mode.png" class="button" alt="{lang:mode_normal_hint}"></a></li>
|
||||||
<!-- END mode_normal -->
|
<!-- END mode_normal -->
|
||||||
|
|
||||||
<!-- BEGIN flat_cat -->
|
<!-- BEGIN flat -->
|
||||||
<li><a href="{flat_cat.URL}" title="{lang:flat_cat_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/flat_cat.png" class="button" alt="{lang:flat_cat_hint}"></a></li>
|
<li><a href="{flat.URL}" title="{lang:flat_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/flat.png" class="button" alt="{lang:flat_hint}"></a></li>
|
||||||
<!-- END flat_cat -->
|
<!-- END flat -->
|
||||||
|
|
||||||
<!-- BEGIN mode_posted -->
|
<!-- BEGIN mode_posted -->
|
||||||
<li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li>
|
<li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue