Changeset 945084
- Timestamp:
- 07/08/2014 05:35:23 PM (10 years ago)
- Location:
- genesis-featured-content-widget/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
genesis-featured-content-widget/trunk/README.md
r945010 r945084 83 83 1. gsfc_list_items - HTML markup for the list items 84 84 1. 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 4 4 * Plugin URI: https://wpsmith.net/ 5 5 * 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. 66 * Version: 1.1. 7 7 * Author: Travis Smith 8 8 * Author URI: http://wpsmith.net/ -
genesis-featured-content-widget/trunk/readme.txt
r897356 r945084 84 84 85 85 == Changelog == 86 87 88 89 90 91 86 92 1.1.2 (01/12/2013) 87 93 * Fixed column classes to ensure they over-ride child theme settings if selected. -
genesis-featured-content-widget/trunk/widget.php
r945010 r945084 395 395 $align = $instance['image_alignment'] ? esc_attr( $instance['image_alignment'] ) : 'alignnone'; 396 396 $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 = ; 398 398 399 399 $image = genesis_get_image( array( … … 958 958 ), 959 959 'requires' => array( 960 'p age_id',961 ' ',962 false960 'p', 961 '', 962 e 963 963 ), 964 964 ), … … 978 978 'type' => 'text_small', 979 979 'requires' => array( 980 'p age_id',981 ' ',982 false980 'p', 981 '', 982 e 983 983 ), 984 984 ), … … 988 988 'type' => 'text_small', 989 989 'requires' => array( 990 'p age_id',991 ' ',992 false990 'p', 991 '', 992 e 993 993 ), 994 994 ), … … 1008 1008 ), 1009 1009 'requires' => array( 1010 'p age_id',1011 ' ',1012 false1010 'p', 1011 '', 1012 e 1013 1013 ), 1014 1014 ), … … 1022 1022 ), 1023 1023 'requires' => array( 1024 'p age_id',1025 ' ',1026 false1024 'p', 1025 '', 1026 e 1027 1027 ), 1028 1028 ), … … 1507 1507 1508 1508 $columns = array( 1509 1509 'col' => array( $box, ), 1510 1510 'col1' => array( 1511 1511 $box_1, … … 1514 1514 $box_4, 1515 1515 ), 1516 1516 'col2' => array( 1517 1517 $box_5, 1518 1518 $box_6, 1519 1519 $box_7, 1520 1520 ), 1521 1521 ); 1522 1522 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" ) ); 1523 1523 } … … 2147 2147 2148 2148 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'] ) 2150 2150 GS_Featured_Content::delete_transient( 'gsfc_extra_' . $old_instance['custom_field'] ); 2151 2151 2152 2152 2153 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'] ) 2154 2155 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 2156 2162 return apply_filters( 'gsfc_update', $new_instance, $old_instance ); 2157 2163
Note: See TracChangeset
for help on using the changeset viewer.