Plugin Directory

Changeset 2092376


Ignore:
Timestamp:
05/21/2019 02:06:49 PM (7 years ago)
Author:
embedsocial
Message:

Added review tags and lazyload

Location:
embedalbum-pro/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • embedalbum-pro/trunk/embedalbum_pro.php

    r2018277 r2092376  
    66Author: EmbedSocial
    77Author URI: http://www.embedsocial.com
    8 Version: 1.1.17
     8Version: 1.1.18
    99 */
    1010defined( 'ABSPATH' ) or die;
     
    193193
    194194        $shortcodeId = (shortcode_atts(array(
    195             'id' => ''
    196         ), $atts));
    197 
    198         $out = "";
    199         if ($shortcodeId['id']) {
    200             $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);
    201             $out .= "<div class='embedsocial-reviews' data-ref='{$shortcodeId['id']}'></div>";
     195            'id' => '',
     196            'tags' => '',
     197            'lazyload' => ''
     198        ), $atts));
     199
     200        $out = "<div class='embedsocial-reviews' ";
     201        if ($shortcodeId['id']) {
     202            $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']);
     203            $out .= " data-ref='{$shortcodeId['id']}' ";
     204
     205            if ($shortcodeId['tags']) {
     206                $out .= " data-tags='{$shortcodeId['tags']}' ";
     207            }
     208            if ($shortcodeId['lazyload'] && $shortcodeId['lazyload'] == 'yes') {
     209                $out .= " data-lazyload='yes' ";
     210            }
     211            $out .= "></div>";
    202212        }
    203213        return $out;
  • embedalbum-pro/trunk/readme.txt

    r2018277 r2092376  
    55Requires at least: 4.0
    66Tested up to: 5.0.1
    7 Stable tag: 1.1.17
     7Stable tag: 1.1.18
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.