Changeset 782:01efbf050a8a for plugins/tags
- Timestamp:
- 12/06/11 11:43:14 (14 years ago)
- Branch:
- formfilters
- Parents:
- 781:b509ac00bf4a (diff), 779:58c45f1b96e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- plugins/tags
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/tags/_admin.php
r776 r782 137 137 138 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 139 '<script type="text/javascript">'."\n". 142 140 "//<![CDATA[\n". … … 153 151 "\n//]]>\n". 154 152 "</script>\n". 153 '<script type="text/javascript" src="index.php?pf=tags/js/posts_actions.js"></script>'. 154 dcPage::jqueryUI(). 155 155 '<link rel="stylesheet" type="text/css" href="index.php?pf=tags/style.css" />'; 156 156 } … … 172 172 try 173 173 { 174 175 174 $meta =& $GLOBALS['core']->meta; 176 175 $tags = $meta->splitMetaValues($_POST['new_tags']); -
plugins/tags/_admin.php
r756 r782 4 4 # This file is part of Dotclear 2. 5 5 # 6 # Copyright (c) 2003-201 0Olivier Meunier & Association Dotclear6 # Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 7 7 # Licensed under the GPL version 2.0 license. 8 8 # See LICENSE file or … … 31 31 32 32 $core->addBehavior('adminPreferencesForm',array('tagsBehaviors','adminUserForm')); 33 $core->addBehavior('adminUserForm',array('tagsBehaviors','adminUserForm'));33 // $core->addBehavior('adminUserForm',array('tagsBehaviors','adminUserForm')); 34 34 35 35 $core->addBehavior('adminBeforeUserCreate',array('tagsBehaviors','setTagListFormat')); … … 45 45 public static function dashboardFavs($core,$favs) 46 46 { 47 $favs['tags'] = new ArrayObject(array('tags', __('Tags'),'plugin.php?p=tags&m=tags',47 $favs['tags'] = new ArrayObject(array('tags','Tags','plugin.php?p=tags&m=tags', 48 48 'index.php?pf=tags/icon.png','index.php?pf=tags/icon-big.png', 49 49 'usage,contentadmin',null,null)); … … 63 63 64 64 65 $tag_url = html::stripHostURL($GLOBALS['core']->blog->url.$GLOBALS['core']->url->get Base('tag'));65 $tag_url = html::stripHostURL($GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag')); 66 66 $res['url'] = $tag_url.'/'.rawurlencode(dcMeta::sanitizeMetaID($url)); 67 67 $res['content'] = $content; … … 82 82 echo 83 83 '<h3><label for="post_tags">'.__('Tags:').'</label></h3>'. 84 '<div class="p" id="tags-edit">'.form::textarea('post_tags',20,3,$value,'maximal' ,3).'</div>';84 '<div class="p" id="tags-edit">'.form::textarea('post_tags',20,3,$value,'maximal').'</div>'; 85 85 } 86 86 … … 102 102 public static function postHeaders() 103 103 { 104 $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->get Base('tag');105 106 $opts = $GLOBALS['core']-> auth->getOptions();104 $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag'); 105 106 $opts = $GLOBALS['core']->blog->url.$GLOBALS['core']->auth->getOptions(); 107 107 $type = isset($opts['tag_list_format']) ? $opts['tag_list_format'] : 'more'; 108 108 109 109 return 110 dcPage::jqueryUI().110 '<script type="text/javascript" src="index.php?pf=tags/js/jquery.autocomplete.js"></script>'. 111 111 '<script type="text/javascript" src="index.php?pf=tags/js/post.js"></script>'. 112 112 '<script type="text/javascript">'."\n". … … 131 131 public static function postsActionsHeaders() 132 132 { 133 $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->get Base('tag');133 $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag'); 134 134 135 135 $opts = $GLOBALS['core']->auth->getOptions(); … … 222 222 } 223 223 224 public static function adminPostsActionsContent($core,$action,$hidden_fields )224 public static function adminPostsActionsContent($core,$action,$hidden_fields,$form_uri="posts_actions.php") 225 225 { 226 226 if ($action == 'tags') 227 227 { 228 228 echo 229 '<h2 >'.__('Add tags to entries').'</h2>'.230 '<form action=" posts_actions.php" method="post">'.229 '<h2 class="page-title">'.__('Add tags to entries').'</h2>'. 230 '<form action="'.$form_uri.'" method="post">'. 231 231 '<div><label for="new_tags" class="area">'.__('Tags to add:').'</label> '. 232 232 form::textarea('new_tags',60,3). … … 257 257 } 258 258 259 echo '<h2 >'.__('Remove selected tags from entries').'</h2>';259 echo '<h2 class="page-title">'.__('Remove selected tags from entries').'</h2>'; 260 260 261 261 if (empty($tags)) { … … 267 267 268 268 echo 269 '<form action=" posts_actions.php" method="post">'.269 '<form action="'.$form_uri.'" method="post">'. 270 270 '<fieldset><legend>'.__('Following tags have been found in selected entries:').'</legend>'; 271 271 -
plugins/tags/tags.php
r711 r782 43 43 $col = 1; 44 44 } 45 $cols[$col] .= '<tr class="tagLetter"><t d colspan="2"><span>'.$letter.'</span></td></tr>';45 $cols[$col] .= '<tr class="tagLetter"><th scope="row" colspan="2"><span>'.$letter.'</span></th></tr>'; 46 46 } 47 47 48 48 $cols[$col] .= 49 49 '<tr class="line">'. 50 '<t dclass="maximal"><a href="'.$p_url.51 '&m=tag_posts&tag='.rawurlencode($tags->meta_id).'">'.$tags->meta_id.'</a></t d>'.50 '<th scope="row" class="maximal"><a href="'.$p_url. 51 '&m=tag_posts&tag='.rawurlencode($tags->meta_id).'">'.$tags->meta_id.'</a></th>'. 52 52 '<td class="nowrap"><strong>'.$tags->count.'</strong> '. 53 53 (($tags->count==1) ? __('entry') : __('entries')).'</td>'. … … 57 57 } 58 58 59 $table = '<div class="col"><table class="tags">%s</table></div>'; 59 $table = 60 '<div class="col"><table class="tags"><caption>'. 61 __('Tags list'). 62 '</caption><tbody>%s</tbody></table></div>'; 60 63 61 64 if ($cols[0]) -
plugins/tags/tags.php
r457 r782 4 4 # This file is part of Dotclear 2. 5 5 # 6 # Copyright (c) 2003-201 0Olivier Meunier & Association Dotclear6 # Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 7 7 # Licensed under the GPL version 2.0 license. 8 8 # See LICENSE file or … … 15 15 <html> 16 16 <head> 17 <title> Tags</title>17 <title><?php echo __('Tags'); ?></title> 18 18 <link rel="stylesheet" type="text/css" href="index.php?pf=tags/style.css" /> 19 19 </head> … … 21 21 <body> 22 22 <h2><?php echo html::escapeHTML($core->blog->name); ?> › 23 < ?php echo __('Tags'); ?></h2>23 <span class="page-title"><?php echo __('Tags'); ?></span></h2> 24 24 25 25 <?php
Note: See TracChangeset
for help on using the changeset viewer.