Changeset 2312885
- Timestamp:
- 05/27/2020 07:17:31 AM (6 years ago)
- Location:
- embedalbum-pro/trunk
- Files:
-
- 2 edited
-
embedalbum_pro.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
embedalbum-pro/trunk/embedalbum_pro.php
r2159164 r2312885 6 6 Author: EmbedSocial 7 7 Author URI: http://www.embedsocial.com 8 Version: 1.1.2 08 Version: 1.1.21 9 9 */ 10 10 defined( 'ABSPATH' ) or die; … … 425 425 return $schema; 426 426 } 427 428 public function embedsocial_badge_shortcode( $atts ) 429 { 430 $shortcodeId = (shortcode_atts(array( 431 'id' => '', 432 'style' => 'badge-1-g' 433 ), $atts)); 434 435 $out = ""; 436 if ($shortcodeId['id']) { 437 $shortcodeId['id'] = sanitize_text_field($shortcodeId['id']); 438 $out = "<div class='reviews-badges'><img src='https://embedsocial.com/api/reviews_badges/{$shortcodeId['style']}/{$shortcodeId['id']}'/></div>"; 439 } 440 return $out; 441 } 427 442 } 428 443 … … 443 458 add_shortcode('embedsocial_story_gallery', array($plugin, 'embedsocial_story_gallery_shortcode')); 444 459 add_shortcode('embedsocial_hashtag', array($plugin, 'embedsocial_hashtag_shortcode')); 460 add_shortcode('embedsocial_badge', array($plugin, 'embedsocial_badge_shortcode')); 445 461 ?> -
embedalbum-pro/trunk/readme.txt
r2179312 r2312885 4 4 Tags: social media feed, social media tools, Facebook reviews, Facebook feed, Instagram feed, embed Facebook album, embed Instagram album, embed Facebook gallery, Instagram stories, Google reiews, Instagram widget 5 5 Requires at least: 4.0 6 Tested up to: 5. 2.47 Stable tag: 1.1.2 06 Tested up to: 5.4.1 7 Stable tag: 1.1.21 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.