[pLog-svn] r3724 - in plugins/trunk/tagcloud: . class class/action
class/view locale templates
pwestbro at devel.lifetype.net
pwestbro at devel.lifetype.net
Sun Jul 16 09:48:30 GMT 2006
Author: pwestbro
Date: 2006-07-16 09:48:29 +0000 (Sun, 16 Jul 2006)
New Revision: 3724
Added:
plugins/trunk/tagcloud/class/
plugins/trunk/tagcloud/class/action/
plugins/trunk/tagcloud/class/action/plugintagcloudconfigaction.class.php
plugins/trunk/tagcloud/class/action/plugintagcloudupdateconfigaction.class.php
plugins/trunk/tagcloud/class/view/
plugins/trunk/tagcloud/class/view/plugintagcloudconfigview.class.php
plugins/trunk/tagcloud/locale/
plugins/trunk/tagcloud/locale/locale_en_UK.php
plugins/trunk/tagcloud/templates/
plugins/trunk/tagcloud/templates/tagcloud.template
Modified:
plugins/trunk/tagcloud/Readme.txt
plugins/trunk/tagcloud/plugintagcloud.class.php
Log:
Added admin panel for the tagcloud plugin
Modified: plugins/trunk/tagcloud/Readme.txt
===================================================================
--- plugins/trunk/tagcloud/Readme.txt 2006-07-14 17:59:32 UTC (rev 3723)
+++ plugins/trunk/tagcloud/Readme.txt 2006-07-16 09:48:29 UTC (rev 3724)
@@ -13,7 +13,7 @@
<ul>
<li><div style="text-align:center">
-{ $tagcloud->getTagCloud(20,30)}
+{ $tagcloud->getTagCloud()}
</div></li>
</ul>
@@ -21,7 +21,6 @@
TODO :
-Add admin interface
Add css design
Make it support all encoding (actually limited to [a-zA-Z])
Generate tags by Categories
\ No newline at end of file
Added: plugins/trunk/tagcloud/class/action/plugintagcloudconfigaction.class.php
===================================================================
--- plugins/trunk/tagcloud/class/action/plugintagcloudconfigaction.class.php 2006-07-14 17:59:32 UTC (rev 3723)
+++ plugins/trunk/tagcloud/class/action/plugintagcloudconfigaction.class.php 2006-07-16 09:48:29 UTC (rev 3724)
@@ -0,0 +1,26 @@
+<?php
+
+ include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."plugins/tagcloud/class/view/plugintagcloudconfigview.class.php" );
+
+ /**
+ * shows a form with the current configuration
+ */
+ class PluginTagCloudConfigAction extends AdminAction
+ {
+
+ function PluginTagCloudConfigAction( $actionInfo, $request )
+ {
+ $this->AdminAction( $actionInfo, $request );
+ }
+
+ function perform()
+ {
+ $this->_view = new PluginTagCloudConfigView( $this->_blogInfo );
+
+ $this->setCommonData();
+
+ return true;
+ }
+ }
+?>
\ No newline at end of file
Added: plugins/trunk/tagcloud/class/action/plugintagcloudupdateconfigaction.class.php
===================================================================
--- plugins/trunk/tagcloud/class/action/plugintagcloudupdateconfigaction.class.php 2006-07-14 17:59:32 UTC (rev 3723)
+++ plugins/trunk/tagcloud/class/action/plugintagcloudupdateconfigaction.class.php 2006-07-16 09:48:29 UTC (rev 3724)
@@ -0,0 +1,96 @@
+<?php
+
+ include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."plugins/tagcloud/class/view/plugintagcloudconfigview.class.php" );
+
+ /**
+ * updates the plugin configuration
+ */
+ class PluginTagCloudUpdateConfigAction extends AdminAction
+ {
+ var $_pluginEnabled;
+ var $_maxArticles;
+ var $_maxKeywords;
+ var $_minFont;
+ var $_maxFont;
+ var $_minWeight;
+ var $_maxWeight;
+ var $_bannedKeywords;
+
+ function PluginTagCloudUpdateConfigAction( $actionInfo, $request )
+ {
+ $this->AdminAction( $actionInfo, $request );
+ }
+
+ function validate()
+ {
+ $this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
+ $this->_pluginEnabled = ($this->_pluginEnabled != "" );
+
+ $this->_maxArticles = $this->_request->getValue( "articles" );
+
+ $this->_maxKeywords = $this->_request->getValue( "keyword" );
+
+ $this->_minFont = $this->_request->getValue( "minFont" );
+
+ $this->_maxFont = $this->_request->getValue( "maxFont" );
+
+ $this->_minWeight = $this->_request->getValue( "minWeight" );
+
+ $this->_maxWeight = $this->_request->getValue( "maxWeight" );
+
+ $this->_bannedKeywords = $this->_request->getValue( "bannedKeywords" );
+
+ return true;
+ }
+
+ function perform()
+ {
+ // update the plugin configurations to blog setting
+ $blogSettings = $this->_blogInfo->getSettings();
+ $blogSettings->setValue( "plugin_tagcloud_enabled", $this->_pluginEnabled );
+ $blogSettings->setValue( "plugin_tagcloud_max_articles", $this->_maxArticles );
+ $blogSettings->setValue( "plugin_tagcloud_max_keywords", $this->_maxKeywords );
+ $blogSettings->setValue( "plugin_tagcloud_min_size", $this->_minFont );
+ $blogSettings->setValue( "plugin_tagcloud_max_size", $this->_maxFont );
+ $blogSettings->setValue( "plugin_tagcloud_min_weight", $this->_minWeight );
+ $blogSettings->setValue( "plugin_tagcloud_max_weight", $this->_maxWeight );
+ $blogSettings->setValue( "plugin_tagcloud_banned_keywords", $this->_bannedKeywords );
+ $this->_blogInfo->setSettings( $blogSettings );
+
+ // save the blogs settings
+ $blogs = new Blogs();
+ if( !$blogs->updateBlog( $this->_blogInfo )) {
+ $this->_view = new PluginTagCloudConfigView( $this->_blogInfo );
+ $this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
+ $this->setCommonData();
+
+ return false;
+ }
+
+ // if everything went ok...
+ $this->_blogInfo->setSettings( $blogSettings );
+ $this->_session->setValue( "blogInfo", $this->_blogInfo );
+ $this->saveSession();
+
+ $this->_view = new PluginTagCloudConfigView( $this->_blogInfo );
+ $this->_view->setSuccessMessage( $this->_locale->tr("tagcloud_settings_saved_ok"));
+ $this->setCommonData();
+
+ // clear the cache
+ CacheControl::resetBlogCache( $this->_blogInfo->getId());
+
+ return true;
+ }
+
+ function isValidColor($colorCode) {
+ $pattern = "#[a-fA-F0-9]{6}";
+ $length = strlen($colorCode);
+ if (ereg ($pattern, $colorCode) && $length == 7) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ }
+?>
\ No newline at end of file
Added: plugins/trunk/tagcloud/class/view/plugintagcloudconfigview.class.php
===================================================================
--- plugins/trunk/tagcloud/class/view/plugintagcloudconfigview.class.php 2006-07-14 17:59:32 UTC (rev 3723)
+++ plugins/trunk/tagcloud/class/view/plugintagcloudconfigview.class.php 2006-07-16 09:48:29 UTC (rev 3724)
@@ -0,0 +1,49 @@
+<?php
+
+ include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+
+ /**
+ * implements the main view of the feed reader plugin
+ */
+ class PluginTagCloudConfigView extends AdminPluginTemplatedView
+ {
+
+ function PluginTagCloudConfigView( $blogInfo )
+ {
+ $this->AdminPluginTemplatedView( $blogInfo, "tagcloud", "tagcloud" );
+ }
+
+ function render()
+ {
+ $blogSettings = $this->_blogInfo->getSettings();
+ $pluginEnabled = $blogSettings->getValue( "plugin_tagcloud_enabled" );
+ $maxArticles = $blogSettings->getValue( "plugin_tagcloud_max_articles" );
+ if ($maxArticles == "") $maxArticles = 20;
+ $maxKeywords = $blogSettings->getValue( "plugin_tagcloud_max_keywords" );
+ if ($maxKeywords == "") $maxKeywords = 50;
+ $minSize = $blogSettings->getValue( "plugin_tagcloud_min_size" );
+ if ($minSize == "") $minSize = .4;
+ $maxSize = $blogSettings->getValue( "plugin_tagcloud_max_size" );
+ if ($maxSize == "") $maxSize = 3;
+ $minWeight = $blogSettings->getValue( "plugin_tagcloud_min_weight" );
+ if ($minWeight == "") $minWeight = 3;
+ $maxWeight = $blogSettings->getValue( "plugin_tagcloud_max_weight" );
+ if ($maxWeight == "") $maxWeight = 10;
+ $bannedKeywords = $blogSettings->getValue( "plugin_tagcloud_banned_keywords" );
+ if ($bannedKeywords == "") $bannedKeywords = implode( ",", array( 'a', 'an', 'the', 'and', 'of', 'i', 'its' , 'to', 'is', 'in', 'with', 'for', 'as', 'that', 'on', 'at', 'this', 'my', 'was', 'our', 'it', 'you', 'we', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '10', 'about', 'after', 'all', 'almost', 'along', 'also', 'amp', 'another', 'any', 'are', 'area', 'around', 'available', 'back', 'be', 'because', 'been', 'being', 'best', 'better', 'big', 'bit', 'both', 'but', 'by', 'c', 'came', 'can', 'capable', 'control', 'could', 'course', 'd', 'dan', 'day', 'decided', 'did', 'didn', 'different', 'div', 'do', 'doesn', 'don', 'down', 'drive', 'e', 'each', 'easily', 'easy', 'edition', 'end', 'enough', 'even', 'every', 'example', 'few', 'find', 'first', 'found', 'from', 'get', 'go', 'going', 'good', 'got', 'gt', 'had', 'hard', 'has', 'have', 'he', 'her', 'here', 'how', 'if', 'into', 'isn', 'just', 'know', 'last', 'left', 'li', 'like', 'little', 'll', 'long', 'look', 'lot', 'lt', 'm', 'made', 'make', 'many', 'mb', 'me', 'menu', 'might', 'mm', 'more', 'most', 'much', 'name', 'nbsp', 'need', 'new', 'no', 'not', 'now', 'number', 'off', 'old', 'one', 'only', 'or', 'original', 'other', 'out', 'over', 'part', 'place', 'point', 'pretty', 'probably', 'problem', 'put', 'quite', 'quot', 'r', 're', 'really', 'results', 'right', 's', 'same', 'saw', 'see', 'set', 'several', 'she', 'sherree', 'should', 'since', 'size', 'small', 'so', 'some', 'something', 'special', 'still', 'stuff', 'such', 'sure', 'system', 't', 'take', 'than', 'their', 'them', 'then', 'there', 'these', 'they', 'thing', 'things', 'think', 'those', 'though', 'through', 'time', 'today', 'together', 'too', 'took', 'two', 'up', 'us', 'use', 'used', 'using', 've', 'very', 'want', 'way', 'well', 'went', 'were', 'what', 'when', 'where', 'which', 'while', 'white', 'who', 'will', 'would', 'your'));
+;
+
+ // create a view and export the settings to the template
+ $this->setValue( "pluginEnabled", $pluginEnabled );
+ $this->setValue( "articles", $maxArticles );
+ $this->setValue( "keyword", $maxKeywords );
+ $this->setValue( "minFont", $minSize );
+ $this->setValue( "maxFont", $maxSize );
+ $this->setValue( "minWeight", $minWeight );
+ $this->setValue( "maxWeight", $maxWeight );
+ $this->setValue( "bannedKeywords", $bannedKeywords );
+
+ parent::render();
+ }
+ }
+?>
\ No newline at end of file
Added: plugins/trunk/tagcloud/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/tagcloud/locale/locale_en_UK.php 2006-07-14 17:59:32 UTC (rev 3723)
+++ plugins/trunk/tagcloud/locale/locale_en_UK.php 2006-07-16 09:48:29 UTC (rev 3724)
@@ -0,0 +1,27 @@
+<?php
+$messages["manageAppearancePlugins"] = "Appearance Management";
+$messages["TagCloud"] = "Tag Cloud";
+
+$messages["tagcloud_plugin_enabled"] = "Enable this plugin";
+$messages["tagcloud_plugin"] = "Tag Cloud Plugin";
+
+$messages["tagcloud_articles"] = "Number of articles to read tags from.";
+$messages["tagcloud_keywords"] = "Number of tags in the tag cloud.";
+$messages["tagcloud_min_font"] = "Minimum font size for the cloud.";
+$messages["tagcloud_max_font"] = "Maximum font size for the cloud.";
+$messages["tagcloud_min_weight"] = "Minimum font size for the cloud.";
+$messages["tagcloud_max_weight"] = "Maximum font size for the cloud.";
+$messages["tagcloud_banned_keywords"] = "Keywords that should not appear in the tag cloud (comma separated).";
+
+$messages["tagcloud_settings_saved_ok"] = "Tag Cloud settings saved successfully!";
+
+$messages["label_configuration"] = "Configuration";
+$messages["label_enable"] = "Enable";
+$messages["max_articles"] = "Max Articles";
+$messages["max_keywords"] = "Max Keywords";
+$messages["min_font_size"] = "Min Font Size";
+$messages["max_font_size"] = "Max Font Size";
+$messages["min_font_weight"] = "Min Font Weight";
+$messages["max_font_weight"] = "Max Font Weight";
+$messages["banned_keywords"] = "Banned Keywords";
+?>
\ No newline at end of file
Modified: plugins/trunk/tagcloud/plugintagcloud.class.php
===================================================================
--- plugins/trunk/tagcloud/plugintagcloud.class.php 2006-07-14 17:59:32 UTC (rev 3723)
+++ plugins/trunk/tagcloud/plugintagcloud.class.php 2006-07-16 09:48:29 UTC (rev 3724)
@@ -17,10 +17,7 @@
$this->author = "Ben Yacoub Hatem";
$this->desc = "This plugin generate TagCloud for a specific Blog, usage
:<br/>
- <b>{ \$tagcloud->getTagCloud(MaxArticles,MaxKeywords)}</b><br/><br/>
- <em> blogId</em> is the id of the Current Blog<br/>
- <em> MaxArticles</em> Latest articles to parse and generate the Tag Clouds<br/>
- <em> MaxKeywords</em> maximum number of keywords to display<br/> <br/>
+ <b>{ \$tagcloud->getTagCloud()}</b><br/><br/>
getTagCloud return html of the Tag Cloud ready to use.<br/>
See Readme for example usage.";
@@ -28,16 +25,55 @@
include_once( PLOG_CLASS_PATH."class/database/db.class.php" );
$this->db =& Db::getDb();
$this->id = "tagcloud";
- }
+
+ $this->locales = Array("en_UK");
+
+
+ $this->init();
+ }
+
+
+ function init()
+ {
+ // register the events we want
+ $this->registerNotification( EVENT_POST_POST_ADD );
+
+ $this->registerAdminAction( "tagcloud", "PluginTagCloudConfigAction" );
+ $this->registerAdminAction( "updateTagCloudConfig", "PluginTagCloudUpdateConfigAction" );
+
+ $menu =& Menu::getMenu();
+ if( !$menu->entryExists( "/menu/controlCenter/manageAppearancePlugins" ))
+ $this->addMenuEntry( "/menu/controlCenter", "manageAppearancePlugins", "", "", true, false );
+ $this->addMenuEntry( "/menu/controlCenter/manageAppearancePlugins", "TagCloud", "?op=tagcloud", "" );
+ }
/*
* Return cloud of the latest articles
*/
- function getTagCloud($MaxArticles = 20, $MaxKeywords = 50){
+ function getTagCloud(){
$this->_prefix = Db::getPrefix();
$blogId = $this->blogInfo->getId();
+ $blogSettings = $this->blogInfo->getSettings();
+ $pluginEnabled = $blogSettings->getValue( "plugin_tagcloud_enabled" );
+
+ if (!$pluginEnabled) {
+ return "";
+ }
+
+ $MaxArticles = $blogSettings->getValue( "plugin_tagcloud_max_articles" );
+ $MaxKeywords = $blogSettings->getValue( "plugin_tagcloud_max_keywords" );
+
+ $maxSize = $blogSettings->getValue( "plugin_tagcloud_max_size" );
+ $maxWeight = $blogSettings->getValue( "plugin_tagcloud_max_weight" );
+
+ $minSize = $blogSettings->getValue( "plugin_tagcloud_min_size" );
+ $minWeight = $blogSettings->getValue( "plugin_tagcloud_min_weight" );
+
+ $bannedwords = $blogSettings->getValue( "plugin_tagcloud_banned_keywords" );
+ $bannedwords = explode(",", $bannedwords);
+
$MaxArticles = mysql_escape_string($MaxArticles);
@@ -63,7 +99,7 @@
$acv = array_count_values( $words );
// Remove unwanted keywords
- $bannedwords = array( '', 'a', 'an', 'the', 'and', 'of', 'i', 'its' , 'to', 'is', 'in', 'with', 'for', 'as', 'that', 'on', 'at', 'this', 'my', 'was', 'our', 'it', 'you', 'we', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '10', 'about', 'after', 'all', 'almost', 'along', 'also', 'amp', 'another', 'any', 'are', 'area', 'around', 'available', 'back', 'be', 'because', 'been', 'being', 'best', 'better', 'big', 'bit', 'both', 'but', 'by', 'c', 'came', 'can', 'capable', 'control', 'could', 'course', 'd', 'dan', 'day', 'decided', 'did', 'didn', 'different', 'div', 'do', 'doesn', 'don', 'down', 'drive', 'e', 'each', 'easily', 'easy', 'edition', 'end', 'enough', 'even', 'every', 'example', 'few', 'find', 'first', 'found', 'from', 'get', 'go', 'going', 'good', 'got', 'gt', 'had', 'hard', 'has', 'have', 'he', 'her', 'here', 'how', 'if', 'into', 'isn', 'just', 'know', 'last', 'left', 'li', 'like', 'little', 'll', 'long', 'look', 'lot', 'lt', 'm', 'made', 'make', 'many', 'mb', 'me', 'menu', 'might', 'mm', 'more', 'most', 'much', 'name', 'nbsp', 'need', 'new', 'no', 'not', 'now', 'number', 'off', 'old', 'one', 'only', 'or', 'original', 'other', 'out', 'over', 'part', 'place', 'point', 'pretty', 'probably', 'problem', 'put', 'quite', 'quot', 'r', 're', 'really', 'results', 'right', 's', 'same', 'saw', 'see', 'set', 'several', 'she', 'sherree', 'should', 'since', 'size', 'small', 'so', 'some', 'something', 'special', 'still', 'stuff', 'such', 'sure', 'system', 't', 'take', 'than', 'their', 'them', 'then', 'there', 'these', 'they', 'thing', 'things', 'think', 'those', 'though', 'through', 'time', 'today', 'together', 'too', 'took', 'two', 'up', 'us', 'use', 'used', 'using', 've', 'very', 'want', 'way', 'well', 'went', 'were', 'what', 'when', 'where', 'which', 'while', 'white', 'who', 'will', 'would', 'your');
+// $bannedwords = array( '', 'a', 'an', 'the', 'and', 'of', 'i', 'its' , 'to', 'is', 'in', 'with', 'for', 'as', 'that', 'on', 'at', 'this', 'my', 'was', 'our', 'it', 'you', 'we', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '10', 'about', 'after', 'all', 'almost', 'along', 'also', 'amp', 'another', 'any', 'are', 'area', 'around', 'available', 'back', 'be', 'because', 'been', 'being', 'best', 'better', 'big', 'bit', 'both', 'but', 'by', 'c', 'came', 'can', 'capable', 'control', 'could', 'course', 'd', 'dan', 'day', 'decided', 'did', 'didn', 'different', 'div', 'do', 'doesn', 'don', 'down', 'drive', 'e', 'each', 'easily', 'easy', 'edition', 'end', 'enough', 'even', 'every', 'example', 'few', 'find', 'first', 'found', 'from', 'get', 'go', 'going', 'good', 'got', 'gt', 'had', 'hard', 'has', 'have', 'he', 'her', 'here', 'how', 'if', 'into', 'isn', 'just', 'know', 'last', 'left', 'li', 'like', 'little', 'll', 'long', 'look', 'lot', 'lt', 'm', 'made', 'make', 'many', 'mb', 'me', 'menu', 'might', 'mm', 'more', 'most', 'much', 'name', 'nbsp', 'need', 'new', 'no', 'not', 'now', 'number', 'off', 'old', 'one', 'only', 'or', 'original', 'other', 'out', 'over', 'part', 'place', 'point', 'pretty', 'probably', 'problem', 'put', 'quite', 'quot', 'r', 're', 'really', 'results', 'right', 's', 'same', 'saw', 'see', 'set', 'several', 'she', 'sherree', 'should', 'since', 'size', 'small', 'so', 'some', 'something', 'special', 'still', 'stuff', 'such', 'sure', 'system', 't', 'take', 'than', 'their', 'them', 'then', 'there', 'these', 'they', 'thing', 'things', 'think', 'those', 'though', 'through', 'time', 'today', 'together', 'too', 'took', 'two', 'up', 'us', 'use', 'used', 'using', 've', 'very', 'want', 'way', 'well', 'went', 'were', 'what', 'when', 'where', 'which', 'while', 'white', 'who', 'will', 'would', 'your', '[via', 'technorati', 'tags');
foreach($acv as $k=>$v) {
if (!array_search(strtolower($k),$bannedwords) and eregi("[a-zA-Z]",$k) and strlen($k)>2) {
if (isset($new_acv[strtolower($k)] ))
@@ -90,12 +126,6 @@
// Sort the keys alphabetically.
ksort( $new_acv );
- $maxSize = 4;
- $maxWeight = 50;
-
- $minSize = .4;
- $minWeight = 3;
-
// Normalize the max value
$maxValue = $maxValue - $minValue;
Added: plugins/trunk/tagcloud/templates/tagcloud.template
===================================================================
--- plugins/trunk/tagcloud/templates/tagcloud.template 2006-07-14 17:59:32 UTC (rev 3723)
+++ plugins/trunk/tagcloud/templates/tagcloud.template 2006-07-16 09:48:29 UTC (rev 3724)
@@ -0,0 +1,76 @@
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=TagCloud title=$locale->tr("tagcloud_plugin")}
+<form name="tagCloudPluginConfig" method="post">
+ <fieldset class="inputField">
+ <legend>{$locale->tr("label_configuration")}</legend>
+ {include file="$admintemplatepath/successmessage.template"}
+ {include file="$admintemplatepath/errormessage.template"}
+ <div class="field">
+ <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
+ <span class="required"></span>
+ <div class="formHelp">
+ <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("tagcloud_plugin_enabled")}
+ </div>
+ </div>
+
+ <div class="field">
+ <label for="width">{$locale->tr("max_articles")}</label>
+ <span class="required">*</span>
+ <div class="formHelp">{$locale->tr("tagcloud_articles")}</div>
+ <input class="text" type="text" name="articles" id="articles" value="{$articles}" width="10" />
+ </div>
+
+ <div class="field">
+ <label for="width">{$locale->tr("max_keywords")}</label>
+ <span class="required">*</span>
+ <div class="formHelp">{$locale->tr("tagcloud_keywords")}</div>
+ <input class="text" type="text" name="keyword" id="keyword" value="{$keyword}" width="10" />
+ </div>
+
+ <div class="field">
+ <label for="width">{$locale->tr("min_font_size")}</label>
+ <span class="required">*</span>
+ <div class="formHelp">{$locale->tr("tagcloud_min_font")}</div>
+ <input class="text" type="text" name="minFont" id="minFont" value="{$minFont}" width="10" />
+ </div>
+
+ <div class="field">
+ <label for="width">{$locale->tr("max_font_size")}</label>
+ <span class="required">*</span>
+ <div class="formHelp">{$locale->tr("tagcloud_max_font")}</div>
+ <input class="text" type="text" name="maxFont" id="maxFont" value="{$maxFont}" width="10" />
+ </div>
+
+ <div class="field">
+ <label for="width">{$locale->tr("min_font_weight")}</label>
+ <span class="required">*</span>
+ <div class="formHelp">{$locale->tr("tagcloud_min_weight")}</div>
+ <input class="text" type="text" name="minWeight" id="minWeight" value="{$minWeight}" width="10" />
+ </div>
+
+ <div class="field">
+ <label for="width">{$locale->tr("max_font_weight")}</label>
+ <span class="required">*</span>
+ <div class="formHelp">{$locale->tr("tagcloud_max_weight")}</div>
+ <input class="text" type="text" name="maxWeight" id="maxWeight" value="{$maxWeight}" width="10" />
+ </div>
+
+
+ <div class="field">
+ <label for="width">{$locale->tr("banned_keywords")}</label>
+ <span class="required">*</span>
+ <div class="formHelp">{$locale->tr("tagcloud_banned_keywords")}</div>
+ <input class="text" type="text" name="bannedKeywords" id="bannedKeywords" value="{$bannedKeywords}" width="10" />
+ </div>
+
+
+ </fieldset>
+
+ <div class="buttons">
+ <input type="hidden" name="op" value="updateTagCloudConfig" />
+ <input type="reset" name="{$locale->tr("reset")}" />
+ <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
+ </div>
+</form>
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file
More information about the pLog-svn
mailing list