Changeset 818:c37e270c1007
- Timestamp:
- 05/14/12 16:58:54 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/tags/_admin.php
r776 r818 131 131 public static function postsActionsHeaders() 132 132 { 133 $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag'); 134 135 $opts = $GLOBALS['core']->auth->getOptions(); 136 $type = isset($opts['tag_list_format']) ? $opts['tag_list_format'] : 'more'; 137 138 return 139 '<script type="text/javascript" src="index.php?pf=tags/js/jquery.autocomplete.js"></script>'. 140 '<script type="text/javascript" src="index.php?pf=tags/js/posts_actions.js"></script>'. 141 '<script type="text/javascript">'."\n". 142 "//<![CDATA[\n". 143 "metaEditor.prototype.meta_url = 'plugin.php?p=tags&m=tag_posts&tag=';\n". 144 "metaEditor.prototype.meta_type = '".html::escapeJS($type)."';\n". 145 "metaEditor.prototype.text_confirm_remove = '".html::escapeJS(__('Are you sure you want to remove this %s?'))."';\n". 146 "metaEditor.prototype.text_add_meta = '".html::escapeJS(__('Add a %s to this entry'))."';\n". 147 "metaEditor.prototype.text_choose = '".html::escapeJS(__('Choose from list'))."';\n". 148 "metaEditor.prototype.text_all = '".html::escapeJS(__('all'))."';\n". 149 "metaEditor.prototype.text_separation = '".html::escapeJS(__('Enter tags separated by coma'))."';\n". 150 "dotclear.msg.tags_autocomplete = '".html::escapeJS(__('used in %e - frequency %p%'))."';\n". 151 "dotclear.msg.entry = '".html::escapeJS(__('entry'))."';\n". 152 "dotclear.msg.entries = '".html::escapeJS(__('entries'))."';\n". 153 "\n//]]>\n". 154 "</script>\n". 155 '<link rel="stylesheet" type="text/css" href="index.php?pf=tags/style.css" />'; 133 if (($_POST['action'] == 'tags') || ($_POST['action'] == 'tags_remove')) { 134 $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag'); 135 136 $opts = $GLOBALS['core']->auth->getOptions(); 137 $type = isset($opts['tag_list_format']) ? $opts['tag_list_format'] : 'more'; 138 139 return 140 '<script type="text/javascript" src="index.php?pf=tags/js/jquery.autocomplete.js"></script>'. 141 '<script type="text/javascript" src="index.php?pf=tags/js/posts_actions.js"></script>'. 142 '<script type="text/javascript">'."\n". 143 "//<![CDATA[\n". 144 "metaEditor.prototype.meta_url = 'plugin.php?p=tags&m=tag_posts&tag=';\n". 145 "metaEditor.prototype.meta_type = '".html::escapeJS($type)."';\n". 146 "metaEditor.prototype.text_confirm_remove = '".html::escapeJS(__('Are you sure you want to remove this %s?'))."';\n". 147 "metaEditor.prototype.text_add_meta = '".html::escapeJS(__('Add a %s to this entry'))."';\n". 148 "metaEditor.prototype.text_choose = '".html::escapeJS(__('Choose from list'))."';\n". 149 "metaEditor.prototype.text_all = '".html::escapeJS(__('all'))."';\n". 150 "metaEditor.prototype.text_separation = '".html::escapeJS(__('Enter tags separated by coma'))."';\n". 151 "dotclear.msg.tags_autocomplete = '".html::escapeJS(__('used in %e - frequency %p%'))."';\n". 152 "dotclear.msg.entry = '".html::escapeJS(__('entry'))."';\n". 153 "dotclear.msg.entries = '".html::escapeJS(__('entries'))."';\n". 154 "\n//]]>\n". 155 "</script>\n". 156 '<link rel="stylesheet" type="text/css" href="index.php?pf=tags/style.css" />'; 157 } 156 158 } 157 159
Note: See TracChangeset
for help on using the changeset viewer.