Shortcodes by Angie Makes - Version 1.37

Version Description

Download this release

Release Info

Developer cbaldelomar
Plugin Icon wp plugin Shortcodes by Angie Makes
Version 1.37
Comparing to
See all releases

Code changes from version 1.36 to 1.37

README.md CHANGED
@@ -66,6 +66,10 @@ Use the shortcode manager in the TinyMCE text editor
66
 
67
  ## Changelog ##
68
 
 
 
 
 
69
  ### Version 1.36
70
 
71
  * switched out isotope library with open source masonry library
66
 
67
  ## Changelog ##
68
 
69
+ ### Version 1.37
70
+
71
+ * Fixed bug with google maps not working
72
+
73
  ### Version 1.36
74
 
75
  * switched out isotope library with open source masonry library
includes/shortcode-functions.php CHANGED
@@ -681,6 +681,8 @@ if( !function_exists('wc_shortcodes_accordion_section') ) {
681
  */
682
  if (!function_exists('wc_shortcodes_tabgroup')) {
683
  function wc_shortcodes_tabgroup( $atts, $content = null ) {
 
 
684
 
685
  //Enque scripts
686
  wp_enqueue_script('wc-shortcodes-tabs');
@@ -709,7 +711,7 @@ if (!function_exists('wc_shortcodes_tabgroup')) {
709
  if( isset($matches[1]) ){ $tab_titles = $matches[1]; }
710
  $output = '';
711
  if( count($tab_titles) ){
712
- $output .= '<div class="'.$class.'">';
713
  $output .= '<ul class="ui-tabs-nav wc-shortcodes-clearfix">';
714
  foreach( $tab_titles as $tab ){
715
  $output .= '<li><a href="#wc-shortcodes-tab-'. sanitize_title( $tab[0] ) .'">' . $tab[0] . '</a></li>';
@@ -849,6 +851,8 @@ if( !function_exists('wc_shortcodes_heading') ) {
849
  */
850
  if (! function_exists( 'wc_shortcodes_googlemaps' ) ) :
851
  function wc_shortcodes_googlemaps($atts, $content = null) {
 
 
852
 
853
  extract(shortcode_atts(array(
854
  'title' => '', // content inside the info window
@@ -866,7 +870,7 @@ if (! function_exists( 'wc_shortcodes_googlemaps' ) ) :
866
  wp_enqueue_script('wc-shortcodes-googlemap-api');
867
 
868
 
869
- $output = '<div class="googlemap '. $class .'" style="height:'.$height.'px;width:100%">';
870
  $output .= (!empty($title)) ? '<input class="title" type="hidden" value="'.$title.'" />' : '';
871
  $output .= '<input class="location" type="hidden" value="'.$location.'" />';
872
  $output .= '<input class="zoom" type="hidden" value="'.$zoom.'" />';
681
  */
682
  if (!function_exists('wc_shortcodes_tabgroup')) {
683
  function wc_shortcodes_tabgroup( $atts, $content = null ) {
684
+ static $instance = 0;
685
+ $instance++;
686
 
687
  //Enque scripts
688
  wp_enqueue_script('wc-shortcodes-tabs');
711
  if( isset($matches[1]) ){ $tab_titles = $matches[1]; }
712
  $output = '';
713
  if( count($tab_titles) ){
714
+ $output .= '<div id="wc-shortcodes-tab-'. $instance .'" class="'.$class.'">';
715
  $output .= '<ul class="ui-tabs-nav wc-shortcodes-clearfix">';
716
  foreach( $tab_titles as $tab ){
717
  $output .= '<li><a href="#wc-shortcodes-tab-'. sanitize_title( $tab[0] ) .'">' . $tab[0] . '</a></li>';
851
  */
852
  if (! function_exists( 'wc_shortcodes_googlemaps' ) ) :
853
  function wc_shortcodes_googlemaps($atts, $content = null) {
854
+ static $instance = 0;
855
+ $instance++;
856
 
857
  extract(shortcode_atts(array(
858
  'title' => '', // content inside the info window
870
  wp_enqueue_script('wc-shortcodes-googlemap-api');
871
 
872
 
873
+ $output = '<div id="map_canvas_'.$instance.'" class="googlemap '. $class .'" style="height:'.$height.'px;width:100%">';
874
  $output .= (!empty($title)) ? '<input class="title" type="hidden" value="'.$title.'" />' : '';
875
  $output .= '<input class="location" type="hidden" value="'.$location.'" />';
876
  $output .= '<input class="zoom" type="hidden" value="'.$zoom.'" />';
readme.txt CHANGED
@@ -88,6 +88,10 @@ Use the shortcode manager in the TinyMCE text editor
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  ### Version 1.36
92
 
93
  * switched out isotope library with open source masonry library
88
 
89
  == Changelog ==
90
 
91
+ ### Version 1.37
92
+
93
+ * Fixed bug with google maps not working
94
+
95
  ### Version 1.36
96
 
97
  * switched out isotope library with open source masonry library
wc-shortcodes.php CHANGED
@@ -5,11 +5,11 @@ Plugin URI: http://wordpresscanvas.com/features/shortcodes/
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
- Version: 1.36
9
  License: GPLv2 or later
10
  */
11
 
12
- define( 'WC_SHORTCODES_VERSION', '1.36' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
+ Version: 1.37
9
  License: GPLv2 or later
10
  */
11
 
12
+ define( 'WC_SHORTCODES_VERSION', '1.37' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );