Changeset 670817
- Timestamp:
- 02/20/2013 04:44:45 PM (13 years ago)
- Location:
- facebook-albums
- Files:
-
- 5 edited
- 1 copied
-
tags/1.0.7.1/fbalbum.php (modified) (1 diff)
-
tags/1.0.7.2 (copied) (copied from facebook-albums/trunk)
-
tags/1.0.7.2/fbalbum.php (modified) (7 diffs)
-
tags/1.0.7.2/readme.txt (modified) (1 diff)
-
trunk/fbalbum.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
facebook-albums/tags/1.0.7.1/fbalbum.php
r670612 r670817 382 382 echo '<h2><a href="' . FB_Album::_clean_url(FB_Album::_get_album_url()) . '" target="_blank"">' . $fb['name'] . '</a></h2>'; 383 383 endif; ?> 384 <script type="text/javascript">var templateDir = "<?php echo home_url(); ?>";</script> 384 385 <aside class="fbalbum fbalbum-widget"> <?php 385 386 -
facebook-albums/tags/1.0.7.2/fbalbum.php
r670612 r670817 4 4 Plugin URI: http://glamanate.com/wordpress/facebook-album/ 5 5 Description: Facebook Albums allows you to display Facebook Albums on your WordPress site. Brought to you by <a href="http://dooleyandassociates.com/?utm_source=fbalbum&utm_medium=referral&utm_campaign=Facebook%2BAlbum">Dooley & Associates</a> 6 Version: 1.0.7. 16 Version: 1.0.7.2 7 7 Author: Matt Glaman 8 8 Author URI: http://glamanate.com … … 40 40 protected static $album_url; //Stores the album URL in the class 41 41 protected static $album_id; //Stores the album ID in the class 42 protected static $css_loaded = false; //Attempt to prevent CSS from being enqueued too many times.43 42 protected static $album_limit; 44 43 … … 62 61 */ 63 62 public static function shortcode_callback( $atts ) { 64 65 //If CSS not loaded yet, enqueue it. Allows people to use multiple shortcodes without multiple enqueues.66 if(!self::$css_loaded)67 wp_enqueue_style('fbalbum-style', plugins_url( '/fbalbum.css', __FILE__ ));68 63 69 64 //If no URL entered, defaults to Facebook Timeline album … … 118 113 119 114 public static function print_album() { 120 //if(!self::_get_album_id() || !($fb = self::_get_graph_url(self::_get_graph_count())) )121 115 if(!self::_get_album_id() || !($fb = self::_get_graph_url(self::$album_limit)) ) 122 116 return 'Sorry, there was an error loading the Facebook album, please refresh the page and try again.'; … … 153 147 public static function _enqueue_resources() { 154 148 wp_enqueue_script('jquery'); 155 //wp_enqueue_script('fbalbum', plugins_url( '/fbalbum.js', __FILE__ ));156 149 wp_enqueue_script('lightbox-js', plugins_url( '/lightbox/lightbox.js', __FILE__ )); 157 150 wp_enqueue_style('lightbox-style', plugins_url( 'lightbox/lightbox.css', __FILE__ )); 151 wp_enqueue_style('fbalbum-style', plugins_url( '/fbalbum.css', __FILE__ )); 158 152 } 159 153 … … 367 361 } else { 368 362 FB_Album::_enqueue_resources(); 369 //If CSS not loaded yet, enqueue it. Allows people to use multiple shortcodes without multiple enqueues.370 if(!FB_Album::_check_css())371 wp_enqueue_style('fbalbum-style', plugins_url( '/fbalbum.css', __FILE__ ));372 363 373 364 if(!FB_Album::_get_album_id() || !($fb = FB_Album::_get_graph_url($instance['limit'])) ) 374 365 return 'Sorry, there was an error loading the Facebook album, please refresh the page and try again.'; 375 376 377 366 378 367 if(!$fb['photos']) { … … 382 371 echo '<h2><a href="' . FB_Album::_clean_url(FB_Album::_get_album_url()) . '" target="_blank"">' . $fb['name'] . '</a></h2>'; 383 372 endif; ?> 373 <script type="text/javascript">var templateDir = "<?php echo home_url(); ?>";</script> 384 374 <aside class="fbalbum fbalbum-widget"> <?php 385 375 -
facebook-albums/tags/1.0.7.2/readme.txt
r670612 r670817 5 5 Requires at least: 3.0 6 6 Tested up to: 3.5 7 Stable tag: 1.0.7. 17 Stable tag: 1.0.7.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
facebook-albums/trunk/fbalbum.php
r670612 r670817 4 4 Plugin URI: http://glamanate.com/wordpress/facebook-album/ 5 5 Description: Facebook Albums allows you to display Facebook Albums on your WordPress site. Brought to you by <a href="http://dooleyandassociates.com/?utm_source=fbalbum&utm_medium=referral&utm_campaign=Facebook%2BAlbum">Dooley & Associates</a> 6 Version: 1.0.7. 16 Version: 1.0.7.2 7 7 Author: Matt Glaman 8 8 Author URI: http://glamanate.com … … 40 40 protected static $album_url; //Stores the album URL in the class 41 41 protected static $album_id; //Stores the album ID in the class 42 protected static $css_loaded = false; //Attempt to prevent CSS from being enqueued too many times.43 42 protected static $album_limit; 44 43 … … 62 61 */ 63 62 public static function shortcode_callback( $atts ) { 64 65 //If CSS not loaded yet, enqueue it. Allows people to use multiple shortcodes without multiple enqueues.66 if(!self::$css_loaded)67 wp_enqueue_style('fbalbum-style', plugins_url( '/fbalbum.css', __FILE__ ));68 63 69 64 //If no URL entered, defaults to Facebook Timeline album … … 118 113 119 114 public static function print_album() { 120 //if(!self::_get_album_id() || !($fb = self::_get_graph_url(self::_get_graph_count())) )121 115 if(!self::_get_album_id() || !($fb = self::_get_graph_url(self::$album_limit)) ) 122 116 return 'Sorry, there was an error loading the Facebook album, please refresh the page and try again.'; … … 153 147 public static function _enqueue_resources() { 154 148 wp_enqueue_script('jquery'); 155 //wp_enqueue_script('fbalbum', plugins_url( '/fbalbum.js', __FILE__ ));156 149 wp_enqueue_script('lightbox-js', plugins_url( '/lightbox/lightbox.js', __FILE__ )); 157 150 wp_enqueue_style('lightbox-style', plugins_url( 'lightbox/lightbox.css', __FILE__ )); 151 wp_enqueue_style('fbalbum-style', plugins_url( '/fbalbum.css', __FILE__ )); 158 152 } 159 153 … … 367 361 } else { 368 362 FB_Album::_enqueue_resources(); 369 //If CSS not loaded yet, enqueue it. Allows people to use multiple shortcodes without multiple enqueues.370 if(!FB_Album::_check_css())371 wp_enqueue_style('fbalbum-style', plugins_url( '/fbalbum.css', __FILE__ ));372 363 373 364 if(!FB_Album::_get_album_id() || !($fb = FB_Album::_get_graph_url($instance['limit'])) ) 374 365 return 'Sorry, there was an error loading the Facebook album, please refresh the page and try again.'; 375 376 377 366 378 367 if(!$fb['photos']) { … … 382 371 echo '<h2><a href="' . FB_Album::_clean_url(FB_Album::_get_album_url()) . '" target="_blank"">' . $fb['name'] . '</a></h2>'; 383 372 endif; ?> 373 <script type="text/javascript">var templateDir = "<?php echo home_url(); ?>";</script> 384 374 <aside class="fbalbum fbalbum-widget"> <?php 385 375 -
facebook-albums/trunk/readme.txt
r670612 r670817 5 5 Requires at least: 3.0 6 6 Tested up to: 3.5 7 Stable tag: 1.0.7. 17 Stable tag: 1.0.7.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.