WordPress.org

Plugin Directory

Changeset 603747 for jetpack


Ignore:
Timestamp:
09/25/12 17:04:04 (19 months ago)
Author:
lancewillett
Message:

Widgets: move inline styles to external CSS file; fixes Image Widget issue with overflow rule being hard to override.

Location:
jetpack/trunk/modules
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/widgets.php

    r589445 r603747  
    2525} 
    2626 
     27/** 
     28 * Loads file for front-end widget styles. 
     29 */ 
     30function jetpack_widgets_styles() { 
     31    wp_enqueue_style( 'jetpack-widgets', plugins_url( 'widgets/widgets.css', __FILE__ ), array(), '20120924' ); 
     32} 
     33add_action( 'wp_enqueue_scripts', 'jetpack_widgets_styles' ); 
     34 
    2735jetpack_load_widgets(); 
  • jetpack/trunk/modules/widgets/image-widget.php

    r464339 r603747  
    4444                $output = '[caption align="align' .  esc_attr( $instance['align'] ) . '" width="' . esc_attr( $instance['img_width'] ) .'" caption="' . esc_attr( $instance['caption'] ) . '"]' . $output . '[/caption]'; 
    4545 
    46             echo '<div style="overflow:hidden;">' . do_shortcode( $output ) . '</div>'; 
     46            echo '<div class="jetpack-image-container">' . do_shortcode( $output ) . '</div>'; 
    4747        } 
    4848 
Note: See TracChangeset for help on using the changeset viewer.