Ignore:
Timestamp:
Apr 6, 2006, 4:23:54 AM (18 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/functions_html.inc.php

    r1119 r1131  
    279279    {
    280280      $output.= '<a class=""';
    281       $output.= ' href="'.make_index_url( array('category'=>$id) ).'">';
     281      $output.= ' href="'
     282            .make_index_url(
     283                array(
     284                  'category'=>$id,
     285                  'cat_name'=>$name
     286                  )
     287              )
     288            .'">';
    282289      $output.= $name.'</a>';
    283290    }
     
    354361      $output.= '
    355362<a class=""
    356    href="'.make_index_url( array('category'=>$category_id) ).'">'.$name.'</a>';
     363   href="'
     364      .make_index_url(
     365          array(
     366            'category'=>$category_id,
     367            'cat_name'=>$name
     368            )
     369        )
     370      .'">'.$name.'</a>';
    357371    }
    358372    else
     
    424438    $menu.= '>';
    425439
    426     $url = make_index_url(array('category' => $category['id']));
     440    $url = make_index_url(
     441            array(
     442              'category'=>$category['id'],
     443              'cat_name'=>$category['name']
     444              )
     445            );
    427446
    428447    $menu.= "\n".'<a href="'.$url.'"';
     
    510529{
    511530  global $conf;
    512  
     531
    513532  $output = '<ul class="tagSelection">';
    514533  foreach ($tags as $tag)
     
    525544      $output.= ' checked="checked"';
    526545    }
    527    
     546
    528547    $output.=
    529548      ' />'
Note: See TracChangeset for help on using the changeset viewer.