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

Include News tags on front-end.

This commit is contained in:
Cameron
2013-04-20 00:29:04 -07:00
parent 0086eab843
commit 281c5b8ba3
2 changed files with 13 additions and 11 deletions

View File

@@ -457,8 +457,7 @@ class news_shortcodes extends e_shortcode
$words = array(); $words = array();
foreach($tmp as $val) foreach($tmp as $val)
{ {
$words[] = "<a href='".e_BASE."news.php?tag=".$val."'>".$val."</a>"; $words[] = "<a href='".e_BASE."news.php?tag=".$val."'><span class='label'>".$val."</span></a>";
} }
return implode(", ",$words); return implode(", ",$words);
} }

View File

@@ -50,13 +50,14 @@ $NEWS_TEMPLATE['list']['item'] = '
// XXX As displayed by news.php (no query) or news.php?list.1.1 (ie. regular view of a particular category) // XXX As displayed by news.php (no query) or news.php?list.1.1 (ie. regular view of a particular category)
//XXX TODO GEt this looking good in the default Bootstrap theme.
$NEWS_TEMPLATE['default']['item'] = ' $NEWS_TEMPLATE['default']['item'] = '
{SETIMAGE: w=400} {SETIMAGE: w=400}
<div class="view-item"> <div class="view-item">
<h2>{NEWSTITLE}</h2> <h2>{NEWSTITLE}</h2>
<div class="category">in {NEWSCATEGORY}</div> <small class="muted">
<div class="date">{NEWSDATE=short}</div> <span class="date">{NEWSDATE=short} by <span class="author">{NEWSAUTHOR}</span></span>
<div class="author">{NEWSAUTHOR}</div> </small>
<div class="body"> <div class="body">
{NEWSIMAGE} {NEWSIMAGE}
@@ -64,7 +65,7 @@ $NEWS_TEMPLATE['default']['item'] = '
{EXTENDED} {EXTENDED}
</div> </div>
<div class="options"> <div class="options">
{NEWSCOMMENTS} {EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS} <span class="category">{NEWSCATEGORY}</span> {NEWSTAGS} {NEWSCOMMENTS} {EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS}
</div> </div>
</div> </div>
'; ';
@@ -78,13 +79,15 @@ $NEWS_TEMPLATE['default']['item'] = '
//$NEWS_MENU_TEMPLATE['view']['end'] = '</ul>'; //$NEWS_MENU_TEMPLATE['view']['end'] = '</ul>';
// As displayed by news.php?extend.1 // As displayed by news.php?extend.1
//XXX TODO GEt this looking good in the default Bootstrap theme.
$NEWS_TEMPLATE['view']['item'] = ' $NEWS_TEMPLATE['view']['item'] = '
{SETIMAGE: w=800} {SETIMAGE: w=800}
<div class="view-item"> <div class="view-item">
<h2>{NEWSTITLE}</h2> <h2>{NEWSTITLE}</h2>
<div class="category">in {NEWSCATEGORY}</div> <small class="muted">
<div class="date">{NEWSDATE=short}</div> <span class="date">{NEWSDATE=short} by <span class="author">{NEWSAUTHOR}</span></span>
<div class="author">{NEWSAUTHOR}</div> </small>
<div class="body"> <div class="body">
{NEWSIMAGE} {NEWSIMAGE}
@@ -92,14 +95,14 @@ $NEWS_TEMPLATE['view']['item'] = '
{EXTENDED} {EXTENDED}
</div> </div>
<div class="options"> <div class="options">
{NEWSCOMMENTS} {EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS} <span class="category">{NEWSCATEGORY}</span> {NEWSTAGS} {NEWSCOMMENTS} {EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS}
</div> </div>
</div> </div>
'; ';
//$NEWS_MENU_TEMPLATE['view']['separator'] = '<br />'; //$NEWS_MENU_TEMPLATE['view']['separator'] = '<br />';
###### news_categories.sc (temporary) - TODO rewrite news, template standards ###### ###### news_categories.sc (temporary) - TODO rewrite news
$NEWS_TEMPLATE['category']['body'] = ' $NEWS_TEMPLATE['category']['body'] = '
<div style="padding:5px"><div style="border-bottom:1px inset black; padding-bottom:1px;margin-bottom:5px"> <div style="padding:5px"><div style="border-bottom:1px inset black; padding-bottom:1px;margin-bottom:5px">
{NEWSCATICON}&nbsp;{NEWSCATEGORY} {NEWSCATICON}&nbsp;{NEWSCATEGORY}