Plugin Directory

Changeset 3467278


Ignore:
Timestamp:
02/23/2026 05:48:28 AM (5 weeks ago)
Author:
Narinder singh
Message:

Update to version 1.2.6 from GitHub

Location:
shortcodes-for-amp-web-stories-and-elementor-widget
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shortcodes-for-amp-web-stories-and-elementor-widget/tags/1.2.6/Shortcodes For AMP Web Stories and Elementor Widget.php

    r3459855 r3467278  
    22/**
    33 * Plugin Name: Web Stories Widgets For Elementor
    4  * Description: Web Stories Shortcodes for recent Story [Recent-stories column="3" show-button="yes" show-no-of-story="all" button-text="View" order="DESC" btn-color="#0063a6" btn-text-color="#f6f3ef" style="default" border-color="#BA0109" border-width="1px"].
     4 * Description: Web Stories Shortcodes for recent Story [Recent-stories column="3" show-button="yes"     show-no-of-story="all" button-text="View" order="DESC" btn-color="#0063a6" btn-text-color="#f6f3ef" style="default" border-color="#BA0109" border-width="1px"].
    55 * Plugin URI:  https://coolplugins.net
    6  * Version:     1.2.5
     6 * Version:     1.2.6
    77 * Author:      Cool Plugins
    88 * Author URI:  https://coolplugins.net/
    9  * Text Domain: WSAE   
    10  * Elementor tested up to: 3.35.4
     9 * Text Domain: shortcodes-for-amp-web-stories-and-elementor-widget   
     10 * License:GPLv2 or later
     11 * License URI:http://www.gnu.org/licenses/gpl-2.0.html
     12 * Elementor tested up to: 3.35.5
    1113*/
    1214
     
    2123}
    2224
    23 define('WSAE_VERSION', '1.2.5');
     25define('WSAE_VERSION', '1.2.6');
    2426define('WSAE_FILE', __FILE__);
    2527define('WSAE_PATH', plugin_dir_path(WSAE_FILE));
     
    7880    function set_custom_edit_wsae_columns($columns) {
    7981           
    80             $columns['shortcode'] = __( 'Shortcode', 'WSAE' );
     82            $columns['shortcode'] = __( 'Shortcode', 'shortcodes-for-amp-web-stories-and-elementor-widget' );
    8183           
    8284            return $columns;
     
    8486        function custom_wsae_column( $columns, $post_id ) {
    8587            if($columns=='shortcode'){
    86                 echo '<code>[webstory id="'.$post_id.'"]</code>';
     88                echo '<code>[webstory id="'.esc_attr($post_id).'"]</code>';
    8789            }
    8890        }   
     
    9698         // Load styles and scripts only if shortcodes are used in the content
    9799        if (!class_exists('\Google\Web_Stories\Plugin')) {
    98             return '<p>' . __('Error: Web Stories plugin is not activated.', 'WSAE') . '</p>';
     100            return '<p>' . __('Error: Web Stories plugin is not activated.', 'shortcodes-for-amp-web-stories-and-elementor-widget') . '</p>';
    99101        }
    100102        wp_enqueue_style( 'wsae-standalone-amp-story-player-style' );
    101103        wp_enqueue_script( 'wsae-standalone-amp-story-player-script' );
    102         wp_enqueue_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css');
     104        wp_enqueue_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css', [], WSAE_VERSION);
    103105
    104106         $atts = shortcode_atts( array(
     
    160162        wp_enqueue_style( 'wsae-standalone-amp-story-player-style' );
    161163        wp_enqueue_script( 'wsae-standalone-amp-story-player-script' );
    162         wp_enqueue_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css');
     164        wp_enqueue_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css', [], WSAE_VERSION);
    163165
    164166         $atts = shortcode_atts( array(
     
    261263
    262264        }
    263         load_plugin_textdomain('WSAE', false, WSAE_FILE . 'languages');
    264    
     265       
    265266       
    266267        // Require the main plugin file
     
    282283        if (!is_plugin_active( 'elementor/elementor.php' ) ) : ?>
    283284            <div class="notice notice-warning is-dismissible">
    284                 <p><?php echo sprintf( __( '<a href="%s"  target="_blank" >Elementor Page Builder</a>  must be installed and activated for "<strong>Shortcodes For AMP Web Stories and Elementor Widget</strong>" to work' ),'https://wordpress.org/plugins/elementor/'); ?></p>
     285                <p><?php
     286                // translators: %s: URL to Elementor plugin page
     287                echo wp_kses_post( sprintf( __( '<a href="%s"  target="_blank" >Elementor Page Builder</a>  must be installed and activated for "<strong>Shortcodes For AMP Web Stories and Elementor Widget</strong>" to work', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), esc_url( 'https://wordpress.org/plugins/elementor/' ) ) ); ?></p>
    285288            </div>
    286289        <?php endif;
     
    292295    if (current_user_can('activate_plugins')): ?>
    293296            <div class="notice notice-warning is-dismissible">
    294                 <p><?php echo sprintf(__('<a href="%s"  target="_blank" >Webstory</a>  must be installed and activated for "<strong>Shortcodes For AMP Web Stories and Elementor Widget</strong>" to work'), 'https://wordpress.org/plugins/web-stories/'); ?></p>
     297                <p><?php
     298                // translators: %s: URL to Web Stories plugin page
     299                echo wp_kses_post( sprintf( __( '<a href="%s"  target="_blank" >Webstory</a>  must be installed and activated for "<strong>Shortcodes For AMP Web Stories and Elementor Widget</strong>" to work', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), esc_url( 'https://wordpress.org/plugins/web-stories/' ) ) ); ?></p>
    295300            </div>
    296301        <?php endif;
     
    304309        update_option("WSAE-v",WSAE_VERSION);
    305310        update_option("WSAE-type","FREE");
    306         update_option("wsae-installDate",date('Y-m-d h:i:s') );
     311        update_option("wsae-installDate",gmdate('Y-m-d h:i:s') );
    307312    }
    308313
  • shortcodes-for-amp-web-stories-and-elementor-widget/tags/1.2.6/admin/feedback/wsae-feedback-notice.php

    r3422654 r3467278  
    11<?php
     2
     3if ( ! defined( 'ABSPATH' ) ) {
     4    exit; // Exit if accessed directly
     5}
    26
    37if (!class_exists("WSAEFeedbackNotice")) {
     
    3034         
    3135
    32           wp_register_style( 'wsae-feedback-style', WSAE_URL. 'admin/feedback/assests/css/wsae-feedback-style.css' );
     36          wp_register_style( 'wsae-feedback-style', WSAE_URL. 'admin/feedback/assests/css/wsae-feedback-style.css', [], WSAE_VERSION );
    3337
    3438
     
    8286
    8387            // grab plugin installation date and compare it with current date
    84             $display_date = date("Y-m-d h:i:s");
     88            $display_date = gmdate("Y-m-d h:i:s");
    8589            $install_date = new DateTime($installation_date);
    8690            $current_date = new DateTime($display_date);
     
    9296                  wp_enqueue_script("wsae-feedback-script");
    9397                 wp_enqueue_style('wsae-feedback-style');
     98
     99                 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped   
    94100                echo $this->wsae_create_notice_content();
    95101             
     
    105111            $p_name = "Web Stories Widgets For Elementor";
    106112            $like_it_text = "Rate Now! ★★★★★";
    107             $already_rated_text = esc_html__(
    108                 "I already rated it",
    109                 "cool-timeline"
    110             );
    111             $not_interested = esc_html__("Not Interested", "ect");
    112             $not_like_it_text = esc_html__(
    113                 "No, not good enough, i do not like to rate it!",
    114                 "cool-timeline"
    115             );
     113            $already_rated_text = esc_html__("I already rated it",'shortcodes-for-amp-web-stories-and-elementor-widget');
     114            $not_interested = esc_html__("Not Interested", 'shortcodes-for-amp-web-stories-and-elementor-widget');
     115            $not_like_it_text = esc_html__(  "No, not good enough, i do not like to rate it!", 'shortcodes-for-amp-web-stories-and-elementor-widget');
    116116            $p_link = esc_url(
    117117                "https://wordpress.org/plugins/shortcodes-for-amp-web-stories-and-elementor-widget/#reviews"
  • shortcodes-for-amp-web-stories-and-elementor-widget/tags/1.2.6/includes/class-WSAE.php

    r3422654 r3467278  
    99        "wsae", // the name of the category
    1010        [
    11             "title" => esc_html__("Webstory Addon Widget", "wsae"),
     11            "title" => esc_html__("Webstory Addon Widget", "shortcodes-for-amp-web-stories-and-elementor-widget"),
    1212            "icon" => "fa fa-header", //default icon
    1313        ],
  • shortcodes-for-amp-web-stories-and-elementor-widget/tags/1.2.6/includes/wsae-recent-story.php

    r3174925 r3467278  
    33use Google\Web_Stories\Story_Renderer\HTML;
    44use Google\Web_Stories\Model\Story;
     5
     6if ( ! defined( 'ABSPATH' ) ) {
     7    exit; // Exit if accessed directly
     8}
     9
     10// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
     11
    512$checknoof = ($atts['show-no-of-story'] !== 'all') ? $atts['show-no-of-story'] : -1;
    613
     
    9097}
    9198
    92 $html.='</div>';
     99$html.='</div>'; 
     100
     101// phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
  • shortcodes-for-amp-web-stories-and-elementor-widget/tags/1.2.6/readme.txt

    r3459858 r3467278  
    33Contributors:narinder-singh,satindersingh,coolplugins
    44Donate link: https://paypal.me/CoolPlugins/10USD/
    5 Tags: web stories,amp stories,story,shortcode, elementor widgets, accelerated mobile pages,google
     5Tags: web stories,amp stories,shortcode, elementor widgets,google
    66Requires at least:5.0
    77Tested up to:6.9
    88Requires PHP:5.6
    9 Stable tag:1.2.5
     9Stable tag:1.2.6
    1010License:GPLv2 or later
    1111License URI:http://www.gnu.org/licenses/gpl-2.0.html
     
    5656
    57571. Web Stories – Layout View
    58 2. Recent Web Stories – Shortcode Outputz
     582. Recent Web Stories – Shortcode Output
    59593. Elementor Widget – Web Stories Settings Preview
    60604. Web Stories – GIF Preview
     
    101101== Changelog ==
    102102
     103= Version 1.2.6 | 23/02/2026 =
     104* Tested Up To: Elementor 3.35.5
     105* Improved: Standardized text domain across plugin.
     106* Fixed : Fixed issues reported by “Plugin Check” plugin.
     107
    103108= Version 1.2.5 | 12/02/2026 =
    104109* Tested Up To: Elementor 3.35.4
     
    139144
    140145== Upgrade Notice ==
    141 = Version 2.4.7 | June 10, 2025 =
    142 * Added: User opt-in option in plugin.
    143 * Improved: Minor code improvements.
    144 * Tested The Events Calendar V6.13.2.1.
     146= Version 1.2.6 | 23/02/2026 =
     147* Tested Up To: Elementor 3.35.5
     148* Improved: Standardized text domain across plugin.
     149* Fixed : Fixed issues reported by “Plugin Check” plugin.
    145150
    146 
  • shortcodes-for-amp-web-stories-and-elementor-widget/tags/1.2.6/widgets/wsae-rendor.php

    r3174925 r3467278  
    66use Google\Web_Stories\Model\Story;
    77
     8// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
     9
    810$current_post = get_post($singlid);
    911
     
    1214
    1315$args = '';
     16
    1417$html = '';
    1518
     
    6366$html .= ' </div>';
    6467           
    65 echo $html;
     68echo $html;  // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     69
     70// phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
  • shortcodes-for-amp-web-stories-and-elementor-widget/tags/1.2.6/widgets/wsae-widget.php

    r3174925 r3467278  
    1515        parent::__construct($data, $args);
    1616       
    17       wp_register_script('standalone-custom-script', WSAE_URL . 'assets/js/wsae-custom-script.js', ['elementor-frontend','jquery'], null, true);
    18       wp_register_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css');
     17      wp_register_script('standalone-custom-script', WSAE_URL . 'assets/js/wsae-custom-script.js', ['elementor-frontend','jquery'], WSAE_VERSION, true);
     18      wp_register_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css', [], WSAE_VERSION);
    1919    }
    2020
     
    3939    public function get_title()
    4040    {
    41         return __('Web Stories Widget', 'WSAE');
     41        return __('Web Stories Widget', 'shortcodes-for-amp-web-stories-and-elementor-widget');
    4242    }
    4343
     
    8484               
    8585                if(empty($post_names)){
    86                     $post_names['select'] = esc_html__( 'You have no story to show', 'WSAE' ); // Escape static text
     86                    $post_names['select'] = esc_html__( 'You have no story to show', 'shortcodes-for-amp-web-stories-and-elementor-widget' ); // Escape static text
    8787                }             
    8888
    89                 $defal_select = isset( $the_query[0]->post_title ) ? esc_html( $the_query[0]->post_title ) : esc_html__( 'select', 'WSAE' ); // Escape default select text
     89                $defal_select = isset( $the_query[0]->post_title ) ? esc_html( $the_query[0]->post_title ) : esc_html__( 'select', 'shortcodes-for-amp-web-stories-and-elementor-widget' ); // Escape default select text
    9090
    9191            $this->start_controls_section(
    9292            'WSAE_layout_section',
    9393            [
    94                 'label' => __('Layout Settings', 'WSAE'),
     94                'label' => __('Layout Settings', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    9595                'tab' => Controls_Manager::TAB_CONTENT,
    9696            ]
     
    100100            'wsae_layout',
    101101            [
    102                 'label' => __('Select story', 'WSAE'),
     102                'label' => __('Select story', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    103103                'type' => Controls_Manager::SELECT,
    104104                'default' => $defal_select ,
     
    110110            'wsae_style',
    111111            [
    112                 'label' => __('Style', 'WSAE'),
     112                'label' => __('Style', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    113113                'type' => Controls_Manager::SELECT,
    114114                'default' => 'default',
    115115                'options' => [
    116                     'default'=>  esc_html__('Default','WSAE'),
    117                     'circle'=>  esc_html__('Circle','WSAE'),
     116                    'default'=>  esc_html__('Default','shortcodes-for-amp-web-stories-and-elementor-widget'),
     117                    'circle'=>  esc_html__('Circle','shortcodes-for-amp-web-stories-and-elementor-widget'),
    118118                ],
    119119            ]
     
    123123            'wsae_story_height',
    124124            [
    125                 'label' => esc_html__('Story Height', 'WSAE'),
     125                'label' => esc_html__('Story Height', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    126126                'type' => \Elementor\Controls_Manager::SLIDER,
    127127                'size_units' => ['px'],
     
    145145            'wsae_button',
    146146            [
    147                 'label' => __( 'Show Button', 'WSAE'),
     147                'label' => __( 'Show Button', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    148148                'type' => Controls_Manager::SWITCHER,
    149                 'label_on' => __( 'Show', 'WSAE'),
    150                 'label_off' => __( 'Hide', 'WSAE'),
     149                'label_on' => __( 'Show', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
     150                'label_off' => __( 'Hide', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    151151                'return_value' => 'yes',
    152152                'default' => 'no',
     
    161161            'wsae_btn_text',
    162162            [
    163                 'label' => __( 'Button text', 'WSAE' ),
     163                'label' => __( 'Button text', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    164164                'type' => Controls_Manager::TEXT,
    165                 'default' => __( 'View', 'WSAE' ),
    166                 'placeholder' => __( 'Enter text for button', 'WSAE' ),
     165                'default' => __( 'View', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
     166                'placeholder' => __( 'Enter text for button', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    167167                'sanitize_callback' => 'sanitize_text_field',
    168168                'condition' => [
     
    178178            [
    179179                'name' => 'content_typography',
    180                 'label' => __( 'Button Typography', 'WSAE' ),
     180                'label' => __( 'Button Typography', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    181181                'type' => \Elementor\Group_Control_Typography::get_type(),
    182182                'selector' => '{{WRAPPER}} .wae_btn_setting',
     
    190190            'wsae_button_text_color',
    191191            array(
    192                 'label' => __('Button Text Color', 'WSAE'),
     192                'label' => __('Button Text Color', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    193193                'type' => Controls_Manager::COLOR,
    194194                'selectors' => array('{{WRAPPER}} .wae_btn_setting' => 'color: {{VALUE}} !important',
     
    204204            'wsae_button_color',
    205205            array(
    206                 'label' => __('Button Background', 'WSAE'),
     206                'label' => __('Button Background', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    207207                'type' => Controls_Manager::COLOR,
    208208                'selectors' => array('{{WRAPPER}} .wae_btn_setting' => 'background-color: {{VALUE}} !important',
     
    218218            'wsae_border_width',
    219219            array(
    220                 'label' => __('Border Width', 'WSAE'),
     220                'label' => __('Border Width', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    221221                'type' => \Elementor\Controls_Manager::SLIDER,
    222222                'size_units' => ['px'],
     
    244244            'wsae_border_padding',
    245245            array(
    246                 'label' => __('Padding', 'WSAE'),
     246                'label' => __('Padding', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    247247                'type' => \Elementor\Controls_Manager::SLIDER,
    248248                'size_units' => ['px'],
     
    271271            'wsae_border_color_type',
    272272            array(
    273                 'label' => __('Border Color Type', 'WSAE'),
     273                'label' => __('Border Color Type', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    274274                'type' => Controls_Manager::CHOOSE,
    275275                'default' => 'gradient', // or 'gradient'
    276276                'options' => array(
    277277                    'simple'     => array(
    278                         'title' => esc_html__( 'Simple', 'WSAE' ),
     278                        'title' => esc_html__( 'Simple', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    279279                        'icon'  => 'eicon-paint-brush',
    280280                    ),
    281281                    'gradient'   => array(
    282                         'title' => esc_html__( 'Gradient', 'WSAE' ),
     282                        'title' => esc_html__( 'Gradient', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    283283                        'icon'  => 'eicon-barcode',
    284284                    )),
     
    293293            'wsae_primary_border_color',
    294294            array(
    295                 'label'     => esc_html__( 'Primary Border Color', 'WSAE' ),
     295                'label'     => esc_html__( 'Primary Border Color', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    296296                'type'      => \Elementor\Controls_Manager::COLOR,
    297297                'default' => '#F01111',
     
    310310            'wsae_secondary_border_color',
    311311            array(
    312                 'label'     => esc_html__( 'Secondary Border Color', 'WSAE' ),
     312                'label'     => esc_html__( 'Secondary Border Color', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    313313                'type'      => \Elementor\Controls_Manager::COLOR,
    314314                'default' => '#800080',
     
    326326            'wsae_ids',
    327327            [
    328                 'label' => __( 'post ids', 'WSAE'),
     328                'label' => __( 'post ids', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    329329                'type' => Controls_Manager::HIDDEN,
    330330                'default' => $post_idss,
     
    349349       $singlid='';
    350350       if($settings['wsae_layout']=='select'){
    351         echo esc_html__('You have no story to show', 'WSAE');
     351        echo esc_html__('You have no story to show', 'shortcodes-for-amp-web-stories-and-elementor-widget');
    352352        return;
    353353       }
     
    407407        if (settings.wsae_layout == 'select') {
    408408                #>
    409                 <span><?php echo esc_html__('You have no story to show', 'WSAE'); ?></span>
     409                <span><?php echo esc_html__('You have no story to show', 'shortcodes-for-amp-web-stories-and-elementor-widget'); ?></span>
    410410                <#
    411411            } else {
  • shortcodes-for-amp-web-stories-and-elementor-widget/trunk/Shortcodes For AMP Web Stories and Elementor Widget.php

    r3459855 r3467278  
    22/**
    33 * Plugin Name: Web Stories Widgets For Elementor
    4  * Description: Web Stories Shortcodes for recent Story [Recent-stories column="3" show-button="yes" show-no-of-story="all" button-text="View" order="DESC" btn-color="#0063a6" btn-text-color="#f6f3ef" style="default" border-color="#BA0109" border-width="1px"].
     4 * Description: Web Stories Shortcodes for recent Story [Recent-stories column="3" show-button="yes"     show-no-of-story="all" button-text="View" order="DESC" btn-color="#0063a6" btn-text-color="#f6f3ef" style="default" border-color="#BA0109" border-width="1px"].
    55 * Plugin URI:  https://coolplugins.net
    6  * Version:     1.2.5
     6 * Version:     1.2.6
    77 * Author:      Cool Plugins
    88 * Author URI:  https://coolplugins.net/
    9  * Text Domain: WSAE   
    10  * Elementor tested up to: 3.35.4
     9 * Text Domain: shortcodes-for-amp-web-stories-and-elementor-widget   
     10 * License:GPLv2 or later
     11 * License URI:http://www.gnu.org/licenses/gpl-2.0.html
     12 * Elementor tested up to: 3.35.5
    1113*/
    1214
     
    2123}
    2224
    23 define('WSAE_VERSION', '1.2.5');
     25define('WSAE_VERSION', '1.2.6');
    2426define('WSAE_FILE', __FILE__);
    2527define('WSAE_PATH', plugin_dir_path(WSAE_FILE));
     
    7880    function set_custom_edit_wsae_columns($columns) {
    7981           
    80             $columns['shortcode'] = __( 'Shortcode', 'WSAE' );
     82            $columns['shortcode'] = __( 'Shortcode', 'shortcodes-for-amp-web-stories-and-elementor-widget' );
    8183           
    8284            return $columns;
     
    8486        function custom_wsae_column( $columns, $post_id ) {
    8587            if($columns=='shortcode'){
    86                 echo '<code>[webstory id="'.$post_id.'"]</code>';
     88                echo '<code>[webstory id="'.esc_attr($post_id).'"]</code>';
    8789            }
    8890        }   
     
    9698         // Load styles and scripts only if shortcodes are used in the content
    9799        if (!class_exists('\Google\Web_Stories\Plugin')) {
    98             return '<p>' . __('Error: Web Stories plugin is not activated.', 'WSAE') . '</p>';
     100            return '<p>' . __('Error: Web Stories plugin is not activated.', 'shortcodes-for-amp-web-stories-and-elementor-widget') . '</p>';
    99101        }
    100102        wp_enqueue_style( 'wsae-standalone-amp-story-player-style' );
    101103        wp_enqueue_script( 'wsae-standalone-amp-story-player-script' );
    102         wp_enqueue_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css');
     104        wp_enqueue_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css', [], WSAE_VERSION);
    103105
    104106         $atts = shortcode_atts( array(
     
    160162        wp_enqueue_style( 'wsae-standalone-amp-story-player-style' );
    161163        wp_enqueue_script( 'wsae-standalone-amp-story-player-script' );
    162         wp_enqueue_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css');
     164        wp_enqueue_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css', [], WSAE_VERSION);
    163165
    164166         $atts = shortcode_atts( array(
     
    261263
    262264        }
    263         load_plugin_textdomain('WSAE', false, WSAE_FILE . 'languages');
    264    
     265       
    265266       
    266267        // Require the main plugin file
     
    282283        if (!is_plugin_active( 'elementor/elementor.php' ) ) : ?>
    283284            <div class="notice notice-warning is-dismissible">
    284                 <p><?php echo sprintf( __( '<a href="%s"  target="_blank" >Elementor Page Builder</a>  must be installed and activated for "<strong>Shortcodes For AMP Web Stories and Elementor Widget</strong>" to work' ),'https://wordpress.org/plugins/elementor/'); ?></p>
     285                <p><?php
     286                // translators: %s: URL to Elementor plugin page
     287                echo wp_kses_post( sprintf( __( '<a href="%s"  target="_blank" >Elementor Page Builder</a>  must be installed and activated for "<strong>Shortcodes For AMP Web Stories and Elementor Widget</strong>" to work', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), esc_url( 'https://wordpress.org/plugins/elementor/' ) ) ); ?></p>
    285288            </div>
    286289        <?php endif;
     
    292295    if (current_user_can('activate_plugins')): ?>
    293296            <div class="notice notice-warning is-dismissible">
    294                 <p><?php echo sprintf(__('<a href="%s"  target="_blank" >Webstory</a>  must be installed and activated for "<strong>Shortcodes For AMP Web Stories and Elementor Widget</strong>" to work'), 'https://wordpress.org/plugins/web-stories/'); ?></p>
     297                <p><?php
     298                // translators: %s: URL to Web Stories plugin page
     299                echo wp_kses_post( sprintf( __( '<a href="%s"  target="_blank" >Webstory</a>  must be installed and activated for "<strong>Shortcodes For AMP Web Stories and Elementor Widget</strong>" to work', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), esc_url( 'https://wordpress.org/plugins/web-stories/' ) ) ); ?></p>
    295300            </div>
    296301        <?php endif;
     
    304309        update_option("WSAE-v",WSAE_VERSION);
    305310        update_option("WSAE-type","FREE");
    306         update_option("wsae-installDate",date('Y-m-d h:i:s') );
     311        update_option("wsae-installDate",gmdate('Y-m-d h:i:s') );
    307312    }
    308313
  • shortcodes-for-amp-web-stories-and-elementor-widget/trunk/admin/feedback/wsae-feedback-notice.php

    r3422654 r3467278  
    11<?php
     2
     3if ( ! defined( 'ABSPATH' ) ) {
     4    exit; // Exit if accessed directly
     5}
    26
    37if (!class_exists("WSAEFeedbackNotice")) {
     
    3034         
    3135
    32           wp_register_style( 'wsae-feedback-style', WSAE_URL. 'admin/feedback/assests/css/wsae-feedback-style.css' );
     36          wp_register_style( 'wsae-feedback-style', WSAE_URL. 'admin/feedback/assests/css/wsae-feedback-style.css', [], WSAE_VERSION );
    3337
    3438
     
    8286
    8387            // grab plugin installation date and compare it with current date
    84             $display_date = date("Y-m-d h:i:s");
     88            $display_date = gmdate("Y-m-d h:i:s");
    8589            $install_date = new DateTime($installation_date);
    8690            $current_date = new DateTime($display_date);
     
    9296                  wp_enqueue_script("wsae-feedback-script");
    9397                 wp_enqueue_style('wsae-feedback-style');
     98
     99                 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped   
    94100                echo $this->wsae_create_notice_content();
    95101             
     
    105111            $p_name = "Web Stories Widgets For Elementor";
    106112            $like_it_text = "Rate Now! ★★★★★";
    107             $already_rated_text = esc_html__(
    108                 "I already rated it",
    109                 "cool-timeline"
    110             );
    111             $not_interested = esc_html__("Not Interested", "ect");
    112             $not_like_it_text = esc_html__(
    113                 "No, not good enough, i do not like to rate it!",
    114                 "cool-timeline"
    115             );
     113            $already_rated_text = esc_html__("I already rated it",'shortcodes-for-amp-web-stories-and-elementor-widget');
     114            $not_interested = esc_html__("Not Interested", 'shortcodes-for-amp-web-stories-and-elementor-widget');
     115            $not_like_it_text = esc_html__(  "No, not good enough, i do not like to rate it!", 'shortcodes-for-amp-web-stories-and-elementor-widget');
    116116            $p_link = esc_url(
    117117                "https://wordpress.org/plugins/shortcodes-for-amp-web-stories-and-elementor-widget/#reviews"
  • shortcodes-for-amp-web-stories-and-elementor-widget/trunk/includes/class-WSAE.php

    r3422654 r3467278  
    99        "wsae", // the name of the category
    1010        [
    11             "title" => esc_html__("Webstory Addon Widget", "wsae"),
     11            "title" => esc_html__("Webstory Addon Widget", "shortcodes-for-amp-web-stories-and-elementor-widget"),
    1212            "icon" => "fa fa-header", //default icon
    1313        ],
  • shortcodes-for-amp-web-stories-and-elementor-widget/trunk/includes/wsae-recent-story.php

    r3174925 r3467278  
    33use Google\Web_Stories\Story_Renderer\HTML;
    44use Google\Web_Stories\Model\Story;
     5
     6if ( ! defined( 'ABSPATH' ) ) {
     7    exit; // Exit if accessed directly
     8}
     9
     10// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
     11
    512$checknoof = ($atts['show-no-of-story'] !== 'all') ? $atts['show-no-of-story'] : -1;
    613
     
    9097}
    9198
    92 $html.='</div>';
     99$html.='</div>'; 
     100
     101// phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
  • shortcodes-for-amp-web-stories-and-elementor-widget/trunk/readme.txt

    r3459858 r3467278  
    33Contributors:narinder-singh,satindersingh,coolplugins
    44Donate link: https://paypal.me/CoolPlugins/10USD/
    5 Tags: web stories,amp stories,story,shortcode, elementor widgets, accelerated mobile pages,google
     5Tags: web stories,amp stories,shortcode, elementor widgets,google
    66Requires at least:5.0
    77Tested up to:6.9
    88Requires PHP:5.6
    9 Stable tag:1.2.5
     9Stable tag:1.2.6
    1010License:GPLv2 or later
    1111License URI:http://www.gnu.org/licenses/gpl-2.0.html
     
    5656
    57571. Web Stories – Layout View
    58 2. Recent Web Stories – Shortcode Outputz
     582. Recent Web Stories – Shortcode Output
    59593. Elementor Widget – Web Stories Settings Preview
    60604. Web Stories – GIF Preview
     
    101101== Changelog ==
    102102
     103= Version 1.2.6 | 23/02/2026 =
     104* Tested Up To: Elementor 3.35.5
     105* Improved: Standardized text domain across plugin.
     106* Fixed : Fixed issues reported by “Plugin Check” plugin.
     107
    103108= Version 1.2.5 | 12/02/2026 =
    104109* Tested Up To: Elementor 3.35.4
     
    139144
    140145== Upgrade Notice ==
    141 = Version 2.4.7 | June 10, 2025 =
    142 * Added: User opt-in option in plugin.
    143 * Improved: Minor code improvements.
    144 * Tested The Events Calendar V6.13.2.1.
     146= Version 1.2.6 | 23/02/2026 =
     147* Tested Up To: Elementor 3.35.5
     148* Improved: Standardized text domain across plugin.
     149* Fixed : Fixed issues reported by “Plugin Check” plugin.
    145150
    146 
  • shortcodes-for-amp-web-stories-and-elementor-widget/trunk/widgets/wsae-rendor.php

    r3174925 r3467278  
    66use Google\Web_Stories\Model\Story;
    77
     8// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
     9
    810$current_post = get_post($singlid);
    911
     
    1214
    1315$args = '';
     16
    1417$html = '';
    1518
     
    6366$html .= ' </div>';
    6467           
    65 echo $html;
     68echo $html;  // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     69
     70// phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
  • shortcodes-for-amp-web-stories-and-elementor-widget/trunk/widgets/wsae-widget.php

    r3174925 r3467278  
    1515        parent::__construct($data, $args);
    1616       
    17       wp_register_script('standalone-custom-script', WSAE_URL . 'assets/js/wsae-custom-script.js', ['elementor-frontend','jquery'], null, true);
    18       wp_register_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css');
     17      wp_register_script('standalone-custom-script', WSAE_URL . 'assets/js/wsae-custom-script.js', ['elementor-frontend','jquery'], WSAE_VERSION, true);
     18      wp_register_style('standalone-custom-style', WSAE_URL . 'assets/css/wsae-custom-styl.css', [], WSAE_VERSION);
    1919    }
    2020
     
    3939    public function get_title()
    4040    {
    41         return __('Web Stories Widget', 'WSAE');
     41        return __('Web Stories Widget', 'shortcodes-for-amp-web-stories-and-elementor-widget');
    4242    }
    4343
     
    8484               
    8585                if(empty($post_names)){
    86                     $post_names['select'] = esc_html__( 'You have no story to show', 'WSAE' ); // Escape static text
     86                    $post_names['select'] = esc_html__( 'You have no story to show', 'shortcodes-for-amp-web-stories-and-elementor-widget' ); // Escape static text
    8787                }             
    8888
    89                 $defal_select = isset( $the_query[0]->post_title ) ? esc_html( $the_query[0]->post_title ) : esc_html__( 'select', 'WSAE' ); // Escape default select text
     89                $defal_select = isset( $the_query[0]->post_title ) ? esc_html( $the_query[0]->post_title ) : esc_html__( 'select', 'shortcodes-for-amp-web-stories-and-elementor-widget' ); // Escape default select text
    9090
    9191            $this->start_controls_section(
    9292            'WSAE_layout_section',
    9393            [
    94                 'label' => __('Layout Settings', 'WSAE'),
     94                'label' => __('Layout Settings', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    9595                'tab' => Controls_Manager::TAB_CONTENT,
    9696            ]
     
    100100            'wsae_layout',
    101101            [
    102                 'label' => __('Select story', 'WSAE'),
     102                'label' => __('Select story', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    103103                'type' => Controls_Manager::SELECT,
    104104                'default' => $defal_select ,
     
    110110            'wsae_style',
    111111            [
    112                 'label' => __('Style', 'WSAE'),
     112                'label' => __('Style', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    113113                'type' => Controls_Manager::SELECT,
    114114                'default' => 'default',
    115115                'options' => [
    116                     'default'=>  esc_html__('Default','WSAE'),
    117                     'circle'=>  esc_html__('Circle','WSAE'),
     116                    'default'=>  esc_html__('Default','shortcodes-for-amp-web-stories-and-elementor-widget'),
     117                    'circle'=>  esc_html__('Circle','shortcodes-for-amp-web-stories-and-elementor-widget'),
    118118                ],
    119119            ]
     
    123123            'wsae_story_height',
    124124            [
    125                 'label' => esc_html__('Story Height', 'WSAE'),
     125                'label' => esc_html__('Story Height', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    126126                'type' => \Elementor\Controls_Manager::SLIDER,
    127127                'size_units' => ['px'],
     
    145145            'wsae_button',
    146146            [
    147                 'label' => __( 'Show Button', 'WSAE'),
     147                'label' => __( 'Show Button', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    148148                'type' => Controls_Manager::SWITCHER,
    149                 'label_on' => __( 'Show', 'WSAE'),
    150                 'label_off' => __( 'Hide', 'WSAE'),
     149                'label_on' => __( 'Show', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
     150                'label_off' => __( 'Hide', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    151151                'return_value' => 'yes',
    152152                'default' => 'no',
     
    161161            'wsae_btn_text',
    162162            [
    163                 'label' => __( 'Button text', 'WSAE' ),
     163                'label' => __( 'Button text', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    164164                'type' => Controls_Manager::TEXT,
    165                 'default' => __( 'View', 'WSAE' ),
    166                 'placeholder' => __( 'Enter text for button', 'WSAE' ),
     165                'default' => __( 'View', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
     166                'placeholder' => __( 'Enter text for button', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    167167                'sanitize_callback' => 'sanitize_text_field',
    168168                'condition' => [
     
    178178            [
    179179                'name' => 'content_typography',
    180                 'label' => __( 'Button Typography', 'WSAE' ),
     180                'label' => __( 'Button Typography', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    181181                'type' => \Elementor\Group_Control_Typography::get_type(),
    182182                'selector' => '{{WRAPPER}} .wae_btn_setting',
     
    190190            'wsae_button_text_color',
    191191            array(
    192                 'label' => __('Button Text Color', 'WSAE'),
     192                'label' => __('Button Text Color', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    193193                'type' => Controls_Manager::COLOR,
    194194                'selectors' => array('{{WRAPPER}} .wae_btn_setting' => 'color: {{VALUE}} !important',
     
    204204            'wsae_button_color',
    205205            array(
    206                 'label' => __('Button Background', 'WSAE'),
     206                'label' => __('Button Background', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    207207                'type' => Controls_Manager::COLOR,
    208208                'selectors' => array('{{WRAPPER}} .wae_btn_setting' => 'background-color: {{VALUE}} !important',
     
    218218            'wsae_border_width',
    219219            array(
    220                 'label' => __('Border Width', 'WSAE'),
     220                'label' => __('Border Width', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    221221                'type' => \Elementor\Controls_Manager::SLIDER,
    222222                'size_units' => ['px'],
     
    244244            'wsae_border_padding',
    245245            array(
    246                 'label' => __('Padding', 'WSAE'),
     246                'label' => __('Padding', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    247247                'type' => \Elementor\Controls_Manager::SLIDER,
    248248                'size_units' => ['px'],
     
    271271            'wsae_border_color_type',
    272272            array(
    273                 'label' => __('Border Color Type', 'WSAE'),
     273                'label' => __('Border Color Type', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    274274                'type' => Controls_Manager::CHOOSE,
    275275                'default' => 'gradient', // or 'gradient'
    276276                'options' => array(
    277277                    'simple'     => array(
    278                         'title' => esc_html__( 'Simple', 'WSAE' ),
     278                        'title' => esc_html__( 'Simple', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    279279                        'icon'  => 'eicon-paint-brush',
    280280                    ),
    281281                    'gradient'   => array(
    282                         'title' => esc_html__( 'Gradient', 'WSAE' ),
     282                        'title' => esc_html__( 'Gradient', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    283283                        'icon'  => 'eicon-barcode',
    284284                    )),
     
    293293            'wsae_primary_border_color',
    294294            array(
    295                 'label'     => esc_html__( 'Primary Border Color', 'WSAE' ),
     295                'label'     => esc_html__( 'Primary Border Color', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    296296                'type'      => \Elementor\Controls_Manager::COLOR,
    297297                'default' => '#F01111',
     
    310310            'wsae_secondary_border_color',
    311311            array(
    312                 'label'     => esc_html__( 'Secondary Border Color', 'WSAE' ),
     312                'label'     => esc_html__( 'Secondary Border Color', 'shortcodes-for-amp-web-stories-and-elementor-widget' ),
    313313                'type'      => \Elementor\Controls_Manager::COLOR,
    314314                'default' => '#800080',
     
    326326            'wsae_ids',
    327327            [
    328                 'label' => __( 'post ids', 'WSAE'),
     328                'label' => __( 'post ids', 'shortcodes-for-amp-web-stories-and-elementor-widget'),
    329329                'type' => Controls_Manager::HIDDEN,
    330330                'default' => $post_idss,
     
    349349       $singlid='';
    350350       if($settings['wsae_layout']=='select'){
    351         echo esc_html__('You have no story to show', 'WSAE');
     351        echo esc_html__('You have no story to show', 'shortcodes-for-amp-web-stories-and-elementor-widget');
    352352        return;
    353353       }
     
    407407        if (settings.wsae_layout == 'select') {
    408408                #>
    409                 <span><?php echo esc_html__('You have no story to show', 'WSAE'); ?></span>
     409                <span><?php echo esc_html__('You have no story to show', 'shortcodes-for-amp-web-stories-and-elementor-widget'); ?></span>
    410410                <#
    411411            } else {
Note: See TracChangeset for help on using the changeset viewer.