mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Bootstrap news template.
This commit is contained in:
@@ -468,7 +468,7 @@ class news_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
if(count($words))
|
if(count($words))
|
||||||
{
|
{
|
||||||
return implode("",$words);
|
return implode(" ",$words);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -73,9 +73,9 @@ legend { font-size: 14px; font-weight: bold; padding: 5px; }
|
|||||||
/******** News item styling */
|
/******** News item styling */
|
||||||
|
|
||||||
.post-meta { margin: -7px 0 10px; }
|
.post-meta { margin: -7px 0 10px; }
|
||||||
.post-meta span { margin-right: 7px; margin-bottom: 0; padding-right: 10px; white-space: nowrap; border-right: 1px solid #dddddd; font-size: 12px; }
|
.post-meta small { margin-right: 7px; margin-bottom: 0; padding-right: 10px; white-space: nowrap; border-right: 1px solid #dddddd; }
|
||||||
.post-meta span:last-child { border: none; }
|
.post-meta small:last-child { border: none; }
|
||||||
.post-meta span i[class^="icon-"] { margin-right: 7px; }
|
.post-meta small i[class^="icon-"] { margin-right: 7px; }
|
||||||
|
|
||||||
.news_image { margin-bottom: 10px; }
|
.news_image { margin-bottom: 10px; }
|
||||||
div.view-item { margin-bottom:50px }
|
div.view-item { margin-bottom:50px }
|
||||||
|
108
e107_themes/bootstrap/templates/news/news_template.php
Normal file
108
e107_themes/bootstrap/templates/news/news_template.php
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!defined('e107_INIT')) exit;
|
||||||
|
|
||||||
|
global $sc_style;
|
||||||
|
|
||||||
|
|
||||||
|
// XXX As displayed by news.php (no query) or news.php?list.1.1 (ie. regular view of a particular category)
|
||||||
|
$NEWS_TEMPLATE['default']['item'] = '
|
||||||
|
{SETIMAGE: w=600}
|
||||||
|
<div class="view-item">
|
||||||
|
<h2>{NEWSTITLE}</h2>
|
||||||
|
<div class="post-meta">
|
||||||
|
<small><i class="icon-calendar"></i>{NEWSDATE}</small>
|
||||||
|
<small><i class="icon-user"></i>{NEWSAUTHOR}</small>
|
||||||
|
<small><i class="icon-comment"></i>{NEWSCOMMENTS}</small>
|
||||||
|
<small><i class="icon-tag"></i>{NEWSTAGS}</small>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="body">
|
||||||
|
{NEWSIMAGE}
|
||||||
|
{NEWSBODY}
|
||||||
|
{EXTENDED}
|
||||||
|
</div>
|
||||||
|
<div class="options">
|
||||||
|
{EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
';
|
||||||
|
|
||||||
|
// XXX The ListStyle template offers a listed summary of items with a minimum of 10 items per page.
|
||||||
|
// As displayed by news.php?cat.1 OR news.php?all
|
||||||
|
$NEWS_TEMPLATE['list']['item'] = '
|
||||||
|
{SETIMAGE: w=400&h=300&crop=1}
|
||||||
|
<div class="thumbnail">
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span3">
|
||||||
|
<div class="thumbnail">
|
||||||
|
{NEWSIMAGE}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="span9">
|
||||||
|
<h3>{NEWSTITLELINK}</h3>
|
||||||
|
<p>
|
||||||
|
{NEWSSUMMARY}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="{NEWSURL}" class="btn btn-info">Read More</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
';
|
||||||
|
|
||||||
|
|
||||||
|
//XXX As displayed after clicking on a news item. ie. 'extended' with comments.
|
||||||
|
$NEWS_TEMPLATE['view']['item'] = '
|
||||||
|
{SETIMAGE: w=800}
|
||||||
|
<div class="view-item">
|
||||||
|
<h2>{NEWSTITLE}</h2>
|
||||||
|
<div class="post-meta">
|
||||||
|
<small><i class="icon-calendar"></i>{NEWSDATE}</small>
|
||||||
|
<small><i class="icon-user"></i>{NEWSAUTHOR}</small>
|
||||||
|
<small><i class="icon-comment"></i>{NEWSCOMMENTS}</small>
|
||||||
|
<small><i class="icon-tag"></i>{NEWSTAGS}</small>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="body">
|
||||||
|
{NEWSIMAGE}
|
||||||
|
{NEWSBODY}
|
||||||
|
{EXTENDED}
|
||||||
|
</div>
|
||||||
|
<div class="options">
|
||||||
|
{EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
';
|
||||||
|
|
||||||
|
###### news_categories.sc (temporary) -
|
||||||
|
$NEWS_TEMPLATE['category']['body'] = '
|
||||||
|
<div style="padding:5px"><div style="border-bottom:1px inset black; padding-bottom:1px;margin-bottom:5px">
|
||||||
|
{NEWSCATICON} {NEWSCATEGORY}
|
||||||
|
</div>
|
||||||
|
{NEWSCAT_ITEM}
|
||||||
|
</div>
|
||||||
|
';
|
||||||
|
|
||||||
|
$NEWS_TEMPLATE['category']['item'] = '
|
||||||
|
<div style="width:100%;padding-bottom:2px">
|
||||||
|
<table style="width:100%" cellpadding="0" cellspacing="0" border="0">
|
||||||
|
<tr>
|
||||||
|
<td style="width:2px;vertical-align:top">•
|
||||||
|
</td>
|
||||||
|
<td style="text-align:left;vertical-align:top;padding-left:3px">
|
||||||
|
{NEWSTITLELINK}
|
||||||
|
<br />
|
||||||
|
</td></tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$NEWS_MENU_TEMPLATE['list']['start'] = '<div class="thumbnails">';
|
||||||
|
$NEWS_MENU_TEMPLATE['list']['end'] = '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
@@ -368,6 +368,19 @@ $FOOTER['marketing-narrow'] = '
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$NEWSLISTSTYLE = "
|
$NEWSLISTSTYLE = "
|
||||||
\n\n<!-- New List -->\n\n
|
\n\n<!-- New List -->\n\n
|
||||||
|
Reference in New Issue
Block a user