Plugin Directory

Changeset 1993475


Ignore:
Timestamp:
12/13/2018 09:46:34 AM (7 years ago)
Author:
aspexi
Message:

2.1.13

Location:
aspexi-facebook-like-box
Files:
18 added
3 edited

Legend:

Unmodified
Added
Removed
  • aspexi-facebook-like-box/trunk/aspexi-facebook-like-box.php

    r1864034 r1993475  
    55Description: Plugin adds fancy Facebook Page Plugin (formerly Like Box) slider
    66Author: Aspexi
    7 Version: 2.1.12
     7Version: 2.1.13
    88Author URI: http://aspexi.com/
    99License: GPLv2 or later
     
    3131if ( !class_exists( 'AspexiFBlikebox' ) ) {
    3232
    33     define('ASPEXIFBLIKEBOX_VERSION', '2.1.12');
     33    define('ASPEXIFBLIKEBOX_VERSION', '2.1.13');
    3434
    3535    $plugin_url = plugin_dir_url( __FILE__ );
     
    786786            $page_url = 'https://www.facebook.com/'.$url;
    787787
    788             $output .= '<div id="fb-root"></div>
     788            $output .= '<div class="fb-page"></div>
    789789            <script>(function(d, s, id) {
    790790                var js, fjs = d.getElementsByTagName(s)[0];
    791791                if (d.getElementById(id)) return;
    792792                js = d.createElement(s); js.id = id;
    793                 js.src = "//connect.facebook.net/'.$locale.'/sdk.js#xfbml=1&version=v2.12&appId=1548213832159053";
     793                js.src = "//connect.facebook.net/'.$locale.'/sdk.js#xfbml=1&version=v3.2&appId=1548213832159053";
    794794                fjs.parentNode.insertBefore(js, fjs);
    795795            }(document, \'script\', \'facebook-jssdk\'));</script>
     
    854854            $placement  = 'right';
    855855            $slideon    = 'hover';
     856            $ismobile   = wp_is_mobile();
    856857
    857858            wp_enqueue_script( 'aspexi-facebook-like-box', ASPEXIFBLIKEBOX_URL . 'js/aflb.js', array( 'jquery' ), false, true );
     
    859860                'slideon'   => $slideon,
    860861                'placement' => $placement,
    861                 'width'     => (int)$width
     862                'width'     => (int)$width,
     863                'ismobile'  => $ismobile
    862864            ) );
    863865        }
  • aspexi-facebook-like-box/trunk/js/aflb.js

    r1690485 r1993475  
    11jQuery(document).ready(function() {
    22    var placement = {};
    3     if("click"==aflb.slideon.replace(/"/g, "") || ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)))) {
     3    if("click"==aflb.slideon.replace(/"/g, "") || ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) || "1" === aflb.ismobile)) {
    44        jQuery(".aspexifblikebox .aspexi_facebook_button, .aspexifblikebox .aspexi_facebook_iframe").click(function() {
    55            if(0==parseInt(jQuery('.aspexifblikebox').css(aflb.placement),10)) {
  • aspexi-facebook-like-box/trunk/readme.txt

    r1864028 r1993475  
    66Tags: facebook, likebox, like box, floating, button, slider, facebook likebox, facebook like box, facebook slider, facebook buttons, social
    77Requires at least: 3.0
    8 Tested up to: 4.9.5
    9 Stable tag: 2.1.12
     8Tested up to: 5.0
     9Stable tag: 2.1.13
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    125125== Changelog ==
    126126
     127= 2.1.13 =
     128* Android close with click fix
     129* Facebook API update
     130
    127131= 2.1.12 =
    128132* Facebook API update
Note: See TracChangeset for help on using the changeset viewer.