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/pings
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/pings/_admin.php

    r2230 r2322  
    2626          'Google Blog Search' => 'http://blogsearch.google.com/ping/RPC2' 
    2727     ); 
    28            
     28 
    2929     $core->blog->settings->addNamespace('pings'); 
    3030     $core->blog->settings->pings->put('pings_active',1,'boolean','Activate pings plugin',true,true); 
     
    4848     )); 
    4949} 
    50 ?> 
     50 
     51$core->addBehavior('adminPageHelpBlock', 'pingsPageHelpBlock'); 
     52 
     53function pingsPageHelpBlock($blocks) 
     54{ 
     55     $found = false; 
     56     foreach($blocks as $block) { 
     57          if ($block == 'core_post') { 
     58               $found = true; 
     59               break; 
     60          } 
     61     } 
     62     if (!$found) { 
     63          return null; 
     64     } 
     65     $blocks[] = 'pings_post'; 
     66} 
  • plugins/pings/index.php

    r2256 r2322  
    100100echo '<p><a class="button" href="'.$p_url.'&amp;test=1">'.__('Test ping services').'</a></p>'; 
    101101?> 
     102 
     103<?php dcPage::helpBlock('pings'); ?> 
     104 
    102105</body> 
    103106</html> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map