Plugin Directory

Changeset 945084

Timestamp:
07/08/2014 05:35:23 PM (10 years ago)
Author:
wpsmith
Message:

1.1.7

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

Legend:

Unmodified
Added
Removed
  • genesis-featured-content-widget/trunk/README.md

    r945010 r945084  
    83831. gsfc_list_items - HTML markup for the list items
    84841. gsfc_form_fields - Add custom fields to widget form
    85 
    86 ## Changelog ##
    87 * 1.1.6 (07/08/2014) Fixed meta_value_numeric to show meta_key input. TY @4WardMotion.
    88 
    89 ## Special Thanks ##
    90 I owe a huge debt of gratitude to all the folks at StudioPress & Gary Jones, their themes make my life easier.
  • genesis-featured-content-widget/trunk/gs-featured-content-widget.php

    r945010 r945084  
    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.6
     6 * Version: 1.1.
    77 * Author: Travis Smith
    88 * Author URI: http://wpsmith.net/
  • genesis-featured-content-widget/trunk/readme.txt

    r897356 r945084  
    8484
    8585== Changelog ==
     86
     87
     88
     89
     90
     91
    86921.1.2 (01/12/2013)
    8793* Fixed column classes to ensure they over-ride child theme settings if selected.
  • genesis-featured-content-widget/trunk/widget.php

    r945010 r945084  
    395395        $align = $instance['image_alignment'] ? esc_attr( $instance['image_alignment'] ) : 'alignnone';
    396396        $link  = $instance['link_image_field'] ? $instance['link_image_field'] : get_permalink();
    397         $link  = genesis_get_custom_field( 'gsfc_link_image_field' ) ? genesis_get_custom_field( 'gsfc_link_image_field' ) : $instance['link_image_field'];
     397        $link  = ;
    398398       
    399399        $image = genesis_get_image( array(
     
    958958                ),
    959959                'requires'    => array(
    960                     'page_id',
    961                     '',
    962                     false
     960                    'p',
     961                    '',
     962                    e
    963963                ),
    964964            ),
     
    978978                'type'        => 'text_small',
    979979                'requires'    => array(
    980                     'page_id',
    981                     '',
    982                     false
     980                    'p',
     981                    '',
     982                    e
    983983                ),
    984984            ),
     
    988988                'type'        => 'text_small',
    989989                'requires'    => array(
    990                     'page_id',
    991                     '',
    992                     false
     990                    'p',
     991                    '',
     992                    e
    993993                ),
    994994            ),
     
    10081008                ),
    10091009                'requires'    => array(
    1010                     'page_id',
    1011                     '',
    1012                     false
     1010                    'p',
     1011                    '',
     1012                    e
    10131013                ),
    10141014            ),
     
    10221022                ),
    10231023                'requires'    => array(
    1024                     'page_id',
    1025                     '',
    1026                     false
     1024                    'p',
     1025                    '',
     1026                    e
    10271027                ),
    10281028            ),
     
    15071507       
    15081508        $columns = array(
    1509             'col'  => array( $box, ),
     1509'col'  => array( $box, ),
    15101510            'col1' => array(
    15111511                $box_1,
     
    15141514                $box_4,
    15151515            ),
    1516             'col2' => array(
     1516'col2' => array(
    15171517                $box_5,
    15181518                $box_6,
    15191519                $box_7,
    15201520            ),
    1521         );
     1521);
    15221522        return apply_filters( 'gsfc_form_fields', $columns, GS_Featured_Content::$widget_instance, compact( "box_1", "box_2", "box_3", "box_4", "box_5", "box_6", "box_7" ) );
    15231523    }
     
    21472147       
    21482148        GS_Featured_Content::delete_transient( 'gsfc_extra_' . $new_instance['custom_field'] );
    2149         if ( $new_instance['custom_field'] != $old_instance['custom_field'] )
     2149        if ( $new_instance['custom_field'] != $old_instance['custom_field'] )
    21502150            GS_Featured_Content::delete_transient( 'gsfc_extra_' . $old_instance['custom_field'] );
     2151
    21512152           
    21522153        GS_Featured_Content::delete_transient( 'gsfc_main_' . $new_instance['custom_field'] );
    2153         if ( $new_instance['custom_field'] != $old_instance['custom_field'] )
     2154        if ( $new_instance['custom_field'] != $old_instance['custom_field'] )
    21542155            GS_Featured_Content::delete_transient( 'gsfc_main_' . $old_instance['custom_field'] );
    2155        
     2156        }
     2157       
     2158        // Fix potential issues
     2159        $new_instance['page_id']         = 'page' !== $new_instance['post_type'] ? '' : absint( $new_instance['page_id'] );
     2160        $new_instance['include_exclude'] = 'page' !== $new_instance['post_type'] ? $new_instance['include_exclude'] : '';
     2161
    21562162        return apply_filters( 'gsfc_update', $new_instance, $old_instance );
    21572163
Note: See TracChangeset for help on using the changeset viewer.