1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 06:03:27 +02:00

Comment fixes. News table comment count was not incrementing. (may be manually corrected in debug mode)

This commit is contained in:
Cameron
2016-03-13 22:24:28 -07:00
parent f5e9a1345b
commit fa8f25dfc5
5 changed files with 67 additions and 8 deletions

View File

@@ -251,6 +251,59 @@ class news_shortcodes extends e_shortcode
}
//New v2.x Aliases
public function sc_news_id($parm=null)
{
return $this->sc_newsid();
}
public function sc_news_title($parm=null)
{
return (!empty($parm['link'])) ? $this->sc_newstitlelink($parm) : $this->sc_newstitle($parm);
}
public function sc_news_body($parm=null)
{
return $this->sc_newsbody($parm);
}
public function sc_news_author($parm=null)
{
return $this->sc_newsauthor($parm);
}
public function sc_news_summary($parm=null)
{
return $this->sc_newssummary($parm);
}
public function sc_news_description($parm=null)
{
return $this->sc_newsmetadiz($parm);
}
public function sc_news_tags($parm=null)
{
return $this->sc_newstags($parm);
}
public function sc_news_comment_count($parm=null)
{
return $this->sc_newscommentcount($parm);
}
public function sc_news_date($parm=null)
{
return $this->sc_newsdate($parm);
}
public function sc_news_user_avatar($parm=null)
{
return $this->sc_newsavatar($parm);
}
// ----------------------------------- BC compatible Shortcodes ------------------------------------------- //
function sc_newscategory($parm=null)
{
@@ -286,7 +339,7 @@ class news_shortcodes extends e_shortcode
}
function sc_newsavatar()
function sc_newsavatar($parm=null)
{
return vartrue($this->news_item['user_id']) ? e107::getParser()->parseTemplate("{USER_AVATAR=".$this->news_item['user_id']."}",true) : '';
}
@@ -425,7 +478,7 @@ class news_shortcodes extends e_shortcode
return "<div class='".(defined('ADMINNAME') ? ADMINNAME : 'null')."'>".$news_body.'</div>';
}
function sc_newssummary()
function sc_newssummary($parm=null)
{
if($this->news_item['news_summary'])
{
@@ -887,7 +940,7 @@ class news_shortcodes extends e_shortcode
}
function sc_newsmetadiz()
function sc_newsmetadiz($parm=null)
{
return e107::getParser()->toHtml($this->news_item['news_meta_description'],true);
}

View File

@@ -97,7 +97,7 @@ $sc_style['MODERATE']['post'] = '</div>';
$COMMENT_TEMPLATE['form'] = "
{SETIMAGE: w=100&h=100}
{SETIMAGE: w=90&h=90&crop=1}
<div class='media comment-box comment-box-form clearfix'>
<div class='comment-box-left media-object pull-left' >
{COMMENT_AVATAR}
@@ -119,7 +119,7 @@ $COMMENT_TEMPLATE['form'] = "
$COMMENT_TEMPLATE['item'] = '
{SETIMAGE: w=80&h=80}
{SETIMAGE: w=90&h=90&crop=1}
<div class="media-object comment-box-left pull-left span1">
{COMMENT_AVATAR}
</div>