NewsFeaturesDownloadsDevelopmentSupportAbout Us
Plugin categorycloud

Plugin categorycloud

From LifeType Wiki


Name: categorycloud

Latest version: 1.0

Download link: http://prdownloads.sourceforge.net/lifetype/1.1_categorycloud.zip?download

License: GPL

Author: Mariano Draghi

[edit] Description

This plugin offers a category cloud for a blog.

The plugin is based on TagCloud, by Ben Yacoub Hatem.

[edit] Configuration

The following code should be added somewhere in your blog template:

<div class="sidetitle">{$locale->tr("categories")}</div>

<div class="side">

{if $categorycloud->isEnabled()}

  <div style="text-align:center; padding: 3px;">{ $categorycloud->getCategoryCloud()}</div>

{else}

 <!-- fallback to "classic" categories sidebar -->

 <ul>

  {foreach from=$articlecategories item=category}

  <li><a href="{$url->categoryLink($category)}">{$category->getName()}</a></li>

  {/foreach}

 </ul>

{/if}