Plugin Directory

Changeset 670817


Ignore:
Timestamp:
02/20/2013 04:44:45 PM (13 years ago)
Author:
mglaman
Message:

Minor bug fix

Location:
facebook-albums
Files:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • facebook-albums/tags/1.0.7.1/fbalbum.php

    r670612 r670817  
    382382                    echo '<h2><a href="' . FB_Album::_clean_url(FB_Album::_get_album_url()) . '" target="_blank"">' . $fb['name'] . '</a></h2>';
    383383                endif; ?>
     384                <script type="text/javascript">var templateDir = "<?php echo home_url(); ?>";</script>
    384385                <aside class="fbalbum fbalbum-widget"> <?php
    385386               
  • facebook-albums/tags/1.0.7.2/fbalbum.php

    r670612 r670817  
    44Plugin URI: http://glamanate.com/wordpress/facebook-album/
    55Description: 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.1
     6Version: 1.0.7.2
    77Author: Matt Glaman
    88Author URI: http://glamanate.com
     
    4040    protected static $album_url;    //Stores the album URL in the class
    4141    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.
    4342    protected static $album_limit;
    4443   
     
    6261     */
    6362    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__ ));
    6863       
    6964        //If no URL entered, defaults to Facebook Timeline album
     
    118113   
    119114    public static function print_album() {
    120             //if(!self::_get_album_id() || !($fb = self::_get_graph_url(self::_get_graph_count())) )
    121115            if(!self::_get_album_id() || !($fb = self::_get_graph_url(self::$album_limit)) )
    122116                return 'Sorry, there was an error loading the Facebook album, please refresh the page and try again.';
     
    153147    public static function _enqueue_resources() {
    154148            wp_enqueue_script('jquery');
    155             //wp_enqueue_script('fbalbum', plugins_url( '/fbalbum.js', __FILE__ ));
    156149            wp_enqueue_script('lightbox-js', plugins_url( '/lightbox/lightbox.js', __FILE__ ));
    157150            wp_enqueue_style('lightbox-style', plugins_url( 'lightbox/lightbox.css', __FILE__ ));
     151            wp_enqueue_style('fbalbum-style', plugins_url( '/fbalbum.css', __FILE__ ));
    158152    }
    159153
     
    367361        } else {
    368362            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__ ));
    372363           
    373364            if(!FB_Album::_get_album_id() || !($fb = FB_Album::_get_graph_url($instance['limit'])) )
    374365                return 'Sorry, there was an error loading the Facebook album, please refresh the page and try again.';
    375            
    376            
    377366           
    378367            if(!$fb['photos']) {
     
    382371                    echo '<h2><a href="' . FB_Album::_clean_url(FB_Album::_get_album_url()) . '" target="_blank"">' . $fb['name'] . '</a></h2>';
    383372                endif; ?>
     373                <script type="text/javascript">var templateDir = "<?php echo home_url(); ?>";</script>
    384374                <aside class="fbalbum fbalbum-widget"> <?php
    385375               
  • facebook-albums/tags/1.0.7.2/readme.txt

    r670612 r670817  
    55Requires at least: 3.0
    66Tested up to: 3.5
    7 Stable tag: 1.0.7.1
     7Stable tag: 1.0.7.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • facebook-albums/trunk/fbalbum.php

    r670612 r670817  
    44Plugin URI: http://glamanate.com/wordpress/facebook-album/
    55Description: 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.1
     6Version: 1.0.7.2
    77Author: Matt Glaman
    88Author URI: http://glamanate.com
     
    4040    protected static $album_url;    //Stores the album URL in the class
    4141    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.
    4342    protected static $album_limit;
    4443   
     
    6261     */
    6362    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__ ));
    6863       
    6964        //If no URL entered, defaults to Facebook Timeline album
     
    118113   
    119114    public static function print_album() {
    120             //if(!self::_get_album_id() || !($fb = self::_get_graph_url(self::_get_graph_count())) )
    121115            if(!self::_get_album_id() || !($fb = self::_get_graph_url(self::$album_limit)) )
    122116                return 'Sorry, there was an error loading the Facebook album, please refresh the page and try again.';
     
    153147    public static function _enqueue_resources() {
    154148            wp_enqueue_script('jquery');
    155             //wp_enqueue_script('fbalbum', plugins_url( '/fbalbum.js', __FILE__ ));
    156149            wp_enqueue_script('lightbox-js', plugins_url( '/lightbox/lightbox.js', __FILE__ ));
    157150            wp_enqueue_style('lightbox-style', plugins_url( 'lightbox/lightbox.css', __FILE__ ));
     151            wp_enqueue_style('fbalbum-style', plugins_url( '/fbalbum.css', __FILE__ ));
    158152    }
    159153
     
    367361        } else {
    368362            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__ ));
    372363           
    373364            if(!FB_Album::_get_album_id() || !($fb = FB_Album::_get_graph_url($instance['limit'])) )
    374365                return 'Sorry, there was an error loading the Facebook album, please refresh the page and try again.';
    375            
    376            
    377366           
    378367            if(!$fb['photos']) {
     
    382371                    echo '<h2><a href="' . FB_Album::_clean_url(FB_Album::_get_album_url()) . '" target="_blank"">' . $fb['name'] . '</a></h2>';
    383372                endif; ?>
     373                <script type="text/javascript">var templateDir = "<?php echo home_url(); ?>";</script>
    384374                <aside class="fbalbum fbalbum-widget"> <?php
    385375               
  • facebook-albums/trunk/readme.txt

    r670612 r670817  
    55Requires at least: 3.0
    66Tested up to: 3.5
    7 Stable tag: 1.0.7.1
     7Stable tag: 1.0.7.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.