Dotclear


Ignore:
Timestamp:
10/09/13 16:43:18 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Second step of contextual helps, closes #1760, now the help has to be completed.

Location:
plugins/tags
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/tags/_admin.php

    r2256 r2322  
    3838$core->addBehavior('adminDashboardFavorites',array('tagsBehaviors','dashboardFavorites')); 
    3939 
     40$core->addBehavior('adminPageHelpBlock', array('tagsBehaviors', 'adminPageHelpBlock')); 
     41 
    4042# BEHAVIORS 
    4143class tagsBehaviors 
    4244{ 
     45     public static function adminPageHelpBlock($blocks) 
     46     { 
     47          $found = false; 
     48          foreach($blocks as $block) { 
     49               if ($block == 'core_post') { 
     50                    $found = true; 
     51                    break; 
     52               } 
     53          } 
     54          if (!$found) { 
     55               return null; 
     56          } 
     57          $blocks[] = 'tag_post'; 
     58     } 
     59 
    4360     public static function dashboardFavorites($core,$favs) 
    4461     { 
  • plugins/tags/tag_posts.php

    r2256 r2322  
    146146     '</form>'); 
    147147} 
     148dcPage::helpBlock('tag_posts'); 
    148149?> 
    149150</body> 
  • plugins/tags/tags.php

    r2256 r2322  
    7575     echo '<p>'.__('No tags on this blog.').'</p>'; 
    7676} 
     77 
     78dcPage::helpBlock('tags'); 
    7779?> 
    7880 
Note: See TracChangeset for help on using the changeset viewer.

Sites map