Plugin Directory

Changeset 945010

Timestamp:
07/08/2014 03:45:09 PM (10 years ago)
Author:
wpsmith
Message:

Version bump

Location:
genesis-featured-content-widget/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • genesis-featured-content-widget/trunk

    • Property svn:ignore set to
      .git
      .gitignore
  • genesis-featured-content-widget/trunk/README.md

    r897356 r945010  
    8585
    8686## Changelog ##
    87 1.0.0 (09/04/2013)
    88 
    89 * First Public Release
     87* 1.1.6 (07/08/2014) Fixed meta_value_numeric to show meta_key input. TY @4WardMotion.
    9088
    9189## Special Thanks ##
  • genesis-featured-content-widget/trunk/gs-featured-content-widget.php

    r938111 r945010  
    44 * Plugin URI: https://wpsmith.net/
    55 * Description: Based on the Genesis Featured Widget Amplified for additional functionality which allows support for custom post types, taxonomies, and extends the flexibility of the widget via action hooks to allow the elements to be re-positioned or other elements to be added.
    6  * Version: 1.1.5
     6 * Version: 1.1.
    77 * Author: Travis Smith
    88 * Author URI: http://wpsmith.net/
  • genesis-featured-content-widget/trunk/widget.php

    r938111 r945010  
    10331033                'requires'    => array(
    10341034                    'orderby',
    1035                     'meta_value',
     1035                    ,
    10361036                    false
    10371037                ),
     
    16221622           
    16231623            foreach( $boxes as $box ) {
    1624                 $box_style = isset( $box['box_requires'] ) ? ' style="'. GS_Featured_Content::get_display_option( $instance, $box['box_requires'][0], $box['box_requires'][1], $box['box_requires'][2] ) .'"' : '';
     1624                $box_style = isset( $box['box_requires'] ) ? ' style="'. GS_Featured_Content::get_display_option( $instance, $box['box_requires'] ) .'"' : '';
     1625                // $box_style = isset( $box['box_requires'] ) ? ' style="'. GS_Featured_Content::get_display_option( $instance, $box['box_requires'][0], $box['box_requires'][1], $box['box_requires'][2] ) .'"' : '';
    16251626                printf( '<div class="gsfc-box"%s>', $box_style );
    16261627           
     
    16311632                   
    16321633                    if ( isset( $args['requires'] ) && is_array( $args['requires'] ) && 3 == count( $args['requires'] ) ) {
    1633                         $style = ' style="'. GS_Featured_Content::get_display_option( $instance, $args['requires'][0], $args['requires'][1], $args['requires'][2] ) .'"';
     1634                        $style = ' style="'. GS_Featured_Content::get_display_option( $instance, $args['requires'] ) .'"';
    16341635                        echo '<div ' . $style . ' class="' . $args['type'] . ' ' . $field_id . '" data-requires-key="' . $args['requires'][0] . '" data-requires-value="' . $args['requires'][1] . '" >';
    16351636                    } else {
     
    18441845     * @param boolean $standard Echo standard return false for oposite.
    18451846     */
    1846     public static function get_display_option( $instance, $option='', $value='', $standard=true ) {
    1847         $display = '';
     1847    public static function get_display_option( $instance, $requires ) {
     1848        $display  = '';
     1849        $option   = $requires[0];
     1850        $value    = $requires[1];
     1851        $standard = $requires[2];
     1852
    18481853        if ( is_array( $option ) ) {
    18491854            foreach ( $option as $key ) {
Note: See TracChangeset for help on using the changeset viewer.