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

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