mirror of
https://github.com/e107inc/e107.git
synced 2025-02-13 11:04:38 +01:00
193 lines
5.4 KiB
PHP
193 lines
5.4 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=350&crop=1}';
|
|
$NEWS_TEMPLATE['list']['end'] = '';
|
|
$NEWS_TEMPLATE['list']['item'] = '
|
|
|
|
<div class="row row-fluid">
|
|
<div class="span3 col-md-3">
|
|
<div class="thumbnail">
|
|
{NEWSTHUMBNAIL=placeholder}
|
|
</div>
|
|
</div>
|
|
<div class="span9 col-md-9">
|
|
<h3 class="media-heading">{NEWSTITLELINK}</h3>
|
|
<p>
|
|
{NEWSSUMMARY}
|
|
</p>
|
|
<p>
|
|
<a href="{NEWSURL}" class="btn btn-small btn-primary">'.LAN_READ_MORE.'</a>
|
|
</p>
|
|
</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>
|
|
';
|
|
*/
|
|
|
|
$NEWS_TEMPLATE['default']['item'] = '
|
|
{SETIMAGE: w=900&h=300}
|
|
<h2>{NEWSTITLELINK}</h2>
|
|
<p class="lead">by {NEWSAUTHOR}</p>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="col-md-4">{GLYPH=time} {NEWSDATE=short} </div>
|
|
<div class="col-md-8 text-right options">{GLYPH=tags} {NEWSTAGS} {GLYPH=folder-open} {NEWSCATEGORY} </div>
|
|
</div>
|
|
<hr>
|
|
{NEWSIMAGE=placeholder}
|
|
|
|
<hr>
|
|
<p class="lead">{NEWSSUMMARY}</p>
|
|
{NEWSVIDEO}
|
|
{NEWSBODY}
|
|
<hr>
|
|
<div class="options">
|
|
<div class="btn-group">{NEWSCOMMENTLINK: glyph=comments&class=btn btn-default}{PRINTICON: class=btn btn-default}{PDFICON}{SOCIALSHARE: type=basic}{ADMINOPTIONS: class=btn btn-default}</div>
|
|
</div>
|
|
|
|
';
|
|
|
|
|
|
|
|
###### Default view item (temporary) ######
|
|
//$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
|
|
|
|
$NEWS_TEMPLATE['view']['item'] = '
|
|
{SETIMAGE: w=900&h=300}
|
|
<div class="view-item">
|
|
<h2>{NEWSTITLELINK}</h2>
|
|
<p class="lead">by {NEWSAUTHOR}</p>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="col-md-4">{GLYPH=time} {NEWSDATE=short} </div>
|
|
<div class="col-md-8 text-right options">{GLYPH=tags} {NEWSTAGS} {GLYPH=folder-open} {NEWSCATEGORY} </div>
|
|
</div>
|
|
<hr>
|
|
{NEWSIMAGE: item=1}
|
|
{NEWSVIDEO: item=1}
|
|
<hr>
|
|
<p class="lead">{NEWSSUMMARY}</p>
|
|
<hr>
|
|
|
|
<div class="body">
|
|
|
|
{NEWSVIDEO: item=2}
|
|
{NEWSVIDEO: item=3}
|
|
|
|
|
|
{NEWSBODY=body}
|
|
<br />
|
|
{SETIMAGE: w=400&h=400}
|
|
|
|
<div class="row news-images-1">
|
|
<div class="col-md-6">{NEWSIMAGE: item=2}</div>
|
|
<div class="col-md-6">{NEWSIMAGE: item=3}</div>
|
|
</div>
|
|
<div class="row news-images-2">
|
|
<div class="col-md-6">{NEWSIMAGE: item=4}</div>
|
|
<div class="col-md-6">{NEWSIMAGE: item=5}</div>
|
|
</div>
|
|
|
|
{NEWSVIDEO: item=4}
|
|
{NEWSVIDEO: item=5}
|
|
|
|
<div class="body-extended">
|
|
{NEWSBODY=extended}
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<hr>
|
|
|
|
<div class="options ">
|
|
<div class="btn-group">{NEWSCOMMENTLINK: glyph=comments&class=btn btn-default}{PRINTICON: class=btn btn-default}{ADMINOPTIONS: class=btn btn-default}{SOCIALSHARE: dropdown=1}</div>
|
|
</div>
|
|
|
|
</div>
|
|
{NEWSRELATED}
|
|
<hr>
|
|
{NEWSNAVLINK}
|
|
';
|
|
//$NEWS_MENU_TEMPLATE['view']['separator'] = '<br />';
|
|
|
|
|
|
###### news_categories.sc
|
|
$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>
|
|
'; |