Plugin Directory

Changeset 897356

Timestamp:
04/18/2014 01:25:49 PM (10 years ago)
Author:
wpsmith
Message:

Sync with Github.

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

Legend:

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

    r837424 r897356  
    73731. gsfc_after_taxonomy_more (alias of gsfc_after_category_more) - after the archive more conditional block
    74741. gsfc_after_[TAXONOMY]_more (alias of gsfc_after_category_more) - after the archive more conditional block
    75 1. gs_featured_content_show_content - create your own custom content block
     751. gs_show_content - create your own custom content block
    7676
    7777### What Filters are available? ###
  • genesis-featured-content-widget/trunk/css/column-classes.css

    r837424 r897356  
    33--------------------------------------------- */
    44
    5 .five-sixths,
    6 .four-sixths,
    7 .four-fifths,
    8 .one-fifth,
    9 .one-fourth,
    10 .one-half,
    11 .one-sixth,
    12 .one-third,
    13 .three-fourths,
    14 .three-fifths,
    15 .three-sixths,
    16 .two-fourths,
    17 .two-fifths,
    18 .two-sixths,
    19 .two-thirds {
    20     float: left;
    21     margin-left: 2.564102564102564%;
     5.widget.featured-content-portfolio .gs-featured-content-entry {
     6    clear: none !important;
    227}
    238
    24 .one-half,
    25 .three-sixths,
    26 .two-fourths {
    27     width: 48.717948717948715%;
     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 {
     24    float: left;
     25    margin-left: 2.564102564102564% !important;
     26    margin-right: 0 !important;
    2827}
    2928
    30 .one-third,
    31 .two-sixths {
    32     width: 31.623931623931625%;
     29.widget.featured-content-portfolio .one-half,
     30.widget.featured-content-portfolio .three-sixths,
     31.widget.featured-content-portfolio .two-fourths {
     32    width: 48.717948717948715% !important;
    3333}
    3434
    35 .four-sixths,
    36 .two-thirds {
    37     width: 65.81196581196582%;
     35.,
     36.s {
     37    width: ;
    3838}
    3939
    40 .one-fourth {
    41     width: 23.076923076923077%;
     40.widget.featured-content-portfolio .four-sixths,
     41.widget.featured-content-portfolio .two-thirds {
     42    width: 65.81196581196582% !important;
    4243}
    4344
    44 .three-fourths {
    45     width: 74.35897435897436%;
     45. {
     46    width: ;
    4647}
    4748
    48 .one-fifth {
    49     width: 17.9487179487179488%;
     49. {
     50    width: ;
    5051}
    5152
    52 .two-fifths {
    53     width: 38.4615384615384616%;
     53. {
     54    width: ;
    5455}
    5556
    56 .three-fifths {
    57     width: 58.9743589743589744%;
     57.-fifths {
     58    width: ;
    5859}
    5960
    60 .four-fifths {
    61     width: 79.4871794871794872%;
     61.-fifths {
     62    width: ;
    6263}
    6364
    64 .one-sixth {
    65     width: 14.52991452991453%;
     65. {
     66    width: ;
    6667}
    6768
    68 .five-sixths {
    69     width: 82.90598290598291%;
     69. {
     70    width: ;
    7071}
    7172
    72 .first {
     73.widget.featured-content-portfolio .five-sixths {
     74    width: 82.90598290598291% !important;
     75}
     76
     77.widget.featured-content-portfolio .first {
    7378    clear: both;
    74     margin-left: 0;
     79    margin-left: 0;
    7580}
  • genesis-featured-content-widget/trunk/css/column-classes.min.css

    r818042 r897356  
    1 .five-sixths,.four-sixths,.four-fifths,.one-fifth,.one-fourth,.one-half,.one-sixth,.one-third,.three-fourths,.three-fifths,.three-sixths,.two-fourths,.two-fifths,.two-sixths,.two-thirds {float: left;margin-left: 2.564102564102564%;}.one-half,.three-sixths,.two-fourths {width: 48.717948717948715%;}.one-third,.two-sixths {width: 31.623931623931625%}.four-sixths,.two-thirds {width: 65.81196581196582%}.one-fourth {width: 23.076923076923077%}.three-fourths {width: 74.35897435897436%}.one-fifth {width: 17.9487179487179488%}.two-fifths {width: 38.4615384615384616%}.three-fifths {width: 58.9743589743589744%}.four-fifths {width: 79.4871794871794872%}.one-sixth {width: 14.52991452991453%}.five-sixths {width: 82.90598290598291%}.first {clear: both;margin-left: 0}
     1.widget.featured-content-portfolio .gs-featured-content-entry{clear:none!important}
     2.widget.featured-content-portfolio .five-sixths,.widget.featured-content-portfolio .four-sixths,.widget.featured-content-portfolio .four-fifths,.widget.featured-content-portfolio .one-fifth,.widget.featured-content-portfolio .one-fourth,.widget.featured-content-portfolio .one-half,.widget.featured-content-portfolio .one-sixth,.widget.featured-content-portfolio .one-third,.widget.featured-content-portfolio .three-fourths,.widget.featured-content-portfolio .three-fifths,.widget.featured-content-portfolio .three-sixths,.widget.featured-content-portfolio .two-fourths,.widget.featured-content-portfolio .two-fifths,.widget.featured-content-portfolio .two-sixths,.widget.featured-content-portfolio .two-thirds{float:left;margin-left:2.5641025641%!important;margin-right:0!important}
     3.widget.featured-content-portfolio .one-half,.widget.featured-content-portfolio .three-sixths,.widget.featured-content-portfolio .two-fourths{width:48.7179487179%!important}
     4.widget.featured-content-portfolio .one-third,.widget.featured-content-portfolio .two-sixths{width:31.6239316239%!important}
     5.widget.featured-content-portfolio .four-sixths,.widget.featured-content-portfolio .two-thirds{width:65.811965812%!important}
     6.widget.featured-content-portfolio .one-fourth{width:23.0769230769%!important}
     7.widget.featured-content-portfolio .three-fourths{width:74.358974359%!important}
     8.widget.featured-content-portfolio .one-fifth{width:17.9487179487%!important}
     9.widget.featured-content-portfolio .two-fifths{width:38.4615384615%!important}
     10.widget.featured-content-portfolio .three-fifths{width:58.9743589744%!important}
     11.widget.featured-content-portfolio .four-fifths{width:79.4871794872%!important}
     12.widget.featured-content-portfolio .one-sixth{width:14.5299145299%!important}
     13.widget.featured-content-portfolio .five-sixths{width:82.905982906%!important}
     14.widget.featured-content-portfolio .first{clear:both;margin-left:0!important}
  • genesis-featured-content-widget/trunk/gs-featured-content-widget.php

    r837424 r897356  
    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.0
     6 * Version: 1.1.
    77 * Author: Travis Smith
    88 * Author URI: http://wpsmith.net/
     
    4747    $latest = '2.0';
    4848
    49     $theme_info = get_theme_data( TEMPLATEPATH . '/style.css' );
    50 
    51     if ( basename( TEMPLATEPATH ) != 'genesis' ) {
     49    if ( basename( get_template_directory() ) != 'genesis' ) {
    5250        deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate ourself
    53         wp_die( sprintf( __( 'Sorry, you can\'t activate unless you have installed %1$sGenesis%2$s', 'gfwa' ), '<a href="http://wpsmith.net/get-genesis/">', '</a>' ) );
     51        wp_die( sprintf( __( 'Sorry, you can\'t activate unless you have installed %1$sGenesis%2$s', 'g' ), '<a href="http://wpsmith.net/get-genesis/">', '</a>' ) );
    5452    }
    5553   
    56     if ( function_exists( 'genesis_truncate_phrase' ) )
    57         $version = genesis_truncate_phrase( $theme_info['Version'], 3 );
    58 
    59     if ( version_compare( $version, $latest, '<' ) ) {
     54    if ( ! function_exists( 'genesis_upgrade_2001' ) ) {
    6055        deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate ourself
    6156        wp_die( sprintf( __( 'Sorry, you can\'t activate without %1$sGenesis %2$s%3$s or greater', 'gsfc' ), '<a href="http://wpsmith.net/get-genesis/">', $latest, '</a>' ) );
  • genesis-featured-content-widget/trunk/readme.txt

    r837425 r897356  
    70701. gsfc_after_taxonomy_more (alias of gsfc_after_category_more) - after the archive more conditional block
    71711. gsfc_after_[TAXONOMY]_more (alias of gsfc_after_category_more) - after the archive more conditional block
    72 1. gs_featured_content_show_content - create your own custom content block
     721. gs_show_content - create your own custom content block
    73731. gsfc_debug - debug filter, deletes all transients.
    7474
     
    8484
    8585== Changelog ==
    86 1.1.0 (01/12/2011)
     861.1.2 (01/12/2013)
     87* Fixed column classes to ensure they over-ride child theme settings if selected.
     88
     891.1.1 (01/12/2013)
     90* Updated action/filters for consistency. DO NOT upgrade if you have used these hooks/filters without comparing.
     91
     921.1.0 (01/12/2013)
    8793* First WordPress Repo Release
    8894
  • genesis-featured-content-widget/trunk/widget.php

    r837424 r897356  
    144144       
    145145        GS_Featured_Content::add();
    146         do_action( 'gs_featured_content_actions', $this );
     146        do_action( 'gs_actions', $this );
    147147    }
    148148   
     
    178178        //* Do Post Info By Line
    179179        add_action( 'gsfc_before_post_content', array( 'GS_Featured_Content', 'do_byline' ), 5 );
    180         add_action( 'gsfc_post_content', array( 'GS_Featured_Content', 'do_byline' ) );
     180        add_action( 'gsfc_post_content', array( 'GS_Featured_Content', 'do_byline' ) );
    181181        add_action( 'gsfc_after_post_content', array( 'GS_Featured_Content', 'do_byline' ) );
    182182       
     
    221221    public static function excerpt_more( $more_text ) {
    222222        if ( isset( GS_Featured_Content::$widget_instance['more_text'] ) && GS_Featured_Content::$widget_instance['more_text'] ) {
    223             return sprintf( '<a href="%s">%s</a>', get_permalink(), GS_Featured_Content::$widget_instance['more_text'], GS_Featured_Content::$widget_instance['more_text'] );
     223            return sprintf( '<a href="%s">%s</a>', get_permalink(), GS_Featured_Content::$widget_instance['more_text'], GS_Featured_Content::$widget_instance['more_text'] );
    224224        }
    225225        return $more_text;
     
    346346     */
    347347    public static function do_byline( $instance ) {
    348         if ( empty( $instance['show_byline'] ) || empty( $instance['post_info'] ) ) return;
     348        if ( empty( $instance['show_byline'] ) || empty( $instance['post_info'] ) ) {
     349            return;
     350        }
    349351       
    350352        $byline = '';
    351         if ( !empty( $instance['post_info'] ) )
     353        if ( !empty( $instance['post_info'] ) )
    352354            $byline = sprintf( '<p class="byline post-info">%s</p>', do_shortcode( esc_html( $instance['post_info'] ) ) );
     355
    353356       
    354357        GS_Featured_Content::maybe_echo( $instance, 'gsfc_before_post_content', 'byline_position', 'before-title', $byline );
    355         GS_Featured_Content::maybe_echo( $instance, 'gsfc_after_post_content', 'byline_position', 'after-title', $byline );
     358        GS_Featured_Content::maybe_echo( $instance, 'gsfc_post_content', 'byline_position', 'after-title', $byline );
    356359    }
    357360   
     
    475478            $title = the_title_attribute( 'echo=0' );
    476479       
    477         if ( genesis_html5() )
    478             $hclass = ' class="entry-title"';
    479         else
     480        if ( genesis_html5() )
     481            $hclass = ;
     482       
    480483            $hclass = '';
     484
    481485       
    482486        printf( '<h2%s>%s%s%s</h2>', $hclass, $wrap_open, $title, $wrap_close );
     
    501505            the_content( esc_html( $instance['more_text'] ) );
    502506        } else {
    503             do_action( 'gs_featured_content_show_content' );
     507            do_action( 'gs_show_content' );
    504508        }
    505509    }
     
    592596    public static function sanitize_transient( $name ) {
    593597        if ( 40 < strlen( $name ) )
    594             $name = substr( $string, 0, 40 );
     598            $name = substr( $, 0, 40 );
    595599        return $name;
    596600    }
     
    611615        return get_transient( $name );
    612616    }
     617
     618
     619
     620
     621
     622
     623
     624
     625
     626
     627
     628
     629
     630
     631
     632
     633
     634
     635
     636
     637
     638
     639
     640
     641
     642
     643
     644
     645
     646
     647
     648
     649
     650
     651
     652
     653
     654
     655
     656
     657
     658
     659
     660
     661
     662
     663
     664
     665
     666
     667
    613668   
    614669    /**
     
    647702            GS_Featured_Content::action( 'gsfc_taxonomy_more', $instance );
    648703            GS_Featured_Content::action( 'gsfc_' . $taxonomy . '_more', $instance );
    649             $term = get_term_by( 'slug', $posts_term['1'], $taxonomy );
     704            $term = get_term_by( 'slug', $posts_term['1'], $taxonomy );
    650705            printf(
    651                 '<p class="more-from-%s"><a href="%1$s" title="%2$s">%3$s</a></p>',
     706                '<p class="more-from-%$s</a></p>',
    652707                $taxonomy,
    653708                esc_url( get_term_link( $posts_term['1'], $taxonomy ) ),
     
    10821137            'optimize'               => array(
    10831138                'label'       => __( 'Optimize?', 'gsfc' ),
    1084                 'description' => 'Check to optimize WP_Query & enable site transients for the query results. You MUST set Instance Identification Field below.',
     1139                'description' => 'Check to optimize WP_Query & enable site transients for the query results. .',
    10851140                'type'        => 'checkbox',
    10861141                'requires'    => '',
     
    14911546        return $random_string;
    14921547    }
     1548
     1549
     1550
     1551
     1552
     1553
     1554
     1555
     1556
     1557
     1558
     1559
     1560
     1561
     1562
     1563
     1564
     1565
     1566
     1567
     1568
     1569
     1570
     1571
     1572
     1573
     1574
     1575
     1576
     1577
     1578
     1579
    14931580   
    14941581    /**
     
    15801667                                __( 'All Taxonomies and Terms', 'gsfc' )
    15811668                            );
    1582                                    
    1583                             $taxonomies = get_taxonomies( array( 'public' => true ), 'objects' );
     1669                           
     1670                            $taxonomies = ), 'objects' );
    15841671                            $taxonomies = array_filter( $taxonomies, array( __CLASS__, 'exclude_taxonomies' ) );
    15851672
     
    17971884        // no 'class' attribute - add one with the value of width
    17981885        if( strpos( $b, 'class' ) === false ) {
    1799             $b = str_replace( '>', 'class="' . GS_Featured_Content::$base . '-' . $class . ' featuredpost"', $b );
     1886            $b = str_replace( '>', 'class="' . GS_Featured_Content::$base . '-' . . ' featuredpost"', $b );
    18001887        }
    18011888        // there is 'class' attribute - append width value to it
    18021889        else {
    1803             $b = str_replace( 'class="', 'class="'. GS_Featured_Content::$base . '-' . $class . ' featuredpost ', $b );
     1890            $b = str_replace( 'class="', 'class="'. GS_Featured_Content::$base . '-' . . ' featuredpost ', $b );
    18041891        }
    18051892       
Note: See TracChangeset for help on using the changeset viewer.