Support mobile header and footer text for boards

This commit is contained in:
Kijin Sung 2016-04-24 22:16:51 +09:00
parent 2d833e5668
commit 0326971615
7 changed files with 46 additions and 11 deletions

View file

@ -1,2 +1,6 @@
{$module_info->footer_text}
<!--@if($m && $module_info->mobile_footer_text)-->
{$module_info->mobile_footer_text}
<!--@else-->
{$module_info->footer_text}
<!--@end-->
</div>

View file

@ -19,7 +19,11 @@
<!--@end-->
<!--@end-->
<div class="board">
{$module_info->header_text}
<!--@if($m && $module_info->mobile_header_text)-->
{$module_info->mobile_header_text}
<!--@else-->
{$module_info->header_text}
<!--@end-->
<div class="board_header" cond="$module_info->title_image || $grant->manager">
<h2 cond="$module_info->title_image"><a href="{getUrl('','mid',$mid)}"><img src="{$module_info->title_image}" alt="{$module_info->title_alt}" /></a></h2>
<a cond="$grant->manager" class="setup" href="{getUrl('act','dispBoardAdminBoardInfo')}" title="{$lang->cmd_setup}">{$lang->cmd_setup}</a>

View file

@ -1,2 +1,6 @@
{$module_info->footer_text}
<!--@if($m && $module_info->mobile_footer_text)-->
{$module_info->mobile_footer_text}
<!--@else-->
{$module_info->footer_text}
<!--@end-->
</div>

View file

@ -21,5 +21,8 @@
<!--@end-->
<!--@end-->
<div class="board">
{$module_info->header_text}
<!--@if($m && $module_info->mobile_header_text)-->
{$module_info->mobile_header_text}
<!--@else-->
{$module_info->header_text}
<!--@end-->

View file

@ -72,19 +72,31 @@
<div class="x_control-group">
<label class="x_control-label" for="lang_header_text">{$lang->header_text}</label>
<div class="x_controls">
<textarea name="header_text" id="header_text" class="lang_code" rows="8" cols="42" placeholder="{$lang->about_header_text}"><!--@if(strpos($module_info->header_text, '$user_lang->') === false)-->{$module_info->header_text}<!--@else-->{htmlspecialchars($module_info->header_text)}<!--@end--></textarea>
<a href="#header_text_help" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
<p id="header_text_help" class="x_help-block" hidden>{$lang->about_header_text}</p>
<textarea name="header_text" id="header_text" class="lang_code" rows="8" cols="42"><!--@if(strpos($module_info->header_text, '$user_lang->') === false)-->{$module_info->header_text}<!--@else-->{htmlspecialchars($module_info->header_text)}<!--@end--></textarea>
<p id="header_text_help" class="x_help-block">{$lang->about_header_text}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="lang_footer_text">{$lang->footer_text}</label>
<div class="x_controls">
<textarea name="footer_text" id="footer_text" class="lang_code" rows="8" cols="42" placeholder="{$lang->about_footer_text}"><!--@if(strpos($module_info->footer_text, '$user_lang->') === false)-->{$module_info->footer_text}<!--@else-->{htmlspecialchars($module_info->footer_text)}<!--@end--></textarea>
<a href="#footer_text_help" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
<p id="footer_text_help" class="x_help-block" hidden>{$lang->about_footer_text}</p>
<textarea name="footer_text" id="footer_text" class="lang_code" rows="8" cols="42"><!--@if(strpos($module_info->footer_text, '$user_lang->') === false)-->{$module_info->footer_text}<!--@else-->{htmlspecialchars($module_info->footer_text)}<!--@end--></textarea>
<p id="footer_text_help" class="x_help-block">{$lang->about_footer_text}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="lang_mobile_header_text">{$lang->mobile_header_text}</label>
<div class="x_controls">
<textarea name="mobile_header_text" id="mobile_header_text" class="lang_code" rows="8" cols="42"><!--@if(strpos($module_info->footer_text, '$user_lang->') === false)-->{$module_info->mobile_header_text}<!--@else-->{htmlspecialchars($module_info->mobile_header_text)}<!--@end--></textarea>
<p id="mobile_header_text_help" class="x_help-block">{$lang->about_mobile_header_text}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="lang_mobile_footer_text">{$lang->mobile_footer_text}</label>
<div class="x_controls">
<textarea name="mobile_footer_text" id="mobile_footer_text" class="lang_code" rows="8" cols="42"><!--@if(strpos($module_info->footer_text, '$user_lang->') === false)-->{$module_info->mobile_footer_text}<!--@else-->{htmlspecialchars($module_info->mobile_footer_text)}<!--@end--></textarea>
<p id="mobile_footer_text_help" class="x_help-block">{$lang->about_mobile_footer_text}</p>
</div>
</div>
</section>
<section class="section">
<h1>{$lang->mobile_settings}</h1>

View file

@ -17,6 +17,8 @@ $lang->module_history = 'Revision History';
$lang->category_title = 'Category Title';
$lang->header_text = 'Header Text';
$lang->footer_text = 'Footer Text';
$lang->mobile_header_text = 'Mobile Header Text';
$lang->mobile_footer_text = 'Mobile Footer Text';
$lang->use_category = 'Enable Category';
$lang->checked_count = 'Number of Checked Articles';
$lang->skin_default_info = 'Default Skin Info';
@ -81,6 +83,8 @@ $lang->about_module_category = 'It enables you to manage it through a module cat
$lang->about_description = 'This description is only for a manager.';
$lang->about_header_text = 'The contents will be shown on the top of the module. (html tags available)';
$lang->about_footer_text = 'The contents will be shown on the bottom of the module. (html tags available)';
$lang->about_mobile_header_text = 'If left empty, the same header as above will be used.';
$lang->about_mobile_footer_text = 'If left empty, the same footer as above will be used.';
$lang->skin_fix = 'Fix skin';
$lang->about_skin_fix = 'Check this to fix the skin regardless of theme setting.';
$lang->about_skin = 'You may choose a module skin.';

View file

@ -17,6 +17,8 @@ $lang->module_history = '변경 이력 ';
$lang->category_title = '분류명';
$lang->header_text = '상단 내용';
$lang->footer_text = '하단 내용';
$lang->mobile_header_text = '모바일 상단 내용';
$lang->mobile_footer_text = '모바일 하단 내용';
$lang->use_category = '분류 사용';
$lang->checked_count = '선택된 글 수';
$lang->skin_default_info = '스킨 기본정보';
@ -79,6 +81,8 @@ $lang->about_module_category = '분류를 통한 관리를 할 수 있도록 합
$lang->about_description = '관리용으로 사용되는 설명입니다.';
$lang->about_header_text = '콘텐츠 상단에 표시되는 내용입니다. (HTML 태그 사용 가능)';
$lang->about_footer_text = '콘텐츠 하단에 표시되는 내용입니다. (HTML 태그 사용 가능)';
$lang->about_mobile_header_text = '입력하지 않을 경우 위에서 지정한 상단 내용을 사용합니다. (HTML 태그 사용 가능)';
$lang->about_mobile_footer_text = '입력하지 않을 경우 위에서 지정한 하단 내용을 사용합니다. (HTML 태그 사용 가능)';
$lang->skin_fix = '스킨 고정';
$lang->about_skin_fix = '스킨을 고정시킵니다. 일괄 스킨 설정 대상에서 제외됩니다.';
$lang->about_skin = '콘텐츠 스킨을 선택할 수 있습니다.';