[UPDATE] make news style as an option
This commit is contained in:
parent
36f8f95da9
commit
057f453ff5
@ -46,6 +46,13 @@ $aSettings['website'][] = array(
|
||||
'name' => 'website_email', 'value' => $setting->getValue('website_email'),
|
||||
'tooltip' => 'The email address for your pool, used in mail templates and notifications.'
|
||||
);
|
||||
$aSettings['website'][] = array(
|
||||
'display' => 'Website News Style', 'type' => 'select',
|
||||
'options' => array( 0 => 'Show all news in one Page', 1 => 'Show Responsive News Table' ),
|
||||
'default' => 0,
|
||||
'name' => 'website_news_style', 'value' => $setting->getValue('website_news_style'),
|
||||
'tooltip' => 'How News are displayed on Main Page.'
|
||||
);
|
||||
$aSettings['website'][] = array(
|
||||
'display' => 'Website theme', 'type' => 'select',
|
||||
'options' => $aThemes,
|
||||
|
||||
@ -100,6 +100,7 @@ $aGlobal['website']['name'] = $setting->getValue('website_name');
|
||||
$aGlobal['website']['title'] = $setting->getValue('website_title');
|
||||
$aGlobal['website']['slogan'] = $setting->getValue('website_slogan');
|
||||
$aGlobal['website']['email'] = $setting->getValue('website_email');
|
||||
$aGlobal['website']['newsstyle'] = $setting->getValue('website_news_style');
|
||||
$aGlobal['website']['api']['disabled'] = $setting->getValue('disable_api');
|
||||
$aGlobal['website']['blockexplorer']['disabled'] = $setting->getValue('website_blockexplorer_disabled');
|
||||
$aGlobal['website']['transactionexplorer']['disabled'] = $setting->getValue('website_transactionexplorer_disabled');
|
||||
|
||||
@ -1,16 +1,5 @@
|
||||
{section name=news loop=$NEWS}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">
|
||||
<i class="fa fa-bookmark"></i> {$NEWS[news].header}</a>
|
||||
<br />
|
||||
<font size="1px">posted {$NEWS[news].time|date_format:"%b %e, %Y at %H:%M"}{if $HIDEAUTHOR|default:"0" == 0} by <b>{$NEWS[news].author}</b>{/if}</font>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{$NEWS[news].content nofilter}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/section}
|
||||
{if $GLOBAL.website.newsstyle == 0}
|
||||
{include file="home/news_all.tpl"}
|
||||
{else}
|
||||
{include file="home/news_accordion.tpl"}
|
||||
{/if}
|
||||
27
public/templates/bootstrap/home/news_accordion.tpl
Normal file
27
public/templates/bootstrap/home/news_accordion.tpl
Normal file
@ -0,0 +1,27 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">
|
||||
<h4><i class="fa fa-info-circle fa-fw"></i> latest News</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="panel-group" id="accordion">
|
||||
{section name=news loop=$NEWS}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<i class="fa fa-info fa-fw"></i> <a data-toggle="collapse" data-parent="#accordion" href="#collapse{$smarty.section.news.index}">{$NEWS[news].header}</a>
|
||||
<br />
|
||||
<font size="1px">posted {$NEWS[news].time|date_format:"%b %e, %Y at %H:%M"}{if $HIDEAUTHOR|default:"0" == 0} by <b>{$NEWS[news].author}</b>{/if}</font>
|
||||
</div>
|
||||
<div id="collapse{$smarty.section.news.index}" class="panel-collapse collapse {if $smarty.section.news.index == 0}in{/if}">
|
||||
<div class="panel-body">
|
||||
{$NEWS[news].content nofilter}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/section}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
16
public/templates/bootstrap/home/news_all.tpl
Normal file
16
public/templates/bootstrap/home/news_all.tpl
Normal file
@ -0,0 +1,16 @@
|
||||
{section name=news loop=$NEWS}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">
|
||||
<i class="fa fa-bookmark"></i> {$NEWS[news].header}</a>
|
||||
<br />
|
||||
<font size="1px">posted {$NEWS[news].time|date_format:"%b %e, %Y at %H:%M"}{if $HIDEAUTHOR|default:"0" == 0} by <b>{$NEWS[news].author}</b>{/if}</font>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{$NEWS[news].content nofilter}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/section}
|
||||
Loading…
Reference in New Issue
Block a user