Changeset 1777681
- Timestamp:
- 11/29/2017 01:03:59 PM (7 years ago)
- Location:
- genesis-featured-content-widget/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
genesis-featured-content-widget/trunk/css/column-classes.css
r897356 r1777681 3 3 --------------------------------------------- */ 4 4 5 .widget.featured-content -portfolio.gs-featured-content-entry {5 .widget.featured-content .gs-featured-content-entry { 6 6 clear: none !important; 7 7 } 8 8 9 .widget.featured-content -portfolio.five-sixths,10 .widget.featured-content -portfolio.four-sixths,11 .widget.featured-content -portfolio.four-fifths,12 .widget.featured-content -portfolio.one-fifth,13 .widget.featured-content -portfolio.one-fourth,14 .widget.featured-content -portfolio.one-half,15 .widget.featured-content -portfolio.one-sixth,16 .widget.featured-content -portfolio.one-third,17 .widget.featured-content -portfolio.three-fourths,18 .widget.featured-content -portfolio.three-fifths,19 .widget.featured-content -portfolio.three-sixths,20 .widget.featured-content -portfolio.two-fourths,21 .widget.featured-content -portfolio.two-fifths,22 .widget.featured-content -portfolio.two-sixths,23 .widget.featured-content -portfolio.two-thirds {9 .widget.featured-content .five-sixths, 10 .widget.featured-content .four-sixths, 11 .widget.featured-content .four-fifths, 12 .widget.featured-content .one-fifth, 13 .widget.featured-content .one-fourth, 14 .widget.featured-content .one-half, 15 .widget.featured-content .one-sixth, 16 .widget.featured-content .one-third, 17 .widget.featured-content .three-fourths, 18 .widget.featured-content .three-fifths, 19 .widget.featured-content .three-sixths, 20 .widget.featured-content .two-fourths, 21 .widget.featured-content .two-fifths, 22 .widget.featured-content .two-sixths, 23 .widget.featured-content .two-thirds { 24 24 float: left; 25 25 margin-left: 2.564102564102564% !important; … … 27 27 } 28 28 29 .widget.featured-content -portfolio.one-half,30 .widget.featured-content -portfolio.three-sixths,31 .widget.featured-content -portfolio.two-fourths {29 .widget.featured-content .one-half, 30 .widget.featured-content .three-sixths, 31 .widget.featured-content .two-fourths { 32 32 width: 48.717948717948715% !important; 33 33 } 34 34 35 .widget.featured-content -portfolio.one-third,36 .widget.featured-content -portfolio.two-sixths {35 .widget.featured-content .one-third, 36 .widget.featured-content .two-sixths { 37 37 width: 31.623931623931625% !important; 38 38 } 39 39 40 .widget.featured-content -portfolio.four-sixths,41 .widget.featured-content -portfolio.two-thirds {40 .widget.featured-content .four-sixths, 41 .widget.featured-content .two-thirds { 42 42 width: 65.81196581196582% !important; 43 43 } 44 44 45 .widget.featured-content -portfolio.one-fourth {45 .widget.featured-content .one-fourth { 46 46 width: 23.076923076923077% !important; 47 47 } 48 48 49 .widget.featured-content -portfolio.three-fourths {49 .widget.featured-content .three-fourths { 50 50 width: 74.35897435897436% !important; 51 51 } 52 52 53 .widget.featured-content -portfolio.one-fifth {53 .widget.featured-content .one-fifth { 54 54 width: 17.9487179487179488% !important; 55 55 } 56 56 57 .widget.featured-content -portfolio.two-fifths {57 .widget.featured-content .two-fifths { 58 58 width: 38.4615384615384616% !important; 59 59 } 60 60 61 .widget.featured-content -portfolio.three-fifths {61 .widget.featured-content .three-fifths { 62 62 width: 58.9743589743589744% !important; 63 63 } 64 64 65 .widget.featured-content -portfolio.four-fifths {65 .widget.featured-content .four-fifths { 66 66 width: 79.4871794871794872% !important; 67 67 } 68 68 69 .widget.featured-content -portfolio.one-sixth {69 .widget.featured-content .one-sixth { 70 70 width: 14.52991452991453% !important; 71 71 } 72 72 73 .widget.featured-content -portfolio.five-sixths {73 .widget.featured-content .five-sixths { 74 74 width: 82.90598290598291% !important; 75 75 } 76 76 77 .widget.featured-content -portfolio.first {77 .widget.featured-content .first { 78 78 clear: both; 79 79 margin-left: 0 !important; -
genesis-featured-content-widget/trunk/gs-featured-content-widget.php
r945137 r1777681 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.86 * Version: 1. 7 7 * Author: Travis Smith 8 8 * Author URI: http://wpsmith.net/ … … 25 25 * @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) 26 26 * @link http://wpsmith.net/ 27 * @since 1.1.028 */29 27 30 28 /** Exit if accessed directly */ … … 32 30 33 31 define( 'GSFC_PLUGIN_NAME', basename( dirname( __FILE__ ) ) ); 34 define( 'GSFC_PLUGIN_VERSION', '1. 1.0' );32 define( 'GSFC_PLUGIN_VERSION', '1.' ); 35 33 36 34 /** Load textdomain for translation */ -
genesis-featured-content-widget/trunk/readme.txt
r945147 r1777681 84 84 85 85 == Changelog == 86 87 88 86 89 1.1.8 (07/18/2014) 87 90 * Fixed post_info/post_meta issue #26, props BenFurfie. -
genesis-featured-content-widget/trunk/widget.php
r945148 r1777681 165 165 //* Do Post Image 166 166 add_filter( 'genesis_attr_gsfc-entry-image-widget', array( 'GS_Featured_Content', 'attributes_gsfc_entry_image_widget' ) ); 167 add_action( 'gsfc_before_post_content', array( 'GS_Featured_Content', 'do_post_image' ) );167 add_action( 'gsfc_before_post_content', array( 'GS_Featured_Content', 'do_post_image' ) ); 168 168 add_action( 'gsfc_post_content', array( 'GS_Featured_Content', 'do_post_image' ) ); 169 169 add_action( 'gsfc_after_post_content', array( 'GS_Featured_Content', 'do_post_image' ) ); 170 170 171 171 //* Do before widget post content 172 add_action( 'gsfc_before_post_content', array( 'GS_Featured_Content', 'do_gravatar' ) );172 add_action( 'gsfc_before_post_content', array( 'GS_Featured_Content', 'do_gravatar' ) ); 173 173 add_action( 'gsfc_before_post_content', array( 'GS_Featured_Content', 'do_post_title' ) ); 174 174 … … 227 227 228 228 /** 229 * Adds all Widget's Actions at once for easy removal.229 * . 230 230 * 231 231 * @param int $length Current excerpt length. … … 239 239 240 240 /** 241 * Adds all Widget's Actions at once for easy removal.241 * Adds . 242 242 */ 243 243 public static function enqueue_style( $instance ) { … … 312 312 */ 313 313 public static function post_class( $classes ) { 314 global $gs_counter; 315 $classes[] = sprintf( 'gs-%s', $gs_counter + 1 ); 316 $classes[] = $gs_counter + 1 & 1 ? 'gs-odd' : 'gs-even'; 317 $classes[] = 'gs-featured-content-entry'; 318 319 //* First Class 314 global $gs_counter; 315 $classes[] = sprintf( 'gs-%s', $gs_counter + 1 ); 316 $classes[] = $gs_counter + 1 & 1 ? 'gs-odd' : 'gs-even'; 317 $classes[] = $gs_counter == 4 ? 'gs-odd' : 'gs-even'; 318 $classes[] = 'gs-featured-content-entry'; 319 320 //* First Class 320 321 if ( GS_Featured_Content::has_value( 'column_class' ) && ( 0 == $gs_counter || 0 == $gs_counter % GS_Featured_Content::get_col_class_num( GS_Featured_Content::$widget_instance['column_class'] ) ) ) 321 322 $classes[] = 'first'; … … 341 342 342 343 /** 343 * Inserts Post Image344 * 344 345 * 345 346 * @param array $instance The settings for the particular instance of the widget. … … 374 375 global $post; 375 376 376 $attributes['class'] = sprintf( 'entry-image attachment-%s %s', $post->post_type, $attributes['align'] );377 $attributes['class'] = sprintf( 'entry-image attachment-%s %s', $post->post_type, $attributes['align'] ); 377 378 unset( $attributes['align'] ); 378 379 $attributes['itemprop'] = 'image'; … … 464 465 465 466 /** 466 * Outputs Post Title if option is select s467 * Outputs Post Title if option is select 467 468 * 468 469 * @param array $instance The settings for the particular instance of the widget. … … 495 496 496 497 /** 497 * Outputs the selected content option if any498 * Outputs the selected content option 498 499 * 499 500 * @param array $instance The settings for the particular instance of the widget. … … 531 532 532 533 /** 533 * Outputs post meta if option is selected and anything is in the post meta field 534 * Outputs post meta if option is selected and anything is in the post meta field 534 535 * 535 536 * @param array $instance The settings for the particular instance of the widget. … … 610 611 611 612 /** 612 * Sanitiz ies transient name (to less than 40 characters)613 * Sanitizes transient name (to less than 40 characters) 613 614 * 614 615 * @param string $name Transient name. … … 880 881 */ 881 882 public static function get_image_size_options() { 882 $sizes = genesis_get_ additional_image_sizes();883 $sizes = genesis_get_image_sizes(); 883 884 $image_size_opt['thumbnail'] = 'thumbnail ('. get_option( 'thumbnail_size_w' ) . 'x' . get_option( 'thumbnail_size_h' ) . ')'; 884 885 foreach( ( array )$sizes as $name => $size ) … … 1144 1145 'one-fourth' => __( 'One Fourth', 'gsfc' ), 1145 1146 'one-fifth' => __( 'One Fifth', 'gsfc' ), 1146 'one-six ith' => __( 'One Sixth', 'gsfc' ),1147 'one-sixth' => __( 'One Sixth', 'gsfc' ), 1147 1148 'two-thirds' => __( 'Two Thirds', 'gsfc' ), 1148 1149 'three-fourths' => __( 'Three Fourths', 'gsfc' ), … … 1762 1763 1763 1764 case 'checkbox' : 1764 printf( '<input type="checkbox" id="%1$s" name="%2$s" value="1" class="widget-control-save" %3$s />',1765 printf( '<input type="checkbox" id="%1$s" name="%2$s" value="1" " %3$s />', 1765 1766 $obj->get_field_id( $field_id ), 1766 1767 $obj->get_field_name( $field_id ), … … 1883 1884 */ 1884 1885 public static function data_implode( $a ) { 1885 if ( is_array( $a ) && !empty( $a ) )1886 if ( is_array( $a ) && !empty( $a ) ) 1886 1887 return sprintf( ' data-requires-key="%s" data-requires-val="%s"', $a[0], $a[1] ); 1887 1888 else
Note: See TracChangeset
for help on using the changeset viewer.