Ignore:
Timestamp:
Apr 6, 2006, 4:23:54 AM (19 years ago)
Author:
rvelices
Message:

improvement: urls for tags can contain now only the tag or the id and tag

improvement: urls for category can be now id and category names (instead
of only id)

improvement: added 2 indexes (#image_tag.tag_id and #tags.url_name)

improvement: identification, register, search pages automatically set focus
on first form input

improvement: focus, nofocus css class now valid for all forms

fix: category comment is tag stripped in category_subcats.inc.php
(otherwise issues with html/scripts inside category comment)

File:
1 edited

Legend:

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

    r1130 r1131  
    2929 * This file is included by the main page to show thumbnails for a category
    3030 * that have only subcategories
    31  * 
     31 *
    3232 */
    3333
     
    9191  }
    9292
     93  $comment = null;
     94  if ( isset($row['comment']) )
     95  {
     96    $comment = strip_tags( $row['comment'] );
     97  }
     98
    9399  if (isset($image_id))
    94100  {
     
    100106        'name' => $row['name'],
    101107        'date_last' => @$row['date_last'],
    102         'comment' => @$row['comment'],
     108        'comment' => $comment,
    103109        'nb_images' => $row['nb_images'],
    104110        )
     
    112118{
    113119  $images = array();
    114  
     120
    115121  foreach ($cat_thumbnails as $item)
    116122  {
     
    130136
    131137  $template->assign_block_vars('categories', array());
    132  
     138
    133139  foreach ($cat_thumbnails as $item)
    134140  {
     
    140146        'TITLE' => $lang['hint_category'],
    141147        'ICON'  => get_icon(@$item['date_last']),
    142        
     148
    143149        'URL' => make_index_url(
    144150          array(
    145151            'category' => $item['category'],
     152            'cat_name' => $item['name'],
    146153            )
    147154          ),
Note: See TracChangeset for help on using the changeset viewer.