Changeset 3467278
- Timestamp:
- 02/23/2026 05:48:28 AM (5 weeks ago)
- Location:
- shortcodes-for-amp-web-stories-and-elementor-widget
- Files:
-
- 14 edited
- 1 copied
-
tags/1.2.6 (copied) (copied from shortcodes-for-amp-web-stories-and-elementor-widget/trunk)
-
tags/1.2.6/Shortcodes For AMP Web Stories and Elementor Widget.php (modified) (10 diffs)
-
tags/1.2.6/admin/feedback/wsae-feedback-notice.php (modified) (5 diffs)
-
tags/1.2.6/includes/class-WSAE.php (modified) (1 diff)
-
tags/1.2.6/includes/wsae-recent-story.php (modified) (2 diffs)
-
tags/1.2.6/readme.txt (modified) (4 diffs)
-
tags/1.2.6/widgets/wsae-rendor.php (modified) (3 diffs)
-
tags/1.2.6/widgets/wsae-widget.php (modified) (19 diffs)
-
trunk/Shortcodes For AMP Web Stories and Elementor Widget.php (modified) (10 diffs)
-
trunk/admin/feedback/wsae-feedback-notice.php (modified) (5 diffs)
-
trunk/includes/class-WSAE.php (modified) (1 diff)
-
trunk/includes/wsae-recent-story.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/widgets/wsae-rendor.php (modified) (3 diffs)
-
trunk/widgets/wsae-widget.php (modified) (19 diffs)
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 2 2 /** 3 3 * 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"]. 5 5 * Plugin URI: https://coolplugins.net 6 * Version: 1.2. 56 * Version: 1.2.6 7 7 * Author: Cool Plugins 8 8 * 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 11 13 */ 12 14 … … 21 23 } 22 24 23 define('WSAE_VERSION', '1.2. 5');25 define('WSAE_VERSION', '1.2.6'); 24 26 define('WSAE_FILE', __FILE__); 25 27 define('WSAE_PATH', plugin_dir_path(WSAE_FILE)); … … 78 80 function set_custom_edit_wsae_columns($columns) { 79 81 80 $columns['shortcode'] = __( 'Shortcode', ' WSAE' );82 $columns['shortcode'] = __( 'Shortcode', 'shortcodes-for-amp-web-stories-and-elementor-widget' ); 81 83 82 84 return $columns; … … 84 86 function custom_wsae_column( $columns, $post_id ) { 85 87 if($columns=='shortcode'){ 86 echo '<code>[webstory id="'. $post_id.'"]</code>';88 echo '<code>[webstory id="'.esc_attr($post_id).'"]</code>'; 87 89 } 88 90 } … … 96 98 // Load styles and scripts only if shortcodes are used in the content 97 99 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>'; 99 101 } 100 102 wp_enqueue_style( 'wsae-standalone-amp-story-player-style' ); 101 103 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); 103 105 104 106 $atts = shortcode_atts( array( … … 160 162 wp_enqueue_style( 'wsae-standalone-amp-story-player-style' ); 161 163 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); 163 165 164 166 $atts = shortcode_atts( array( … … 261 263 262 264 } 263 load_plugin_textdomain('WSAE', false, WSAE_FILE . 'languages'); 264 265 265 266 266 267 // Require the main plugin file … … 282 283 if (!is_plugin_active( 'elementor/elementor.php' ) ) : ?> 283 284 <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> 285 288 </div> 286 289 <?php endif; … … 292 295 if (current_user_can('activate_plugins')): ?> 293 296 <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> 295 300 </div> 296 301 <?php endif; … … 304 309 update_option("WSAE-v",WSAE_VERSION); 305 310 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') ); 307 312 } 308 313 -
shortcodes-for-amp-web-stories-and-elementor-widget/tags/1.2.6/admin/feedback/wsae-feedback-notice.php
r3422654 r3467278 1 1 <?php 2 3 if ( ! defined( 'ABSPATH' ) ) { 4 exit; // Exit if accessed directly 5 } 2 6 3 7 if (!class_exists("WSAEFeedbackNotice")) { … … 30 34 31 35 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 ); 33 37 34 38 … … 82 86 83 87 // 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"); 85 89 $install_date = new DateTime($installation_date); 86 90 $current_date = new DateTime($display_date); … … 92 96 wp_enqueue_script("wsae-feedback-script"); 93 97 wp_enqueue_style('wsae-feedback-style'); 98 99 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 94 100 echo $this->wsae_create_notice_content(); 95 101 … … 105 111 $p_name = "Web Stories Widgets For Elementor"; 106 112 $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'); 116 116 $p_link = esc_url( 117 117 "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 9 9 "wsae", // the name of the category 10 10 [ 11 "title" => esc_html__("Webstory Addon Widget", " wsae"),11 "title" => esc_html__("Webstory Addon Widget", "shortcodes-for-amp-web-stories-and-elementor-widget"), 12 12 "icon" => "fa fa-header", //default icon 13 13 ], -
shortcodes-for-amp-web-stories-and-elementor-widget/tags/1.2.6/includes/wsae-recent-story.php
r3174925 r3467278 3 3 use Google\Web_Stories\Story_Renderer\HTML; 4 4 use Google\Web_Stories\Model\Story; 5 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; // Exit if accessed directly 8 } 9 10 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound 11 5 12 $checknoof = ($atts['show-no-of-story'] !== 'all') ? $atts['show-no-of-story'] : -1; 6 13 … … 90 97 } 91 98 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 3 3 Contributors:narinder-singh,satindersingh,coolplugins 4 4 Donate link: https://paypal.me/CoolPlugins/10USD/ 5 Tags: web stories,amp stories,s tory,shortcode, elementor widgets, accelerated mobile pages,google5 Tags: web stories,amp stories,shortcode, elementor widgets,google 6 6 Requires at least:5.0 7 7 Tested up to:6.9 8 8 Requires PHP:5.6 9 Stable tag:1.2. 59 Stable tag:1.2.6 10 10 License:GPLv2 or later 11 11 License URI:http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 57 57 1. Web Stories – Layout View 58 2. Recent Web Stories – Shortcode Output z58 2. Recent Web Stories – Shortcode Output 59 59 3. Elementor Widget – Web Stories Settings Preview 60 60 4. Web Stories – GIF Preview … … 101 101 == Changelog == 102 102 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 103 108 = Version 1.2.5 | 12/02/2026 = 104 109 * Tested Up To: Elementor 3.35.4 … … 139 144 140 145 == 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. 145 150 146 -
shortcodes-for-amp-web-stories-and-elementor-widget/tags/1.2.6/widgets/wsae-rendor.php
r3174925 r3467278 6 6 use Google\Web_Stories\Model\Story; 7 7 8 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound 9 8 10 $current_post = get_post($singlid); 9 11 … … 12 14 13 15 $args = ''; 16 14 17 $html = ''; 15 18 … … 63 66 $html .= ' </div>'; 64 67 65 echo $html; 68 echo $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 15 15 parent::__construct($data, $args); 16 16 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); 19 19 } 20 20 … … 39 39 public function get_title() 40 40 { 41 return __('Web Stories Widget', ' WSAE');41 return __('Web Stories Widget', 'shortcodes-for-amp-web-stories-and-elementor-widget'); 42 42 } 43 43 … … 84 84 85 85 if(empty($post_names)){ 86 $post_names['select'] = esc_html__( 'You have no story to show', ' WSAE' ); // Escape static text86 $post_names['select'] = esc_html__( 'You have no story to show', 'shortcodes-for-amp-web-stories-and-elementor-widget' ); // Escape static text 87 87 } 88 88 89 $defal_select = isset( $the_query[0]->post_title ) ? esc_html( $the_query[0]->post_title ) : esc_html__( 'select', ' WSAE' ); // Escape default select text89 $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 90 90 91 91 $this->start_controls_section( 92 92 'WSAE_layout_section', 93 93 [ 94 'label' => __('Layout Settings', ' WSAE'),94 'label' => __('Layout Settings', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 95 95 'tab' => Controls_Manager::TAB_CONTENT, 96 96 ] … … 100 100 'wsae_layout', 101 101 [ 102 'label' => __('Select story', ' WSAE'),102 'label' => __('Select story', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 103 103 'type' => Controls_Manager::SELECT, 104 104 'default' => $defal_select , … … 110 110 'wsae_style', 111 111 [ 112 'label' => __('Style', ' WSAE'),112 'label' => __('Style', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 113 113 'type' => Controls_Manager::SELECT, 114 114 'default' => 'default', 115 115 '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'), 118 118 ], 119 119 ] … … 123 123 'wsae_story_height', 124 124 [ 125 'label' => esc_html__('Story Height', ' WSAE'),125 'label' => esc_html__('Story Height', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 126 126 'type' => \Elementor\Controls_Manager::SLIDER, 127 127 'size_units' => ['px'], … … 145 145 'wsae_button', 146 146 [ 147 'label' => __( 'Show Button', ' WSAE'),147 'label' => __( 'Show Button', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 148 148 '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'), 151 151 'return_value' => 'yes', 152 152 'default' => 'no', … … 161 161 'wsae_btn_text', 162 162 [ 163 'label' => __( 'Button text', ' WSAE' ),163 'label' => __( 'Button text', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 164 164 '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' ), 167 167 'sanitize_callback' => 'sanitize_text_field', 168 168 'condition' => [ … … 178 178 [ 179 179 'name' => 'content_typography', 180 'label' => __( 'Button Typography', ' WSAE' ),180 'label' => __( 'Button Typography', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 181 181 'type' => \Elementor\Group_Control_Typography::get_type(), 182 182 'selector' => '{{WRAPPER}} .wae_btn_setting', … … 190 190 'wsae_button_text_color', 191 191 array( 192 'label' => __('Button Text Color', ' WSAE'),192 'label' => __('Button Text Color', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 193 193 'type' => Controls_Manager::COLOR, 194 194 'selectors' => array('{{WRAPPER}} .wae_btn_setting' => 'color: {{VALUE}} !important', … … 204 204 'wsae_button_color', 205 205 array( 206 'label' => __('Button Background', ' WSAE'),206 'label' => __('Button Background', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 207 207 'type' => Controls_Manager::COLOR, 208 208 'selectors' => array('{{WRAPPER}} .wae_btn_setting' => 'background-color: {{VALUE}} !important', … … 218 218 'wsae_border_width', 219 219 array( 220 'label' => __('Border Width', ' WSAE'),220 'label' => __('Border Width', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 221 221 'type' => \Elementor\Controls_Manager::SLIDER, 222 222 'size_units' => ['px'], … … 244 244 'wsae_border_padding', 245 245 array( 246 'label' => __('Padding', ' WSAE'),246 'label' => __('Padding', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 247 247 'type' => \Elementor\Controls_Manager::SLIDER, 248 248 'size_units' => ['px'], … … 271 271 'wsae_border_color_type', 272 272 array( 273 'label' => __('Border Color Type', ' WSAE'),273 'label' => __('Border Color Type', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 274 274 'type' => Controls_Manager::CHOOSE, 275 275 'default' => 'gradient', // or 'gradient' 276 276 'options' => array( 277 277 'simple' => array( 278 'title' => esc_html__( 'Simple', ' WSAE' ),278 'title' => esc_html__( 'Simple', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 279 279 'icon' => 'eicon-paint-brush', 280 280 ), 281 281 'gradient' => array( 282 'title' => esc_html__( 'Gradient', ' WSAE' ),282 'title' => esc_html__( 'Gradient', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 283 283 'icon' => 'eicon-barcode', 284 284 )), … … 293 293 'wsae_primary_border_color', 294 294 array( 295 'label' => esc_html__( 'Primary Border Color', ' WSAE' ),295 'label' => esc_html__( 'Primary Border Color', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 296 296 'type' => \Elementor\Controls_Manager::COLOR, 297 297 'default' => '#F01111', … … 310 310 'wsae_secondary_border_color', 311 311 array( 312 'label' => esc_html__( 'Secondary Border Color', ' WSAE' ),312 'label' => esc_html__( 'Secondary Border Color', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 313 313 'type' => \Elementor\Controls_Manager::COLOR, 314 314 'default' => '#800080', … … 326 326 'wsae_ids', 327 327 [ 328 'label' => __( 'post ids', ' WSAE'),328 'label' => __( 'post ids', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 329 329 'type' => Controls_Manager::HIDDEN, 330 330 'default' => $post_idss, … … 349 349 $singlid=''; 350 350 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'); 352 352 return; 353 353 } … … 407 407 if (settings.wsae_layout == 'select') { 408 408 #> 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> 410 410 <# 411 411 } else { -
shortcodes-for-amp-web-stories-and-elementor-widget/trunk/Shortcodes For AMP Web Stories and Elementor Widget.php
r3459855 r3467278 2 2 /** 3 3 * 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"]. 5 5 * Plugin URI: https://coolplugins.net 6 * Version: 1.2. 56 * Version: 1.2.6 7 7 * Author: Cool Plugins 8 8 * 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 11 13 */ 12 14 … … 21 23 } 22 24 23 define('WSAE_VERSION', '1.2. 5');25 define('WSAE_VERSION', '1.2.6'); 24 26 define('WSAE_FILE', __FILE__); 25 27 define('WSAE_PATH', plugin_dir_path(WSAE_FILE)); … … 78 80 function set_custom_edit_wsae_columns($columns) { 79 81 80 $columns['shortcode'] = __( 'Shortcode', ' WSAE' );82 $columns['shortcode'] = __( 'Shortcode', 'shortcodes-for-amp-web-stories-and-elementor-widget' ); 81 83 82 84 return $columns; … … 84 86 function custom_wsae_column( $columns, $post_id ) { 85 87 if($columns=='shortcode'){ 86 echo '<code>[webstory id="'. $post_id.'"]</code>';88 echo '<code>[webstory id="'.esc_attr($post_id).'"]</code>'; 87 89 } 88 90 } … … 96 98 // Load styles and scripts only if shortcodes are used in the content 97 99 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>'; 99 101 } 100 102 wp_enqueue_style( 'wsae-standalone-amp-story-player-style' ); 101 103 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); 103 105 104 106 $atts = shortcode_atts( array( … … 160 162 wp_enqueue_style( 'wsae-standalone-amp-story-player-style' ); 161 163 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); 163 165 164 166 $atts = shortcode_atts( array( … … 261 263 262 264 } 263 load_plugin_textdomain('WSAE', false, WSAE_FILE . 'languages'); 264 265 265 266 266 267 // Require the main plugin file … … 282 283 if (!is_plugin_active( 'elementor/elementor.php' ) ) : ?> 283 284 <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> 285 288 </div> 286 289 <?php endif; … … 292 295 if (current_user_can('activate_plugins')): ?> 293 296 <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> 295 300 </div> 296 301 <?php endif; … … 304 309 update_option("WSAE-v",WSAE_VERSION); 305 310 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') ); 307 312 } 308 313 -
shortcodes-for-amp-web-stories-and-elementor-widget/trunk/admin/feedback/wsae-feedback-notice.php
r3422654 r3467278 1 1 <?php 2 3 if ( ! defined( 'ABSPATH' ) ) { 4 exit; // Exit if accessed directly 5 } 2 6 3 7 if (!class_exists("WSAEFeedbackNotice")) { … … 30 34 31 35 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 ); 33 37 34 38 … … 82 86 83 87 // 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"); 85 89 $install_date = new DateTime($installation_date); 86 90 $current_date = new DateTime($display_date); … … 92 96 wp_enqueue_script("wsae-feedback-script"); 93 97 wp_enqueue_style('wsae-feedback-style'); 98 99 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 94 100 echo $this->wsae_create_notice_content(); 95 101 … … 105 111 $p_name = "Web Stories Widgets For Elementor"; 106 112 $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'); 116 116 $p_link = esc_url( 117 117 "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 9 9 "wsae", // the name of the category 10 10 [ 11 "title" => esc_html__("Webstory Addon Widget", " wsae"),11 "title" => esc_html__("Webstory Addon Widget", "shortcodes-for-amp-web-stories-and-elementor-widget"), 12 12 "icon" => "fa fa-header", //default icon 13 13 ], -
shortcodes-for-amp-web-stories-and-elementor-widget/trunk/includes/wsae-recent-story.php
r3174925 r3467278 3 3 use Google\Web_Stories\Story_Renderer\HTML; 4 4 use Google\Web_Stories\Model\Story; 5 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; // Exit if accessed directly 8 } 9 10 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound 11 5 12 $checknoof = ($atts['show-no-of-story'] !== 'all') ? $atts['show-no-of-story'] : -1; 6 13 … … 90 97 } 91 98 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 3 3 Contributors:narinder-singh,satindersingh,coolplugins 4 4 Donate link: https://paypal.me/CoolPlugins/10USD/ 5 Tags: web stories,amp stories,s tory,shortcode, elementor widgets, accelerated mobile pages,google5 Tags: web stories,amp stories,shortcode, elementor widgets,google 6 6 Requires at least:5.0 7 7 Tested up to:6.9 8 8 Requires PHP:5.6 9 Stable tag:1.2. 59 Stable tag:1.2.6 10 10 License:GPLv2 or later 11 11 License URI:http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 57 57 1. Web Stories – Layout View 58 2. Recent Web Stories – Shortcode Output z58 2. Recent Web Stories – Shortcode Output 59 59 3. Elementor Widget – Web Stories Settings Preview 60 60 4. Web Stories – GIF Preview … … 101 101 == Changelog == 102 102 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 103 108 = Version 1.2.5 | 12/02/2026 = 104 109 * Tested Up To: Elementor 3.35.4 … … 139 144 140 145 == 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. 145 150 146 -
shortcodes-for-amp-web-stories-and-elementor-widget/trunk/widgets/wsae-rendor.php
r3174925 r3467278 6 6 use Google\Web_Stories\Model\Story; 7 7 8 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound 9 8 10 $current_post = get_post($singlid); 9 11 … … 12 14 13 15 $args = ''; 16 14 17 $html = ''; 15 18 … … 63 66 $html .= ' </div>'; 64 67 65 echo $html; 68 echo $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 15 15 parent::__construct($data, $args); 16 16 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); 19 19 } 20 20 … … 39 39 public function get_title() 40 40 { 41 return __('Web Stories Widget', ' WSAE');41 return __('Web Stories Widget', 'shortcodes-for-amp-web-stories-and-elementor-widget'); 42 42 } 43 43 … … 84 84 85 85 if(empty($post_names)){ 86 $post_names['select'] = esc_html__( 'You have no story to show', ' WSAE' ); // Escape static text86 $post_names['select'] = esc_html__( 'You have no story to show', 'shortcodes-for-amp-web-stories-and-elementor-widget' ); // Escape static text 87 87 } 88 88 89 $defal_select = isset( $the_query[0]->post_title ) ? esc_html( $the_query[0]->post_title ) : esc_html__( 'select', ' WSAE' ); // Escape default select text89 $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 90 90 91 91 $this->start_controls_section( 92 92 'WSAE_layout_section', 93 93 [ 94 'label' => __('Layout Settings', ' WSAE'),94 'label' => __('Layout Settings', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 95 95 'tab' => Controls_Manager::TAB_CONTENT, 96 96 ] … … 100 100 'wsae_layout', 101 101 [ 102 'label' => __('Select story', ' WSAE'),102 'label' => __('Select story', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 103 103 'type' => Controls_Manager::SELECT, 104 104 'default' => $defal_select , … … 110 110 'wsae_style', 111 111 [ 112 'label' => __('Style', ' WSAE'),112 'label' => __('Style', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 113 113 'type' => Controls_Manager::SELECT, 114 114 'default' => 'default', 115 115 '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'), 118 118 ], 119 119 ] … … 123 123 'wsae_story_height', 124 124 [ 125 'label' => esc_html__('Story Height', ' WSAE'),125 'label' => esc_html__('Story Height', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 126 126 'type' => \Elementor\Controls_Manager::SLIDER, 127 127 'size_units' => ['px'], … … 145 145 'wsae_button', 146 146 [ 147 'label' => __( 'Show Button', ' WSAE'),147 'label' => __( 'Show Button', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 148 148 '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'), 151 151 'return_value' => 'yes', 152 152 'default' => 'no', … … 161 161 'wsae_btn_text', 162 162 [ 163 'label' => __( 'Button text', ' WSAE' ),163 'label' => __( 'Button text', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 164 164 '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' ), 167 167 'sanitize_callback' => 'sanitize_text_field', 168 168 'condition' => [ … … 178 178 [ 179 179 'name' => 'content_typography', 180 'label' => __( 'Button Typography', ' WSAE' ),180 'label' => __( 'Button Typography', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 181 181 'type' => \Elementor\Group_Control_Typography::get_type(), 182 182 'selector' => '{{WRAPPER}} .wae_btn_setting', … … 190 190 'wsae_button_text_color', 191 191 array( 192 'label' => __('Button Text Color', ' WSAE'),192 'label' => __('Button Text Color', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 193 193 'type' => Controls_Manager::COLOR, 194 194 'selectors' => array('{{WRAPPER}} .wae_btn_setting' => 'color: {{VALUE}} !important', … … 204 204 'wsae_button_color', 205 205 array( 206 'label' => __('Button Background', ' WSAE'),206 'label' => __('Button Background', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 207 207 'type' => Controls_Manager::COLOR, 208 208 'selectors' => array('{{WRAPPER}} .wae_btn_setting' => 'background-color: {{VALUE}} !important', … … 218 218 'wsae_border_width', 219 219 array( 220 'label' => __('Border Width', ' WSAE'),220 'label' => __('Border Width', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 221 221 'type' => \Elementor\Controls_Manager::SLIDER, 222 222 'size_units' => ['px'], … … 244 244 'wsae_border_padding', 245 245 array( 246 'label' => __('Padding', ' WSAE'),246 'label' => __('Padding', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 247 247 'type' => \Elementor\Controls_Manager::SLIDER, 248 248 'size_units' => ['px'], … … 271 271 'wsae_border_color_type', 272 272 array( 273 'label' => __('Border Color Type', ' WSAE'),273 'label' => __('Border Color Type', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 274 274 'type' => Controls_Manager::CHOOSE, 275 275 'default' => 'gradient', // or 'gradient' 276 276 'options' => array( 277 277 'simple' => array( 278 'title' => esc_html__( 'Simple', ' WSAE' ),278 'title' => esc_html__( 'Simple', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 279 279 'icon' => 'eicon-paint-brush', 280 280 ), 281 281 'gradient' => array( 282 'title' => esc_html__( 'Gradient', ' WSAE' ),282 'title' => esc_html__( 'Gradient', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 283 283 'icon' => 'eicon-barcode', 284 284 )), … … 293 293 'wsae_primary_border_color', 294 294 array( 295 'label' => esc_html__( 'Primary Border Color', ' WSAE' ),295 'label' => esc_html__( 'Primary Border Color', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 296 296 'type' => \Elementor\Controls_Manager::COLOR, 297 297 'default' => '#F01111', … … 310 310 'wsae_secondary_border_color', 311 311 array( 312 'label' => esc_html__( 'Secondary Border Color', ' WSAE' ),312 'label' => esc_html__( 'Secondary Border Color', 'shortcodes-for-amp-web-stories-and-elementor-widget' ), 313 313 'type' => \Elementor\Controls_Manager::COLOR, 314 314 'default' => '#800080', … … 326 326 'wsae_ids', 327 327 [ 328 'label' => __( 'post ids', ' WSAE'),328 'label' => __( 'post ids', 'shortcodes-for-amp-web-stories-and-elementor-widget'), 329 329 'type' => Controls_Manager::HIDDEN, 330 330 'default' => $post_idss, … … 349 349 $singlid=''; 350 350 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'); 352 352 return; 353 353 } … … 407 407 if (settings.wsae_layout == 'select') { 408 408 #> 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> 410 410 <# 411 411 } else {
Note: See TracChangeset
for help on using the changeset viewer.