LuckyCoinkydink/templates/timeline/archive_categories.tpl
DonChambers 0faf2b9899 Timeline Theme - more icons & font awesome upgrade
Added more social icons to the index footer, upgraded to Font Awesome 5.7.2.
2019-03-18 09:01:21 -05:00

34 lines
1.9 KiB
Smarty

{if $categories}
<h3>{$CONST.CATEGORIES}</h3>
<ul class="plainList category-list">
{foreach from=$categories item="plugin_category" name="each_category"}
{if $smarty.foreach.each_category.first}{assign var="prevdepth" value=$plugin_category.catdepth}{/if}
{if ($plugin_category.catdepth == $prevdepth) && !$smarty.foreach.each_category.first}
</li>
{elseif $plugin_category.catdepth < $prevdepth}
{for $i=1 to $prevdepth-$plugin_category.catdepth}
</li>
</ul>
{/for}
</li>
{elseif $plugin_category.catdepth > $prevdepth}
<ul class="category-children">
{/if}
<li id="category_{$plugin_category.categoryid}" class="category_depth{$plugin_category.catdepth} archive-category-list-item">
{if $template_option.category_rss_archive == true}<a class="btn btn-sm btn-default btn-theme serendipity_xml_icon" href="{$plugin_category.feedCategoryURL}" title="{$plugin_category.category_name|escape} rss"><i class="fas fa-rss"></i></a>{/if}
<a class="btn btn-sm btn-default btn-theme" href="{$plugin_category.categoryURL}" title="{$plugin_category.category_description|escape}">{$plugin_category.category_name|escape}</a>
{if $smarty.foreach.each_category.last}
{if $plugin_category.catdepth>0}
{for $i=1 to $plugin_category.catdepth}
</li>
</ul>
{/for}
{/if}
</li>
{/if}
{assign var="prevdepth" value=$plugin_category.catdepth}
{/foreach}
</ul>
{else}
<p class="alert alert-warning"><span class="fa-stack" aria-hidden="true"><i class="far fa-circle fa-stack-2x"></i><i class="fas fa-exclamation fa-stack-1x"></i></span> {$CONST.CATEGORIES_ON_ARCHIVE_DESC}</p>
{/if}