Changeset 2218 for trunk/index.php


Ignore:
Timestamp:
Feb 27, 2008, 9:25:18 PM (16 years ago)
Author:
rub
Message:

Resolved issue 0000807: New slideshow features

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r2138 r2218  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | file          : $Id$
     
    6868}
    6969
    70 if ( count($page['items']) > $user['nb_image_page'])
     70if (count($page['items']) > $user['nb_image_page'])
    7171{
    7272  $page['navigation_bar'] = create_navigation_bar(
     
    100100//-------------------------------------------------------------- category title
    101101$template_title = $page['title'];
    102 if ( count($page['items']) > 0)
     102if (count($page['items']) > 0)
    103103{
    104104  $template_title.= ' ['.count($page['items']).']';
     
    193193}
    194194
    195 if (is_admin() and !empty($page['items']) )
     195if (is_admin() and !empty($page['items']))
    196196{
    197197  $template->assign_block_vars(
     
    263263//------------------------------------------------------- category informations
    264264
     265// slideshow
     266// execute after init thumbs in order to have all picture informations
     267if (!empty($page['cat_slideshow_url']))
     268{
     269  if (isset($_GET['slideshow']))
     270  {
     271    redirect($page['cat_slideshow_url']);
     272  }
     273  else
     274  {
     275    $template->assign_block_vars(
     276      'slideshow', array('URL' => $page['cat_slideshow_url']));
     277  }
     278}
     279
    265280// navigation bar
    266281if ($page['navigation_bar'] != '')
Note: See TracChangeset for help on using the changeset viewer.