diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index 2062c573e..84f577069 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -77,8 +77,10 @@ class news_admin extends e_admin_dispatcher 'main/list' => array('caption'=> LAN_LIST), 'main/create' => array('caption'=> NWSLAN_45), // Create/Edit News Item // 'cat/list' => array('caption'=> NWSLAN_46, 'perm' => '7'), // Category List + 'other' => array('divider'=> true), 'cat/list' => array('caption'=> LAN_CATEGORIES), // Create Category. 'cat/create' => array('caption'=> LAN_NEWS_63), // Category List + 'other2' => array('divider'=> true), 'main/settings' => array('caption'=> LAN_PREFS), // Preferences // 'main/submitted' => array('caption'=> LAN_NEWS_64, 'perm' => 'N'), // Submitted News 'sub/list' => array('caption'=> NWSLAN_47), // Submitted News diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index 8b59201bd..3a68ec723 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -923,7 +923,7 @@ class news_shortcodes extends e_shortcode if(empty($imgTag)) { - return null; + return null; } switch(vartrue($parm['type'])) diff --git a/e107_plugins/news/news.php b/e107_plugins/news/news.php index 6bd53faa4..02dc0d082 100644 --- a/e107_plugins/news/news.php +++ b/e107_plugins/news/news.php @@ -910,9 +910,13 @@ class news_front if(!empty($newsList)) { + $c = 1; foreach($newsList as $row) { - $text .= $this->ix->render_newsitem($row, 'return', '', $template['item'], $param); + $tpl = ($c === 1 && !empty($template['first'])) ? $template['first'] : $template['item']; + + $text .= $this->ix->render_newsitem($row, 'return', '', $tpl, $param); + $c++; } } else // No News - empty. diff --git a/e107_plugins/news/templates/news_template.php b/e107_plugins/news/templates/news_template.php index d0a894853..2d3546ff0 100644 --- a/e107_plugins/news/templates/news_template.php +++ b/e107_plugins/news/templates/news_template.php @@ -33,6 +33,29 @@ $NEWS_INFO = array( // Template/CSS to be reviewed for best bootstrap implementation $NEWS_TEMPLATE['list']['caption'] = '{NEWSCATEGORY}'; $NEWS_TEMPLATE['list']['start'] = '{SETIMAGE: w=400&h=350&crop=1}'; +/* + // (optional) +$NEWS_TEMPLATE['list']['first'] = ' + {SETIMAGE: w=800&h=400} +
{NEWS_SUMMARY}
+ {NEWSVIDEO: item=1} +