diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index 30f0e8ee9..6d1519e07 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -762,6 +762,12 @@ class news_admin_ui extends e_admin_ui $this->saveSettings(); } + if(e_DEBUG == true) // allowing manual fixing of comment total in DEBUG mode. + { + $this->fields['news_comment_total']['noedit'] = false; + $this->fields['news_comment_total']['inline'] = true; + } + $this->fields['news_email_notify']['writeParms']['post'] = "".LAN_CONFIGURE.""; diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index 7c90929e2..49bfb5c37 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -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 "