mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Update post_shortcodes.php
This commit is contained in:
@@ -434,6 +434,29 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
|||||||
return $_tmp['breadcrumb'];
|
return $_tmp['breadcrumb'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sc_forum_post_captionname()
|
||||||
|
{
|
||||||
|
// global $forumInfo;
|
||||||
|
$tp = e107::getParser();
|
||||||
|
// var_dump ($this);
|
||||||
|
//$this->forumObj->threadGet($this->id, false)
|
||||||
|
if ($this->var['action'] == "rp")
|
||||||
|
{
|
||||||
|
$pre = LAN_FORUM_1003;
|
||||||
|
$name = strip_tags($tp->toHTML($this->var['thread_name'], false, 'no_hook, emotes_off'));
|
||||||
|
$url = e107::url('forum', 'topic', $this->var);
|
||||||
|
$post = LAN_FORUM_2006;
|
||||||
|
}
|
||||||
|
if ($this->var['action'] == "nt")
|
||||||
|
{
|
||||||
|
$pre = LAN_FORUM_1001;
|
||||||
|
$name = strip_tags($tp->toHTML($this->var['forum_name'], false, 'no_hook, emotes_off'));
|
||||||
|
$url = e107::url('forum', 'forum', $this->var);
|
||||||
|
$post = LAN_FORUM_2005;
|
||||||
|
}
|
||||||
|
return $pre.($url?": <a {$title} href='".$url."'>{$name}</a> - ":$name).$post;
|
||||||
|
}
|
||||||
|
|
||||||
function sc_noemotes()
|
function sc_noemotes()
|
||||||
{
|
{
|
||||||
if(vartrue($eaction) == true) { return null; }
|
if(vartrue($eaction) == true) { return null; }
|
||||||
|
Reference in New Issue
Block a user