[pLog-svn] r2025 - in plog/branches/plog-1.0.1: class/action/admin
class/controller templates/admin
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Fri May 20 07:04:53 GMT 2005
Author: oscar
Date: 2005-05-20 07:04:52 +0000 (Fri, 20 May 2005)
New Revision: 2025
Added:
plog/branches/plog-1.0.1/class/action/admin/adminresourcesgroupaction.class.php
plog/branches/plog-1.0.1/templates/admin/resourcesgroup.template
Modified:
plog/branches/plog-1.0.1/class/action/admin/admincontrolcenteraction.class.php
plog/branches/plog-1.0.1/class/controller/admincontrollermap.properties.php
plog/branches/plog-1.0.1/templates/admin/menus.xml
plog/branches/plog-1.0.1/templates/admin/navigation.template
Log:
for consistency's sake, now the 'resource centre' does not show the tabs right away but instead, shows a grouped view of the available options like all the other menu options from the top menu bar. This adds one extra click for users to get to see their resources, but makes the interface a bit more consistent.
Modified: plog/branches/plog-1.0.1/class/action/admin/admincontrolcenteraction.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/action/admin/admincontrolcenteraction.class.php 2005-05-20 06:40:55 UTC (rev 2024)
+++ plog/branches/plog-1.0.1/class/action/admin/admincontrolcenteraction.class.php 2005-05-20 07:04:52 UTC (rev 2025)
@@ -1,7 +1,7 @@
<?php
include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
- include_once( PLOG_CLASS_PATH."class/view/admin/adminarticlecategorieslistview.class.php" );
+ include_once( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" );
/**
* \ingroup Action
Added: plog/branches/plog-1.0.1/class/action/admin/adminresourcesgroupaction.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/action/admin/adminresourcesgroupaction.class.php 2005-05-20 06:40:55 UTC (rev 2024)
+++ plog/branches/plog-1.0.1/class/action/admin/adminresourcesgroupaction.class.php 2005-05-20 07:04:52 UTC (rev 2025)
@@ -0,0 +1,37 @@
+<?php
+
+ include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" );
+
+ /**
+ * \ingroup Action
+ * @private
+ *
+ * Shows the menu group for the "Resource centre" option
+ */
+ class AdminResourcesGroupAction extends AdminAction
+ {
+
+ /**
+ * Constructor. If nothing else, it also has to call the constructor of the parent
+ * class, BlogAction with the same parameters
+ */
+ function AdminResourcesGroupAction( $actionInfo, $request )
+ {
+ $this->AdminAction( $actionInfo, $request );
+ }
+
+ /**
+ * Carries out the specified action
+ */
+ function perform()
+ {
+ // create the view, which will take care of fetching the right data
+ $this->_view = new AdminTemplatedView( $this->_blogInfo, "resourcesgroup" );
+ $this->setCommonData();
+
+ // better to return true if everything fine
+ return true;
+ }
+ }
+?>
\ No newline at end of file
Modified: plog/branches/plog-1.0.1/class/controller/admincontrollermap.properties.php
===================================================================
--- plog/branches/plog-1.0.1/class/controller/admincontrollermap.properties.php 2005-05-20 06:40:55 UTC (rev 2024)
+++ plog/branches/plog-1.0.1/class/controller/admincontrollermap.properties.php 2005-05-20 07:04:52 UTC (rev 2025)
@@ -196,6 +196,7 @@
$actions["deleteResource"] = "AdminDeleteResourceAction";
// shows a window with all the resources
$actions["resourceList"] = "AdminResourceListAction";
+ $actions["resourcesGroup"] = "AdminResourcesGroupAction";
// edits a resource album
$actions["editResourceAlbum"] = "AdminEditResourceAlbumAction";
// updates a resource album
Modified: plog/branches/plog-1.0.1/templates/admin/menus.xml
===================================================================
--- plog/branches/plog-1.0.1/templates/admin/menus.xml 2005-05-20 06:40:55 UTC (rev 2024)
+++ plog/branches/plog-1.0.1/templates/admin/menus.xml 2005-05-20 07:04:52 UTC (rev 2025)
@@ -17,11 +17,13 @@
<blogCustomFields url="?op=blogCustomFields" blogOwner="1"/>
</manageCustomFields>
</Manage>
- <resourceCenter url="?op=resources">
- <newResource url="?op=newResource" />
- <newResourceAlbum url="?op=newResourceAlbum" />
- <resources url="?op=resources" />
- </resourceCenter>
+ <ResourcesGroup url="?op=resourcesGroup" localeId="resourceCenter">
+ <resourceCenter ignoreBreadCrumbs="1">
+ <newResource url="?op=newResource" />
+ <newResourceAlbum url="?op=newResourceAlbum" />
+ <resources url="?op=resources" />
+ </resourceCenter>
+ </ResourcesGroup>
<controlCenter url="?op=controlCenter" blogOwner="0">
<manageSettings ignoreBreadCrumbs="1">
<blogSettings url="?op=blogSettings" blogOwner="1" />
Modified: plog/branches/plog-1.0.1/templates/admin/navigation.template
===================================================================
--- plog/branches/plog-1.0.1/templates/admin/navigation.template 2005-05-20 06:40:55 UTC (rev 2024)
+++ plog/branches/plog-1.0.1/templates/admin/navigation.template 2005-05-20 07:04:52 UTC (rev 2025)
@@ -7,6 +7,6 @@
</div>
<br style="clear:both;" />
</div>
- {if $templatename != "main" && $templatename != "controlcenter" && $templatename != "adminsettings" && $templatename != "resourcecenter" && $templatename != "error" && $templatename != "message" }
+ {if $templatename != "main" && $templatename != "controlcenter" && $templatename != "adminsettings" && $templatename != "resourcesgroup" && $templatename != "error" && $templatename != "message" }
{include file="$admintemplatepath/menutabs.template"}
{/if}
\ No newline at end of file
Added: plog/branches/plog-1.0.1/templates/admin/resourcesgroup.template
===================================================================
--- plog/branches/plog-1.0.1/templates/admin/resourcesgroup.template 2005-05-20 06:40:55 UTC (rev 2024)
+++ plog/branches/plog-1.0.1/templates/admin/resourcesgroup.template 2005-05-20 07:04:52 UTC (rev 2025)
@@ -0,0 +1,4 @@
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=ResourcesGroup title=$locale->tr("ResourcesGroup")}
+{$menu->generateAt("ResourcesGroup",2)}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file
More information about the pLog-svn
mailing list