Category.php
It
is one of the main scripts. This is used to show pages of all categories
and also to show a special pages for New Links and Top Rated Links.
To show
one category you will need to call the script as 'category.php?category=CATEGORY_NUMBER'.
To show all normal categories is used template 'category.html'. Used variables:
#%lcats%# |
It makes links to all first level categories |
#%name%# |
Name of the actual category. |
#%number%# |
Number of the actual category. |
#%total%# |
Total number of links in the actual category. Not included links in subcategories. |
#%links%# |
List of links in the actual category. Each link is based on template 'link.txt' - please look below for more info. |
#%pages_list%# |
If the category has more than one page, it makes a table with links to all pages of the category. |
Each
link in a category is based on template 'link.txt'. These variables may be used:
#%number%# |
Number of the link. |
#%title%# |
Title of the link. |
#%description%# |
Description of the link. |
#%detail%# |
Detailed entry of the link. |
#%url%# |
URL of the link. |
#%icon%# |
If the link is New it shows the relevant icon. |
#%rating%# |
Actual rating of the link |
#%added%# |
Date added. |
To
show New Links you have to call it as 'category.php?action=new'
To
show Top Rated Links you have to call it as 'category.php?action=top_rated'
To
show these 4 special categories are used these templates:
- cat_new.html
- cat_top_rated.html
Both these templates are used the same variables:
#%lcats%# |
It makes links to all first level categories |
#%links%# |
Links in the actual 'category'. Each link is based on template 'link.txt' - please look below for more info. |
Each
link is based on template 'link.txt' (above)