mirror of
https://github.com/e107inc/e107.git
synced 2025-02-13 11:04:38 +01:00
128 lines
3.7 KiB
PHP
128 lines
3.7 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (C) e107 Inc (e107.org), Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
|
* $Id$
|
|
*
|
|
* News default templates
|
|
*/
|
|
|
|
if (!defined('e107_INIT')) exit;
|
|
|
|
global $sc_style;
|
|
|
|
###### Default list item (temporary) - TODO rewrite news ######
|
|
//$NEWS_MENU_TEMPLATE['list']['start'] = '<ul class="nav nav-list news-menu-months">';
|
|
//$NEWS_MENU_TEMPLATE['list']['end'] = '</ul>';
|
|
|
|
$NEWS_MENU_TEMPLATE['list']['start'] = '<div class="thumbnails">';
|
|
$NEWS_MENU_TEMPLATE['list']['end'] = '</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
|
|
// {NEWSBODY} should not appear in the LISTSTYLE as it is NOT the same as what would appear on news.php (no query)
|
|
|
|
// Template/CSS to be reviewed for best bootstrap implementation
|
|
$NEWS_TEMPLATE['list']['caption'] = '{NEWSCATEGORY}';
|
|
$NEWS_TEMPLATE['list']['start'] = '{SETIMAGE: w=400&h=300&crop=1}';
|
|
$NEWS_TEMPLATE['list']['end'] = '';
|
|
$NEWS_TEMPLATE['list']['item'] = '
|
|
<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">'.LAN_READ_MORE.'</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
';
|
|
|
|
//$NEWS_MENU_TEMPLATE['list']['separator'] = '<br />';
|
|
|
|
|
|
|
|
// 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'] = '
|
|
{SETIMAGE: w=400}
|
|
<div class="view-item">
|
|
<h2>{NEWSTITLE}</h2>
|
|
<small class="muted">
|
|
<span class="date">{NEWSDATE=short} by <span class="author">{NEWSAUTHOR}</span></span>
|
|
</small>
|
|
|
|
<div class="body">
|
|
{NEWSIMAGE}
|
|
{NEWSBODY}
|
|
{EXTENDED}
|
|
</div>
|
|
<div class="options">
|
|
<span class="category">{NEWSCATEGORY}</span> {NEWSTAGS} {NEWSCOMMENTS} {EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS}
|
|
</div>
|
|
</div>
|
|
';
|
|
|
|
|
|
|
|
|
|
|
|
###### Default view item (temporary) - TODO rewrite news, template standards ######
|
|
//$NEWS_MENU_TEMPLATE['view']['start'] = '<ul class="nav nav-list news-menu-months">';
|
|
//$NEWS_MENU_TEMPLATE['view']['end'] = '</ul>';
|
|
|
|
// As displayed by news.php?extend.1
|
|
|
|
//XXX TODO GEt this looking good in the default Bootstrap theme.
|
|
$NEWS_TEMPLATE['view']['item'] = '
|
|
{SETIMAGE: w=800}
|
|
<div class="view-item">
|
|
<h2>{NEWSTITLE}</h2>
|
|
<small class="muted">
|
|
<span class="date">{NEWSDATE=short} by <span class="author">{NEWSAUTHOR}</span></span>
|
|
</small>
|
|
|
|
<div class="body">
|
|
{NEWSIMAGE}
|
|
{NEWSBODY}
|
|
{EXTENDED}
|
|
</div>
|
|
<div class="options">
|
|
<span class="category">{NEWSCATEGORY}</span> {NEWSTAGS} {NEWSCOMMENTS} {EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS}
|
|
</div>
|
|
</div>
|
|
';
|
|
//$NEWS_MENU_TEMPLATE['view']['separator'] = '<br />';
|
|
|
|
|
|
###### news_categories.sc (temporary) - TODO rewrite news
|
|
$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>
|
|
'; |