diff --git a/e107_files/shortcode/batch/news_shortcodes.php b/e107_files/shortcode/batch/news_shortcodes.php
index 839df3c8d..ab54ca0e8 100644
--- a/e107_files/shortcode/batch/news_shortcodes.php
+++ b/e107_files/shortcode/batch/news_shortcodes.php
@@ -1,7 +1,7 @@
e107->ns->tablerender(LAN_NEWS_18, $info);
return $info;
}
+
+ function sc_alt_news($news_category)
+ {
+ global $sql, $aj, $ns;
+ $ix = new news;
+ if (strstr(e_QUERY, "cat"))
+ {
+ $category = $news_category;
+ if ($category != 0)
+ {
+ $gen = new convert;
+ $sql2 = new db;
+ $sql->db_Select("news_category", "*", "category_id='".intval($category)."'");
+ list($category_id, $category_name, $category_icon) = $sql->db_Fetch();
+ $category_name = $aj->tpa($category_name);
+ if (strstr($category_icon, "../"))
+ {
+ $category_icon = str_replace("../", "", e_BASE.$category_icon);
+ } else {
+ $category_icon = THEME.$category_icon;
+ }
+ if ($count = $sql->db_Select("news", "*", "news_category='".intval($category)."' ORDER BY news_datestamp DESC"))
+ {
+ while ($row = $sql->db_Fetch())
+ {
+ extract($row);
+ if ($news_title == "")
+ {
+ $news_title = "Untitled";
+ }
+ $datestamp = $gen->convert_date($news_datestamp, "short");
+ $news_body = strip_tags(substr($news_body, 0, 100))." ...";
+ $comment_total = $sql2->db_Count("comments", "(*)", "WHERE comment_item_id='".intval($news_id)."' AND comment_type='0' ");
+ $bullet = '';
+ if(defined('BULLET'))
+ {
+ $bullet = '';
+ }
+ elseif(file_exists(THEME.'images/bullet2.gif'))
+ {
+ $bullet = '
';
+ }
+ $text .= "
+