[geeklog-cvs] geeklog: Hide meta tag entry fields from Static Page editor when...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Tue Dec 1 03:51:01 EST 2009
changeset 7507:c0b0eb21591d
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/c0b0eb21591d
user: Dirk Haun <dirk at haun-online.de>
date: Mon Nov 30 11:03:31 2009 +0100
description:
Hide meta tag entry fields from Static Page editor when meta tag support is disabled
diffstat:
plugins/staticpages/templates/admin/editor.thtml | 4 ++--
plugins/staticpages/templates/admin/editor_advanced.thtml | 4 ++--
public_html/admin/plugins/staticpages/index.php | 5 +++++
public_html/docs/history | 2 ++
4 files changed, 11 insertions(+), 4 deletions(-)
diffs (61 lines):
diff -r dd8d399fc07b -r c0b0eb21591d plugins/staticpages/templates/admin/editor.thtml
--- a/plugins/staticpages/templates/admin/editor.thtml Mon Nov 30 10:52:36 2009 +0100
+++ b/plugins/staticpages/templates/admin/editor.thtml Mon Nov 30 11:03:31 2009 +0100
@@ -39,11 +39,11 @@
<td align="right">{lang_url}:</td>
<td>{example_url}</td>
</tr>
- <tr>
+ <tr{hide_meta}>
<td valign="top" align="right">{lang_metadescription}:</td>
<td><textarea name="meta_description" style="width:100%" rows="2">{meta_description}</textarea></td>
</tr>
- <tr>
+ <tr{hide_meta}>
<td valign="top" align="right">{lang_metakeywords}:</td>
<td><textarea name="meta_keywords" style="width:100%" rows="2">{meta_keywords}</textarea></td>
</tr>
diff -r dd8d399fc07b -r c0b0eb21591d plugins/staticpages/templates/admin/editor_advanced.thtml
--- a/plugins/staticpages/templates/admin/editor_advanced.thtml Mon Nov 30 10:52:36 2009 +0100
+++ b/plugins/staticpages/templates/admin/editor_advanced.thtml Mon Nov 30 11:03:31 2009 +0100
@@ -53,11 +53,11 @@
<td style="text-align:right;padding-bottom:15px;">{lang_url}:</td>
<td style="padding-bottom:15px;">{example_url}</td>
</tr>
- <tr>
+ <tr{hide_meta}>
<td valign="top" align="right">{lang_metadescription}:</td>
<td><textarea name="meta_description" style="width:100%" rows="2">{meta_description}</textarea></td>
</tr>
- <tr>
+ <tr{hide_meta}>
<td valign="top" align="right">{lang_metakeywords}:</td>
<td><textarea name="meta_keywords" style="width:100%" rows="2">{meta_keywords}</textarea></td>
</tr>
diff -r dd8d399fc07b -r c0b0eb21591d public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php Mon Nov 30 10:52:36 2009 +0100
+++ b/public_html/admin/plugins/staticpages/index.php Mon Nov 30 11:03:31 2009 +0100
@@ -321,6 +321,11 @@
if (!empty($A['meta_keywords'])) {
$sp_template->set_var('meta_keywords', $A['meta_keywords']);
}
+ if (($_CONF['meta_tags'] > 0) && ($_SP_CONF['meta_tags'] > 0)) {
+ $sp_template->set_var('hide_meta', '');
+ } else {
+ $sp_template->set_var('hide_meta', ' style="display:none;"');
+ }
$sp_template->set_var('lang_addtomenu', $LANG_STATIC['addtomenu']);
if (isset($A['sp_onmenu']) && ($A['sp_onmenu'] == 1)) {
$sp_template->set_var('onmenu_checked', 'checked="checked"');
diff -r dd8d399fc07b -r c0b0eb21591d public_html/docs/history
--- a/public_html/docs/history Mon Nov 30 10:52:36 2009 +0100
+++ b/public_html/docs/history Mon Nov 30 11:03:31 2009 +0100
@@ -14,6 +14,8 @@
Static Pages Plugin 1.6.2
-------------------
+- Hide meta tag entry fields from Static Page editor when meta tag support is
+ disabled [Dirk]
- Avoid a pair of empty brackets on the printer-friendly version for Static
Pages which have comments disabled [Dirk]
- Added a config option to define the default sort order for the admin's list
More information about the geeklog-cvs
mailing list