WordPress.org

Plugin Directory

Changeset 494677


Ignore:
Timestamp:
01/24/12 16:27:16 (2 years ago)
Author:
Latz
Message:
  • Fixed: enabling/disabling of positioning options
  • Fixed: Replaced "add_contextual_help()" with "$screen->add_help_tab()" for WP >= v3.3

+ Added older versions to "trunk"

Location:
pagebar
Files:
160 added
4 edited

Legend:

Unmodified
Added
Removed
  • pagebar/trunk/pagebar2.php

    r301753 r494677  
    44Plugin URI: http://www.elektroelch.de/hacks/wp/pagebar 
    55Description: Adds an advanced page navigation to Wordpress. 
    6 Version: 2.59 
     6Version: 2.59.1 
    77Author: Lutz Schröer 
    88Author URI: http://elektroelch.de/blog 
  • pagebar/trunk/pagebar_options.php

    r148998 r494677  
    155155        global $pbOptions; 
    156156        if (function_exists('add_options_page')) 
    157             $hook = add_options_page('Pagebar', 'Pagebar', 'manage_options', basename(__FILE__), array(&$this, 'pboptions')); 
     157            $this->hook = add_options_page('Pagebar', 'Pagebar', 'manage_options', basename(__FILE__), array(&$this, 'pboptions')); 
    158158 
    159159        //add contextual help 
    160         if (function_exists('add_contextual_help')) { 
    161         add_contextual_help( 
    162             $hook, 
    163             '<a href="http://www.elektroelch.de/hacks/wp/pagebar/" target="_blank">Manual</a>' 
    164         ); } 
     160    if ( $this->hook ) 
     161       add_action( 'load-' . $this->hook, array(&$this, 'load_help' )); 
     162              
     163    } //admin_menu() 
     164    /* -------------------------------------------------------------------------- */ 
     165    function load_help() { 
     166        if (method_exists(get_current_screen(),'add_help_tab')) {  // WP >= v3.3 
     167            get_current_screen()->add_help_tab(array('id'=>'pagebar_info', 'title'=>'Manual', 
     168        'content'=>'<p>If you\'re having problems you can consult the <a href="http://www.elektroelch.de/hacks/wp/pagebar/" target="_blank">Manual</a></p>')); 
     169        } else {         
     170            if (function_exists('add_contextual_help')) { 
     171                add_contextual_help( 
     172                    $this->hook, 
     173                    '<a href="http://www.elektroelch.de/hacks/wp/pagebar/" target="_blank">Manual</a>' 
     174                ); 
     175            } 
     176        } 
    165177 
    166178    } 
  • pagebar/trunk/pagebar_options_postbar.php

    r301753 r494677  
    33 
    44function autoSwitch(id) { 
    5 var elements = ['footer', 'bef_loop', 'aft_loop', 'remove']; 
     5     var elements = ['footer', 'bef_loop', 'aft_loop', 'remove']; 
    66   $j=jQuery.noConflict(); 
    77   if ($j('#cb_auto:checked').val() == null) { 
    88      color = '#ccc'; 
    9       dis = "disabled"; 
     9      dis = true; 
    1010   } else { 
    1111      color = '#000'; 
    12       dis = ""; 
     12      dis = false; 
    1313   } 
    1414   for (i=0;i<=elements.length;i++) { 
    15       $j('#lbl_' + elements[i]).css( { color: color} ); 
    16       $j("#cb_"+elements[i]).attr("disabled",dis); 
     15      $j('#lbl_' + elements[i]).css( { color: color} );  // grey out label texts 
     16            if (dis)  //disable/enable checkboxes 
     17                 $j("#cb_"+elements[i]).attr("disabled","disabled"); 
     18            else 
     19                 $j("#cb_"+elements[i]).removeAttr("disabled"); 
    1720   } 
    1821   $j('#pos').css( { color: color}); 
  • pagebar/trunk/readme.txt

    r301753 r494677  
    44Tags: navigation, navi, page, comments 
    55Requires at least: 2.7 
    6 Tested up to: 3.01 
     6Tested up to: 3.3.1 
    77Stable tag: trunk 
    88 
     
    199199 
    200200== Changelog == 
     201= 2.59.1 = 
     202* Fixed: enabling/disabling of positioning options 
     203* Fixed: Replaced "add_contextual_help()" with "$screen->add_help_tab()" for WP >= v3.3 
     204 
    201205= 2.59 = 
    202206+ Added Dutch language file (thanks to Rene of WordPress Plugin Guide - http://wppg.me) 
Note: See TracChangeset for help on using the changeset viewer.