Changeset 945010
- Timestamp:
- 07/08/2014 03:45:09 PM (10 years ago)
- 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
-
Property
svn:ignore
set to
-
genesis-featured-content-widget/trunk/README.md
r897356 r945010 85 85 86 86 ## 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. 90 88 91 89 ## Special Thanks ## -
genesis-featured-content-widget/trunk/gs-featured-content-widget.php
r938111 r945010 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. 56 * Version: 1.1. 7 7 * Author: Travis Smith 8 8 * Author URI: http://wpsmith.net/ -
genesis-featured-content-widget/trunk/widget.php
r938111 r945010 1033 1033 'requires' => array( 1034 1034 'orderby', 1035 'meta_value',1035 , 1036 1036 false 1037 1037 ), … … 1622 1622 1623 1623 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] ) .'"' : ''; 1625 1626 printf( '<div class="gsfc-box"%s>', $box_style ); 1626 1627 … … 1631 1632 1632 1633 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'] ) .'"'; 1634 1635 echo '<div ' . $style . ' class="' . $args['type'] . ' ' . $field_id . '" data-requires-key="' . $args['requires'][0] . '" data-requires-value="' . $args['requires'][1] . '" >'; 1635 1636 } else { … … 1844 1845 * @param boolean $standard Echo standard return false for oposite. 1845 1846 */ 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 1848 1853 if ( is_array( $option ) ) { 1849 1854 foreach ( $option as $key ) {
Note: See TracChangeset
for help on using the changeset viewer.