mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
Support hash and space as valid tag separators
https://xetown.com/questions/1728094 - 해시(#) 문자와 공백도 태그 구분자로 사용할 수 있도록 지원 - 해시는 기본 지원하며, 공백은 기본 OFF - tag 모듈 설정에서 커스터마이징 가능 - document 모듈 이외의 자료에서 태그 기능 구현한 경우 적용되지 않을 수 있음
This commit is contained in:
parent
e821955129
commit
38900d4b2d
8 changed files with 242 additions and 47 deletions
50
modules/tag/tpl/config.html
Normal file
50
modules/tag/tpl/config.html
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<config autoescape="on" />
|
||||
|
||||
<div class="x_page-header">
|
||||
<h1>{$lang->tag}</h1>
|
||||
</div>
|
||||
|
||||
<ul class="x_nav x_nav-tabs">
|
||||
<li class="x_active"|cond="$act === 'dispTagAdminConfig'">
|
||||
<a href="{getUrl('', 'module', 'admin', 'act', 'dispTagAdminConfig')}">{$lang->tag_default_config}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<form class="x_form-horizontal" action="./" method="post" enctype="multipart/form-data" id="eventpayment">
|
||||
<input type="hidden" name="module" value="tag" />
|
||||
<input type="hidden" name="act" value="procTagAdminInsertConfig" />
|
||||
<input type="hidden" name="success_return_url" value="{getUrl('', 'module', 'admin', 'act', 'dispTagAdminConfig')}" />
|
||||
<input type="hidden" name="xe_validator_id" value="modules/tag/tpl/config/1" />
|
||||
|
||||
<div class="message {$XE_VALIDATOR_MESSAGE_TYPE ?? ''}" cond="!empty($XE_VALIDATOR_MESSAGE) && $XE_VALIDATOR_ID == 'modules/tag/tpl/config/1'">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
|
||||
<section class="section">
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->tag_separators}</label>
|
||||
<div class="x_controls">
|
||||
<label class="x_inline" for="separators1">
|
||||
<input type="checkbox" name="separators[]" id="separators1" value="comma" checked="checked"|cond="empty($tag_config->separators) || in_array('comma', $tag_config->separators)" />
|
||||
{$lang->tag_separator_comma}
|
||||
</label>
|
||||
<label class="x_inline" for="separators2">
|
||||
<input type="checkbox" name="separators[]" id="separators2" value="hash" checked="checked"|cond="empty($tag_config->separators) || in_array('hash', $tag_config->separators)" />
|
||||
{$lang->tag_separator_hash}
|
||||
</label>
|
||||
<label class="x_inline" for="separators3">
|
||||
<input type="checkbox" name="separators[]" id="separators3" value="space" checked="checked"|cond="!empty($tag_config->separators) && in_array('space', $tag_config->separators)" />
|
||||
{$lang->tag_separator_space}
|
||||
</label>
|
||||
<p class="x_help-block">
|
||||
{$lang->tag_separator_help}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="btnArea x_clearfix">
|
||||
<button type="submit" class="x_btn x_btn-primary x_pull-right">{$lang->cmd_registration}</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue