[pLog-svn] r2129 - in plugins/trunk/templateeditor: . class/view
templates
mark at devel.plogworld.net
mark at devel.plogworld.net
Tue May 31 10:29:09 GMT 2005
Author: mark
Date: 2005-05-31 10:29:08 +0000 (Tue, 31 May 2005)
New Revision: 2129
Modified:
plugins/trunk/templateeditor/class/view/pluginsitetemplatesetslistview.class.php
plugins/trunk/templateeditor/class/view/pluginsitetemplateslistview.class.php
plugins/trunk/templateeditor/class/view/pluginsitetemplatesubfolderlistview.class.php
plugins/trunk/templateeditor/readme.txt
plugins/trunk/templateeditor/templates/sitetemplatesetslist.template
Log:
Add rss & summary templateset to site template editor. Now site admin can edit rss & summary on the fly, we don't need ftp client for update template anymore ...
Mark
Modified: plugins/trunk/templateeditor/class/view/pluginsitetemplatesetslistview.class.php
===================================================================
--- plugins/trunk/templateeditor/class/view/pluginsitetemplatesetslistview.class.php 2005-05-31 10:28:30 UTC (rev 2128)
+++ plugins/trunk/templateeditor/class/view/pluginsitetemplatesetslistview.class.php 2005-05-31 10:29:08 UTC (rev 2129)
@@ -20,11 +20,10 @@
$ts = new TemplateSets();
$globalTemplates = $ts->getGlobalTemplateSets();
- // Add admin/rss/summary templateset to beginning of templatesets
- $adminTemplate =& new TemplateSet( "admin", TEMPLATE_SET_GLOBAL, 0);
+ // Add rss & summary templateset to beginning of templatesets
$rssTemplate =& new TemplateSet( "rss", TEMPLATE_SET_GLOBAL, 0);
$summaryTemplate =& new TemplateSet( "summary", TEMPLATE_SET_GLOBAL, 0);
- array_unshift( $globalTemplates, $adminTemplate, $rssTemplate, $summaryTemplate );
+ array_unshift( $globalTemplates, $rssTemplate, $summaryTemplate );
$this->setValue( "templates", $globalTemplates );
Modified: plugins/trunk/templateeditor/class/view/pluginsitetemplateslistview.class.php
===================================================================
--- plugins/trunk/templateeditor/class/view/pluginsitetemplateslistview.class.php 2005-05-31 10:28:30 UTC (rev 2128)
+++ plugins/trunk/templateeditor/class/view/pluginsitetemplateslistview.class.php 2005-05-31 10:29:08 UTC (rev 2129)
@@ -23,11 +23,10 @@
$ts = new TemplateSets();
$globalTemplates = $ts->getGlobalTemplateSets();
- // Add admin/rss/summary templateset to beginning of templatesets
- $adminTemplate =& new TemplateSet( "admin", TEMPLATE_SET_GLOBAL, 0);
+ // Add rss & summary templateset to beginning of templatesets
$rssTemplate =& new TemplateSet( "rss", TEMPLATE_SET_GLOBAL, 0);
$summaryTemplate =& new TemplateSet( "summary", TEMPLATE_SET_GLOBAL, 0);
- array_unshift( $globalTemplates, $adminTemplate, $rssTemplate, $summaryTemplate );
+ array_unshift( $globalTemplates, $rssTemplate, $summaryTemplate );
// get a list with all the specific template files
$ts = new TemplateSetStorage();
Modified: plugins/trunk/templateeditor/class/view/pluginsitetemplatesubfolderlistview.class.php
===================================================================
--- plugins/trunk/templateeditor/class/view/pluginsitetemplatesubfolderlistview.class.php 2005-05-31 10:28:30 UTC (rev 2128)
+++ plugins/trunk/templateeditor/class/view/pluginsitetemplatesubfolderlistview.class.php 2005-05-31 10:29:08 UTC (rev 2129)
@@ -25,11 +25,10 @@
$ts = new TemplateSets();
$globalTemplates = $ts->getGlobalTemplateSets();
- // Add admin/rss/summary templateset to beginning of templatesets
- $adminTemplate =& new TemplateSet( "admin", TEMPLATE_SET_GLOBAL, 0);
+ // Add rss & summary templateset to beginning of templatesets
$rssTemplate =& new TemplateSet( "rss", TEMPLATE_SET_GLOBAL, 0);
$summaryTemplate =& new TemplateSet( "summary", TEMPLATE_SET_GLOBAL, 0);
- array_unshift( $globalTemplates, $adminTemplate, $rssTemplate, $summaryTemplate );
+ array_unshift( $globalTemplates, $rssTemplate, $summaryTemplate );
// get a list with all the specific template files
$ts = new TemplateSetStorage();
Modified: plugins/trunk/templateeditor/readme.txt
===================================================================
--- plugins/trunk/templateeditor/readme.txt 2005-05-31 10:28:30 UTC (rev 2128)
+++ plugins/trunk/templateeditor/readme.txt 2005-05-31 10:29:08 UTC (rev 2129)
@@ -13,6 +13,7 @@
History
1.2 2005/05/31
Add TemplateSet Downloadd function, now user can easily backup/share thier template
+ Add rss & summary template set to site template editor, now site admin can edit the template on the fly.
1.1 2005/03/19
Add Smarty Tag to online smarty editor
Add the capability to browse sub folder under template set (Restrict to 1 level only)
Modified: plugins/trunk/templateeditor/templates/sitetemplatesetslist.template
===================================================================
--- plugins/trunk/templateeditor/templates/sitetemplatesetslist.template 2005-05-31 10:28:30 UTC (rev 2128)
+++ plugins/trunk/templateeditor/templates/sitetemplatesetslist.template 2005-05-31 10:29:08 UTC (rev 2129)
@@ -45,7 +45,7 @@
<a href="?op=siteTemplatesList&templateId={$sitetemplate->getName()}">
<img src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("edit")}" />
</a>
- {if $sitetemplate->getName() != "admin" && $sitetemplate->getName() != "rss" && $sitetemplate->getName() != "summary"}
+ {if $sitetemplate->getName() != "rss" && $sitetemplate->getName() != "summary"}
<a href="?op=siteDeleteTemplateSet&templateId={$sitetemplate->getName()}">
<img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" />
</a>
More information about the pLog-svn
mailing list