@@ 78-93 (lines=16) @@ | ||
75 | * styling for the sharing screen and popups |
|
76 | * JS for the options and switching |
|
77 | */ |
|
78 | function load_assets() { |
|
79 | wp_enqueue_script( |
|
80 | 'publicize', |
|
81 | plugins_url( 'assets/publicize.js', __FILE__ ), |
|
82 | array( 'jquery', 'thickbox' ), |
|
83 | '20121019' |
|
84 | ); |
|
85 | if( is_rtl() ) { |
|
86 | wp_enqueue_style( 'publicize', plugins_url( 'assets/rtl/publicize-rtl.css', __FILE__ ), array(), '20120925' ); |
|
87 | } else { |
|
88 | wp_enqueue_style( 'publicize', plugins_url( 'assets/publicize.css', __FILE__ ), array(), '20120925' ); |
|
89 | } |
|
90 | ||
91 | ||
92 | add_thickbox(); |
|
93 | } |
|
94 | ||
95 | public static function connected_notice( $service_name ) { ?> |
|
96 | <div class='updated'> |
@@ 91-98 (lines=8) @@ | ||
88 | return $attachments; |
|
89 | } |
|
90 | ||
91 | public static function default_scripts_and_styles() { |
|
92 | wp_enqueue_script( 'tiled-gallery', plugins_url( 'tiled-gallery/tiled-gallery.js', __FILE__ ), array( 'jquery' ) ); |
|
93 | if( is_rtl() ) { |
|
94 | wp_enqueue_style( 'tiled-gallery', plugins_url( 'tiled-gallery/rtl/tiled-gallery-rtl.css', __FILE__ ), array(), '2012-09-21' ); |
|
95 | } else { |
|
96 | wp_enqueue_style( 'tiled-gallery', plugins_url( 'tiled-gallery/tiled-gallery.css', __FILE__ ), array(), '2012-09-21' ); |
|
97 | } |
|
98 | } |
|
99 | ||
100 | public function gallery_shortcode( $val, $atts ) { |
|
101 | if ( ! empty( $val ) ) // something else is overriding post_gallery, like a custom VIP shortcode |