mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
доработка шаблонов
This commit is contained in:
parent
c240b259bd
commit
19f280d03c
|
@ -1,10 +1,10 @@
|
|||
<ul class="item-list">
|
||||
{foreach from=$aBlogs item=oBlog}
|
||||
<li>
|
||||
<a href="{router page='blog'}{$oBlog->getUrl()}/"><img src="{$oBlog->getAvatarPath(48)}" alt="avatar" class="avatar" /></a>
|
||||
<a href="{$oBlog->getUrlFull()}"><img src="{$oBlog->getAvatarPath(48)}" alt="avatar" class="avatar" /></a>
|
||||
|
||||
{if $oBlog->getType()=='close'}<i title="{$aLang.blog_closed}" class="icon icon-lock"></i>{/if}
|
||||
<a href="{router page='blog'}{$oBlog->getUrl()}/">{$oBlog->getTitle()|escape:'html'}</a>
|
||||
<a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a>
|
||||
|
||||
<p>{$aLang.blog_rating}: <strong>{$oBlog->getRating()}</strong></p>
|
||||
</li>
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
<section class="block block-type-blog">
|
||||
<header class="block-header">
|
||||
<h3><a href="#">Офисы IT-компаний</a></h3>
|
||||
</header>
|
||||
|
||||
{*<div class="block-content">
|
||||
{$iCountBlogUsers} {$iCountBlogUsers|declension:$aLang.reader_declension:'russian'}<br />
|
||||
{$oBlog->getCountTopic()} {$oBlog->getCountTopic()|declension:$aLang.topic_declension:'russian'}
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
{if $oUserCurrent and $oUserCurrent->getId()!=$oBlog->getOwnerId()}
|
||||
<button class="button button-small" id="blog-join" onclick="ls.blog.toggleJoin(this,{$oBlog->getId()}); return false;">{if $oBlog->getUserIsJoin()}{$aLang.blog_leave}{else}{$aLang.blog_join}{/if}</button>
|
||||
{/if}
|
||||
<a href="{router page='rss'}blog/{$oBlog->getUrl()}/" class="rss">RSS</a>
|
||||
</footer>*}
|
||||
</section>
|
||||
{if $oTopic}
|
||||
{assign var="oBlog" value=$oTopic->getBlog()}
|
||||
{if $oBlog->getType()!='personal'}
|
||||
<section class="block block-type-blog">
|
||||
<header class="block-header">
|
||||
<h3><a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a></h3>
|
||||
</header>
|
||||
|
||||
<div class="block-content">
|
||||
<span id="blog_user_count_{$oBlog->getId()}">{$oBlog->getCountUser()}</span> {$oBlog->getCountUser()|declension:$aLang.reader_declension:'russian'}<br />
|
||||
{$oBlog->getCountTopic()} {$oBlog->getCountTopic()|declension:$aLang.topic_declension:'russian'}
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
{if $oUserCurrent and $oUserCurrent->getId()!=$oBlog->getOwnerId()}
|
||||
<button class="button button-small" id="blog-join" data-only-text="1" onclick="ls.blog.toggleJoin(this,{$oBlog->getId()}); return false;">{if $oBlog->getUserIsJoin()}{$aLang.blog_leave}{else}{$aLang.blog_join}{/if}</button>
|
||||
{/if}
|
||||
<a href="{router page='rss'}blog/{$oBlog->getUrl()}/" class="rss">RSS</a>
|
||||
</footer>
|
||||
</section>
|
||||
{/if}
|
||||
{/if}
|
|
@ -2,7 +2,7 @@
|
|||
{foreach from=$aBlogs item=oBlog}
|
||||
<li>
|
||||
{strip}
|
||||
<a href="{router page='blog'}{$oBlog->getUrl()}/">{$oBlog->getTitle()|escape:'html'}</a>
|
||||
<a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a>
|
||||
{if $oBlog->getType()=='close'}<i title="{$aLang.blog_closed}" class="icon-synio-topic-private"></i>{/if}
|
||||
{/strip}
|
||||
|
||||
|
|
|
@ -37,12 +37,12 @@ $config['head']['default']['css'] = array(
|
|||
"___path.static.skin___/themes/___view.theme___/style.css",
|
||||
);
|
||||
|
||||
$config['block']['rule_blog'] = array(
|
||||
$config['block']['rule_blog_info'] = array(
|
||||
'action' => array(
|
||||
'blog' => array('{topics}','{topic}','{blog}')
|
||||
'blog' => array('{topic}')
|
||||
),
|
||||
'blocks' => array(
|
||||
'right' => array('blocks/block.blog.tpl'=>array('priority'=>130),'tags'=>array('priority'=>50),'blogs'=>array('params'=>array(),'priority'=>1))
|
||||
'right' => array('blocks/block.blog.tpl'=>array('priority'=>300))
|
||||
),
|
||||
'clear' => false,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue