[pLog-svn] r5924 - in plugins/branches/lifetype-1.2/reflection: . class/js

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Mon Sep 10 15:45:42 EDT 2007


Author: pwestbro
Date: 2007-09-10 15:45:42 -0400 (Mon, 10 Sep 2007)
New Revision: 5924

Modified:
   plugins/branches/lifetype-1.2/reflection/class/js/reflection.js
   plugins/branches/lifetype-1.2/reflection/pluginreflection.class.php
Log:
Upgraded to the 1.7 version of the reflection javascript


Modified: plugins/branches/lifetype-1.2/reflection/class/js/reflection.js
===================================================================
--- plugins/branches/lifetype-1.2/reflection/class/js/reflection.js	2007-09-10 13:00:10 UTC (rev 5923)
+++ plugins/branches/lifetype-1.2/reflection/class/js/reflection.js	2007-09-10 19:45:42 UTC (rev 5924)
@@ -1,5 +1,5 @@
 /**
- * reflection.js v1.6
+ * reflection.js v1.7
  *
  * Contributors: Cow http://cow.neondragon.net
  *               Gfx http://www.jroller.com/page/gfx/
@@ -68,6 +68,12 @@
 			var reflectionWidth = p.width;
 			
 			if (document.all && !window.opera) {
+				/* Fix hyperlinks */
+                if(p.parentElement.tagName == 'A') {
+	                var d = document.createElement('a');
+	                d.href = p.parentElement.href;
+                }  
+                    
 				/* Copy original image's classes & styles to div */
 				d.className = newClasses;
 				p.className = 'reflected';

Modified: plugins/branches/lifetype-1.2/reflection/pluginreflection.class.php
===================================================================
--- plugins/branches/lifetype-1.2/reflection/pluginreflection.class.php	2007-09-10 13:00:10 UTC (rev 5923)
+++ plugins/branches/lifetype-1.2/reflection/pluginreflection.class.php	2007-09-10 19:45:42 UTC (rev 5924)
@@ -31,12 +31,12 @@
 			$this->id      = "reflection";
 			$this->author  = "Paul Westbrook";
 			$this->desc    = "Plugin to add reflections to images.";
-            $this->version = "20070302";
+			$this->version = "20070910";
 
 			$this->locales = Array( "en_UK");
 
 			if( $source == "admin" )
-				$this->initAdmin();
+			    $this->initAdmin();
 		}
 
 		function initAdmin()
@@ -65,12 +65,12 @@
 	    {
 			$str = '';
 	    
-            if ($this->isEnabled())
-            {
-                $rg = $this->blogInfo->getBlogRequestGenerator();
+	        if ($this->isEnabled())
+			{
+				$rg = $this->blogInfo->getBlogRequestGenerator();
                 
-                $str = '<script type="text/javascript" src="' . $rg->blogLink() . '/plugins/reflection/class/js/reflection.js"></script>';
-             }
+				$str = '<script type="text/javascript" src="' . $rg->blogLink() . '/plugins/reflection/class/js/reflection.js"></script>';
+			}
 	    	return $str;
 		}
 	}



More information about the pLog-svn mailing list