Changeset 1800


Ignore:
Timestamp:
Feb 11, 2007, 12:09:37 AM (17 years ago)
Author:
rub
Message:

Replace all flat_cat by flat.

Location:
trunk
Files:
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_url.inc.php

    r1789 r1800  
    270270  }
    271271
    272   if (isset($params['flat_cat']))
     272  if (isset($params['flat']))
    273273  {
    274274    $url.= '/flat';
  • trunk/include/section_init.inc.php

    r1792 r1800  
    276276    {
    277277      //access a picture only by id, file or id-file without given section
    278       $page['flat_cat'] = true;
     278      $page['flat'] = true;
    279279      break;
    280280    }
     
    315315  {
    316316    // indicate a special list of images
    317     $page['flat_cat'] = true;
     317    $page['flat'] = true;
    318318  }
    319319
     
    397397          get_cat_display_name($result['name'], '', false),
    398398        'thumbnails_include' =>
    399           (($result['nb_images'] > 0) or (isset($page['flat_cat'])))
     399          (($result['nb_images'] > 0) or (isset($page['flat'])))
    400400          ? 'include/category_default.inc.php'
    401401          : 'include/category_cats.inc.php'
     
    407407    $page['title'] = $lang['no_category'];
    408408    $page['thumbnails_include'] =
    409       (isset($page['flat_cat']))
     409      (isset($page['flat']))
    410410          ? 'include/category_default.inc.php'
    411411          : 'include/category_cats.inc.php';
    412412  }
    413413
    414   if (isset($page['flat_cat']))
     414  if (isset($page['flat']))
    415415  {
    416416    $page['title'] = $lang['recent_pics_cat'].' : '.$page['title'] ;
     
    422422      (
    423423        (isset($page['category'])) or
    424         (isset($page['flat_cat']))
     424        (isset($page['flat']))
    425425      )
    426426    )
     
    431431    }
    432432
    433     if (isset($page['flat_cat']))
     433    if (isset($page['flat']))
    434434    {
    435435      // flat recent categories mode
     
    743743// add meta robots noindex, nofollow to avoid unnecesary robot crawls
    744744$page['meta_robots']=array();
    745 if ( isset($page['chronology_field']) or isset($page['flat_cat'])
     745if ( isset($page['chronology_field']) or isset($page['flat'])
    746746      or 'list'==$page['section'] or 'recent_pics'==$page['section'] )
    747747{
  • trunk/index.php

    r1727 r1800  
    107107}
    108108
    109 if (isset($page['flat_cat']) or isset($page['chronology_field']))
     109if (isset($page['flat']) or isset($page['chronology_field']))
    110110{
    111111  $template->assign_block_vars(
    112112    'mode_normal',
    113113    array(
    114       'URL' => duplicate_index_url( array(), array('chronology_field', 'start', 'flat_cat') )
    115       )
    116     );
    117 }
    118 
    119 if (!isset($page['flat_cat']) and 'categories' == $page['section'])
    120 {
    121   $template->assign_block_vars(
    122     'flat_cat',
    123     array(
    124       'URL' => duplicate_index_url(array('flat_cat' => ''), array('start', 'chronology_field'))
     114      'URL' => duplicate_index_url( array(), array('chronology_field', 'start', 'flat') )
     115      )
     116    );
     117}
     118
     119if (!isset($page['flat']) and 'categories' == $page['section'])
     120{
     121  $template->assign_block_vars(
     122    'flat',
     123    array(
     124      'URL' => duplicate_index_url(array('flat' => ''), array('start', 'chronology_field'))
    125125      )
    126126    );
     
    138138    'mode_created',
    139139    array(
    140       'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_cat') )
     140      'URL' => duplicate_index_url( $chronology_params, array('start', 'flat') )
    141141      )
    142142    );
     
    146146    'mode_posted',
    147147    array(
    148       'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_cat') )
     148      'URL' => duplicate_index_url( $chronology_params, array('start', 'flat') )
    149149      )
    150150    );
     
    162162  $url = duplicate_index_url(
    163163            array('chronology_field'=>$chronology_field ),
    164             array('chronology_date', 'start', 'flat_cat')
     164            array('chronology_date', 'start', 'flat')
    165165          );
    166166  $template->assign_block_vars(
  • trunk/language/en_UK.iso-8859-1/common.lang.php

    r1769 r1800  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | branch        : BSF (Best So Far)
     
    490490$lang['maxwidth'] = 'Maximum width of the pictures';
    491491$lang['maxwidth_error'] = 'Maximum width must be a number superior to 50';
    492 $lang['flat_cat_hint'] = 'flat display elements of categories and sub-categories';
     492$lang['flat_hint'] = 'flat display elements of categories and sub-categories';
    493493$lang['start_filter_hint'] = 'displays only recent elements';
    494494$lang['stop_filter_hint'] = 'return to display all elements';
  • trunk/language/fr_FR.iso-8859-1/common.lang.php

    r1769 r1800  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | branch        : BSF (Best So Far)
     
    490490$lang['maxwidth'] = 'Largeur maximum des images';
    491491$lang['maxwidth_error'] = 'La largeur des images doit être supérieure à 50';
    492 $lang['flat_cat_hint'] = 'affiche à plat les éléments des catégories et des sous-catégories';
     492$lang['flat_hint'] = 'affiche à plat les éléments des catégories et des sous-catégories';
    493493$lang['start_filter_hint'] = 'afficher que les éléments récents';
    494494$lang['stop_filter_hint'] = 'retourner à l\'affichage de tous les éléments';
  • trunk/template/yoga/index.tpl

    r1722 r1800  
    3232      <!-- END mode_normal -->
    3333
    34       <!-- BEGIN flat_cat -->
    35       <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>
    36       <!-- END flat_cat -->
     34      <!-- BEGIN flat -->
     35      <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>
     36      <!-- END flat -->
    3737
    3838      <!-- BEGIN mode_posted -->
Note: See TracChangeset for help on using the changeset viewer.