mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 06:13:32 +09:00
Support Twitter meta tags
This commit is contained in:
parent
1c786d8cd5
commit
00fd1a672a
6 changed files with 54 additions and 2 deletions
|
|
@ -958,6 +958,7 @@ class adminAdminController extends admin
|
|||
Rhymix\Framework\Config::set('seo.og_extract_images', $vars->og_extract_images === 'Y');
|
||||
Rhymix\Framework\Config::set('seo.og_extract_hashtags', $vars->og_extract_hashtags === 'Y');
|
||||
Rhymix\Framework\Config::set('seo.og_use_timestamps', $vars->og_use_timestamps === 'Y');
|
||||
Rhymix\Framework\Config::set('seo.twitter_enabled', $vars->twitter_enabled === 'Y');
|
||||
|
||||
// Save
|
||||
if (!Rhymix\Framework\Config::save())
|
||||
|
|
|
|||
|
|
@ -643,6 +643,7 @@ class adminAdminView extends admin
|
|||
Context::set('og_extract_images', Rhymix\Framework\Config::get('seo.og_extract_images'));
|
||||
Context::set('og_extract_hashtags', Rhymix\Framework\Config::get('seo.og_extract_hashtags'));
|
||||
Context::set('og_use_timestamps', Rhymix\Framework\Config::get('seo.og_use_timestamps'));
|
||||
Context::set('twitter_enabled', Rhymix\Framework\Config::get('seo.twitter_enabled'));
|
||||
|
||||
$this->setTemplateFile('config_seo');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -249,6 +249,7 @@ $lang->site_meta_keywords = 'SEO Keywords';
|
|||
$lang->about_site_meta_keywords = 'These keywords will be used on pages that do not have their own keywords.';
|
||||
$lang->site_meta_description = 'SEO Description';
|
||||
$lang->about_site_meta_description = 'This description will be used on pages that do not have their own description.';
|
||||
$lang->twitter_enabled = 'Add Twitter Meta Tags';
|
||||
$lang->og_enabled = 'Add OpenGraph Tags';
|
||||
$lang->og_extract_description = 'Extract Description from Document';
|
||||
$lang->og_extract_description_fallback = 'Use general description only';
|
||||
|
|
|
|||
|
|
@ -245,6 +245,7 @@ $lang->site_meta_keywords = 'SEO 키워드';
|
|||
$lang->about_site_meta_keywords = '별도의 키워드를 지정하지 않은 페이지에서는 이 키워드 목록이 표시됩니다.';
|
||||
$lang->site_meta_description = 'SEO 설명';
|
||||
$lang->about_site_meta_description = '별도의 설명을 지정하지 않은 페이지에서는 이 설명이 표시됩니다.';
|
||||
$lang->twitter_enabled = '트위터 메타 태그 사용';
|
||||
$lang->og_enabled = 'OpenGraph 태그 사용';
|
||||
$lang->og_extract_description = '본문에서 설명 추출';
|
||||
$lang->og_extract_description_fallback = '모듈 또는 사이트 전체 설명만 사용';
|
||||
|
|
|
|||
|
|
@ -52,6 +52,13 @@
|
|||
<label for="og_enabled_n" class="x_inline"><input type="radio" name="og_enabled" id="og_enabled_n" value="N" checked="checked"|cond="!$og_enabled" /> {$lang->cmd_no}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->twitter_enabled}</label>
|
||||
<div class="x_controls">
|
||||
<label for="twitter_enabled_y" class="x_inline"><input type="radio" name="twitter_enabled" id="twitter_enabled_y" value="Y" checked="checked"|cond="$twitter_enabled" /> {$lang->cmd_yes}</label>
|
||||
<label for="twitter_enabled_n" class="x_inline"><input type="radio" name="twitter_enabled" id="twitter_enabled_n" value="N" checked="checked"|cond="!$twitter_enabled" /> {$lang->cmd_no}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->og_extract_description}</label>
|
||||
<div class="x_controls">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue