From 8c70d17ed8a7d41b2f9cb892e99258b62ab295ec Mon Sep 17 00:00:00 2001 From: Denis Shakhov Date: Mon, 28 Jul 2014 23:57:08 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B0=20article?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../developer/components/article/article.tpl | 117 +++++++++--------- 1 file changed, 59 insertions(+), 58 deletions(-) diff --git a/application/frontend/skin/developer/components/article/article.tpl b/application/frontend/skin/developer/components/article/article.tpl index 5ac21c89..5a46bd26 100644 --- a/application/frontend/skin/developer/components/article/article.tpl +++ b/application/frontend/skin/developer/components/article/article.tpl @@ -5,52 +5,60 @@ * @scripts /js/livestreet/topic.js *} -{block 'entry_options'}{/block} +{* Название компонента *} +{$component = 'article'} -{$oUser = $oEntry->getUser()} -{$_sType = ($oEntry->getType()) ? $oEntry->getType() : $sEntryType} +{block 'article_options'} + {$user = $article->getUser()} + {$type = ($article->getType()) ? $article->getType() : $smarty.local.type} + {$isList = $smarty.local.isList} + {$mods = $smarty.local.mods} + {$classes = $smarty.local.classes} -{block 'entry'} -
+ {if ! $isList} + {$mods = "{$mods} single"} + {/if} +{/block} + +{block 'article'} +
{** * Хидер *} - {block 'entry_header'} -
+ {block 'article_header'} +
{* Заголовок *} -

- {block 'entry_title'} - {if $bTopicList} - {$oEntry->getTitle()|escape} +

+ {block 'article_title'} + {if $isList} + {$article->getTitle()|escape} {else} - {$oEntry->getTitle()|escape} + {$article->getTitle()|escape} {/if} {/block}

{* Информация *} -
    - {block 'entry_header_info'} -
  • -
{/block} @@ -59,21 +67,21 @@ {** * Текст *} - {block 'entry_body'} -
- {block 'entry_content_text'} - {if $bTopicList} - {$oEntry->getTextShort()} + {block 'article_body'} +
+ {block 'article_content_text'} + {if $isList} + {$article->getTextShort()} {* Кат *} - {if $oEntry->getTextShort() != $oEntry->getText()} + {if $article->getTextShort() != $article->getText()}
- - {$oEntry->getCutText()|default:$aLang.topic_read_more} + + {$article->getCutText()|default:$aLang.topic.read_more} {/if} {else} - {$oEntry->getText()} + {$article->getText()} {/if} {/block}
@@ -83,39 +91,32 @@ {** * Футер *} - {block 'entry_footer'} -
{/block} \ No newline at end of file