From 10d3c786c162aa7d2395dc5b0194644f56c93e0f Mon Sep 17 00:00:00 2001
From: Artanis <Artanis@7f39781d-f577-437e-ae19-be835c7a54ca>
Date: Thu, 10 May 2007 21:55:29 +0000
Subject: [PATCH] git-svn-id: file:///home/shish/svn/shimmie2/trunk@93
 7f39781d-f577-437e-ae19-be835c7a54ca

---
 contrib/link_image/_style.css | 16 +++++++++++-----
 contrib/link_image/main.php   | 12 +++++++++---
 contrib/link_image/readme.txt |  4 ++++
 3 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/contrib/link_image/_style.css b/contrib/link_image/_style.css
index e6b4b945..39c0c15d 100644
--- a/contrib/link_image/_style.css
+++ b/contrib/link_image/_style.css
@@ -3,26 +3,32 @@
 **/
 
 /* * * Link to Image * * */
-#link_to_image {
-	
-}
+#link_to_image {	}
+
 #link_to_image fieldset {
 	width: 32%;
 	float:left;
+	min-width:25em;
 }
 
 #link_to_image input, #link_to_image label {
 	display:block;
-	width:56%;
+	width:66%;
 	float:left;
 	margin-bottom:2.5px;
 }
+
 #link_to_image label {
-	width:40%;
+	width:30%;
 	text-align:left;
 	padding-right:2%;
 	cursor:pointer;
 }
+
 #link_to_image br {
 	clear:both;
+}
+
+#link_to_image label:hover {
+	border-bottom:1px dashed;
 }
\ No newline at end of file
diff --git a/contrib/link_image/main.php b/contrib/link_image/main.php
index cbedb5b3..c8e62b04 100644
--- a/contrib/link_image/main.php
+++ b/contrib/link_image/main.php
@@ -14,8 +14,8 @@ class LinkImage extends Extension {
 		}
 		if(is_a($event, 'SetupBuildingEvent')) {
 			$sb = new SetupBlock("Link to Image");
-			$sb->add_label("Text link format: ");
-			$sb->add_text_option("ext_link-img_text-link_format");
+			//$sb->add_label("Text link format: ");
+			$sb->add_text_option("ext_link-img_text-link_format","Text Link Fomrat:");
 			$event->panel->add_main_block($sb);
 		}
 		if(is_a($event, 'ConfigSaveEvent')) {
@@ -47,12 +47,18 @@ class LinkImage extends Extension {
 		$html .= $this->link_code("Inline Image", $this->ubb_img($image_src), "ubb_full-img");
 		$html .= "</fieldset>";
 		
-		$html .= "<fieldset><legend>HTML</legend>";
+		$html .= "<fieldset><legend><a href='http://en.wikipedia.org/wiki/Html' target='_blank'>HTML</a></legend>";
 		$html .= $this->link_code("Text Link", $this->html_url($post_link, $text_link), "html_text-link");
 		$html .= $this->link_code("Thumbnail Link", $this->html_url($post_link,$this->html_img($thumb_src)), "html_thumb-link");
 		$html .= $this->link_code("Inline Image", $this->html_img($image_src), "html_full-image");
 		$html .= "</fieldset>";
 		
+		$html .= "<fieldset><legend>Plain Text</legend>";
+		$html .= $this->link_code("Post URL",$post_link,"text_post-link");
+		$html .= $this->link_code("Thumbnail URL",$thumb_src,"text_thumb-url");
+		$html .= $this->link_code("Image URL",$image_src,"text_image-src");
+		$html .= "</fieldset>";
+		
 		$html .= "</div>";
 		
 		return $html;
diff --git a/contrib/link_image/readme.txt b/contrib/link_image/readme.txt
index 93d21981..bf40ccb3 100644
--- a/contrib/link_image/readme.txt
+++ b/contrib/link_image/readme.txt
@@ -33,6 +33,10 @@ To leave the setting blank for any reason, leave a space (' ') in it.
  * http://trac.shishnet.org/shimmie2/wiki/NiceURLs - Nice URLs
 
 = Change Log =
+== Version 0.1.4 - 20071510 ==
+ * Style changes.
+ * Added output containing only the locations of the thumb, image and post.
+ * Added a link to wikipedia's HTML page, just as BBCode has a wikipedia link.
 
 == Version 0.1.3b - 20070509 ==
  * Renamed style.css to _style.css to avoid the auto loader.