WordPress.org

Plugin Directory

Changeset 1393774


Ignore:
Timestamp:
04/13/16 07:46:13 (15 months ago)
Author:
SriniG
Message:

v1.7.2: + code to add default blank item to dropdown when in home page and show_home not set

Location:
flexi-pages-widget/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • flexi-pages-widget/trunk/flexi-pages-widget.php

    r1153786 r1393774  
    44 * Plugin URI: http://srinig.com/wordpress/plugins/flexi-pages/ 
    55 * Description: A highly configurable WordPress sidebar widget to list pages and sub-pages. User friendly widget control comes with various options.  
    6  * Version: 1.7.1 
     6 * Version: 1.7.2 
    77 * Author: Srini G 
    88 * Author URI: http://srinig.com/wordpress 
     
    1212 */ 
    1313 
    14 /*  Copyright 2007-2015 Srini G (email : srinig.com@gmail.com) 
     14/*  Copyright 2007-2016 Srini G (email : srinig.com@gmail.com) 
    1515 
    1616    This program is free software; you can redistribute it and/or modify 
     
    3333include_once( 'inc/class-flexi-pages-widget.php' ); 
    3434 
    35 define( 'FLEXIPAGES_VERSION', '1.7.1' ); 
     35define( 'FLEXIPAGES_VERSION', '1.7.2' ); 
    3636 
    3737function flexipages_init() 
  • flexi-pages-widget/trunk/inc/class-flexi-pages-widget.php

    r1142957 r1393774  
    116116        }        
    117117 
    118         // To-do frame the options to be passed to the Flexi_Pages constructor 
    119  
    120118        // echo "<pre>"; print_r($flexi_pages_args); echo "</pre>"; 
    121119 
  • flexi-pages-widget/trunk/inc/class-flexi-pages.php

    r1142957 r1393774  
    117117        $dropdown_items = ""; 
    118118        $depth = 0; 
     119 
     120        // This adds a blank default item if we are in the home page and 'show_home' is not set 
     121        if( is_home() && !( isset($this->args['show_home']) && $this->args['show_home'] ) ) { 
     122            $dropdown_items .= "<option disabled selected><option>\n"; 
     123        } 
    119124         
    120125        foreach($pages as $page) { 
     
    143148                'class'    => $class, 
    144149            ); 
    145         }    
     150        } 
    146151             
    147152        if($args['show_subpages'] == -2) $args['show_subpages'] = 2; 
  • flexi-pages-widget/trunk/readme.txt

    r1153786 r1393774  
    44Tags: pages, subpages, menu, hierarchy, sidebar, widget, navigation 
    55Requires at least: 3.0 
    6 Tested up to: 4.2.1 
     6Tested up to: 4.5 
    77Stable tag: trunk 
    88 
     
    198198== Changelog == 
    199199 
     200= v1.7.2 (2016-04-13) = 
     201* Code to add a default blank item to dropdown when in home page and 'show_home' is not set. This is to make sure all other page items are clickable. 
     202 
    200203= v1.7.1 (2015-05-05) = 
    201204* Fix to the issue where the options won't upgrade for some users. Thanks to joffs and other users for the inputs. 
     
    328331 
    329332= 1.7.1 = 
    330 1.7 makes use of the WP Widgets API and cleans out many errors and bugs. 1.7.1 comes with a fix for the issue some users were having with upgrade to 1.7. 
     3331.7 makes use of the WP Widgets API and cleans out many errors and bugs. 1.7.1 and 1.7.2 come with fixes. 
Note: See TracChangeset for help on using the changeset viewer.