{* Only show if this category has 1 or more related categories *}
{if !empty($this_category.related_ids)}
Related categories of {$this_category.name|htmlspecialchars}:
{* Load related categories *}
{categories var=related_categories related=true}
{* Loop through the available related categories and display them *}
{foreach var=category from=$related_categories}
{if $config.mod_rewrite}
{$category.name|htmlspecialchars} ({$category.links|number_format::0::$config.dec_point::$config.thousands_sep}/{$category.subcategories|number_format::0::$config.dec_point::$config.thousands_sep}),
{else}
{$this_category.name|htmlspecialchars} ({$category.links|number_format::0::$config.dec_point::$config.thousands_sep}/{$category.subcategories|number_format::0::$config.dec_point::$config.thousands_sep}),
{/if}
{/foreach}
{* Load the featured links for this category *}
{links var=featured_links type=featured}
{* Only show if this category has 1 or more featured links *}
{if count($featured_links) > 0}
Featured Links
{* Loop through the featured links and display them *}
{foreach var=link from=$featured_links}
{/foreach}
{/if}
{* Load the regular links for this category *}
{links var=regular_links type=regular perpage=20 order="date_added DESC"}
{* Only show if this category has 1 or more links *}
{if count($regular_links) > 0}
Regular links: {$pagination.start|htmlspecialchars} - {$pagination.end|htmlspecialchars} of {$pagination.total|htmlspecialchars}