1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00

Fixes #280: Пропал topic_type в шаблонах добавления топика

This commit is contained in:
Denis Shakhov 2013-05-24 00:06:21 +07:00
parent 57146ce444
commit 37696bd607
9 changed files with 23 additions and 3 deletions

View file

@ -6,6 +6,9 @@
{extends file='add.topic.base.tpl'}
{block name='add_topic_type'}link{/block}
{block name='add_topic_form_text_before'}
<p><label for="topic_link_url">{$aLang.topic_link_create_url}:</label>
<input type="text" id="topic_link_url" name="topic_link_url" value="{$_aRequest.topic_link_url}" class="width-full" />

View file

@ -7,6 +7,8 @@
{extends file='add.topic.base.tpl'}
{block name='add_topic_type'}photoset{/block}
{block name='add_topic_header_after'}
{include file='modals/modal.photoset_add_photo.tpl'}
{/block}

View file

@ -6,6 +6,9 @@
{extends file='add.topic.base.tpl'}
{block name='add_topic_type'}question{/block}
{block name='add_topic_form_text_before'}
<div class="poll-add">
<label>{$aLang.topic_question_create_answers}:</label>

View file

@ -85,7 +85,7 @@
{* Скрытые поля *}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<input type="hidden" name="topic_type" value="topic" />
<input type="hidden" name="topic_type" value="{block name='add_topic_type'}topic{/block}" />
{* Кнопки *}

View file

@ -6,6 +6,9 @@
{extends file='add.topic.base.tpl'}
{block name='add_topic_type'}link{/block}
{block name='add_topic_form_text_before'}
<p><label for="topic_link_url">{$aLang.topic_link_create_url}:</label>
<input type="text" id="topic_link_url" name="topic_link_url" value="{$_aRequest.topic_link_url}" class="width-full" />

View file

@ -7,6 +7,8 @@
{extends file='add.topic.base.tpl'}
{block name='add_topic_type'}photoset{/block}
{block name='add_topic_header_after'}
{include file='modals/modal.photoset_add_photo.tpl'}
{/block}

View file

@ -6,6 +6,9 @@
{extends file='add.topic.base.tpl'}
{block name='add_topic_type'}question{/block}
{block name='add_topic_form_text_before'}
<div class="poll-add">
<label>{$aLang.topic_question_create_answers}:</label>

View file

@ -85,7 +85,7 @@
{* Скрытые поля *}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<input type="hidden" name="topic_type" value="topic" />
<input type="hidden" name="topic_type" value="{block name='add_topic_type'}topic{/block}" />
{* Кнопки *}

View file

@ -44,7 +44,11 @@
</ul>
<ul class="topic-info">
<li class="topic-info-author"><a rel="author" href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a></li>
<li class="topic-info-author">
<a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(24)}" alt="avatar" class="avatar" /></a>
<a rel="author" href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a>
</li>
{hook run='topic_preview_show_info' topic=$oTopic}
</ul>