| « Save skin for each blog | image/file managment system » |
We need to handle these 3 new fields:
cat_description
cat_longdesc
cat_icon
the icon is just an icon name. The user can include if in
his template like this:
<img src="somepath/<?php cat_icon() ?>" />
We have permission to steal all the icons on
http://www.thauvin.net/blog/index.jsp for the demo.
Let's save these in a 'caticons' directory next to 'smilies'
single_cat_description(-)
single_cat_longdesc()
single_cat_icon()Item::cat_icons( $mainclass='#', $otherclass='#') List all the category icons. <img class="$otherclass" src="somecatpic.jpg" /><img class="$mainclass" src="maincatpic.jpg" />Item::main_cat_icon( $imgclass='#') Show the icon for the main category only.Item::cat_icon_links(-) Make all the icons links to the categories.Item::main_cat_icon_link(-) Make the main cat icon a link to the category.