Plugin Directory

Changeset 1777681

Timestamp:
11/29/2017 01:03:59 PM (7 years ago)
Author:
wpsmith
Message:

Updating for current WP support

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

Legend:

Unmodified
Added
Removed
  • genesis-featured-content-widget/trunk/css/column-classes.css

    r897356 r1777681  
    33--------------------------------------------- */
    44
    5 .widget.featured-content-portfolio .gs-featured-content-entry {
     5.widget.featured-content .gs-featured-content-entry {
    66    clear: none !important;
    77}
    88
    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 {
    2424    float: left;
    2525    margin-left: 2.564102564102564% !important;
     
    2727}
    2828
    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 {
    3232    width: 48.717948717948715% !important;
    3333}
    3434
    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 {
    3737    width: 31.623931623931625% !important;
    3838}
    3939
    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 {
    4242    width: 65.81196581196582% !important;
    4343}
    4444
    45 .widget.featured-content-portfolio .one-fourth {
     45.widget.featured-content .one-fourth {
    4646    width: 23.076923076923077% !important;
    4747}
    4848
    49 .widget.featured-content-portfolio .three-fourths {
     49.widget.featured-content .three-fourths {
    5050    width: 74.35897435897436% !important;
    5151}
    5252
    53 .widget.featured-content-portfolio .one-fifth {
     53.widget.featured-content .one-fifth {
    5454    width: 17.9487179487179488% !important;
    5555}
    5656
    57 .widget.featured-content-portfolio .two-fifths {
     57.widget.featured-content .two-fifths {
    5858    width: 38.4615384615384616% !important;
    5959}
    6060
    61 .widget.featured-content-portfolio .three-fifths {
     61.widget.featured-content .three-fifths {
    6262    width: 58.9743589743589744% !important;
    6363}
    6464
    65 .widget.featured-content-portfolio .four-fifths {
     65.widget.featured-content .four-fifths {
    6666    width: 79.4871794871794872% !important;
    6767}
    6868
    69 .widget.featured-content-portfolio .one-sixth {
     69.widget.featured-content .one-sixth {
    7070    width: 14.52991452991453% !important;
    7171}
    7272
    73 .widget.featured-content-portfolio .five-sixths {
     73.widget.featured-content .five-sixths {
    7474    width: 82.90598290598291% !important;
    7575}
    7676
    77 .widget.featured-content-portfolio .first {
     77.widget.featured-content .first {
    7878    clear: both;
    7979    margin-left: 0 !important;
  • genesis-featured-content-widget/trunk/gs-featured-content-widget.php

    r945137 r1777681  
    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.8
     6 * Version: 1.
    77 * Author: Travis Smith
    88 * Author URI: http://wpsmith.net/
     
    2525 * @license    http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
    2626 * @link       http://wpsmith.net/
    27  * @since      1.1.0
    28  */
    2927
    3028/** Exit if accessed directly */
     
    3230
    3331define( 'GSFC_PLUGIN_NAME', basename( dirname( __FILE__ ) ) );
    34 define( 'GSFC_PLUGIN_VERSION', '1.1.0' );
     32define( 'GSFC_PLUGIN_VERSION', '1.' );
    3533
    3634/** Load textdomain for translation */
  • genesis-featured-content-widget/trunk/readme.txt

    r945147 r1777681  
    8484
    8585== Changelog ==
     86
     87
     88
    86891.1.8 (07/18/2014)
    8790* Fixed post_info/post_meta issue #26, props BenFurfie.
  • genesis-featured-content-widget/trunk/widget.php

    r945148 r1777681  
    165165        //* Do Post Image
    166166        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' ) );
    168168        add_action( 'gsfc_post_content', array( 'GS_Featured_Content', 'do_post_image' ) );
    169169        add_action( 'gsfc_after_post_content', array( 'GS_Featured_Content', 'do_post_image' ) );
    170170       
    171171        //* 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' ) );
    173173        add_action( 'gsfc_before_post_content', array( 'GS_Featured_Content', 'do_post_title' ) );
    174174       
     
    227227   
    228228    /**
    229      * Adds all Widget's Actions at once for easy removal.
     229     * .
    230230     *
    231231     * @param int $length Current excerpt length.
     
    239239   
    240240    /**
    241      * Adds all Widget's Actions at once for easy removal.
     241     * Adds .
    242242     */
    243243    public static function enqueue_style( $instance ) {
     
    312312     */
    313313    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
    320321        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'] ) ) )
    321322            $classes[] = 'first';
     
    341342   
    342343    /**
    343      * Inserts Post Image
     344     *
    344345     *
    345346     * @param array $instance The settings for the particular instance of the widget.
     
    374375        global $post;
    375376
    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'] );
    377378        unset( $attributes['align'] );
    378379        $attributes['itemprop'] = 'image';
     
    464465   
    465466    /**
    466      * Outputs Post Title if option is selects
     467     * Outputs Post Title if option is select
    467468     *
    468469     * @param array $instance The settings for the particular instance of the widget.
     
    495496   
    496497    /**
    497      * Outputs the selected content option if any
     498     * Outputs the selected content option
    498499     *
    499500     * @param array $instance The settings for the particular instance of the widget.
     
    531532
    532533    /**
    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
    534535     *
    535536     * @param array $instance The settings for the particular instance of the widget.
     
    610611   
    611612    /**
    612      * Sanitizies transient name (to less than 40 characters)
     613     * Sanitizes transient name (to less than 40 characters)
    613614     *
    614615     * @param string $name Transient name.
     
    880881     */   
    881882    public static function get_image_size_options() {
    882         $sizes = genesis_get_additional_image_sizes();
     883        $sizes = genesis_get_image_sizes();
    883884        $image_size_opt['thumbnail'] = 'thumbnail ('. get_option( 'thumbnail_size_w' ) . 'x' . get_option( 'thumbnail_size_h' ) . ')';
    884885        foreach( ( array )$sizes as $name => $size )
     
    11441145                    'one-fourth'    => __( 'One Fourth', 'gsfc' ),
    11451146                    'one-fifth'     => __( 'One Fifth', 'gsfc' ),
    1146                     'one-sixith'    => __( 'One Sixth', 'gsfc' ),
     1147                    'one-sixth'    => __( 'One Sixth', 'gsfc' ),
    11471148                    'two-thirds'    => __( 'Two Thirds', 'gsfc' ),
    11481149                    'three-fourths' => __( 'Three Fourths', 'gsfc' ),
     
    17621763                           
    17631764                        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 />',
    17651766                                $obj->get_field_id( $field_id ),
    17661767                                $obj->get_field_name( $field_id ),
     
    18831884     */
    18841885    public static function data_implode( $a ) {
    1885         if ( is_array( $a ) && !empty( $a ) )
     1886        if ( is_array( $a ) && !empty( $a ) )
    18861887            return sprintf( ' data-requires-key="%s" data-requires-val="%s"', $a[0], $a[1] );
    18871888        else
Note: See TracChangeset for help on using the changeset viewer.