Shortcodes by Angie Makes - Version 1.49

Version Description

Download this release

Release Info

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

Code changes from version 1.48 to 1.49

README.md CHANGED
@@ -66,6 +66,11 @@ Use the shortcode manager in the TinyMCE text editor
66
 
67
  ## Changelog ##
68
 
 
 
 
 
 
69
  ### Version 1.48
70
 
71
  * Fixed bug on masonry posts layout with the shortcodes displaying in the excerpt
66
 
67
  ## Changelog ##
68
 
69
+ ### Version 1.49
70
+
71
+ * Added padding around price heading
72
+ * Added helpful classnames
73
+
74
  ### Version 1.48
75
 
76
  * Fixed bug on masonry posts layout with the shortcodes displaying in the excerpt
includes/css/style.css CHANGED
@@ -844,7 +844,7 @@
844
  color: #ffffff;
845
  font-size: 130%;
846
  margin: 0;
847
- padding: 0 20px 10px;
848
  }
849
  .wc-shortcodes-pricing .wc-shortcodes-pricing-cost {
850
  font-size: 170%;
844
  color: #ffffff;
845
  font-size: 130%;
846
  margin: 0;
847
+ padding: 0 20px 20px;
848
  }
849
  .wc-shortcodes-pricing .wc-shortcodes-pricing-cost {
850
  font-size: 170%;
includes/shortcode-functions.php CHANGED
@@ -83,7 +83,7 @@ function wc_shortcodes_fullwidth( $atts, $content = null ) {
83
 
84
  wp_enqueue_script('wc-shortcodes-fullwidth');
85
 
86
- return '<div class="wc-shortcodes-full-width" data-selector="' . esc_attr($selector) . '">' . do_shortcode( $content ) . '</div>';
87
  }
88
 
89
 
@@ -132,7 +132,7 @@ function wc_shortcodes_displayhtml( $atts, $content = null ) {
132
  return null;
133
 
134
  if ( $snippet = get_post_meta($post->ID, $name, true ) ) {
135
- $html = '<div class="wc-shortcodes-html-wrapper">' . $snippet . '</div>';
136
  }
137
 
138
  return $html;
@@ -278,7 +278,7 @@ if( !function_exists('wc_shortcodes_skillbar') ) {
278
  wp_enqueue_script('wc-shortcodes-skillbar');
279
 
280
  // Display the accordion ';
281
- $output = '<div class="wc-shortcodes-skillbar wc-shortcodes-clearfix '. $class .'" data-percent="'. $percentage .'%">';
282
  if ( $title !== '' ) $output .= '<div class="wc-shortcodes-skillbar-title" style="background: '. $color .';"><span>'. $title .'</span></div>';
283
  $output .= '<div class="wc-shortcodes-skillbar-bar" style="background: '. $color .';"></div>';
284
  if ( $show_percent == 'true' ) {
@@ -321,7 +321,7 @@ if( !function_exists('wc_shortcodes_social_icons') ) {
321
  'align' => 'left',
322
  ), $atts));
323
 
324
- $class = trim( 'wc-shortcodes-social-icons-wrapper ' . $class );
325
 
326
  $order = get_option( WC_SHORTCODES_PREFIX . 'social_icons_display' );
327
 
@@ -421,7 +421,7 @@ if( !function_exists('wc_shortcodes_button') ) {
421
  $button .= '</a>';
422
 
423
  if ( in_array( $position, $whitelist ) ) {
424
- $button = '<div class="wc-shortcodes-button-'.$position.'">'. $button .'</div>';
425
  }
426
 
427
  return $button;
@@ -456,7 +456,7 @@ if( !function_exists('wc_shortcodes_box') ) {
456
  }
457
 
458
  $alert_content = '';
459
- $alert_content .= '<div class="wc-shortcodes-box wc-shortcodes-clearfix wc-shortcodes-box-' . $color . ' '. $class .'" style="text-align:'. $text_align .';'. $style_attr .'">';
460
  $alert_content .= ' '. do_shortcode($content) .'</div>';
461
  return $alert_content;
462
  }
@@ -484,7 +484,7 @@ if( !function_exists('wc_shortcodes_testimonial') ) {
484
  }
485
 
486
  $testimonial_content = '';
487
- $testimonial_content .= '<div class="wc-shortcodes-testimonial wc-shortcodes-clearfix wc-shortcodes-testimonial-'.$position.' '. $class .'"><div class="wc-shortcodes-testimonial-content">';
488
  $testimonial_content .= $content;
489
  $testimonial_content .= '</div><div class="wc-shortcodes-testimonial-author">';
490
  $testimonial_content .= $by .'</div></div>';
@@ -510,7 +510,7 @@ if( !function_exists('wc_shortcodes_center') ) {
510
  // $append_clearfix = '<div class="wc-shortcodes-clear-floats"></div>';
511
  $style = empty( $max_width ) ? '' : ' style="max-width:'.$max_width.';"';
512
 
513
- return '<div class="wc-shortcodes-center wc-shortcodes-clearfix wc-shortcodes-center-inner-align-'. $text_align .' '. $class .'"' . $style . '>' . do_shortcode($content) . '</div>';
514
  }
515
  }
516
 
@@ -542,7 +542,7 @@ if( !function_exists('wc_shortcodes_column') ) {
542
 
543
  $append_clearfix = 'last' == $position ? '<div class="wc-shortcodes-clear-floats"></div>' : '';
544
 
545
- return '<div'.$style.' class="wc-shortcodes-column wc-shortcodes-' . $size . ' wc-shortcodes-column-'.$position.' '. $class .'">' . do_shortcode($content) . '</div>';
546
  }
547
  }
548
 
@@ -556,7 +556,7 @@ if( !function_exists('wc_shortcodes_column') ) {
556
  */
557
  if( !function_exists('wc_shortcodes_row') ) {
558
  function wc_shortcodes_row( $atts, $content = null ){
559
- return '<div class="wc-shortcodes-row wc-shortcodes-clearfix">' . do_shortcode($content) . '</div>';
560
  }
561
  }
562
 
@@ -579,6 +579,7 @@ if( !function_exists('wc_shortcodes_toggle') ) {
579
  $classes = array();
580
 
581
  $classes[] = 'wc-shortcodes-toggle';
 
582
 
583
  if ( ! empty( $class ) )
584
  $classes[] = $class;
@@ -601,7 +602,7 @@ if( !function_exists('wc_shortcodes_toggle') ) {
601
  wp_enqueue_script('wc-shortcodes-toggle');
602
 
603
  // Display the Toggle
604
- return '<div class="'. $class .'"><div class="wc-shortcodes-toggle-trigger"><a href="#">'. $title .'</a></div><div style="'.$style.'" class="wc-shortcodes-toggle-container">' . do_shortcode($content) . '</div></div>';
605
  }
606
  }
607
 
@@ -626,6 +627,7 @@ if( !function_exists('wc_shortcodes_accordion_main') ) {
626
  $classes = array();
627
 
628
  $classes[] = 'wc-shortcodes-accordion';
 
629
 
630
  $behavior = 'autoclose';
631
  if ( (int) $leaveopen ) {
@@ -666,7 +668,7 @@ if( !function_exists('wc_shortcodes_accordion_section') ) {
666
  'class' => '',
667
  ), $atts ) );
668
 
669
- return '<div class="wc-shortcodes-accordion-trigger '. $class .'"><a href="#">'. $title .'</a></div><div class="wc-shortcodes-accordion-content">' . do_shortcode($content) . '</div>';
670
  }
671
 
672
  }
@@ -695,6 +697,7 @@ if (!function_exists('wc_shortcodes_tabgroup')) {
695
  $classes = array();
696
 
697
  $classes[] = 'wc-shortcodes-tabs';
 
698
 
699
  if ( ! empty( $class ) )
700
  $classes[] = $class;
@@ -734,6 +737,7 @@ if (!function_exists('wc_shortcodes_tab')) {
734
  $classes = array();
735
 
736
  $classes[] = 'tab-content';
 
737
 
738
  $class = implode( ' ', $classes );
739
 
@@ -868,8 +872,11 @@ if (! function_exists( 'wc_shortcodes_googlemaps' ) ) :
868
  wp_enqueue_script('wc-shortcodes-googlemap');
869
  wp_enqueue_script('wc-shortcodes-googlemap-api');
870
 
 
 
 
871
 
872
- $output = '<div id="map_canvas_'.$instance.'" class="googlemap '. $class .'" style="height:'.$height.'px;width:100%">';
873
  $output .= (!empty($title)) ? '<input class="title" type="hidden" value="'.$title.'" />' : '';
874
  $output .= '<input class="location" type="hidden" value="'.$location.'" />';
875
  $output .= '<input class="zoom" type="hidden" value="'.$zoom.'" />';
@@ -915,7 +922,7 @@ if( !function_exists('wc_shortcodes_divider') ) {
915
  $style_attr = '';
916
  }
917
 
918
- return '<hr class="wc-shortcodes-divider wc-shortcodes-divider-line-'.$line.' wc-shortcodes-divider-style-'. $style .' '. $class .'" '.$style_attr.' />';
919
  }
920
  add_shortcode( 'wc_divider', 'wc_shortcodes_divider' );
921
  }
@@ -946,6 +953,7 @@ if( !function_exists('wc_shortcodes_countdown') ) {
946
  $html = '<div class="wc-shortcodes-countdown-bg2">'.$html.'</div>';
947
  $html = '<div class="wc-shortcodes-countdown-bg3">'.$html.'</div>';
948
  $html = '<div class="wc-shortcodes-countdown-bg4">'.$html.'</div>';
 
949
 
950
  return $html;
951
  }
@@ -1011,26 +1019,25 @@ if( !function_exists('wc_shortcodes_rsvp') ) {
1011
  $action_html = '<input name="action" class="rsvp-action rsvp-data" type="hidden" value="wc-send-rsvp-email">';
1012
 
1013
  // RSVP Message
1014
- $message_html = '<div class="wc-shortcodes-box wc-shortcodes-clearfix wc-shortcodes-box-info"><p class="rsvp-message">Hello</p></div>';
1015
 
1016
  // Style
1017
 
1018
- $html .= $action_html;
1019
-
1020
  if ( 3 == $columns ) {
1021
- $html .= '<div class="wc-shortcodes-row wc-shortcodes-clearfix">';
1022
  $html .= ' <div class="wc-shortcodes-column wc-shortcodes-one-third wc-shortcodes-column-first ">'.$name_html.'</div>';
1023
  $html .= ' <div class="wc-shortcodes-column wc-shortcodes-one-third wc-shortcodes-column- ">'.$number_html.'</div>';
1024
  $html .= ' <div class="wc-shortcodes-column wc-shortcodes-one-third wc-shortcodes-column-last ">'.$event_html.'</div>';
1025
  $html .= '</div>';
 
1026
  $html .= $message_html;
1027
  $html .= $button_html;
1028
  }
1029
  else {
1030
- $html .= $name_html . $number_html . $event_html . $message_html . $button_html;
1031
  }
1032
 
1033
- return '<div class="wc-shortcodes-rsvp wc-shortcodes-rsvp-columns-'.$columns.' wc-shortcodes-rsvp-align-'.esc_attr($align).' rsvp-button-align-'.esc_attr($button_align).'">' . do_shortcode( $html ) . '</div>';
1034
  }
1035
  add_shortcode( 'wc_rsvp', 'wc_shortcodes_rsvp' );
1036
  }
@@ -1317,7 +1324,7 @@ if( !function_exists('wc_shortcodes_image') ) {
1317
  // do we need a div wrapper?
1318
  if ( $div_wrapper ) {
1319
  $html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
1320
- $html = '<div id="attachment_' . $attachment_id . '" class="wc-shortcodes-image-wrapper wp-caption align' . $align . '" style="width:' . $width . 'px">' . $html . '</div>';
1321
  }
1322
  else if ( in_array( $align, array( 'none', 'center' ) ) ) {
1323
  $html = '<p>' . $html . '</p>';
83
 
84
  wp_enqueue_script('wc-shortcodes-fullwidth');
85
 
86
+ return '<div class="wc-shortcodes-full-width wc-shortcodes-content" data-selector="' . esc_attr($selector) . '">' . do_shortcode( $content ) . '</div>';
87
  }
88
 
89
 
132
  return null;
133
 
134
  if ( $snippet = get_post_meta($post->ID, $name, true ) ) {
135
+ $html = '<div class="wc-shortcodes-html-wrapper wc-shortcodes-item wc-shortcodes-content">' . $snippet . '</div>';
136
  }
137
 
138
  return $html;
278
  wp_enqueue_script('wc-shortcodes-skillbar');
279
 
280
  // Display the accordion ';
281
+ $output = '<div class="wc-shortcodes-skillbar wc-shortcodes-item wc-shortcodes-clearfix '. $class .'" data-percent="'. $percentage .'%">';
282
  if ( $title !== '' ) $output .= '<div class="wc-shortcodes-skillbar-title" style="background: '. $color .';"><span>'. $title .'</span></div>';
283
  $output .= '<div class="wc-shortcodes-skillbar-bar" style="background: '. $color .';"></div>';
284
  if ( $show_percent == 'true' ) {
321
  'align' => 'left',
322
  ), $atts));
323
 
324
+ $class = trim( 'wc-shortcodes-social-icons-wrapper wc-shortcodes-item ' . $class );
325
 
326
  $order = get_option( WC_SHORTCODES_PREFIX . 'social_icons_display' );
327
 
421
  $button .= '</a>';
422
 
423
  if ( in_array( $position, $whitelist ) ) {
424
+ $button = '<div class="wc-shortcodes-item wc-shortcodes-button-'.$position.'">'. $button .'</div>';
425
  }
426
 
427
  return $button;
456
  }
457
 
458
  $alert_content = '';
459
+ $alert_content .= '<div class="wc-shortcodes-box wc-shortcodes-item wc-shortcodes-content wc-shortcodes-clearfix wc-shortcodes-box-' . $color . ' '. $class .'" style="text-align:'. $text_align .';'. $style_attr .'">';
460
  $alert_content .= ' '. do_shortcode($content) .'</div>';
461
  return $alert_content;
462
  }
484
  }
485
 
486
  $testimonial_content = '';
487
+ $testimonial_content .= '<div class="wc-shortcodes-testimonial wc-shortcodes-item wc-shortcodes-clearfix wc-shortcodes-testimonial-'.$position.' '. $class .'"><div class="wc-shortcodes-testimonial-content wc-shortcodes-content">';
488
  $testimonial_content .= $content;
489
  $testimonial_content .= '</div><div class="wc-shortcodes-testimonial-author">';
490
  $testimonial_content .= $by .'</div></div>';
510
  // $append_clearfix = '<div class="wc-shortcodes-clear-floats"></div>';
511
  $style = empty( $max_width ) ? '' : ' style="max-width:'.$max_width.';"';
512
 
513
+ return '<div class="wc-shortcodes-center wc-shortcodes-item wc-shortcodes-content wc-shortcodes-clearfix wc-shortcodes-center-inner-align-'. $text_align .' '. $class .'"' . $style . '>' . do_shortcode($content) . '</div>';
514
  }
515
  }
516
 
542
 
543
  $append_clearfix = 'last' == $position ? '<div class="wc-shortcodes-clear-floats"></div>' : '';
544
 
545
+ return '<div'.$style.' class="wc-shortcodes-column wc-shortcodes-content wc-shortcodes-' . $size . ' wc-shortcodes-column-'.$position.' '. $class .'">' . do_shortcode($content) . '</div>';
546
  }
547
  }
548
 
556
  */
557
  if( !function_exists('wc_shortcodes_row') ) {
558
  function wc_shortcodes_row( $atts, $content = null ){
559
+ return '<div class="wc-shortcodes-row wc-shortcodes-item wc-shortcodes-clearfix">' . do_shortcode($content) . '</div>';
560
  }
561
  }
562
 
579
  $classes = array();
580
 
581
  $classes[] = 'wc-shortcodes-toggle';
582
+ $classes[] = 'wc-shortcodes-item';
583
 
584
  if ( ! empty( $class ) )
585
  $classes[] = $class;
602
  wp_enqueue_script('wc-shortcodes-toggle');
603
 
604
  // Display the Toggle
605
+ return '<div class="'. $class .'"><div class="wc-shortcodes-toggle-trigger"><a href="#">'. $title .'</a></div><div style="'.$style.'" class="wc-shortcodes-toggle-container wc-shortcodes-content">' . do_shortcode($content) . '</div></div>';
606
  }
607
  }
608
 
627
  $classes = array();
628
 
629
  $classes[] = 'wc-shortcodes-accordion';
630
+ $classes[] = 'wc-shortcodes-item';
631
 
632
  $behavior = 'autoclose';
633
  if ( (int) $leaveopen ) {
668
  'class' => '',
669
  ), $atts ) );
670
 
671
+ return '<div class="wc-shortcodes-accordion-trigger '. $class .'"><a href="#">'. $title .'</a></div><div class="wc-shortcodes-accordion-content wc-shortcodes-content">' . do_shortcode($content) . '</div>';
672
  }
673
 
674
  }
697
  $classes = array();
698
 
699
  $classes[] = 'wc-shortcodes-tabs';
700
+ $classes[] = 'wc-shortcodes-item';
701
 
702
  if ( ! empty( $class ) )
703
  $classes[] = $class;
737
  $classes = array();
738
 
739
  $classes[] = 'tab-content';
740
+ $classes[] = 'wc-shortcodes-content';
741
 
742
  $class = implode( ' ', $classes );
743
 
872
  wp_enqueue_script('wc-shortcodes-googlemap');
873
  wp_enqueue_script('wc-shortcodes-googlemap-api');
874
 
875
+ $class = array();
876
+ $class[] = 'googlemap';
877
+ $class[] = 'wc-shortcodes-item';
878
 
879
+ $output = '<div id="map_canvas_'.$instance.'" class="' . implode( ' ', $class ) . '" style="height:'.$height.'px;width:100%">';
880
  $output .= (!empty($title)) ? '<input class="title" type="hidden" value="'.$title.'" />' : '';
881
  $output .= '<input class="location" type="hidden" value="'.$location.'" />';
882
  $output .= '<input class="zoom" type="hidden" value="'.$zoom.'" />';
922
  $style_attr = '';
923
  }
924
 
925
+ return '<hr class="wc-shortcodes-divider wc-shortcodes-item wc-shortcodes-divider-line-'.$line.' wc-shortcodes-divider-style-'. $style .' '. $class .'" '.$style_attr.' />';
926
  }
927
  add_shortcode( 'wc_divider', 'wc_shortcodes_divider' );
928
  }
953
  $html = '<div class="wc-shortcodes-countdown-bg2">'.$html.'</div>';
954
  $html = '<div class="wc-shortcodes-countdown-bg3">'.$html.'</div>';
955
  $html = '<div class="wc-shortcodes-countdown-bg4">'.$html.'</div>';
956
+ $html = '<div class="wc-shortcodes-item">'.$html.'</div>';
957
 
958
  return $html;
959
  }
1019
  $action_html = '<input name="action" class="rsvp-action rsvp-data" type="hidden" value="wc-send-rsvp-email">';
1020
 
1021
  // RSVP Message
1022
+ $message_html = '<div class="wc-shortcodes-box wc-shortcodes-item wc-shortcodes-content wc-shortcodes-clearfix wc-shortcodes-box-info"><p class="rsvp-message">Hello</p></div>';
1023
 
1024
  // Style
1025
 
 
 
1026
  if ( 3 == $columns ) {
1027
+ $html .= '<div class="wc-shortcodes-row wc-shortcodes-item wc-shortcodes-clearfix">';
1028
  $html .= ' <div class="wc-shortcodes-column wc-shortcodes-one-third wc-shortcodes-column-first ">'.$name_html.'</div>';
1029
  $html .= ' <div class="wc-shortcodes-column wc-shortcodes-one-third wc-shortcodes-column- ">'.$number_html.'</div>';
1030
  $html .= ' <div class="wc-shortcodes-column wc-shortcodes-one-third wc-shortcodes-column-last ">'.$event_html.'</div>';
1031
  $html .= '</div>';
1032
+ $html .= $action_html;
1033
  $html .= $message_html;
1034
  $html .= $button_html;
1035
  }
1036
  else {
1037
+ $html .= $name_html . $number_html . $event_html . $action_html . $message_html . $button_html;
1038
  }
1039
 
1040
+ return '<div class="wc-shortcodes-rsvp wc-shortcodes-content wc-shortcodes-item wc-shortcodes-rsvp-columns-'.$columns.' wc-shortcodes-rsvp-align-'.esc_attr($align).' rsvp-button-align-'.esc_attr($button_align).'">' . do_shortcode( $html ) . '</div>';
1041
  }
1042
  add_shortcode( 'wc_rsvp', 'wc_shortcodes_rsvp' );
1043
  }
1324
  // do we need a div wrapper?
1325
  if ( $div_wrapper ) {
1326
  $html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
1327
+ $html = '<div id="attachment_' . $attachment_id . '" class="wc-shortcodes-image-wrapper wc-shortcodes-item wp-caption align' . $align . '" style="width:' . $width . 'px">' . $html . '</div>';
1328
  }
1329
  else if ( in_array( $align, array( 'none', 'center' ) ) ) {
1330
  $html = '<p>' . $html . '</p>';
readme.txt CHANGED
@@ -88,6 +88,11 @@ Use the shortcode manager in the TinyMCE text editor
88
 
89
  == Changelog ==
90
 
 
 
 
 
 
91
  ### Version 1.48
92
 
93
  * Fixed bug on masonry posts layout with the shortcodes displaying in the excerpt
88
 
89
  == Changelog ==
90
 
91
+ ### Version 1.49
92
+
93
+ * Added padding around price heading
94
+ * Added helpful classnames
95
+
96
  ### Version 1.48
97
 
98
  * Fixed bug on masonry posts layout with the shortcodes displaying in the excerpt
wc-shortcodes.php CHANGED
@@ -5,11 +5,11 @@ Plugin URI: http://webplantmedia.com/starter-themes/wordpresscanvas/features/sho
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
- Version: 1.48
9
  License: GPLv2 or later
10
  */
11
 
12
- define( 'WC_SHORTCODES_VERSION', '1.48' );
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.49
9
  License: GPLv2 or later
10
  */
11
 
12
+ define( 'WC_SHORTCODES_VERSION', '1.49' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );