Plugin Directory

Changeset 3047774


Ignore:
Timestamp:
03/08/2024 11:38:45 AM (2 years ago)
Author:
tagembed
Message:

Fixed Short Code Issue.

Location:
tagembed-widget
Files:
301 added
3 edited

Legend:

Unmodified
Added
Removed
  • tagembed-widget/trunk/assets/js/editor/editor.js

    r2886376 r3047774  
    6363                    }
    6464                    function __showPreview(event) {
    65                         if (props.attributes.__widgetId !== '' && props.attributes.__widgetId !== null && typeof (props.attributes.__widgetId) != "undefined") {
     65                        let regex = /^\d+(px|%|)$/;
     66                        let extraParameter = (props.attributes.__width !== '' && !regex.test(props.attributes.__width)) || (props.attributes.__height !== '' && !regex.test(props.attributes.__height));
     67                        if (!extraParameter && props.attributes.__widgetId !== '' && props.attributes.__widgetId !== null && typeof (props.attributes.__widgetId) != "undefined" && !isNaN(props.attributes.__widgetId)) {
    6668                            var parent = jQuery(event.target).closest(".is-selected");
    6769                            parent.children(".__tagembed__tagembed-preview").show();
  • tagembed-widget/trunk/readme.txt

    r3047140 r3047774  
    77Tested up to: 6.4
    88Requires PHP: 5.6
    9 Stable tag: 4.8
     9Stable tag: 4.9
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1919
    2020The Tagembed: Social Media Feed WordPress plugin also offers content moderation panel for filtering and moderating the content before embedding them live on the website. Users can analyze the performance of the social media feeds by getting proper insights. The platform has an ever-active back support team for assisting the users if they come across any glitch or hindrance while using the plugin.
     21
     22== New Updates v4.9 ==
     23** Bugs Fix**
    2124
    2225== New Updates v4.8 ==
     
    258261
    259262== Changelog ==
     263= 4.9 =
     264  * Bugs Fix for Instagram Feed, Facebook Feed, Twitter Feed, Google Reviews, Rss Feed, YouTube Gallery, and more.
     265
    260266= 4.8 =
    261   * Fix Security Nounce
     267  * Fix Security Nounce - for Instagram Feed, Facebook Feed, Twitter Feed, Google Reviews, Rss Feed, YouTube Gallery, and more.
    262268
    263269= 4.7 =
     
    503509
    504510== Upgrade Notice ==
     511= 4.9 =
     512  * Bugs Fix for Instagram Feed, Facebook Feed, Twitter Feed, Google Reviews, Rss Feed, YouTube Gallery, and more.
     513
    505514= 4.8 =
    506   * Fix Security Nounce
     515  * Fix Security Nounce - for Instagram Feed, Facebook Feed, Twitter Feed, Google Reviews, Rss Feed, YouTube Gallery, and more.
    507516
    508517= 4.7 =
  • tagembed-widget/trunk/tagembed.php

    r3047140 r3047774  
    44 * Plugin URI:        https://tagembed.com/
    55 * Description:       Display Facebook feed, Instagram feed, Twitter feed, YouTube Videos and more social feeds from 15+ social networks on any page, posts or widgets using shortcode. Beautifully clean, customizable, and responsive Social Media Feed Widget Plugin for WordPress.
    6  * Version:           4.8
     6 * Version:           4.9
    77 * Author:            Tagembed
    88 * Author URI:        https://tagembed.com/
     
    1111    die;
    1212/* --Start-- Create Constant */
    13 !defined('TAGEMBED_PLUGIN_VERSION') && define('TAGEMBED_PLUGIN_VERSION', '4.8');
     13!defined('TAGEMBED_PLUGIN_VERSION') && define('TAGEMBED_PLUGIN_VERSION', '4.9');
    1414!defined('TAGEMBED_PLUGIN_DIR_PATH') && define('TAGEMBED_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
    1515!defined('TAGEMBED_PLUGIN_URL') && define('TAGEMBED_PLUGIN_URL', plugin_dir_url(__FILE__));
     
    14001400/* --End-- Drop Database Table */
    14011401/* --Start-- Create Short Code */
     1402function __tagembed__PluginShortCode($attr) {
     1403    extract(shortcode_atts(['width' => '', 'height' => '',], $attr, 'tagembed'));
     1404    $widgetId = (isset($attr[1]) ? $attr[1] : '');
     1405    if (!empty($widgetId) && is_numeric($widgetId) && (($width === '' || preg_match('/^\d+(px|%|)$/', $width)) && ($height === '' || preg_match('/^\d+(px|%|)$/', $height)))):
     1406        $output = '<span class=""></span>';
     1407        $output .= '<div style="width:' . $width . '; height:' . $height . ';overflow: auto;" class="tagembed-container">';
     1408        $output .= '<div style="width:100%; height:100%;" class="tagembed-socialwall tagembed-analystic" data-wall-id="' . $widgetId . '"></div>';
     1409        $output .= '</div>';
     1410    else:
     1411        $output = '<span style="display: block;text-align: center;border: 1px solid #eee;padding: 5px 15px;background-color: #fafafa;">Invalid Parameters Provided In The Tagembed Shortcode.</span>';
     1412    endif;
     1413    return $output;
     1414}
    14021415add_shortcode("tagembed", "__tagembed__PluginShortCode");
    1403 function __tagembed__PluginShortCode($attr) {
    1404     $widgetId = (isset($attr[1]) ? $attr[1] : '');
    1405     $width = (isset($attr['width']) ? $attr['width'] : '');
    1406     $height = (isset($attr['height']) ? $attr['height'] : '');
    1407     $code = '<span class=""></span>';
    1408     $code .= '<div style="width:' . $width . '; height:' . $height . ';overflow: auto;" class="tagembed-container">';
    1409     $code .= '<div style="width:100%; height:100%;" class="tagembed-socialwall tagembed-analystic" data-wall-id="' . $widgetId . '"></div>';
    1410     $code .= '</div>';
    1411     return $code;
    1412 }
    14131416/* --End-- Create Short Code */
    14141417
Note: See TracChangeset for help on using the changeset viewer.