Dotclear

Changeset 2322:a75984c93a86


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
Files:
42 added
14 edited

Legend:

Unmodified
Added
Removed
  • plugins/aboutConfig/index.php

    r2256 r2322  
    235235</div> 
    236236 
     237<?php dcPage::helpBlock('aboutConfig'); ?> 
     238 
    237239</body> 
    238240</html> 
  • plugins/akismet/class.dc.filter.akismet.php

    r2205 r2322  
    1717     public $has_gui = true; 
    1818     public $active = false; 
     19     public $help = 'akismet-filter'; 
    1920      
    2021     public function __construct($core) 
  • plugins/antispam/filters/class.dc.filter.ip.php

    r2205 r2322  
    1616     public $name = 'IP Filter'; 
    1717     public $has_gui = true; 
     18     public $help = 'ip-filter'; 
    1819 
    1920     private $con; 
  • plugins/antispam/filters/class.dc.filter.iplookup.php

    r2205 r2322  
    1616     public $name = 'IP Lookup'; 
    1717     public $has_gui = true; 
     18     public $help = 'iplookup-filter'; 
    1819 
    1920     private $default_bls = 'sbl-xbl.spamhaus.org , bsb.spamlookup.net'; 
  • plugins/antispam/filters/class.dc.filter.words.php

    r2205 r2322  
    1616     public $has_gui = true; 
    1717     public $name = 'Bad Words'; 
     18     public $help = 'words-filter'; 
    1819 
    1920     private $con; 
  • plugins/antispam/inc/class.dc.spamfilter.php

    r1179 r2322  
    1919     public $order = 100; 
    2020     public $auto_delete = false; 
     21     public $help = null; 
    2122      
    2223     protected $has_gui = false; 
     
    158159          return sprintf($link,$this->name,$url); 
    159160     } 
     161 
     162     public function help() 
     163     { 
     164     } 
    160165} 
    161166?> 
  • plugins/antispam/index.php

    r2256 r2322  
    138138 
    139139     echo $filter_gui; 
     140 
     141     if ($filter->help) { 
     142          dcPage::helpBlock($filter->help); 
     143     } 
    140144} 
    141145else 
     
    250254          '</ul>'; 
    251255     } 
    252 } 
     256 
     257     dcPage::helpBlock('antispam','antispam-filters'); 
     258} 
     259 
    253260?> 
    254261 
  • plugins/importExport/index.php

    r2256 r2322  
    107107).'</p>'; 
    108108 
    109 echo ' 
    110 </body> 
    111 </html>'; 
    112 ?> 
     109dcPage::helpBlock('import'); 
     110 
     111echo '</body></html>'; 
  • 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> 
  • 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 
  • plugins/userPref/index.php

    r2256 r2322  
    232232</div> 
    233233 
     234<?php dcPage::helpBlock('userPref'); ?> 
     235 
    234236</body> 
    235237</html> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map