[geeklog-cvs] geeklog: List available autotags in the static pages editor
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Aug 8 15:18:25 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f1efc0a11614
changeset: 7236:f1efc0a11614
user: Dirk Haun <dirk at haun-online.de>
date: Sat Aug 08 19:51:31 2009 +0200
description:
List available autotags in the static pages editor
diffstat:
plugins/staticpages/templates/admin/editor.thtml | 3 ++-
plugins/staticpages/templates/admin/editor_advanced.thtml | 3 ++-
public_html/admin/plugins/staticpages/index.php | 12 ++++++++++--
public_html/docs/history | 1 +
4 files changed, 15 insertions(+), 4 deletions(-)
diffs (62 lines):
diff -r b3b624090a6b -r f1efc0a11614 plugins/staticpages/templates/admin/editor.thtml
--- a/plugins/staticpages/templates/admin/editor.thtml Sat Aug 08 17:07:11 2009 +0200
+++ b/plugins/staticpages/templates/admin/editor.thtml Sat Aug 08 19:51:31 2009 +0200
@@ -51,7 +51,8 @@
<td valign="top" align="right">{lang_content}:</td>
<td>
<textarea name="sp_content" style="width:100%" cols="45" rows="24">{sp_content}</textarea>
- <br{xhtml}><span class="warningsmall">{lang_allowedhtml}</span><br{xhtml}><br{xhtml}>
+ <br{xhtml}>
+ {lang_allowed_html}
</td>
</tr>
<tr>
diff -r b3b624090a6b -r f1efc0a11614 plugins/staticpages/templates/admin/editor_advanced.thtml
--- a/plugins/staticpages/templates/admin/editor_advanced.thtml Sat Aug 08 17:07:11 2009 +0200
+++ b/plugins/staticpages/templates/admin/editor_advanced.thtml Sat Aug 08 19:51:31 2009 +0200
@@ -76,7 +76,8 @@
<tr id="advanced_editarea" style="display:{show_adveditor};">
<td colspan="2" style="margin-top:10px;border:1px solid #CCC;">
<textarea id="adv_content" name="sp_content">{sp_content}</textarea>
- <div class="warningsmall" style="padding:10px;">{lang_allowedhtml}</div>
+ <br{xhtml}>
+ {lang_allowed_html}
</td>
</tr>
<tr id="html_editarea" style="display:{show_htmleditor};">
diff -r b3b624090a6b -r f1efc0a11614 public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php Sat Aug 08 17:07:11 2009 +0200
+++ b/public_html/admin/plugins/staticpages/index.php Sat Aug 08 19:51:31 2009 +0200
@@ -370,11 +370,19 @@
}
$sp_template->set_var('sp_content', $content);
if ($_SP_CONF['filter_html'] == 1) {
- $sp_template->set_var('lang_allowedhtml',
- COM_allowedHTML('staticpages.edit'));
+ $allowed = COM_allowedHTML('staticpages.edit');
+ $sp_template->set_var('lang_allowedhtml', $allowed);
+ $sp_template->set_var('lang_allowed_html', $allowed);
} else {
$sp_template->set_var('lang_allowedhtml',
$LANG_STATIC['all_html_allowed']);
+ $allowed = '<span class="warningsmall">'
+ . $LANG_STATIC['all_html_allowed'] . ',</span>' . LB
+ . '<div dir="ltr" class="warningsmall">';
+ $autotags = array_keys(PLG_collectTags());
+ $allowed .= '[' . implode(':], [', $autotags) . ':]';
+ $allowed .= '</div>';
+ $sp_template->set_var('lang_allowed_html', $allowed);
}
$sp_template->set_var ('lang_hits', $LANG_STATIC['hits']);
if (empty ($A['sp_hits'])) {
diff -r b3b624090a6b -r f1efc0a11614 public_html/docs/history
--- a/public_html/docs/history Sat Aug 08 17:07:11 2009 +0200
+++ b/public_html/docs/history Sat Aug 08 19:51:31 2009 +0200
@@ -41,6 +41,7 @@
Static Pages Plugin
-------------------
+- List available autotags in the static pages editor [Dirk]
- Added support for meta tags and meta keywords, provided by Tom Homer
More information about the geeklog-cvs
mailing list