Plugin Directory

Changeset 733875


Ignore:
Timestamp:
06/29/2013 01:12:54 AM (13 years ago)
Author:
mglaman
Message:

Fix album title display/hide setting error, also fixes resolving album URLs for person accounts and pages.

Location:
facebook-albums
Files:
2 deleted
3 edited
7 copied

Legend:

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

    r732064 r733875  
    22/*
    33Plugin Name: Facebook Albums
    4 Plugin URI: http://glamanate.com/wordpress/facebook-album/
     4Plugin URI: http://glamanate.com/wordpress/facebook-album/?utm_source=fbalbum_pluginspage&utm_medium=website&utm_campaign=fbalbum
    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: 2.0
     6Version: 2.0.1
    77Author: Matt Glaman
    88Author URI: http://glamanate.com
     
    4646    protected static $album_id;     //Stores the album ID in the class
    4747    protected static $album_limit;  //Stores max number of photos, defaults to 200.
    48     protected static $album_size;
    4948   
    5049    //The graph API URl the plugin will access. Script replaces {ALBUM_ID} with self::$album_id
     
    132131           
    133132            $html = '<div class="facebook-album-container">';
    134             if($options['title']) $html .= '<h2><a href="' . self::_clean_url(self::_get_album_url()) . '" target="_blank"">' . $fb['name'] . '</a></h2>';
     133            if(self::$options['title']) $html .= '<h2><a href="' . self::_clean_url(self::_get_album_url()) . '" target="_blank"">' . $fb['name'] . '</a></h2>';
    135134           
    136135            //Reverse array to show oldest to newest
     
    148147            }
    149148            $html .= '<div style="clear:both">&nbsp;</div>';
    150             $html .= self::build_colorbox();
     149            if(self::$options['colorbox']['enabled']) $html .= self::build_colorbox();
    151150            $html .="</div>";
    152151            return $html;
     
    277276       
    278277        //Explodes URL based on slashes, we need the end of the URL
    279         $facebook_album_id = explode('/', self::_get_album_url());
    280         $facebook_album_id = $facebook_album_id['5'];
     278        $facebook_album_id = explode('?set=', self::_get_album_url());
     279        $facebook_album_id = $facebook_album_id['1'];
    281280        //Explodes section by periods, Album ID is first of the 3 sets of numbers
    282281        $facebook_album_id = explode('.', $facebook_album_id);
  • facebook-albums/tags/2.0.1/inc/options-facebookalbum.php

    r731867 r733875  
    2525
    2626 ?>
    27         <?php //echo '<pre>';//global $current_user; print_r($current_user);echo'</pre>'; ?>
    2827            <div class="wrap">
    2928                <?php screen_icon(); ?>
     
    107106                <div class="settings-box">
    108107                    <h2>Widget Options</h2>
    109                     <p>You have the option to specify a different Facebook Album URL for each page.</p>
     108                    <p>You have the option to specify a different Facebook Album URL for each page the widget is on.</p>   
    110109                    <div style="height: 300px; overflow: auto; padding-left: 10px; border-left: 2px solid #e6e6e6;">
    111110                        <?php foreach( get_pages() as $page): ?>
  • facebook-albums/trunk/fbalbum.php

    r732064 r733875  
    22/*
    33Plugin Name: Facebook Albums
    4 Plugin URI: http://glamanate.com/wordpress/facebook-album/
     4Plugin URI: http://glamanate.com/wordpress/facebook-album/?utm_source=fbalbum_pluginspage&utm_medium=website&utm_campaign=fbalbum
    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: 2.0
     6Version: 2.0.1
    77Author: Matt Glaman
    88Author URI: http://glamanate.com
     
    4646    protected static $album_id;     //Stores the album ID in the class
    4747    protected static $album_limit;  //Stores max number of photos, defaults to 200.
    48     protected static $album_size;
    4948   
    5049    //The graph API URl the plugin will access. Script replaces {ALBUM_ID} with self::$album_id
     
    132131           
    133132            $html = '<div class="facebook-album-container">';
    134             if($options['title']) $html .= '<h2><a href="' . self::_clean_url(self::_get_album_url()) . '" target="_blank"">' . $fb['name'] . '</a></h2>';
     133            if(self::$options['title']) $html .= '<h2><a href="' . self::_clean_url(self::_get_album_url()) . '" target="_blank"">' . $fb['name'] . '</a></h2>';
    135134           
    136135            //Reverse array to show oldest to newest
     
    148147            }
    149148            $html .= '<div style="clear:both">&nbsp;</div>';
    150             $html .= self::build_colorbox();
     149            if(self::$options['colorbox']['enabled']) $html .= self::build_colorbox();
    151150            $html .="</div>";
    152151            return $html;
     
    277276       
    278277        //Explodes URL based on slashes, we need the end of the URL
    279         $facebook_album_id = explode('/', self::_get_album_url());
    280         $facebook_album_id = $facebook_album_id['5'];
     278        $facebook_album_id = explode('?set=', self::_get_album_url());
     279        $facebook_album_id = $facebook_album_id['1'];
    281280        //Explodes section by periods, Album ID is first of the 3 sets of numbers
    282281        $facebook_album_id = explode('.', $facebook_album_id);
  • facebook-albums/trunk/inc/options-facebookalbum.php

    r731867 r733875  
    2525
    2626 ?>
    27         <?php //echo '<pre>';//global $current_user; print_r($current_user);echo'</pre>'; ?>
    2827            <div class="wrap">
    2928                <?php screen_icon(); ?>
     
    107106                <div class="settings-box">
    108107                    <h2>Widget Options</h2>
    109                     <p>You have the option to specify a different Facebook Album URL for each page.</p>
     108                    <p>You have the option to specify a different Facebook Album URL for each page the widget is on.</p>   
    110109                    <div style="height: 300px; overflow: auto; padding-left: 10px; border-left: 2px solid #e6e6e6;">
    111110                        <?php foreach( get_pages() as $page): ?>
Note: See TracChangeset for help on using the changeset viewer.