From 0326971615969cbcf5c9d7b11962e8da20031e44 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 24 Apr 2016 22:16:51 +0900 Subject: [PATCH] Support mobile header and footer text for boards --- modules/board/skins/default/_footer.html | 6 +++++- modules/board/skins/default/_header.html | 6 +++++- modules/board/skins/xedition/_footer.html | 6 +++++- modules/board/skins/xedition/_header.html | 7 +++++-- modules/board/tpl/board_insert.html | 24 +++++++++++++++++------ modules/module/lang/en.php | 4 ++++ modules/module/lang/ko.php | 4 ++++ 7 files changed, 46 insertions(+), 11 deletions(-) diff --git a/modules/board/skins/default/_footer.html b/modules/board/skins/default/_footer.html index 01eb51965..e9d017cb7 100644 --- a/modules/board/skins/default/_footer.html +++ b/modules/board/skins/default/_footer.html @@ -1,2 +1,6 @@ - {$module_info->footer_text} + + {$module_info->mobile_footer_text} + + {$module_info->footer_text} + diff --git a/modules/board/skins/default/_header.html b/modules/board/skins/default/_header.html index 0ee505569..169e96db8 100644 --- a/modules/board/skins/default/_header.html +++ b/modules/board/skins/default/_header.html @@ -19,7 +19,11 @@
- {$module_info->header_text} + + {$module_info->mobile_header_text} + + {$module_info->header_text} +

{$module_info->title_alt}

{$lang->cmd_setup} diff --git a/modules/board/skins/xedition/_footer.html b/modules/board/skins/xedition/_footer.html index 01eb51965..e9d017cb7 100644 --- a/modules/board/skins/xedition/_footer.html +++ b/modules/board/skins/xedition/_footer.html @@ -1,2 +1,6 @@ - {$module_info->footer_text} + + {$module_info->mobile_footer_text} + + {$module_info->footer_text} +
diff --git a/modules/board/skins/xedition/_header.html b/modules/board/skins/xedition/_header.html index b2bcd4948..bb5ecdb87 100644 --- a/modules/board/skins/xedition/_header.html +++ b/modules/board/skins/xedition/_header.html @@ -21,5 +21,8 @@
- {$module_info->header_text} - + + {$module_info->mobile_header_text} + + {$module_info->header_text} + diff --git a/modules/board/tpl/board_insert.html b/modules/board/tpl/board_insert.html index 457b8a550..0dbdcb961 100644 --- a/modules/board/tpl/board_insert.html +++ b/modules/board/tpl/board_insert.html @@ -72,19 +72,31 @@
- - {$lang->help} - + +

{$lang->about_header_text}

- - {$lang->help} - + +
+
+ +
+ +

{$lang->about_mobile_header_text}

+
+
+
+ +
+ + +
+

{$lang->mobile_settings}

diff --git a/modules/module/lang/en.php b/modules/module/lang/en.php index 2ce61da96..5970b38e9 100644 --- a/modules/module/lang/en.php +++ b/modules/module/lang/en.php @@ -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.'; diff --git a/modules/module/lang/ko.php b/modules/module/lang/ko.php index 3223b1034..6c9bd2c4a 100644 --- a/modules/module/lang/ko.php +++ b/modules/module/lang/ko.php @@ -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 = '콘텐츠 스킨을 선택할 수 있습니다.';