1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 18:30:53 +02:00

Fixes #3806 Incorrect class on radio container

This commit is contained in:
Cameron
2019-05-16 11:06:01 -07:00
parent 86befae56f
commit de5142f4d7

View File

@@ -422,7 +422,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
$opts = array(0 => LAN_FORUM_3038, 1 => LAN_FORUM_1011, 2 => LAN_FORUM_1013); $opts = array(0 => LAN_FORUM_3038, 1 => LAN_FORUM_1011, 2 => LAN_FORUM_1013);
return "<div class='checkbox'>".e107::getForm()->radio('threadtype',$opts, $thread_sticky)."</div>"; return "<div class='radio'>".e107::getForm()->radio('threadtype',$opts, $thread_sticky)."</div>";
// return "<br /><span class='defaulttext'>post thread as // return "<br /><span class='defaulttext'>post thread as
// <input name='threadtype' type='radio' value='0' ".(!$thread_sticky ? "checked='checked' " : "")." />".LAN_1."&nbsp;<input name='threadtype' type='radio' value='1' ".($thread_sticky == 1 ? "checked='checked' " : "")." />".LAN_2."&nbsp;<input name='threadtype' type='radio' value='2' ".($thread_sticky == 2 ? "checked='checked' " : "")." />".LAN_3."</span>"; // <input name='threadtype' type='radio' value='0' ".(!$thread_sticky ? "checked='checked' " : "")." />".LAN_1."&nbsp;<input name='threadtype' type='radio' value='1' ".($thread_sticky == 1 ? "checked='checked' " : "")." />".LAN_2."&nbsp;<input name='threadtype' type='radio' value='2' ".($thread_sticky == 2 ? "checked='checked' " : "")." />".LAN_3."</span>";
@@ -448,10 +448,10 @@ class plugin_forum_post_shortcodes extends e_shortcode
function sc_forum_post_caption() function sc_forum_post_caption()
{ {
// global $forumInfo;
$tp = e107::getParser(); $tp = e107::getParser();
// var_dump ($this);
//$this->forumObj->threadGet($this->id, false)
if($this->var['action'] == "rp") if($this->var['action'] == "rp")
{ {
$pre = LAN_FORUM_1003; $pre = LAN_FORUM_1003;
@@ -466,6 +466,9 @@ class plugin_forum_post_shortcodes extends e_shortcode
$url = e107::url('forum', 'forum', $this->var); $url = e107::url('forum', 'forum', $this->var);
$post = LAN_FORUM_2005; $post = LAN_FORUM_2005;
} }
$title = ''; // todo?
return $pre . ($url ? ": <a {$title} href='" . $url . "'>{$name}</a> - " : $name) . $post; return $pre . ($url ? ": <a {$title} href='" . $url . "'>{$name}</a> - " : $name) . $post;
} }