[pLog-svn] r1127 - in plugins/trunk/authimage: . class/action templates

mark at devel.plogworld.net mark at devel.plogworld.net
Fri Feb 18 12:32:44 GMT 2005


Author: mark
Date: 2005-02-18 12:32:43 +0000 (Fri, 18 Feb 2005)
New Revision: 1127

Added:
   plugins/trunk/authimage/templates/authimageshow.template
Removed:
   plugins/trunk/authimage/install/
Modified:
   plugins/trunk/authimage/class/action/pluginauthimageshowaction.class.php
   plugins/trunk/authimage/readme.txt
Log:
Move /install/templates/authimage.template to /templates/auhtimageshow.template.

And also change the blogview to plugintemplatedview, then user do not need to copy the /install/templates/authimage.template to template folder. It is easier for user to install and configure.

Modified: plugins/trunk/authimage/class/action/pluginauthimageshowaction.class.php
===================================================================
--- plugins/trunk/authimage/class/action/pluginauthimageshowaction.class.php	2005-02-18 12:29:50 UTC (rev 1126)
+++ plugins/trunk/authimage/class/action/pluginauthimageshowaction.class.php	2005-02-18 12:32:43 UTC (rev 1127)
@@ -1,7 +1,7 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/action/blogaction.class.php" );
-    include_once( PLOG_CLASS_PATH."class/view/blogview.class.php" );
+    include_once( PLOG_CLASS_PATH."class/view/plugintemplatedview.class.php");
 
 	/**
 	 * shows a flickr template without smarty cache
@@ -16,7 +16,7 @@
 		
 		function perform()
 		{
-            $this->_view = new BlogView( $this->_blogInfo, "authimage", SMARTY_VIEW_CACHE_DISABLED );
+			$this->_view = new PluginTemplatedView( $this->_blogInfo, "authimage", "authimageshow");
             $this->_view->setValue( "request", $this->_request );
             // add all the common information to the view
             $this->setCommonData();

Modified: plugins/trunk/authimage/readme.txt
===================================================================
--- plugins/trunk/authimage/readme.txt	2005-02-18 12:29:50 UTC (rev 1126)
+++ plugins/trunk/authimage/readme.txt	2005-02-18 12:32:43 UTC (rev 1127)
@@ -9,9 +9,6 @@
 1. $authimage->isEnabled() to check the plugin is enabled or not. 
 2. $authimage->show() to get the authentication image.
 
-Install:
-1. Copy the install/templates/authimafe.template to your plog template folder.
-
 Example:
 Add the following code to commentform.template:
 {if $authimage->isEnabled()}

Added: plugins/trunk/authimage/templates/authimageshow.template
===================================================================
--- plugins/trunk/authimage/templates/authimageshow.template	2005-02-18 12:29:50 UTC (rev 1126)
+++ plugins/trunk/authimage/templates/authimageshow.template	2005-02-18 12:32:43 UTC (rev 1127)
@@ -0,0 +1 @@
+{$authimage->showImage()}
\ No newline at end of file




More information about the pLog-svn mailing list