Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
TagcloudWidget.php
1 <?php
2  /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  *
10  */
11 ?>
12 
13 <?php
14 if ($this->beginCache($content->htmlCacheKey, array('duration' => Yii::app()->getModule('tagcloud')->cacheTime))) {
15  foreach ($content->tags as $tag=>$tagData) {
16  echo CHtml::link($tag, Yii::app()->createUrl($tagData['url']), array('class'=>$tagData['class'])).' ';
17  }
18  $this->endCache();
19 }
20 ?>