Делаем плагин "causeedit" более красивым.
Заходим в плагин и находим два шаблона topic.form_end.tpl и topic.show_end.tpl.
Открвываем topic.form_end.tpl и заменям весь код на:
Открвываем topic.show_end.tpl и заменям весь код на:
Дальше открываем стили, заменям весь код на:
Создаем папку images и загружаем туда картинку:
И что у меня получилось? А вот что:
Было:
Всех с наступающим!
Открвываем topic.form_end.tpl и заменям весь код на:
{if $aCauses}
<div class="editdate">
{foreach from=$aCauses item=aCause name=c key=k}
Отредактировал {$aCause.user_login} - {date_format date=$aCause.date}
Причина: {$aCause.text}
{if $oUserCurrent and $oUserCurrent->isAdministrator()}
<a href="#" onclick="deleteCause('{$iTopicId}', '{$k}', this); return false;" class="delete">{$aLang.topic_delete}</a>
{/if}<br /><br />
{/foreach}
</div>
{/if}
<p>
<label for="topic_cause_edit">{$aLang.plugin.causeedit.cause_title}:</label>
<input type="text" id="topic_cause_edit" name="topic_cause_edit" value="{$_aRequest.topic_cause_edit}" class="input-text input-width-full" />
</p>
Открвываем topic.show_end.tpl и заменям весь код на:
{assign var="aCauses" value=$oTopic->getCauseArray()}
{if $aCauses}
<br />
<div class="editdate">
{foreach from=$aCauses item=aCause name=c key=k}
Отредактировал {$aCause.user_login} - {date_format date=$aCause.date}
Причина: {$aCause.text}
{if $oUserCurrent and $oUserCurrent->isAdministrator()}
<a href="#" onclick="deleteCause('{$iTopicId}', '{$k}', this); return false;" class="delete">{$aLang.topic_delete}</a>
{/if}<br /><br />
{/foreach}
</div>
{/if}
Дальше открываем стили, заменям весь код на:
.editdate {
color: #84AE1B;
font-style: italic;
font-size: 0.9em;
text-align: right;
padding-right: 24px;
background: url("../images/editdate.png") no-repeat 100% 0;
margin-bottom: 15px;
}
.editdate .delete { color: red; }
Создаем папку images и загружаем туда картинку:
И что у меня получилось? А вот что:
Было:
Всех с наступающим!