git-svn-id: file:///home/shish/svn/shimmie2/trunk@93 7f39781d-f577-437e-ae19-be835c7a54ca

This commit is contained in:
Artanis 2007-05-10 21:55:29 +00:00
parent fc4e906aba
commit 10d3c786c1
3 changed files with 24 additions and 8 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -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.