mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
Базовый шаблон для форм создания топиков
This commit is contained in:
parent
dfd25c58d9
commit
974b8355c8
|
@ -1,3 +1,7 @@
|
|||
{**
|
||||
* Создание блога
|
||||
*}
|
||||
|
||||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav='create'}
|
||||
{else}
|
||||
|
@ -5,8 +9,12 @@
|
|||
{include file='navs/nav.blog_edit.tpl'}
|
||||
{/if}
|
||||
|
||||
{include file='editor.tpl' sEditorType='comment'}
|
||||
|
||||
|
||||
{* Подключение редактора *}
|
||||
{include file='editor_init.tpl' sEditorType='comment'}
|
||||
|
||||
|
||||
{* Подгрузка инфорамации о типе блога *}
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.lang.load({lang_load name="blog_create_type_open_notice,blog_create_type_close_notice"});
|
||||
|
@ -17,22 +25,24 @@
|
|||
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{hook run='form_add_blog_begin'}
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
|
||||
|
||||
{* Название блога *}
|
||||
<p><label for="blog_title">{$aLang.blog_create_title}:</label>
|
||||
<input type="text" id="blog_title" name="blog_title" value="{$_aRequest.blog_title}" class="input-text input-width-full" />
|
||||
<input type="text" id="blog_title" name="blog_title" value="{$_aRequest.blog_title}" class="width-full" />
|
||||
<small class="note">{$aLang.blog_create_title_notice}</small></p>
|
||||
|
||||
|
||||
|
||||
{* URL блога *}
|
||||
<p><label for="blog_url">{$aLang.blog_create_url}:</label>
|
||||
<input type="text" id="blog_url" name="blog_url" value="{$_aRequest.blog_url}" class="input-text input-width-full" {if $_aRequest.blog_id and !$oUserCurrent->isAdministrator()}disabled{/if} />
|
||||
<input type="text" id="blog_url" name="blog_url" value="{$_aRequest.blog_url}" class="width-full" {if $_aRequest.blog_id and !$oUserCurrent->isAdministrator()}disabled{/if} />
|
||||
<small class="note">{$aLang.blog_create_url_notice}</small></p>
|
||||
|
||||
|
||||
{* Категория блога *}
|
||||
{if Config::Get('module.blog.category_allow') and ($oUserCurrent->isAdministrator() or !Config::Get('module.blog.category_only_admin'))}
|
||||
<p><label for="blog_category">{$aLang.blog_create_category}:</label>
|
||||
<select name="blog_category" id="blog_category" class="input-width-200" >
|
||||
<select name="blog_category" id="blog_category" class="width-200" >
|
||||
{if Config::Get('module.blog.category_allow_empty')}
|
||||
<option value="0"></option>
|
||||
{/if}
|
||||
|
@ -43,24 +53,33 @@
|
|||
<small class="note" id="blog_category_note">{$aLang.blog_create_category_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
|
||||
{* Тип блога *}
|
||||
<p><label for="blog_type">{$aLang.blog_create_type}:</label>
|
||||
<select name="blog_type" id="blog_type" class="input-width-200" onChange="ls.blog.loadInfoType(jQuery(this).val());">
|
||||
<select name="blog_type" id="blog_type" class="width-200" onChange="ls.blog.loadInfoType(jQuery(this).val());">
|
||||
<option value="open" {if $_aRequest.blog_type=='open'}selected{/if}>{$aLang.blog_create_type_open}</option>
|
||||
<option value="close" {if $_aRequest.blog_type=='close'}selected{/if}>{$aLang.blog_create_type_close}</option>
|
||||
</select>
|
||||
<small class="note" id="blog_type_note">{$aLang.blog_create_type_open_notice}</small></p>
|
||||
|
||||
|
||||
<p><label for="blog_description">{$aLang.blog_create_description}:</label>
|
||||
<textarea name="blog_description" id="blog_description" rows="15" class="input-text input-width-full js-editor input-width-full">{$_aRequest.blog_description}</textarea>
|
||||
<small class="note">{$aLang.blog_create_description_notice}</small></p>
|
||||
|
||||
{* Описание блога *}
|
||||
<label for="blog_description">{$aLang.blog_create_description}:</label>
|
||||
<textarea name="blog_description" id="blog_description" rows="15" class="js-editor width-full">{$_aRequest.blog_description}</textarea>
|
||||
|
||||
{* Если визуальный редактор отключен выводим справку по разметке для обычного редактора *}
|
||||
{if ! $oConfig->GetValue('view.wysiwyg')}
|
||||
{include file='editor_help.tpl' sTagsTargetId='blog_description'}
|
||||
{/if}
|
||||
|
||||
|
||||
{* Ограничение по рейтингу *}
|
||||
<p><label for="blog_limit_rating_topic">{$aLang.blog_create_rating}:</label>
|
||||
<input type="text" id="blog_limit_rating_topic" name="blog_limit_rating_topic" value="{$_aRequest.blog_limit_rating_topic}" class="input-text input-width-100" />
|
||||
<input type="text" id="blog_limit_rating_topic" name="blog_limit_rating_topic" value="{$_aRequest.blog_limit_rating_topic}" class="width-100" />
|
||||
<small class="note">{$aLang.blog_create_rating_notice}</small></p>
|
||||
|
||||
|
||||
|
||||
{* Аватар *}
|
||||
<p>
|
||||
{if $oBlogEdit and $oBlogEdit->getAvatar()}
|
||||
<div class="avatar-edit">
|
||||
|
@ -68,7 +87,7 @@
|
|||
{if $iSize}<img src="{$oBlogEdit->getAvatarPath({$iSize})}">{/if}
|
||||
{/foreach}
|
||||
|
||||
<label><input type="checkbox" id="avatar_delete" name="avatar_delete" value="on" class="input-checkbox"> {$aLang.blog_create_avatar_delete}</label>
|
||||
<label><input type="checkbox" id="avatar_delete" name="avatar_delete" value="on"> {$aLang.blog_create_avatar_delete}</label>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
@ -76,10 +95,22 @@
|
|||
<input type="file" name="avatar" id="avatar">
|
||||
</p>
|
||||
|
||||
|
||||
{hook run='form_add_blog_end'}
|
||||
|
||||
<button type="submit" name="submit_blog_add" class="button button-primary">{$aLang.blog_create_submit}</button>
|
||||
{hook run='form_add_blog_end'}
|
||||
|
||||
|
||||
{* Скрытые поля *}
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
|
||||
{* Кнопки *}
|
||||
<button type="submit" name="submit_blog_add" class="button button-primary">
|
||||
{if $sEvent == 'add'}
|
||||
{$aLang.blog_create_submit}
|
||||
{else}
|
||||
{$aLang.topic_create_submit_update}
|
||||
{/if}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
|
||||
|
|
|
@ -1,83 +1,13 @@
|
|||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav='create'}
|
||||
{else}
|
||||
{include file='header.tpl'}
|
||||
<h2 class="page-header">{$aLang.topic_link_edit}</h2>
|
||||
{/if}
|
||||
{**
|
||||
* Создание топика-ссылки
|
||||
*
|
||||
* @styles css/topic.css
|
||||
*}
|
||||
|
||||
{include file='editor.tpl'}
|
||||
{extends file='add.topic.base.tpl'}
|
||||
|
||||
{hook run='add_topic_link_begin'}
|
||||
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="form-topic-add">
|
||||
{hook run='form_add_topic_link_begin'}
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
|
||||
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
|
||||
<select name="blog_id" id="blog_id" onChange="ls.blog.loadInfo(jQuery(this).val());" class="input-width-full">
|
||||
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||||
{foreach from=$aBlogsAllow item=oBlog}
|
||||
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note">{$aLang.topic_create_blog_notice}</small></p>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.blog.loadInfo($('#blog_id').val());
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<p><label for="topic_title">{$aLang.topic_create_title}:</label>
|
||||
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="input-text input-width-full" />
|
||||
<small class="note">{$aLang.topic_create_title_notice}</small></p>
|
||||
|
||||
|
||||
{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="input-text input-width-full" />
|
||||
<input type="text" id="topic_link_url" name="topic_link_url" value="{$_aRequest.topic_link_url}" class="width-full" />
|
||||
<small class="note">{$aLang.topic_link_create_url_notice}</small></p>
|
||||
|
||||
|
||||
<p><label for="topic_text">{$aLang.topic_link_create_text}:</label>
|
||||
<textarea name="topic_text" id="topic_text" rows="10" class="input-width-full js-editor input-width-full">{$_aRequest.topic_text}</textarea></p>
|
||||
|
||||
|
||||
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label>
|
||||
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="input-text input-width-full autocomplete-tags-sep" /><br />
|
||||
<small class="note">{$aLang.topic_create_tags_notice}</small></p>
|
||||
|
||||
|
||||
<p><label for="topic_forbid_comment">
|
||||
<input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" class="input-checkbox" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||||
{$aLang.topic_create_forbid_comment}</label>
|
||||
<small class="note">{$aLang.topic_create_forbid_comment_notice}</small></p>
|
||||
|
||||
|
||||
{if $oUserCurrent->isAdministrator()}
|
||||
<p><label for="topic_publish_index">
|
||||
<input type="checkbox" id="topic_publish_index" name="topic_publish_index" class="input-checkbox" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||||
{$aLang.topic_create_publish_index}</label>
|
||||
<small class="note">{$aLang.topic_create_publish_index_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="topic_type" value="link" />
|
||||
|
||||
{hook run='form_add_topic_link_end'}
|
||||
|
||||
|
||||
<button type="submit" name="submit_topic_publish" id="submit_topic_publish" class="button button-primary fl-r">{if $sEvent == 'add' or ($oTopicEdit and $oTopicEdit->getPublish() == 0)}{$aLang.topic_create_submit_publish}{else}{$aLang.topic_create_submit_update}{/if}</button>
|
||||
<button type="submit" name="submit_preview" onclick="ls.topic.preview('form-topic-add','text_preview'); return false;" class="button">{$aLang.topic_create_submit_preview}</button>
|
||||
<button type="submit" name="submit_topic_save" id="submit_topic_save" class="button">{$aLang.topic_create_submit_save}</button>
|
||||
</form>
|
||||
|
||||
<div class="topic-preview" id="text_preview"></div>
|
||||
|
||||
{hook run='add_topic_link_end'}
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
||||
{/block}
|
|
@ -1,67 +1,28 @@
|
|||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav='create'}
|
||||
{else}
|
||||
{include file='header.tpl'}
|
||||
<h2 class="page-header">{$aLang.topic_photoset_edit}</h2>
|
||||
{/if}
|
||||
{**
|
||||
* Создание топика-фотосета
|
||||
*
|
||||
* @styles css/topic.css
|
||||
*}
|
||||
|
||||
{extends file='add.topic.base.tpl'}
|
||||
|
||||
|
||||
{include file='editor.tpl'}
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function($){
|
||||
if (jQuery.browser.flash) {
|
||||
ls.photoset.initSwfUpload({
|
||||
post_params: { 'topic_id': {json var=$_aRequest.topic_id} }
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
{include file='modals/modal.photoset_add_photo.tpl'}
|
||||
|
||||
|
||||
{hook run='add_topic_photoset_begin'}
|
||||
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="form-topic-add">
|
||||
{hook run='form_add_topic_photoset_begin'}
|
||||
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
|
||||
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
|
||||
<select name="blog_id" id="blog_id" onChange="ls.blog.loadInfo(jQuery(this).val());" class="input-width-full">
|
||||
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||||
{foreach from=$aBlogsAllow item=oBlog}
|
||||
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note">{$aLang.topic_create_blog_notice}</small></p>
|
||||
|
||||
{block name='add_topic_header_after'}
|
||||
{include file='modals/modal.photoset_add_photo.tpl'}
|
||||
{/block}
|
||||
|
||||
{block name='add_topic_form_text_after'}
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.blog.loadInfo($('#blog_id').val());
|
||||
jQuery(function($){
|
||||
if (jQuery.browser.flash) {
|
||||
ls.photoset.initSwfUpload({
|
||||
post_params: { 'topic_id': {json var=$_aRequest.topic_id} }
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<p><label for="topic_title">{$aLang.topic_create_title}:</label>
|
||||
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="input-text input-width-full" /><br />
|
||||
<small class="note">{$aLang.topic_create_title_notice}</small></p>
|
||||
|
||||
|
||||
<label for="topic_text">{$aLang.topic_create_text}:</label>
|
||||
<textarea name="topic_text" class="js-editor input-width-full" id="topic_text" rows="20">{$_aRequest.topic_text}</textarea>
|
||||
{if !$oConfig->GetValue('view.wysiwyg')}
|
||||
{include file='tags_help.tpl' sTagsTargetId="topic_text"}
|
||||
{/if}
|
||||
|
||||
|
||||
<div class="photoset-upload">
|
||||
<header>
|
||||
<h2>{$aLang.topic_photoset_upload_title}</h2>
|
||||
|
@ -102,40 +63,4 @@
|
|||
<a href="#" data-type="modal-toggle" data-option-target="modal-photoset-upload" class="link-dotted" id="photoset-start-upload">{$aLang.topic_photoset_upload_choose}</a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
|
||||
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label>
|
||||
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="input-text input-width-full autocomplete-tags-sep" /><br />
|
||||
<small class="note">{$aLang.topic_create_tags_notice}</small></p>
|
||||
|
||||
|
||||
<p><label for="topic_forbid_comment">
|
||||
<input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" class="input-checkbox" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||||
{$aLang.topic_create_forbid_comment}</label>
|
||||
<small class="note">{$aLang.topic_create_forbid_comment_notice}</small></p>
|
||||
|
||||
|
||||
{if $oUserCurrent->isAdministrator()}
|
||||
<p><label for="topic_publish_index">
|
||||
<input type="checkbox" id="topic_publish_index" name="topic_publish_index" class="input-checkbox" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||||
{$aLang.topic_create_publish_index}</label>
|
||||
<small class="note">{$aLang.topic_create_publish_index_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="topic_type" value="photoset" />
|
||||
|
||||
{hook run='form_add_topic_photoset_end'}
|
||||
|
||||
|
||||
<button type="submit" name="submit_topic_publish" id="submit_topic_publish" class="button button-primary fl-r">{if $sEvent == 'add' or ($oTopicEdit and $oTopicEdit->getPublish() == 0)}{$aLang.topic_create_submit_publish}{else}{$aLang.topic_create_submit_update}{/if}</button>
|
||||
<button type="submit" name="submit_preview" onclick="ls.topic.preview('form-topic-add','text_preview'); return false;" class="button">{$aLang.topic_create_submit_preview}</button>
|
||||
<button type="submit" name="submit_topic_save" id="submit_topic_save" class="button">{$aLang.topic_create_submit_save}</button>
|
||||
</form>
|
||||
|
||||
<div class="topic-preview" id="text_preview"></div>
|
||||
|
||||
{hook run='add_topic_photoset_end'}
|
||||
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
||||
{/block}
|
|
@ -1,100 +1,31 @@
|
|||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav='create'}
|
||||
{else}
|
||||
{include file='header.tpl'}
|
||||
<h2 class="page-header">{$aLang.topic_question_edit}</h2>
|
||||
{/if}
|
||||
{**
|
||||
* Создание топика-опроса
|
||||
*
|
||||
* @styles css/topic.css
|
||||
*}
|
||||
|
||||
{include file='editor.tpl'}
|
||||
{extends file='add.topic.base.tpl'}
|
||||
|
||||
{hook run='add_topic_question_begin'}
|
||||
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="form-topic-add">
|
||||
{hook run='form_add_topic_question_begin'}
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
|
||||
<select name="blog_id" id="blog_id" onChange="ls.blog.loadInfo(jQuery(this).val());" class="input-width-full">
|
||||
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||||
{foreach from=$aBlogsAllow item=oBlog}
|
||||
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note">{$aLang.topic_create_blog_notice}</small></p>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.blog.loadInfo($('#blog_id').val());
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<p><label for="topic_title">{$aLang.topic_question_create_title}:</label>
|
||||
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="input-text input-width-full" {if $bEditDisabled}readonly="readonly"{/if} /><br />
|
||||
<small class="note">{$aLang.topic_question_create_title_notice}</small></p>
|
||||
|
||||
|
||||
<div class="poll-create">
|
||||
{block name='add_topic_form_text_before'}
|
||||
<div class="poll-add">
|
||||
<label>{$aLang.topic_question_create_answers}:</label>
|
||||
<ul class="question-list" id="question_list">
|
||||
{if count($_aRequest.answer)>=2}
|
||||
|
||||
<ul class="poll-add-list" id="question_list">
|
||||
{if count($_aRequest.answer) >= 2}
|
||||
{foreach from=$_aRequest.answer item=sAnswer key=i}
|
||||
<li>
|
||||
<input type="text" value="{$sAnswer}" name="answer[]" class="input-text input-width-300" {if $bEditDisabled}disabled{/if} />
|
||||
<input type="text" value="{$sAnswer}" name="answer[]" class="width-300" {if $bEditDisabled}disabled{/if} />
|
||||
{if !$bEditDisabled and $i>1} <a href="#" onClick="return ls.poll.removeAnswer(this);">{$aLang.topic_question_create_answers_delete}</a>{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
{else}
|
||||
<li><input type="text" value="" name="answer[]" class="input-text input-width-300" {if $bEditDisabled}disabled{/if} /></li>
|
||||
<li><input type="text" value="" name="answer[]" class="input-text input-width-300" {if $bEditDisabled}disabled{/if} /></li>
|
||||
<li><input type="text" value="" name="answer[]" class="width-300" {if $bEditDisabled}disabled{/if} /></li>
|
||||
<li><input type="text" value="" name="answer[]" class="width-300" {if $bEditDisabled}disabled{/if} /></li>
|
||||
{/if}
|
||||
</ul>
|
||||
|
||||
{if !$bEditDisabled}
|
||||
<a href="#" onClick="ls.poll.addAnswer(); return false;" class="link-dotted">{$aLang.topic_question_create_answers_add}</a>
|
||||
{if ! $bEditDisabled}
|
||||
<a href="#" onсlick="ls.poll.addAnswer(); return false;" class="link-dotted">{$aLang.topic_question_create_answers_add}</a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
<label for="topic_text">{$aLang.topic_question_create_text}:</label>
|
||||
<textarea name="topic_text" id="topic_text" rows="10" class="input-width-full js-editor input-width-full">{$_aRequest.topic_text}</textarea>
|
||||
{if !$oConfig->GetValue('view.wysiwyg')}
|
||||
{include file='tags_help.tpl' sTagsTargetId="topic_text"}
|
||||
{/if}
|
||||
|
||||
|
||||
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label>
|
||||
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="input-text input-width-full autocomplete-tags-sep" />
|
||||
<small class="note">{$aLang.topic_create_tags_notice}</small></p>
|
||||
|
||||
|
||||
<p><label for="topic_forbid_comment">
|
||||
<input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" class="input-checkbox" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||||
{$aLang.topic_create_forbid_comment}</label>
|
||||
<small class="note">{$aLang.topic_create_forbid_comment_notice}</small></p>
|
||||
|
||||
|
||||
{if $oUserCurrent->isAdministrator()}
|
||||
<p><label for="topic_publish_index">
|
||||
<input type="checkbox" id="topic_publish_index" name="topic_publish_index" class="input-checkbox" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||||
{$aLang.topic_create_publish_index}</label>
|
||||
<small class="note">{$aLang.topic_create_publish_index_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="topic_type" value="question" />
|
||||
|
||||
{hook run='form_add_topic_question_end'}
|
||||
|
||||
<button type="submit" name="submit_topic_publish" id="submit_topic_publish" class="button button-primary fl-r">{if $sEvent == 'add' or ($oTopicEdit and $oTopicEdit->getPublish() == 0)}{$aLang.topic_create_submit_publish}{else}{$aLang.topic_create_submit_update}{/if}</button>
|
||||
<button type="submit" name="submit_preview" onclick="ls.topic.preview('form-topic-add','text_preview'); return false;" class="button">{$aLang.topic_create_submit_preview}</button>
|
||||
<button type="submit" name="submit_topic_save" id="submit_topic_save" class="button">{$aLang.topic_create_submit_save}</button>
|
||||
</form>
|
||||
|
||||
<div class="topic-preview" id="text_preview"></div>
|
||||
|
||||
{hook run='add_topic_question_end'}
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
||||
{/block}
|
|
@ -12,7 +12,7 @@
|
|||
<div class="content" id="text_preview"></div>
|
||||
</div>
|
||||
|
||||
{include file='editor.tpl' sEditorType='comment'}
|
||||
{include file='editor_init.tpl' sEditorType='comment'}
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data">
|
||||
{hook run='form_add_talk_begin'}
|
||||
|
|
|
@ -1,84 +1,7 @@
|
|||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav='create'}
|
||||
{else}
|
||||
{include file='header.tpl'}
|
||||
<h2 class="page-header">{$aLang.topic_topic_edit}</h2>
|
||||
{/if}
|
||||
{**
|
||||
* Создание обычного текстового топика
|
||||
*
|
||||
* @styles css/topic.css
|
||||
*}
|
||||
|
||||
|
||||
{include file='editor.tpl'}
|
||||
|
||||
|
||||
{hook run='add_topic_topic_begin'}
|
||||
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="form-topic-add">
|
||||
{hook run='form_add_topic_topic_begin'}
|
||||
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
|
||||
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
|
||||
<select name="blog_id" id="blog_id" onChange="ls.blog.loadInfo(jQuery(this).val());" class="input-width-full">
|
||||
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||||
{foreach from=$aBlogsAllow item=oBlog}
|
||||
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note">{$aLang.topic_create_blog_notice}</small></p>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.blog.loadInfo($('#blog_id').val());
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<p><label for="topic_title">{$aLang.topic_create_title}:</label>
|
||||
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="input-text input-width-full" />
|
||||
<small class="note">{$aLang.topic_create_title_notice}</small></p>
|
||||
|
||||
|
||||
<label for="topic_text">{$aLang.topic_create_text}:</label>
|
||||
<textarea name="topic_text" id="topic_text" rows="20" class="js-editor input-width-full">{$_aRequest.topic_text}</textarea>
|
||||
|
||||
{if ! $oConfig->GetValue('view.wysiwyg')}
|
||||
{include file='tags_help.tpl' sTagsTargetId="topic_text"}
|
||||
{/if}
|
||||
|
||||
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label>
|
||||
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="input-text input-width-full autocomplete-tags-sep" />
|
||||
<small class="note">{$aLang.topic_create_tags_notice}</small></p>
|
||||
|
||||
|
||||
<p><label><input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" class="input-checkbox" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||||
{$aLang.topic_create_forbid_comment}</label>
|
||||
<small class="note">{$aLang.topic_create_forbid_comment_notice}</small></p>
|
||||
|
||||
|
||||
{if $oUserCurrent->isAdministrator()}
|
||||
<p><label><input type="checkbox" id="topic_publish_index" name="topic_publish_index" class="input-checkbox" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||||
{$aLang.topic_create_publish_index}</label>
|
||||
<small class="note">{$aLang.topic_create_publish_index_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="topic_type" value="topic" />
|
||||
|
||||
{hook run='form_add_topic_topic_end'}
|
||||
|
||||
|
||||
<button type="submit" name="submit_topic_publish" id="submit_topic_publish" class="button button-primary fl-r">{if $sEvent == 'add' or ($oTopicEdit and $oTopicEdit->getPublish() == 0)}{$aLang.topic_create_submit_publish}{else}{$aLang.topic_create_submit_update}{/if}</button>
|
||||
<button type="submit" name="submit_preview" onclick="ls.topic.preview('form-topic-add','text_preview'); return false;" class="button">{$aLang.topic_create_submit_preview}</button>
|
||||
<button type="submit" name="submit_topic_save" id="submit_topic_save" class="button">{$aLang.topic_create_submit_save}</button>
|
||||
</form>
|
||||
|
||||
|
||||
<div class="topic-preview" style="display: none;" id="text_preview"></div>
|
||||
|
||||
|
||||
{hook run='add_topic_topic_end'}
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
||||
{extends file='add.topic.base.tpl'}
|
111
templates/skin/developer/add.topic.base.tpl
Normal file
111
templates/skin/developer/add.topic.base.tpl
Normal file
|
@ -0,0 +1,111 @@
|
|||
{**
|
||||
* Базовая форма для создания топика
|
||||
*
|
||||
* @styles css/topic.css
|
||||
*}
|
||||
|
||||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav='create'}
|
||||
{else}
|
||||
{include file='header.tpl'}
|
||||
|
||||
<h2 class="page-header">
|
||||
{block name='add_topic_title'}
|
||||
{$aLang.topic_topic_edit}
|
||||
{/block}
|
||||
</h2>
|
||||
{/if}
|
||||
|
||||
{* Подключение редактора *}
|
||||
{include file='editor_init.tpl'}
|
||||
|
||||
|
||||
{block name='add_topic_header_after'}{/block}
|
||||
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="form-topic-add">
|
||||
{block name='add_topic_form_begin'}{/block}
|
||||
|
||||
|
||||
{* Выбор блога *}
|
||||
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
|
||||
<select name="blog_id" id="blog_id" onChange="ls.blog.loadInfo(jQuery(this).val());" class="width-full">
|
||||
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||||
{foreach from=$aBlogsAllow item=oBlog}
|
||||
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note">{$aLang.topic_create_blog_notice}</small></p>
|
||||
|
||||
|
||||
{* Заголовок топика *}
|
||||
<p><label for="topic_title">{$aLang.topic_create_title}:</label>
|
||||
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="width-full" />
|
||||
<small class="note">{$aLang.topic_create_title_notice}</small></p>
|
||||
|
||||
|
||||
{block name='add_topic_form_text_before'}{/block}
|
||||
|
||||
|
||||
{* Текст топика *}
|
||||
<label for="topic_text">{$aLang.topic_create_text}:</label>
|
||||
<textarea name="topic_text" id="topic_text" rows="20" class="js-editor width-full">{$_aRequest.topic_text}</textarea>
|
||||
|
||||
{* Если визуальный редактор отключен выводим справку по разметке для обычного редактора *}
|
||||
{if ! $oConfig->GetValue('view.wysiwyg')}
|
||||
{include file='editor_help.tpl' sTagsTargetId='topic_text'}
|
||||
{/if}
|
||||
|
||||
|
||||
{block name='add_topic_form_text_after'}{/block}
|
||||
|
||||
|
||||
{* Теги *}
|
||||
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label>
|
||||
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="width-full autocomplete-tags-sep" />
|
||||
<small class="note">{$aLang.topic_create_tags_notice}</small></p>
|
||||
|
||||
|
||||
{* Запретить комментарии *}
|
||||
<p><label><input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||||
{$aLang.topic_create_forbid_comment}</label>
|
||||
<small class="note">{$aLang.topic_create_forbid_comment_notice}</small></p>
|
||||
|
||||
|
||||
{* Принудительный вывод топиков на главную (доступно только админам) *}
|
||||
{if $oUserCurrent->isAdministrator()}
|
||||
<p><label><input type="checkbox" id="topic_publish_index" name="topic_publish_index" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||||
{$aLang.topic_create_publish_index}</label>
|
||||
<small class="note">{$aLang.topic_create_publish_index_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
|
||||
{block name='add_topic_form_end'}{/block}
|
||||
|
||||
|
||||
{* Скрытые поля *}
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
<input type="hidden" name="topic_type" value="topic" />
|
||||
|
||||
|
||||
{* Кнопки *}
|
||||
<button type="submit" name="submit_topic_publish" id="submit_topic_publish" class="button button-primary fl-r">
|
||||
{if $sEvent == 'add' or ($oTopicEdit and $oTopicEdit->getPublish() == 0)}
|
||||
{$aLang.topic_create_submit_publish}
|
||||
{else}
|
||||
{$aLang.topic_create_submit_update}
|
||||
{/if}
|
||||
</button>
|
||||
<button type="submit" name="submit_preview" onclick="ls.topic.preview('form-topic-add','text_preview'); return false;" class="button">{$aLang.topic_create_submit_preview}</button>
|
||||
<button type="submit" name="submit_topic_save" id="submit_topic_save" class="button">{$aLang.topic_create_submit_save}</button>
|
||||
</form>
|
||||
|
||||
|
||||
{* Блок с превью текста *}
|
||||
<div class="topic-preview" style="display: none;" id="text_preview"></div>
|
||||
|
||||
|
||||
{block name='add_topic_end'}{/block}
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
|
@ -7,4 +7,13 @@
|
|||
{extends file='blocks/block.aside.base.tpl'}
|
||||
|
||||
{block name='block_title'}{$aLang.block_blog_info}{/block}
|
||||
{block name='block_content'}<p id="block_blog_info" class="text"></p>{/block}
|
||||
{block name='block_content'}
|
||||
{* Загрузка описания блога *}
|
||||
<script>
|
||||
jQuery(document).ready(function($){
|
||||
ls.blog.loadInfo($('#blog_id').val());
|
||||
});
|
||||
</script>
|
||||
|
||||
<p id="block_blog_info" class="text"></p>
|
||||
{/block}
|
|
@ -54,7 +54,7 @@
|
|||
{$sNoticeNotAllow}
|
||||
{else}
|
||||
{if $oUserCurrent}
|
||||
{include file='editor.tpl' sEditorType='comment'}
|
||||
{include file='editor_init.tpl' sEditorType='comment'}
|
||||
|
||||
<h4 class="reply-header" id="comment_id_0">
|
||||
<a href="#" class="link-dotted" onclick="ls.comments.toggleCommentForm(0); return false;">{$sNoticeCommentAdd}</a>
|
||||
|
|
|
@ -96,42 +96,4 @@ a:hover { color: #058; }
|
|||
.userfield-list li .userfield_admin_name { font-weight: bold; color: #333; }
|
||||
|
||||
.userfield-add { text-decoration: none; border-bottom: 1px dashed #70AAE0; }
|
||||
.userfield-add:hover { color: #333; border-color: #333; }
|
||||
|
||||
|
||||
|
||||
/* Misc
|
||||
---------------------------------------------------- */
|
||||
.avatar-edit { margin-bottom: 15px; }
|
||||
.avatar-edit img { vertical-align: bottom; }
|
||||
.avatar-edit label { margin-top: 10px; }
|
||||
|
||||
.drafts { float: right; margin-top: 10px; }
|
||||
|
||||
.poll-create { padding: 15px 20px; margin-bottom: 20px; background: #f7f7f7; }
|
||||
|
||||
.question-list { margin-bottom: 15px; }
|
||||
.question-list li { margin-bottom: 5px; }
|
||||
.question-list li .input-text { margin-right: 10px; }
|
||||
|
||||
|
||||
.help {
|
||||
display: none;
|
||||
position: relative;
|
||||
padding: 10px 7px 13px;
|
||||
background: #fafafa;
|
||||
color: #363636;
|
||||
margin-top: 13px;
|
||||
font-size: 11px;
|
||||
line-height: 16px;
|
||||
border-radius: 3px;
|
||||
-webkit-box-shadow: 0 0 5px #eaeaea inset; box-shadow: 0 0 5px #eaeaea inset;
|
||||
}
|
||||
.help:before { display: block; content: ""; position: absolute; top: -12px; left: 15px; width: 0; height: 0; border-width: 6px; border-color: transparent transparent #eee transparent; border-style: solid; }
|
||||
.help h3 { font-size: 15px; font-weight: bold; margin-bottom: 10px; }
|
||||
.help .help-col { float: left; width: 250px; padding: 0 10px; }
|
||||
.help .help-col.help-wide { float: none; width: 96%; }
|
||||
.help .help-item { margin-bottom: 20px; }
|
||||
.help .help-item:last-child { margin-bottom: 0; }
|
||||
.help .help-item h4 { font-family: monospace; font-weight: bold; margin-bottom: 3px; }
|
||||
.help .help-item h4 a { color: #5055B2; border-bottom: 1px dotted #727a90; }
|
||||
.userfield-add:hover { color: #333; border-color: #333; }
|
49
templates/skin/developer/css/forms.css
Normal file
49
templates/skin/developer/css/forms.css
Normal file
|
@ -0,0 +1,49 @@
|
|||
/**
|
||||
* Формы
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Блок редактирования аватара
|
||||
*
|
||||
* @file actions/ActionSettings/profile.tpl
|
||||
*/
|
||||
.avatar-edit { margin-bottom: 15px; }
|
||||
.avatar-edit img { vertical-align: bottom; }
|
||||
.avatar-edit label { margin-top: 10px; }
|
||||
|
||||
|
||||
/**
|
||||
* Создание топика-опроса
|
||||
*
|
||||
* @file actions/ActionQuestion/add.tpl
|
||||
*/
|
||||
.poll-add { padding: 15px 20px; margin-bottom: 20px; background: #f7f7f7; }
|
||||
|
||||
.poll-add-list { margin-bottom: 15px; }
|
||||
.poll-add-list li { margin-bottom: 5px; }
|
||||
.poll-add-list li input[type="text"] { margin-right: 10px; }
|
||||
|
||||
|
||||
/**
|
||||
* Справка по разметке редактора
|
||||
*
|
||||
* @file editor_help.tpl
|
||||
*/
|
||||
.editor-help header { margin-bottom: 20px; }
|
||||
|
||||
.editor-help-body {
|
||||
display: none;
|
||||
padding: 20px;
|
||||
margin-bottom: 20px;
|
||||
background: #f7f7f7;
|
||||
color: #333;
|
||||
}
|
||||
.editor-help-body h3 { font-size: 18px; font-weight: bold; margin-bottom: 10px; }
|
||||
|
||||
.editor-help-col { float: left; width: 47%; margin-left: 6%; }
|
||||
.editor-help-col:first-child { margin-left: 0; }
|
||||
|
||||
.editor-help-item { margin-bottom: 20px; }
|
||||
.editor-help-item:last-child { margin-bottom: 0; }
|
||||
.editor-help-item h4 { font-family: monospace; font-weight: bold; margin-bottom: 3px; }
|
116
templates/skin/developer/editor_help.tpl
Normal file
116
templates/skin/developer/editor_help.tpl
Normal file
|
@ -0,0 +1,116 @@
|
|||
{**
|
||||
* Справка по разметке редактора
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
ls.registry.set('tags-help-target-id','{$sTagsTargetId}');
|
||||
</script>
|
||||
|
||||
|
||||
<div class="editor-help">
|
||||
<header class="editor-help-header clearfix">
|
||||
<a href="#" class="link-dotted help-link" onclick="jQuery('#js-editor-help').toggle(); return false;">{$aLang.tags_help_link_show}</a>
|
||||
</header>
|
||||
|
||||
<div class="editor-help-body" id="js-editor-help">
|
||||
<h3>{$aLang.tags_help_special}</h3>
|
||||
|
||||
<ul class="mb-30">
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><cut></a></h4>
|
||||
{$aLang.tags_help_special_cut}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><cut name="{$aLang.tags_help_special_cut_name_example_name}"></a></h4>
|
||||
{$aLang.tags_help_special_cut_name}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link" data-insert="<video></video>"><video>http://...</video></a></h4>
|
||||
{$aLang.tags_help_special_video}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link" data-insert="<ls user="" />"><ls user="{$aLang.tags_help_special_ls_user_example_user}" /></a></h4>
|
||||
{$aLang.tags_help_special_ls_user}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3>{$aLang.tags_help_standart}</h3>
|
||||
|
||||
<div class="clearfix">
|
||||
<ul class="editor-help-col">
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><h4></h4></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><h5></h5></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><h6></h6></a></h4>
|
||||
{$aLang.tags_help_standart_h}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><img src="" /></a></h4>
|
||||
{$aLang.tags_help_standart_img}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link" data-insert="<a href=""></a>"><a href="http://...">{$aLang.tags_help_standart_a_example_href}</a></a></h4>
|
||||
{$aLang.tags_help_standart_a}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><b></b></a></h4>
|
||||
{$aLang.tags_help_standart_b}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><i></i></a></h4>
|
||||
{$aLang.tags_help_standart_i}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><s></s></a></h4>
|
||||
{$aLang.tags_help_standart_s}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><u></u></a></h4>
|
||||
{$aLang.tags_help_standart_u}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="editor-help-col">
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><hr /></a></h4>
|
||||
{$aLang.tags_help_standart_hr}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><blockquote></blockquote></a></h4>
|
||||
{$aLang.tags_help_standart_blockquote}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><table></table></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><th></th></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><td></td></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><tr></tr></a></h4>
|
||||
{$aLang.tags_help_standart_table}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><ul></ul></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><li></li></a></h4>
|
||||
{$aLang.tags_help_standart_ul}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><ol></ol></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><li></li></a></h4>
|
||||
{$aLang.tags_help_standart_ol}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -31,6 +31,8 @@
|
|||
{$sSettings = 'getTinymce()'}
|
||||
{/if}
|
||||
|
||||
{hook run='editor_init_wysiwyg_settings'}
|
||||
|
||||
<script src="{cfg name='path.static.framework'}/js/vendor/tinymce/tiny_mce.js"></script>
|
||||
|
||||
<script>
|
||||
|
@ -54,6 +56,8 @@
|
|||
{$sSettings = 'getMarkitup()'}
|
||||
{/if}
|
||||
|
||||
{hook run='editor_init_markup_settings'}
|
||||
|
||||
<script>
|
||||
jQuery(function($) {
|
||||
ls.lang.load({lang_load name="panel_b,panel_i,panel_u,panel_s,panel_url,panel_url_promt,panel_code,panel_video,panel_image,panel_cut,panel_quote,panel_list,panel_list_ul,panel_list_ol,panel_title,panel_clear_tags,panel_video_promt,panel_list_li,panel_image_promt,panel_user,panel_user_promt"});
|
|
@ -20,15 +20,17 @@
|
|||
|
||||
|
||||
{if $sMenuItemSelect=='topic'}
|
||||
{if $iUserCurrentCountTopicDraft}
|
||||
<a href="{router page='topic'}saved/" class="drafts">{$aLang.topic_menu_saved} ({$iUserCurrentCountTopicDraft})</a>
|
||||
{/if}
|
||||
<ul class="nav nav-pills mb-30">
|
||||
<li {if $sMenuSubItemSelect=='topic'}class="active"{/if}><a href="{router page='topic'}add/">{$aLang.topic_menu_add_topic}</a></li>
|
||||
<li {if $sMenuSubItemSelect=='question'}class="active"{/if}><a href="{router page='question'}add/">{$aLang.topic_menu_add_question}</a></li>
|
||||
<li {if $sMenuSubItemSelect=='link'}class="active"{/if}><a href="{router page='link'}add/">{$aLang.topic_menu_add_link}</a></li>
|
||||
<li {if $sMenuSubItemSelect=='photoset'}class="active"{/if}><a href="{router page='photoset'}add/">{$aLang.topic_menu_add_photoset}</a></li>
|
||||
|
||||
{hook run='menu_create_topic_item'}
|
||||
|
||||
{if $iUserCurrentCountTopicDraft}
|
||||
<li class="{if $sMenuSubItemSelect=='saved'}active{/if} fl-r"><a href="{router page='topic'}saved/">{$aLang.topic_menu_saved} ({$iUserCurrentCountTopicDraft})</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ $config['head']['default']['css'] = array_merge(Config::Get('head.default.css'),
|
|||
"___path.static.framework___/js/vendor/prettify/prettify.css",
|
||||
"___path.static.framework___/js/vendor/prettyphoto/css/prettyphoto.css",
|
||||
"___path.static.skin___/css/grid.css",
|
||||
"___path.static.skin___/css/forms.css",
|
||||
"___path.static.skin___/css/common.css",
|
||||
"___path.static.skin___/css/icons.css",
|
||||
"___path.static.skin___/css/navs.css",
|
||||
|
|
|
@ -1,91 +0,0 @@
|
|||
<script type="text/javascript">
|
||||
ls.registry.set('tags-help-target-id','{$sTagsTargetId}');
|
||||
</script>
|
||||
|
||||
<div class="mb-20">
|
||||
<a href="#" class="link-dotted help-link" onclick="jQuery('#tags-help').toggle(); return false;">{$aLang.tags_help_link_show}</a>
|
||||
|
||||
<dl class="help clearfix" id="tags-help">
|
||||
<dt class="help-col help-wide">
|
||||
<h3>{$aLang.tags_help_special}</h3>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><cut></a></h4>
|
||||
{$aLang.tags_help_special_cut}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><cut name="{$aLang.tags_help_special_cut_name_example_name}"></a></h4>
|
||||
{$aLang.tags_help_special_cut_name}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link" data-insert="<video></video>"><video>http://...</video></a></h4>
|
||||
{$aLang.tags_help_special_video}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link" data-insert="<ls user="" />"><ls user="{$aLang.tags_help_special_ls_user_example_user}" /></a></h4>
|
||||
{$aLang.tags_help_special_ls_user}
|
||||
</div>
|
||||
</dt>
|
||||
<dt class="help-col help-wide" style="margin-top: 20px;">
|
||||
<h3>{$aLang.tags_help_standart}</h3>
|
||||
</dt>
|
||||
<dt class="help-col help-left">
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><h4></h4></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><h5></h5></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><h6></h6></a></h4>
|
||||
{$aLang.tags_help_standart_h}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><img src="" /></a></h4>
|
||||
{$aLang.tags_help_standart_img}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link" data-insert="<a href=""></a>"><a href="http://...">{$aLang.tags_help_standart_a_example_href}</a></a></h4>
|
||||
{$aLang.tags_help_standart_a}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><b></b></a></h4>
|
||||
{$aLang.tags_help_standart_b}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><i></i></a></h4>
|
||||
{$aLang.tags_help_standart_i}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><s></s></a></h4>
|
||||
{$aLang.tags_help_standart_s}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><u></u></a></h4>
|
||||
{$aLang.tags_help_standart_u}
|
||||
</div>
|
||||
</dt>
|
||||
<dd class="help-col help-right">
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><hr /></a></h4>
|
||||
{$aLang.tags_help_standart_hr}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><blockquote></blockquote></a></h4>
|
||||
{$aLang.tags_help_standart_blockquote}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><table></table></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><th></th></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><td></td></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><tr></tr></a></h4>
|
||||
{$aLang.tags_help_standart_table}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><ul></ul></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><li></li></a></h4>
|
||||
{$aLang.tags_help_standart_ul}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><ol></ol></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><li></li></a></h4>
|
||||
{$aLang.tags_help_standart_ol}
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
|
@ -1,3 +1,7 @@
|
|||
{**
|
||||
* Создание блога
|
||||
*}
|
||||
|
||||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav_content='create'}
|
||||
{else}
|
||||
|
@ -6,8 +10,11 @@
|
|||
{/if}
|
||||
|
||||
|
||||
{include file='editor.tpl' sEditorType='comment'}
|
||||
|
||||
{* Подключение редактора *}
|
||||
{include file='editor_init.tpl' sEditorType='comment'}
|
||||
|
||||
|
||||
{* Подгрузка инфорамации о типе блога *}
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.lang.load({lang_load name="blog_create_type_open_notice,blog_create_type_close_notice"});
|
||||
|
@ -16,52 +23,63 @@
|
|||
</script>
|
||||
|
||||
|
||||
<form method="post" enctype="multipart/form-data" class="wrapper-content">
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{hook run='form_add_blog_begin'}
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
|
||||
|
||||
{* Название блога *}
|
||||
<p><label for="blog_title">{$aLang.blog_create_title}:</label>
|
||||
<input type="text" id="blog_title" name="blog_title" value="{$_aRequest.blog_title}" class="input-text input-width-full" />
|
||||
<input type="text" id="blog_title" name="blog_title" value="{$_aRequest.blog_title}" class="width-full" />
|
||||
<small class="note">{$aLang.blog_create_title_notice}</small></p>
|
||||
|
||||
|
||||
|
||||
{* URL блога *}
|
||||
<p><label for="blog_url">{$aLang.blog_create_url}:</label>
|
||||
<input type="text" id="blog_url" name="blog_url" value="{$_aRequest.blog_url}" class="input-text input-width-full" {if $_aRequest.blog_id and !$oUserCurrent->isAdministrator()}disabled{/if} />
|
||||
<input type="text" id="blog_url" name="blog_url" value="{$_aRequest.blog_url}" class="width-full" {if $_aRequest.blog_id and !$oUserCurrent->isAdministrator()}disabled{/if} />
|
||||
<small class="note">{$aLang.blog_create_url_notice}</small></p>
|
||||
|
||||
|
||||
{* Категория блога *}
|
||||
{if Config::Get('module.blog.category_allow') and ($oUserCurrent->isAdministrator() or !Config::Get('module.blog.category_only_admin'))}
|
||||
<p><label for="blog_category">{$aLang.blog_create_category}:</label>
|
||||
<select name="blog_category" id="blog_category" class="input-width-200" >
|
||||
{if Config::Get('module.blog.category_allow_empty')}
|
||||
<option value="0"></option>
|
||||
{/if}
|
||||
{foreach from=$aBlogCategories item=oBlogCategory}
|
||||
<option {if $_aRequest.blog_category==$oBlogCategory->getId()}selected{/if} value="{$oBlogCategory->getId()}" style="margin-left: {$oBlogCategory->getLevel()*20}px;">{$oBlogCategory->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note" id="blog_category_note">{$aLang.blog_create_category_notice}</small></p>
|
||||
<p><label for="blog_category">{$aLang.blog_create_category}:</label>
|
||||
<select name="blog_category" id="blog_category" class="width-200" >
|
||||
{if Config::Get('module.blog.category_allow_empty')}
|
||||
<option value="0"></option>
|
||||
{/if}
|
||||
{foreach from=$aBlogCategories item=oBlogCategory}
|
||||
<option {if $_aRequest.blog_category==$oBlogCategory->getId()}selected{/if} value="{$oBlogCategory->getId()}" style="margin-left: {$oBlogCategory->getLevel()*20}px;">{$oBlogCategory->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note" id="blog_category_note">{$aLang.blog_create_category_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
|
||||
{* Тип блога *}
|
||||
<p><label for="blog_type">{$aLang.blog_create_type}:</label>
|
||||
<select name="blog_type" id="blog_type" class="input-width-200" onChange="ls.blog.loadInfoType(jQuery(this).val());">
|
||||
<select name="blog_type" id="blog_type" class="width-200" onChange="ls.blog.loadInfoType(jQuery(this).val());">
|
||||
<option value="open" {if $_aRequest.blog_type=='open'}selected{/if}>{$aLang.blog_create_type_open}</option>
|
||||
<option value="close" {if $_aRequest.blog_type=='close'}selected{/if}>{$aLang.blog_create_type_close}</option>
|
||||
</select>
|
||||
<small class="note" id="blog_type_note">{$aLang.blog_create_type_open_notice}</small></p>
|
||||
|
||||
|
||||
<p><label for="blog_description">{$aLang.blog_create_description}:</label>
|
||||
<textarea name="blog_description" id="blog_description" rows="15" class="input-text input-width-full js-editor input-width-full">{$_aRequest.blog_description}</textarea>
|
||||
<small class="note">{$aLang.blog_create_description_notice}</small></p>
|
||||
|
||||
{* Описание блога *}
|
||||
<label for="blog_description">{$aLang.blog_create_description}:</label>
|
||||
<textarea name="blog_description" id="blog_description" rows="15" class="js-editor width-full">{$_aRequest.blog_description}</textarea>
|
||||
|
||||
{* Если визуальный редактор отключен выводим справку по разметке для обычного редактора *}
|
||||
{if ! $oConfig->GetValue('view.wysiwyg')}
|
||||
{include file='editor_help.tpl' sTagsTargetId='blog_description'}
|
||||
{/if}
|
||||
|
||||
|
||||
{* Ограничение по рейтингу *}
|
||||
<p><label for="blog_limit_rating_topic">{$aLang.blog_create_rating}:</label>
|
||||
<input type="text" id="blog_limit_rating_topic" name="blog_limit_rating_topic" value="{$_aRequest.blog_limit_rating_topic}" class="input-text input-width-100" />
|
||||
<input type="text" id="blog_limit_rating_topic" name="blog_limit_rating_topic" value="{$_aRequest.blog_limit_rating_topic}" class="width-100" />
|
||||
<small class="note">{$aLang.blog_create_rating_notice}</small></p>
|
||||
|
||||
|
||||
|
||||
{* Аватар *}
|
||||
<p>
|
||||
{if $oBlogEdit and $oBlogEdit->getAvatar()}
|
||||
<div class="avatar-edit">
|
||||
|
@ -69,7 +87,7 @@
|
|||
{if $iSize}<img src="{$oBlogEdit->getAvatarPath({$iSize})}">{/if}
|
||||
{/foreach}
|
||||
|
||||
<label><input type="checkbox" id="avatar_delete" name="avatar_delete" value="on" class="input-checkbox"> {$aLang.blog_create_avatar_delete}</label>
|
||||
<label><input type="checkbox" id="avatar_delete" name="avatar_delete" value="on"> {$aLang.blog_create_avatar_delete}</label>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
@ -77,10 +95,22 @@
|
|||
<input type="file" name="avatar" id="avatar">
|
||||
</p>
|
||||
|
||||
|
||||
{hook run='form_add_blog_end'}
|
||||
|
||||
<button type="submit" name="submit_blog_add" class="button button-primary">{if $sEvent == 'add'}{$aLang.blog_create_submit}{else}{$aLang.blog_create_update}{/if}</button>
|
||||
{hook run='form_add_blog_end'}
|
||||
|
||||
|
||||
{* Скрытые поля *}
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
|
||||
{* Кнопки *}
|
||||
<button type="submit" name="submit_blog_add" class="button button-primary">
|
||||
{if $sEvent == 'add'}
|
||||
{$aLang.blog_create_submit}
|
||||
{else}
|
||||
{$aLang.topic_create_submit_update}
|
||||
{/if}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
|
||||
|
|
|
@ -1,84 +1,13 @@
|
|||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav_content='create'}
|
||||
{else}
|
||||
{include file='header.tpl'}
|
||||
<h2 class="page-header">{$aLang.topic_link_edit}</h2>
|
||||
{/if}
|
||||
{**
|
||||
* Создание топика-ссылки
|
||||
*
|
||||
* @styles css/topic.css
|
||||
*}
|
||||
|
||||
{extends file='add.topic.base.tpl'}
|
||||
|
||||
{include file='editor.tpl'}
|
||||
|
||||
{hook run='add_topic_link_begin'}
|
||||
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="form-topic-add" class="wrapper-content">
|
||||
{hook run='form_add_topic_link_begin'}
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
|
||||
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
|
||||
<select name="blog_id" id="blog_id" onChange="ls.blog.loadInfo(jQuery(this).val());" class="input-width-full">
|
||||
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||||
{foreach from=$aBlogsAllow item=oBlog}
|
||||
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note">{$aLang.topic_create_blog_notice}</small></p>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.blog.loadInfo($('#blog_id').val());
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<p><label for="topic_title">{$aLang.topic_create_title}:</label>
|
||||
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="input-text input-width-full" />
|
||||
<small class="note">{$aLang.topic_create_title_notice}</small></p>
|
||||
|
||||
|
||||
{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="input-text input-width-full" />
|
||||
<input type="text" id="topic_link_url" name="topic_link_url" value="{$_aRequest.topic_link_url}" class="width-full" />
|
||||
<small class="note">{$aLang.topic_link_create_url_notice}</small></p>
|
||||
|
||||
|
||||
<label for="topic_text">{$aLang.topic_link_create_text}:</label>
|
||||
<textarea name="topic_text" id="topic_text" rows="10" class="input-text input-width-full js-editor input-width-full">{$_aRequest.topic_text}</textarea>
|
||||
|
||||
|
||||
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label>
|
||||
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="input-text input-width-full autocomplete-tags-sep" /><br />
|
||||
<small class="note">{$aLang.topic_create_tags_notice}</small></p>
|
||||
|
||||
|
||||
<p><label for="topic_forbid_comment">
|
||||
<input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" class="input-checkbox" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||||
{$aLang.topic_create_forbid_comment}</label>
|
||||
<small class="note">{$aLang.topic_create_forbid_comment_notice}</small></p>
|
||||
|
||||
|
||||
{if $oUserCurrent->isAdministrator()}
|
||||
<p><label for="topic_publish_index">
|
||||
<input type="checkbox" id="topic_publish_index" name="topic_publish_index" class="input-checkbox" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||||
{$aLang.topic_create_publish_index}</label>
|
||||
<small class="note">{$aLang.topic_create_publish_index_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="topic_type" value="link" />
|
||||
|
||||
{hook run='form_add_topic_link_end'}
|
||||
|
||||
|
||||
<button type="submit" name="submit_topic_publish" id="submit_topic_publish" class="button button-primary fl-r">{if $sEvent == 'add' or ($oTopicEdit and $oTopicEdit->getPublish() == 0)}{$aLang.topic_create_submit_publish}{else}{$aLang.topic_create_submit_update}{/if}</button>
|
||||
<button type="submit" name="submit_preview" onclick="ls.topic.preview('form-topic-add','text_preview'); return false;" class="button">{$aLang.topic_create_submit_preview}</button>
|
||||
<button type="submit" name="submit_topic_save" id="submit_topic_save" class="button">{$aLang.topic_create_submit_save}</button>
|
||||
</form>
|
||||
|
||||
<div class="topic-preview" id="text_preview"></div>
|
||||
|
||||
{hook run='add_topic_link_end'}
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
||||
{/block}
|
|
@ -1,67 +1,28 @@
|
|||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav_content='create'}
|
||||
{else}
|
||||
{include file='header.tpl'}
|
||||
<h2 class="page-header">{$aLang.topic_photoset_edit}</h2>
|
||||
{/if}
|
||||
{**
|
||||
* Создание топика-фотосета
|
||||
*
|
||||
* @styles css/topic.css
|
||||
*}
|
||||
|
||||
{extends file='add.topic.base.tpl'}
|
||||
|
||||
|
||||
{include file='editor.tpl'}
|
||||
{include file='modals/modal.photoset_add_photo.tpl'}
|
||||
{block name='add_topic_header_after'}
|
||||
{include file='modals/modal.photoset_add_photo.tpl'}
|
||||
{/block}
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function($){
|
||||
if (jQuery.browser.flash) {
|
||||
ls.photoset.initSwfUpload({
|
||||
post_params: { 'topic_id': {json var=$_aRequest.topic_id} }
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
{hook run='add_topic_photoset_begin'}
|
||||
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="form-topic-add" class="wrapper-content">
|
||||
{hook run='form_add_topic_photoset_begin'}
|
||||
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
|
||||
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
|
||||
<select name="blog_id" id="blog_id" onChange="ls.blog.loadInfo(jQuery(this).val());" class="input-width-full">
|
||||
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||||
{foreach from=$aBlogsAllow item=oBlog}
|
||||
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note">{$aLang.topic_create_blog_notice}</small></p>
|
||||
|
||||
|
||||
{block name='add_topic_form_text_after'}
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.blog.loadInfo($('#blog_id').val());
|
||||
jQuery(function($){
|
||||
if (jQuery.browser.flash) {
|
||||
ls.photoset.initSwfUpload({
|
||||
post_params: { 'topic_id': {json var=$_aRequest.topic_id} }
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<p><label for="topic_title">{$aLang.topic_create_title}:</label>
|
||||
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="input-text input-width-full" /><br />
|
||||
<small class="note">{$aLang.topic_create_title_notice}</small></p>
|
||||
|
||||
|
||||
<p><label for="topic_text">{$aLang.topic_create_text}:</label>
|
||||
<textarea name="topic_text" class="js-editor input-width-full" id="topic_text" rows="20">{$_aRequest.topic_text}</textarea>
|
||||
{if !$oConfig->GetValue('view.wysiwyg')}
|
||||
{include file='tags_help.tpl' sTagsTargetId="topic_text"}
|
||||
{/if}
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<div class="photoset-upload">
|
||||
<header>
|
||||
<h2>{$aLang.topic_photoset_upload_title}</h2>
|
||||
|
@ -102,40 +63,4 @@
|
|||
<a href="#" data-type="modal-toggle" data-option-target="modal-photoset-upload" class="link-dotted" id="photoset-start-upload">{$aLang.topic_photoset_upload_choose}</a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
|
||||
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label>
|
||||
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="input-text input-width-full autocomplete-tags-sep" /><br />
|
||||
<small class="note">{$aLang.topic_create_tags_notice}</small></p>
|
||||
|
||||
|
||||
<p><label for="topic_forbid_comment">
|
||||
<input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" class="input-checkbox" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||||
{$aLang.topic_create_forbid_comment}</label>
|
||||
<small class="note">{$aLang.topic_create_forbid_comment_notice}</small></p>
|
||||
|
||||
|
||||
{if $oUserCurrent->isAdministrator()}
|
||||
<p><label for="topic_publish_index">
|
||||
<input type="checkbox" id="topic_publish_index" name="topic_publish_index" class="input-checkbox" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||||
{$aLang.topic_create_publish_index}</label>
|
||||
<small class="note">{$aLang.topic_create_publish_index_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="topic_type" value="photoset" />
|
||||
|
||||
{hook run='form_add_topic_photoset_end'}
|
||||
|
||||
|
||||
<button type="submit" name="submit_topic_publish" id="submit_topic_publish" class="button button-primary fl-r">{if $sEvent == 'add' or ($oTopicEdit and $oTopicEdit->getPublish() == 0)}{$aLang.topic_create_submit_publish}{else}{$aLang.topic_create_submit_update}{/if}</button>
|
||||
<button type="submit" name="submit_preview" onclick="ls.topic.preview('form-topic-add','text_preview'); return false;" class="button">{$aLang.topic_create_submit_preview}</button>
|
||||
<button type="submit" name="submit_topic_save" id="submit_topic_save" class="button">{$aLang.topic_create_submit_save}</button>
|
||||
</form>
|
||||
|
||||
<div class="topic-preview" id="text_preview"></div>
|
||||
|
||||
{hook run='add_topic_photoset_end'}
|
||||
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
||||
{/block}
|
|
@ -1,100 +1,30 @@
|
|||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav_content='create'}
|
||||
{else}
|
||||
{include file='header.tpl'}
|
||||
<h2 class="page-header">{$aLang.topic_question_edit}</h2>
|
||||
{/if}
|
||||
{**
|
||||
* Создание топика-опроса
|
||||
*
|
||||
* @styles css/topic.css
|
||||
*}
|
||||
|
||||
{extends file='add.topic.base.tpl'}
|
||||
|
||||
{include file='editor.tpl'}
|
||||
|
||||
{hook run='add_topic_question_begin'}
|
||||
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="form-topic-add" class="wrapper-content">
|
||||
{hook run='form_add_topic_question_begin'}
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
|
||||
<select name="blog_id" id="blog_id" onChange="ls.blog.loadInfo(jQuery(this).val());" class="input-width-full">
|
||||
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||||
{foreach from=$aBlogsAllow item=oBlog}
|
||||
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note">{$aLang.topic_create_blog_notice}</small></p>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.blog.loadInfo($('#blog_id').val());
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<p><label for="topic_title">{$aLang.topic_question_create_title}:</label>
|
||||
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="input-text input-width-full" {if $bEditDisabled}readonly="readonly"{/if} /><br />
|
||||
<small class="note">{$aLang.topic_question_create_title_notice}</small></p>
|
||||
|
||||
|
||||
<div class="poll-create">
|
||||
{block name='add_topic_form_text_before'}
|
||||
<div class="poll-add">
|
||||
<label>{$aLang.topic_question_create_answers}:</label>
|
||||
<ul class="question-list" id="question_list">
|
||||
{if count($_aRequest.answer)>=2}
|
||||
<ul class="poll-add-list" id="question_list">
|
||||
{if count($_aRequest.answer) >= 2}
|
||||
{foreach from=$_aRequest.answer item=sAnswer key=i}
|
||||
<li>
|
||||
<input type="text" value="{$sAnswer}" name="answer[]" class="input-text input-width-300" {if $bEditDisabled}disabled{/if} />
|
||||
<input type="text" value="{$sAnswer}" name="answer[]" class="width-300" {if $bEditDisabled}disabled{/if} />
|
||||
{if !$bEditDisabled and $i>1} <a href="#" class="icon-synio-remove" onClick="return ls.poll.removeAnswer(this);"></a>{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
{else}
|
||||
<li><input type="text" value="" name="answer[]" class="input-text input-width-300" {if $bEditDisabled}disabled{/if} /></li>
|
||||
<li><input type="text" value="" name="answer[]" class="input-text input-width-300" {if $bEditDisabled}disabled{/if} /></li>
|
||||
<li><input type="text" value="" name="answer[]" class="width-300" {if $bEditDisabled}disabled{/if} /></li>
|
||||
<li><input type="text" value="" name="answer[]" class="width-300" {if $bEditDisabled}disabled{/if} /></li>
|
||||
{/if}
|
||||
</ul>
|
||||
|
||||
{if !$bEditDisabled}
|
||||
<a href="#" onClick="ls.poll.addAnswer(); return false;" class="link-dotted">{$aLang.topic_question_create_answers_add}</a>
|
||||
{if ! $bEditDisabled}
|
||||
<button type="button" onclick="ls.poll.addAnswer(); return false;" class="button">{$aLang.topic_question_create_answers_add}</button>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
<label for="topic_text">{$aLang.topic_question_create_text}:</label>
|
||||
<textarea name="topic_text" id="topic_text" rows="10" class="input-width-full js-editor input-width-full">{$_aRequest.topic_text}</textarea>
|
||||
{if !$oConfig->GetValue('view.wysiwyg')}
|
||||
{include file='tags_help.tpl' sTagsTargetId="topic_text"}
|
||||
{/if}
|
||||
|
||||
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label>
|
||||
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="input-text input-width-full autocomplete-tags-sep" />
|
||||
<small class="note">{$aLang.topic_create_tags_notice}</small></p>
|
||||
|
||||
|
||||
<p><label for="topic_forbid_comment">
|
||||
<input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" class="input-checkbox" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||||
{$aLang.topic_create_forbid_comment}</label>
|
||||
<small class="note">{$aLang.topic_create_forbid_comment_notice}</small></p>
|
||||
|
||||
|
||||
{if $oUserCurrent->isAdministrator()}
|
||||
<p><label for="topic_publish_index">
|
||||
<input type="checkbox" id="topic_publish_index" name="topic_publish_index" class="input-checkbox" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||||
{$aLang.topic_create_publish_index}</label>
|
||||
<small class="note">{$aLang.topic_create_publish_index_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="topic_type" value="question" />
|
||||
|
||||
{hook run='form_add_topic_question_end'}
|
||||
|
||||
<button type="submit" name="submit_topic_publish" id="submit_topic_publish" class="button button-primary fl-r">{if $sEvent == 'add' or ($oTopicEdit and $oTopicEdit->getPublish() == 0)}{$aLang.topic_create_submit_publish}{else}{$aLang.topic_create_submit_update}{/if}</button>
|
||||
<button type="submit" name="submit_preview" onclick="ls.topic.preview('form-topic-add','text_preview'); return false;" class="button">{$aLang.topic_create_submit_preview}</button>
|
||||
<button type="submit" name="submit_topic_save" id="submit_topic_save" class="button">{$aLang.topic_create_submit_save}</button>
|
||||
</form>
|
||||
|
||||
<div class="topic-preview" id="text_preview"></div>
|
||||
|
||||
{hook run='add_topic_question_end'}
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
||||
{/block}
|
|
@ -12,7 +12,7 @@
|
|||
<div class="content" id="text_preview"></div>
|
||||
</div>
|
||||
|
||||
{include file='editor.tpl' sEditorType='comment'}
|
||||
{include file='editor_init.tpl' sEditorType='comment'}
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data">
|
||||
{hook run='form_add_talk_begin'}
|
||||
|
|
|
@ -1,84 +1,7 @@
|
|||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav_content='create'}
|
||||
{else}
|
||||
{include file='header.tpl'}
|
||||
<h2 class="page-header">{$aLang.topic_topic_edit}</h2>
|
||||
{/if}
|
||||
{**
|
||||
* Создание обычного текстового топика
|
||||
*
|
||||
* @styles css/topic.css
|
||||
*}
|
||||
|
||||
|
||||
{include file='editor.tpl'}
|
||||
|
||||
|
||||
{hook run='add_topic_topic_begin'}
|
||||
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="form-topic-add" class="wrapper-content">
|
||||
{hook run='form_add_topic_topic_begin'}
|
||||
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
|
||||
|
||||
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
|
||||
<select name="blog_id" id="blog_id" onChange="ls.blog.loadInfo(jQuery(this).val());" class="input-width-full">
|
||||
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||||
{foreach from=$aBlogsAllow item=oBlog}
|
||||
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note">{$aLang.topic_create_blog_notice}</small></p>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
ls.blog.loadInfo($('#blog_id').val());
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<p><label for="topic_title">{$aLang.topic_create_title}:</label>
|
||||
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="input-text input-width-full" />
|
||||
<small class="note">{$aLang.topic_create_title_notice}</small></p>
|
||||
|
||||
|
||||
<label for="topic_text">{$aLang.topic_create_text}:</label>
|
||||
<textarea name="topic_text" id="topic_text" class="js-editor input-width-full" rows="20">{$_aRequest.topic_text}</textarea>
|
||||
|
||||
{if !$oConfig->GetValue('view.wysiwyg')}
|
||||
{include file='tags_help.tpl' sTagsTargetId="topic_text"}
|
||||
{/if}
|
||||
|
||||
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label>
|
||||
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="input-text input-width-full autocomplete-tags-sep" />
|
||||
<small class="note">{$aLang.topic_create_tags_notice}</small></p>
|
||||
|
||||
|
||||
<p><label><input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" class="input-checkbox" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||||
{$aLang.topic_create_forbid_comment}</label>
|
||||
<small class="note">{$aLang.topic_create_forbid_comment_notice}</small></p>
|
||||
|
||||
|
||||
{if $oUserCurrent->isAdministrator()}
|
||||
<p><label><input type="checkbox" id="topic_publish_index" name="topic_publish_index" class="input-checkbox" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||||
{$aLang.topic_create_publish_index}</label>
|
||||
<small class="note">{$aLang.topic_create_publish_index_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="topic_type" value="topic" />
|
||||
|
||||
{hook run='form_add_topic_topic_end'}
|
||||
|
||||
|
||||
<button type="submit" name="submit_topic_publish" id="submit_topic_publish" class="button button-primary fl-r">{if $sEvent == 'add' or ($oTopicEdit and $oTopicEdit->getPublish() == 0)}{$aLang.topic_create_submit_publish}{else}{$aLang.topic_create_submit_update}{/if}</button>
|
||||
<button type="submit" name="submit_preview" onclick="ls.topic.preview('form-topic-add','text_preview'); return false;" class="button">{$aLang.topic_create_submit_preview}</button>
|
||||
<button type="submit" name="submit_topic_save" id="submit_topic_save" class="button">{$aLang.topic_create_submit_save}</button>
|
||||
</form>
|
||||
|
||||
|
||||
<div class="topic-preview" style="display: none;" id="text_preview"></div>
|
||||
|
||||
|
||||
{hook run='add_topic_topic_end'}
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
||||
{extends file='add.topic.base.tpl'}
|
111
templates/skin/synio/add.topic.base.tpl
Normal file
111
templates/skin/synio/add.topic.base.tpl
Normal file
|
@ -0,0 +1,111 @@
|
|||
{**
|
||||
* Базовая форма для создания топика
|
||||
*
|
||||
* @styles css/topic.css
|
||||
*}
|
||||
|
||||
{if $sEvent=='add'}
|
||||
{include file='header.tpl' nav_content='create'}
|
||||
{else}
|
||||
{include file='header.tpl'}
|
||||
|
||||
<h2 class="page-header">
|
||||
{block name='add_topic_title'}
|
||||
{$aLang.topic_topic_edit}
|
||||
{/block}
|
||||
</h2>
|
||||
{/if}
|
||||
|
||||
{* Подключение редактора *}
|
||||
{include file='editor_init.tpl'}
|
||||
|
||||
|
||||
{block name='add_topic_header_after'}{/block}
|
||||
|
||||
|
||||
<form action="" method="POST" enctype="multipart/form-data" id="form-topic-add">
|
||||
{block name='add_topic_form_begin'}{/block}
|
||||
|
||||
|
||||
{* Выбор блога *}
|
||||
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
|
||||
<select name="blog_id" id="blog_id" onChange="ls.blog.loadInfo(jQuery(this).val());" class="width-full">
|
||||
<option value="0">{$aLang.topic_create_blog_personal}</option>
|
||||
{foreach from=$aBlogsAllow item=oBlog}
|
||||
<option value="{$oBlog->getId()}" {if $_aRequest.blog_id==$oBlog->getId()}selected{/if}>{$oBlog->getTitle()|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="note">{$aLang.topic_create_blog_notice}</small></p>
|
||||
|
||||
|
||||
{* Заголовок топика *}
|
||||
<p><label for="topic_title">{$aLang.topic_create_title}:</label>
|
||||
<input type="text" id="topic_title" name="topic_title" value="{$_aRequest.topic_title}" class="width-full" />
|
||||
<small class="note">{$aLang.topic_create_title_notice}</small></p>
|
||||
|
||||
|
||||
{block name='add_topic_form_text_before'}{/block}
|
||||
|
||||
|
||||
{* Текст топика *}
|
||||
<label for="topic_text">{$aLang.topic_create_text}:</label>
|
||||
<textarea name="topic_text" id="topic_text" rows="20" class="js-editor width-full">{$_aRequest.topic_text}</textarea>
|
||||
|
||||
{* Если визуальный редактор отключен выводим справку по разметке для обычного редактора *}
|
||||
{if ! $oConfig->GetValue('view.wysiwyg')}
|
||||
{include file='editor_help.tpl' sTagsTargetId='topic_text'}
|
||||
{/if}
|
||||
|
||||
|
||||
{block name='add_topic_form_text_after'}{/block}
|
||||
|
||||
|
||||
{* Теги *}
|
||||
<p><label for="topic_tags">{$aLang.topic_create_tags}:</label>
|
||||
<input type="text" id="topic_tags" name="topic_tags" value="{$_aRequest.topic_tags}" class="width-full autocomplete-tags-sep" />
|
||||
<small class="note">{$aLang.topic_create_tags_notice}</small></p>
|
||||
|
||||
|
||||
{* Запретить комментарии *}
|
||||
<p><label><input type="checkbox" id="topic_forbid_comment" name="topic_forbid_comment" value="1" {if $_aRequest.topic_forbid_comment==1}checked{/if} />
|
||||
{$aLang.topic_create_forbid_comment}</label>
|
||||
<small class="note">{$aLang.topic_create_forbid_comment_notice}</small></p>
|
||||
|
||||
|
||||
{* Принудительный вывод топиков на главную (доступно только админам) *}
|
||||
{if $oUserCurrent->isAdministrator()}
|
||||
<p><label><input type="checkbox" id="topic_publish_index" name="topic_publish_index" value="1" {if $_aRequest.topic_publish_index==1}checked{/if} />
|
||||
{$aLang.topic_create_publish_index}</label>
|
||||
<small class="note">{$aLang.topic_create_publish_index_notice}</small></p>
|
||||
{/if}
|
||||
|
||||
|
||||
{block name='add_topic_form_end'}{/block}
|
||||
|
||||
|
||||
{* Скрытые поля *}
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
<input type="hidden" name="topic_type" value="topic" />
|
||||
|
||||
|
||||
{* Кнопки *}
|
||||
<button type="submit" name="submit_topic_publish" id="submit_topic_publish" class="button button-primary fl-r">
|
||||
{if $sEvent == 'add' or ($oTopicEdit and $oTopicEdit->getPublish() == 0)}
|
||||
{$aLang.topic_create_submit_publish}
|
||||
{else}
|
||||
{$aLang.topic_create_submit_update}
|
||||
{/if}
|
||||
</button>
|
||||
<button type="submit" name="submit_preview" onclick="ls.topic.preview('form-topic-add','text_preview'); return false;" class="button">{$aLang.topic_create_submit_preview}</button>
|
||||
<button type="submit" name="submit_topic_save" id="submit_topic_save" class="button">{$aLang.topic_create_submit_save}</button>
|
||||
</form>
|
||||
|
||||
|
||||
{* Блок с превью текста *}
|
||||
<div class="topic-preview" style="display: none;" id="text_preview"></div>
|
||||
|
||||
|
||||
{block name='add_topic_end'}{/block}
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
|
@ -7,4 +7,13 @@
|
|||
{extends file='blocks/block.aside.base.tpl'}
|
||||
|
||||
{block name='block_title'}{$aLang.block_blog_info}{/block}
|
||||
{block name='block_content'}<p id="block_blog_info" class="text"></p>{/block}
|
||||
{block name='block_content'}
|
||||
{* Загрузка описания блога *}
|
||||
<script>
|
||||
jQuery(document).ready(function($){
|
||||
ls.blog.loadInfo($('#blog_id').val());
|
||||
});
|
||||
</script>
|
||||
|
||||
<p id="block_blog_info" class="text"></p>
|
||||
{/block}
|
|
@ -56,7 +56,7 @@
|
|||
{else}
|
||||
{if $oUserCurrent}
|
||||
|
||||
{include file='editor.tpl' sEditorType='comment'}
|
||||
{include file='editor_init.tpl' sEditorType='comment'}
|
||||
|
||||
<h4 class="reply-header" id="comment_id_0">
|
||||
<a href="#" class="link-dotted" onclick="ls.comments.toggleCommentForm(0); return false;">{$sNoticeCommentAdd}</a>
|
||||
|
|
|
@ -197,33 +197,9 @@ h2.header-table span { color: #949aa1; }
|
|||
|
||||
/* Misc
|
||||
---------------------------------------------------- */
|
||||
.avatar-edit { margin-bottom: 15px; }
|
||||
.avatar-edit img { vertical-align: bottom; }
|
||||
.avatar-edit label { margin-top: 10px; }
|
||||
|
||||
.drafts { float: right; font-size: 11px; color: #275ec2; }
|
||||
|
||||
.content-error { padding: 110px 160px; }
|
||||
.content-error h2.page-header { font-weight: bold; font-size: 30px; margin-bottom: 35px; }
|
||||
.content-error a { color: #727a90; }
|
||||
.content-error a:hover { color: #f00; }
|
||||
|
||||
.help {
|
||||
display: none;
|
||||
position: relative;
|
||||
padding: 10px 7px 13px;
|
||||
background: #fefef1;
|
||||
color: #363636;
|
||||
margin-top: 13px;
|
||||
font-size: 11px;
|
||||
border-radius: 3px;
|
||||
-webkit-box-shadow: 0 0 5px #e8e8c0 inset; box-shadow: 0 0 5px #e8e8c0 inset;
|
||||
}
|
||||
.help:before { display: block; content: ""; position: absolute; top: -12px; left: 15px; width: 0; height: 0; border-width: 6px; border-color: transparent transparent #F2F2DD transparent; border-style: solid; }
|
||||
.help .help-col { float: left; width: 230px; padding: 0 10px; }
|
||||
.help .help-col.help-wide { float: none; width: 96%; }
|
||||
.help .help-item { margin-bottom: 20px; }
|
||||
.help .help-item:last-child { margin-bottom: 0; }
|
||||
.help .help-item h4 { font-family: Verdana, sans-serif; font-size: 11px; color: #727a90; font-weight: bold; }
|
||||
.help .help-item h4 a { color: #727a90; border-bottom: 1px dotted #727a90; }
|
||||
.link-dotted.help-link { font-size: 11px; color: #000; border-color: #000; }
|
||||
.content-error a:hover { color: #f00; }
|
|
@ -1,6 +1,6 @@
|
|||
/* -------------------------------------------------------------------
|
||||
ФОРМЫ
|
||||
------------------------------------------------------------------- */
|
||||
/**
|
||||
* Формы
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
|
@ -22,15 +22,6 @@ textarea {
|
|||
.input-text:focus { border-color: #57BCEB; -webkit-box-shadow: 0 2px 4px rgba(0,0,0,.07) inset, 0 0 3px #00A8FF; box-shadow: 0 2px 4px rgba(0,0,0,.07) inset, 0 0 3px #00A8FF; outline: none; }
|
||||
.input-checkbox { position: relative; top: 1px; margin: 0 2px 0 1px; }
|
||||
|
||||
.input-width-full { width: 100%; }
|
||||
.input-width-50 { width: 50px; }
|
||||
.input-width-100 { width: 100px; }
|
||||
.input-width-150 { width: 150px; }
|
||||
.input-width-200 { width: 200px; }
|
||||
.input-width-250 { width: 250px; }
|
||||
.input-width-300 { width: 300px; }
|
||||
.input-width-400 { width: 400px; }
|
||||
.input-width-500 { width: 500px; }
|
||||
|
||||
textarea { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
|
||||
|
||||
|
@ -52,12 +43,6 @@ form .icon-question-sign { cursor: help; }
|
|||
.counter-wrapper .counter { color: #777; position: absolute; top: 0; right: 0; }
|
||||
.counter-wrapper label { margin-right: 50px; }
|
||||
|
||||
.poll-create { padding: 15px 20px; margin-bottom: 20px; background: #F1F7FD; }
|
||||
|
||||
.question-list { margin-bottom: 15px; }
|
||||
.question-list li { margin-bottom: 5px; }
|
||||
.question-list li .input-text { margin-right: 5px; }
|
||||
|
||||
dl.form-item { overflow: hidden; zoom: 1; margin-bottom: 20px; }
|
||||
dl.form-item dt { float: left; width: 125px; padding-top: 4px; padding-right: 15px; overflow: hidden; }
|
||||
dl.form-item dd { float: left; width: 250px; }
|
||||
|
@ -69,17 +54,6 @@ dl.form-item dd { float: left; width: 250px; }
|
|||
.form-profile .avatar-change a { color: #727a90; border-color: #727a90; }
|
||||
|
||||
|
||||
/* Placeholder */
|
||||
:-moz-placeholder { color: #aaa; }
|
||||
::-webkit-input-placeholder { color: #aaa; }
|
||||
|
||||
/* IE placeholder */
|
||||
.placeholder { color: #aaa; }
|
||||
|
||||
|
||||
.mceEditor { display: block; margin-bottom: 20px; }
|
||||
|
||||
|
||||
/* Registration form
|
||||
---------------------------------------------------- */
|
||||
.registration-form .form-item:last-child { margin-bottom: 0; }
|
||||
|
@ -107,3 +81,68 @@ dl.form-item dd { float: left; width: 250px; }
|
|||
}
|
||||
.validate-error-show:before { display: block; content: ""; position: absolute; top: -12px; left: 15px; width: 0; height: 0; border-width: 6px; border-color: transparent transparent #F2F2DD transparent; border-style: solid; }
|
||||
|
||||
|
||||
/**
|
||||
* Блок редактирования аватара
|
||||
*
|
||||
* @file actions/ActionSettings/profile.tpl
|
||||
*/
|
||||
.avatar-edit { margin-bottom: 15px; }
|
||||
.avatar-edit img { vertical-align: bottom; }
|
||||
.avatar-edit label { margin-top: 10px; }
|
||||
|
||||
|
||||
/**
|
||||
* Создание топика-опроса
|
||||
*
|
||||
* @file actions/ActionQuestion/add.tpl
|
||||
*/
|
||||
.poll-add { padding: 15px 20px; margin-bottom: 20px; background: #F1F7FD; }
|
||||
|
||||
.poll-add-list { margin-bottom: 15px; }
|
||||
.poll-add-list li { margin-bottom: 5px; }
|
||||
.poll-add-list li input[type="text"] { margin-right: 5px; }
|
||||
|
||||
|
||||
/**
|
||||
* Справка по разметке редактора
|
||||
*
|
||||
* @file editor_help.tpl
|
||||
*/
|
||||
.editor-help header { margin-bottom: 20px; }
|
||||
.editor-help header a { font-size: 11px; color: #000; border-color: #000; }
|
||||
|
||||
.editor-help-body {
|
||||
display: none;
|
||||
position: relative;
|
||||
padding: 15px 20px;
|
||||
margin-bottom: 20px;
|
||||
background: #fefef1;
|
||||
color: #363636;
|
||||
margin-top: 13px;
|
||||
font-size: 11px;
|
||||
border-radius: 3px;
|
||||
-webkit-box-shadow: 0 0 5px #e8e8c0 inset;
|
||||
box-shadow: 0 0 5px #e8e8c0 inset;
|
||||
}
|
||||
.editor-help-body:before {
|
||||
display: block;
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -12px;
|
||||
left: 15px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-width: 6px;
|
||||
border-color: transparent transparent #F2F2DD transparent;
|
||||
border-style: solid;
|
||||
}
|
||||
.editor-help-body h3 { font-size: 18px; font-weight: bold; margin-bottom: 10px; }
|
||||
|
||||
.editor-help-col { float: left; width: 47%; margin-left: 6%; }
|
||||
.editor-help-col:first-child { margin-left: 0; }
|
||||
|
||||
.editor-help-item { margin-bottom: 20px; }
|
||||
.editor-help-item:last-child { margin-bottom: 0; }
|
||||
.editor-help-item h4 { font-family: Verdana, sans-serif; font-size: 11px; color: #727a90; font-weight: bold; }
|
||||
.editor-help-item h4 a { color: #727a90; border-bottom: 1px dotted #727a90; }
|
116
templates/skin/synio/editor_help.tpl
Normal file
116
templates/skin/synio/editor_help.tpl
Normal file
|
@ -0,0 +1,116 @@
|
|||
{**
|
||||
* Справка по разметке редактора
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
ls.registry.set('tags-help-target-id','{$sTagsTargetId}');
|
||||
</script>
|
||||
|
||||
|
||||
<div class="editor-help">
|
||||
<header class="editor-help-header clearfix">
|
||||
<a href="#" class="link-dotted help-link" onclick="jQuery('#js-editor-help').toggle(); return false;">{$aLang.tags_help_link_show}</a>
|
||||
</header>
|
||||
|
||||
<div class="editor-help-body" id="js-editor-help">
|
||||
<h3>{$aLang.tags_help_special}</h3>
|
||||
|
||||
<ul class="mb-30">
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><cut></a></h4>
|
||||
{$aLang.tags_help_special_cut}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><cut name="{$aLang.tags_help_special_cut_name_example_name}"></a></h4>
|
||||
{$aLang.tags_help_special_cut_name}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link" data-insert="<video></video>"><video>http://...</video></a></h4>
|
||||
{$aLang.tags_help_special_video}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link" data-insert="<ls user="" />"><ls user="{$aLang.tags_help_special_ls_user_example_user}" /></a></h4>
|
||||
{$aLang.tags_help_special_ls_user}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3>{$aLang.tags_help_standart}</h3>
|
||||
|
||||
<div class="clearfix">
|
||||
<ul class="editor-help-col">
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><h4></h4></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><h5></h5></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><h6></h6></a></h4>
|
||||
{$aLang.tags_help_standart_h}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><img src="" /></a></h4>
|
||||
{$aLang.tags_help_standart_img}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link" data-insert="<a href=""></a>"><a href="http://...">{$aLang.tags_help_standart_a_example_href}</a></a></h4>
|
||||
{$aLang.tags_help_standart_a}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><b></b></a></h4>
|
||||
{$aLang.tags_help_standart_b}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><i></i></a></h4>
|
||||
{$aLang.tags_help_standart_i}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><s></s></a></h4>
|
||||
{$aLang.tags_help_standart_s}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><u></u></a></h4>
|
||||
{$aLang.tags_help_standart_u}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="editor-help-col">
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><hr /></a></h4>
|
||||
{$aLang.tags_help_standart_hr}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><blockquote></blockquote></a></h4>
|
||||
{$aLang.tags_help_standart_blockquote}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><table></table></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><th></th></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><td></td></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><tr></tr></a></h4>
|
||||
{$aLang.tags_help_standart_table}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><ul></ul></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><li></li></a></h4>
|
||||
{$aLang.tags_help_standart_ul}
|
||||
</li>
|
||||
|
||||
<li class="editor-help-item">
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><ol></ol></a></h4>
|
||||
<h4><a href="#" class="link-dotted js-tags-help-link"><li></li></a></h4>
|
||||
{$aLang.tags_help_standart_ol}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -31,6 +31,8 @@
|
|||
{$sSettings = 'getTinymce()'}
|
||||
{/if}
|
||||
|
||||
{hook run='editor_init_wysiwyg_settings'}
|
||||
|
||||
<script src="{cfg name='path.static.framework'}/js/vendor/tinymce/tiny_mce.js"></script>
|
||||
|
||||
<script>
|
||||
|
@ -54,6 +56,8 @@
|
|||
{$sSettings = 'getMarkitup()'}
|
||||
{/if}
|
||||
|
||||
{hook run='editor_init_markup_settings'}
|
||||
|
||||
<script>
|
||||
jQuery(function($) {
|
||||
ls.lang.load({lang_load name="panel_b,panel_i,panel_u,panel_s,panel_url,panel_url_promt,panel_code,panel_video,panel_image,panel_cut,panel_quote,panel_list,panel_list_ul,panel_list_ol,panel_title,panel_clear_tags,panel_video_promt,panel_list_li,panel_image_promt,panel_user,panel_user_promt"});
|
|
@ -45,7 +45,7 @@ $config['head']['default']['css'] = array_merge(Config::Get('head.default.css'),
|
|||
"___path.static.framework___/js/vendor/markitup/sets/synio/style.css",
|
||||
"___path.static.framework___/js/vendor/jcrop/jquery.Jcrop.css",
|
||||
"___path.static.framework___/js/vendor/prettify/prettify.css",
|
||||
"___path.static.framework___/js/vendor/prettyPhoto/css/prettyPhoto.css",
|
||||
"___path.static.framework___/js/vendor/prettyphoto/css/prettyphoto.css",
|
||||
"___path.static.skin___/css/grid.css",
|
||||
"___path.static.skin___/css/common.css",
|
||||
"___path.static.skin___/css/text.css",
|
||||
|
|
|
@ -1,91 +0,0 @@
|
|||
<script type="text/javascript">
|
||||
ls.registry.set('tags-help-target-id','{$sTagsTargetId}');
|
||||
</script>
|
||||
|
||||
<div class="mb-20">
|
||||
<a href="#" class="link-dotted help-link" onclick="jQuery('#tags-help').toggle(); return false;">{$aLang.tags_help_link_show}</a>
|
||||
|
||||
<dl class="help clearfix" id="tags-help">
|
||||
<dt class="help-col help-wide">
|
||||
<h3>{$aLang.tags_help_special}</h3>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><cut></a></h4>
|
||||
{$aLang.tags_help_special_cut}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><cut name="{$aLang.tags_help_special_cut_name_example_name}"></a></h4>
|
||||
{$aLang.tags_help_special_cut_name}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link" data-insert="<video></video>"><video>http://...</video></a></h4>
|
||||
{$aLang.tags_help_special_video}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link" data-insert="<ls user="" />"><ls user="{$aLang.tags_help_special_ls_user_example_user}" /></a></h4>
|
||||
{$aLang.tags_help_special_ls_user}
|
||||
</div>
|
||||
</dt>
|
||||
<dt class="help-col help-wide" style="margin-top: 20px;">
|
||||
<h3>{$aLang.tags_help_standart}</h3>
|
||||
</dt>
|
||||
<dt class="help-col help-left">
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><h4></h4></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><h5></h5></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><h6></h6></a></h4>
|
||||
{$aLang.tags_help_standart_h}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><img src="" /></a></h4>
|
||||
{$aLang.tags_help_standart_img}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link" data-insert="<a href=""></a>"><a href="http://...">{$aLang.tags_help_standart_a_example_href}</a></a></h4>
|
||||
{$aLang.tags_help_standart_a}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><b></b></a></h4>
|
||||
{$aLang.tags_help_standart_b}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><i></i></a></h4>
|
||||
{$aLang.tags_help_standart_i}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><s></s></a></h4>
|
||||
{$aLang.tags_help_standart_s}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><u></u></a></h4>
|
||||
{$aLang.tags_help_standart_u}
|
||||
</div>
|
||||
</dt>
|
||||
<dd class="help-col help-right">
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><hr /></a></h4>
|
||||
{$aLang.tags_help_standart_hr}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><blockquote></blockquote></a></h4>
|
||||
{$aLang.tags_help_standart_blockquote}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><table></table></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><th></th></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><td></td></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><tr></tr></a></h4>
|
||||
{$aLang.tags_help_standart_table}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><ul></ul></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><li></li></a></h4>
|
||||
{$aLang.tags_help_standart_ul}
|
||||
</div>
|
||||
<div class="help-item">
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><ol></ol></a></h4>
|
||||
<h4><a href="#" class="link-dashed js-tags-help-link"><li></li></a></h4>
|
||||
{$aLang.tags_help_standart_ol}
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
Loading…
Reference in a new issue