Dotclear


Ignore:
Timestamp:
12/06/11 11:43:14 (14 years ago)
Author:
Dsls <dsls@…>
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.
Message:

Merged last default changes with formfilter branch

Location:
plugins/tags
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/tags/_admin.php

    r776 r782  
    137137           
    138138          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>'. 
    141139          '<script type="text/javascript">'."\n". 
    142140          "//<![CDATA[\n". 
     
    153151          "\n//]]>\n". 
    154152          "</script>\n". 
     153          '<script type="text/javascript" src="index.php?pf=tags/js/posts_actions.js"></script>'. 
     154          dcPage::jqueryUI(). 
    155155          '<link rel="stylesheet" type="text/css" href="index.php?pf=tags/style.css" />'; 
    156156     } 
     
    172172               try 
    173173               { 
    174  
    175174                    $meta =& $GLOBALS['core']->meta; 
    176175                    $tags = $meta->splitMetaValues($_POST['new_tags']); 
  • plugins/tags/_admin.php

    r756 r782  
    44# This file is part of Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2010 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    3131 
    3232$core->addBehavior('adminPreferencesForm',array('tagsBehaviors','adminUserForm')); 
    33 $core->addBehavior('adminUserForm',array('tagsBehaviors','adminUserForm')); 
     33// $core->addBehavior('adminUserForm',array('tagsBehaviors','adminUserForm')); 
    3434 
    3535$core->addBehavior('adminBeforeUserCreate',array('tagsBehaviors','setTagListFormat')); 
     
    4545     public static function dashboardFavs($core,$favs) 
    4646     { 
    47           $favs['tags'] = new ArrayObject(array('tags',__('Tags'),'plugin.php?p=tags&amp;m=tags', 
     47          $favs['tags'] = new ArrayObject(array('tags','Tags','plugin.php?p=tags&amp;m=tags', 
    4848               'index.php?pf=tags/icon.png','index.php?pf=tags/icon-big.png', 
    4949               'usage,contentadmin',null,null)); 
     
    6363           
    6464           
    65           $tag_url = html::stripHostURL($GLOBALS['core']->blog->url.$GLOBALS['core']->url->getBase('tag')); 
     65          $tag_url = html::stripHostURL($GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag')); 
    6666          $res['url'] = $tag_url.'/'.rawurlencode(dcMeta::sanitizeMetaID($url)); 
    6767          $res['content'] = $content; 
     
    8282          echo 
    8383          '<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>'; 
    8585     } 
    8686      
     
    102102     public static function postHeaders() 
    103103     { 
    104           $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getBase('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(); 
    107107          $type = isset($opts['tag_list_format']) ? $opts['tag_list_format'] : 'more'; 
    108108           
    109109          return  
    110           dcPage::jqueryUI(). 
     110          '<script type="text/javascript" src="index.php?pf=tags/js/jquery.autocomplete.js"></script>'. 
    111111          '<script type="text/javascript" src="index.php?pf=tags/js/post.js"></script>'. 
    112112          '<script type="text/javascript">'."\n". 
     
    131131     public static function postsActionsHeaders() 
    132132     { 
    133           $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getBase('tag'); 
     133          $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag'); 
    134134           
    135135          $opts = $GLOBALS['core']->auth->getOptions(); 
     
    222222     } 
    223223      
    224      public static function adminPostsActionsContent($core,$action,$hidden_fields) 
     224     public static function adminPostsActionsContent($core,$action,$hidden_fields,$form_uri="posts_actions.php") 
    225225     { 
    226226          if ($action == 'tags') 
    227227          { 
    228228               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">'. 
    231231               '<div><label for="new_tags" class="area">'.__('Tags to add:').'</label> '. 
    232232               form::textarea('new_tags',60,3). 
     
    257257               } 
    258258                
    259                echo '<h2>'.__('Remove selected tags from entries').'</h2>'; 
     259               echo '<h2 class="page-title">'.__('Remove selected tags from entries').'</h2>'; 
    260260                
    261261               if (empty($tags)) { 
     
    267267                
    268268               echo 
    269                '<form action="posts_actions.php" method="post">'. 
     269               '<form action="'.$form_uri.'" method="post">'. 
    270270               '<fieldset><legend>'.__('Following tags have been found in selected entries:').'</legend>'; 
    271271                
  • plugins/tags/tags.php

    r711 r782  
    4343               $col = 1; 
    4444          } 
    45           $cols[$col] .= '<tr class="tagLetter"><td colspan="2"><span>'.$letter.'</span></td></tr>'; 
     45          $cols[$col] .= '<tr class="tagLetter"><th scope="row" colspan="2"><span>'.$letter.'</span></th></tr>'; 
    4646     } 
    4747      
    4848     $cols[$col] .= 
    4949     '<tr class="line">'. 
    50           '<td class="maximal"><a href="'.$p_url. 
    51           '&amp;m=tag_posts&amp;tag='.rawurlencode($tags->meta_id).'">'.$tags->meta_id.'</a></td>'. 
     50          '<th scope="row" class="maximal"><a href="'.$p_url. 
     51          '&amp;m=tag_posts&amp;tag='.rawurlencode($tags->meta_id).'">'.$tags->meta_id.'</a></th>'. 
    5252          '<td class="nowrap"><strong>'.$tags->count.'</strong> '. 
    5353          (($tags->count==1) ? __('entry') : __('entries')).'</td>'. 
     
    5757} 
    5858 
    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>'; 
    6063 
    6164if ($cols[0]) 
  • plugins/tags/tags.php

    r457 r782  
    44# This file is part of Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2010 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    1515<html> 
    1616<head> 
    17   <title>Tags</title> 
     17  <title><?php echo __('Tags'); ?></title> 
    1818  <link rel="stylesheet" type="text/css" href="index.php?pf=tags/style.css" /> 
    1919</head> 
     
    2121<body> 
    2222<h2><?php echo html::escapeHTML($core->blog->name); ?> &rsaquo; 
    23 <?php echo __('Tags'); ?></h2> 
     23<span class="page-title"><?php echo __('Tags'); ?></span></h2> 
    2424 
    2525<?php 
Note: See TracChangeset for help on using the changeset viewer.

Sites map