Shortcodes by Angie Makes - Version 3.38

Version Description

Download this release

Release Info

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

Code changes from version 3.37 to 3.38

README.md CHANGED
@@ -106,6 +106,10 @@ See our help article on [how to manually upload a plugin](http://knowledgebase.a
106
 
107
  ## Changelog ##
108
 
 
 
 
 
109
  ### Version 3.37 ###
110
 
111
  * Added call to action.
106
 
107
  ## Changelog ##
108
 
109
+ ### Version 3.38 ###
110
+
111
+ * Better responive display for call to action.
112
+
113
  ### Version 3.37 ###
114
 
115
  * Added call to action.
public/assets/css/style.css CHANGED
@@ -2387,6 +2387,9 @@ pre.pre-wrap {
2387
  display: table-cell;
2388
  vertical-align: middle;
2389
  }
 
 
 
2390
  .wc-shortcodes-call-to-action-image-position-left .wcs-call-to-action-image-inner {
2391
  text-align: left;
2392
  }
@@ -2412,3 +2415,27 @@ pre.pre-wrap {
2412
  .wcs-call-to-action-content-wrapper *:last-child {
2413
  margin-bottom: 0;
2414
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2387
  display: table-cell;
2388
  vertical-align: middle;
2389
  }
2390
+ .wc-shortcodes-call-to-action-wrapper .wcs-call-to-action-image-inner2 {
2391
+ display: inline-block;
2392
+ }
2393
  .wc-shortcodes-call-to-action-image-position-left .wcs-call-to-action-image-inner {
2394
  text-align: left;
2395
  }
2415
  .wcs-call-to-action-content-wrapper *:last-child {
2416
  margin-bottom: 0;
2417
  }
2418
+ @media (max-width: 767px) {
2419
+ #wc-shortcodes-call-to-action.wc-shortcodes-call-to-action-side-padding.wc-shortcodes-call-to-action-wrapper .wc-shortcodes-call-to-action-wrapper-inner {
2420
+ padding: 0 20px !important;
2421
+ }
2422
+ #wc-shortcodes-call-to-action.wc-shortcodes-call-to-action-wrapper .wc-shortcodes-call-to-action-wrapper-inner,
2423
+ #wc-shortcodes-call-to-action.wc-shortcodes-call-to-action-wrapper .wcs-call-to-action-container {
2424
+ width: 100% !important;
2425
+ display: block;
2426
+ }
2427
+ #wc-shortcodes-call-to-action.wc-shortcodes-call-to-action-wrapper .wcs-call-to-action-container:first-child {
2428
+ margin-bottom: 3em;
2429
+ }
2430
+ #wc-shortcodes-call-to-action.wc-shortcodes-call-to-action-wrapper .wcs-call-to-action-text-inner,
2431
+ #wc-shortcodes-call-to-action.wc-shortcodes-call-to-action-wrapper .wcs-call-to-action-image-inner {
2432
+ margin: 0 !important;
2433
+ }
2434
+ #wc-shortcodes-call-to-action.wc-shortcodes-call-to-action-text-position-right .wcs-call-to-action-content-wrapper {
2435
+ float: none;
2436
+ margin: 0 auto;
2437
+ }
2438
+ #wc-shortcodes-call-to-action.wc-shortcodes-call-to-action-wrapper .wcs-call-to-action-container .wcs-call-to-action-image-inner {
2439
+ text-align: center;
2440
+ }
2441
+ }
public/class-register.php CHANGED
@@ -1695,9 +1695,9 @@ class WPC_Shortcodes_Register extends WPC_Shortcodes_Vars {
1695
  $srcset = ' srcset="' . esc_url( $atts['image_2x'] ) . ' 2x"';
1696
  }
1697
 
1698
- $img = '<img style="'.$image_max_width.'" class="wcs-call-to-action-image" src="'.esc_url( $atts['image'] ).'"'.$srcset.' />';
1699
 
1700
- $output[] = '<div class="wcs-call-to-action-image-container wcs-call-to-action-container" style="'.$image_column.'"><div style="'.$image_column_inner.'" class="wcs-call-to-action-image-inner">' . $img . '</div></div>';
1701
 
1702
  $output[] = '<div class="wcs-call-to-action-text-container wcs-call-to-action-container" style="'.$text_column.'"><div style="'.$text_column_inner.'" class="wcs-call-to-action-text-inner"><div style="'.$text_max_width.'" class="wcs-call-to-action-content-wrapper">' . do_shortcode( $content ) . '</div></div></div>';
1703
 
@@ -1707,10 +1707,20 @@ class WPC_Shortcodes_Register extends WPC_Shortcodes_Vars {
1707
 
1708
  $output = implode( '', $output );
1709
 
 
 
 
 
 
 
 
 
 
1710
  $style = array();
1711
  if ( ! empty( $atts['padding_side'] ) ) {
1712
  $style[] = 'padding-left:' . $atts['padding_side'] . ';';
1713
  $style[] = 'padding-right:' . $atts['padding_side'] . ';';
 
1714
  }
1715
  if ( ! empty( $atts['padding_top'] ) ) {
1716
  $style[] = 'padding-top:' . $atts['padding_top'] . ';';
@@ -1719,14 +1729,6 @@ class WPC_Shortcodes_Register extends WPC_Shortcodes_Vars {
1719
  $style[] = 'padding-bottom:' . $atts['padding_bottom'] . ';';
1720
  }
1721
 
1722
- $classes = array();
1723
- $classes[] = 'wc-shortcodes-call-to-action-wrapper';
1724
- $classes[] = 'wc-shortcodes-call-to-action-format-'.$atts['style_format'];
1725
- $classes[] = 'wc-shortcodes-call-to-action-image-position-'.$atts['image_position'];
1726
- $classes[] = 'wc-shortcodes-call-to-action-text-position-'.$atts['text_position'];
1727
- if ( ! empty( $atts['class'] ) ) {
1728
- $classes = $atts['class'];
1729
- }
1730
 
1731
  $html .= '<div id="wc-shortcodes-call-to-action" class="'.implode( ' ', $classes ).'">';
1732
  $html .= '<div class="wc-shortcodes-call-to-action-wrapper-inner wc-shortcodes-clearfix" style="'.implode( '', $style ).'">';
1695
  $srcset = ' srcset="' . esc_url( $atts['image_2x'] ) . ' 2x"';
1696
  }
1697
 
1698
+ $img = '<img class="wcs-call-to-action-image" src="'.esc_url( $atts['image'] ).'"'.$srcset.' />';
1699
 
1700
+ $output[] = '<div class="wcs-call-to-action-image-container wcs-call-to-action-container" style="'.$image_column.'"><div style="'.$image_column_inner.'" class="wcs-call-to-action-image-inner"><div style="'.$image_max_width.'" class="wcs-call-to-action-image-inner2">' . $img . '</div></div></div>';
1701
 
1702
  $output[] = '<div class="wcs-call-to-action-text-container wcs-call-to-action-container" style="'.$text_column.'"><div style="'.$text_column_inner.'" class="wcs-call-to-action-text-inner"><div style="'.$text_max_width.'" class="wcs-call-to-action-content-wrapper">' . do_shortcode( $content ) . '</div></div></div>';
1703
 
1707
 
1708
  $output = implode( '', $output );
1709
 
1710
+ $classes = array();
1711
+ $classes[] = 'wc-shortcodes-call-to-action-wrapper';
1712
+ $classes[] = 'wc-shortcodes-call-to-action-format-'.$atts['style_format'];
1713
+ $classes[] = 'wc-shortcodes-call-to-action-image-position-'.$atts['image_position'];
1714
+ $classes[] = 'wc-shortcodes-call-to-action-text-position-'.$atts['text_position'];
1715
+ if ( ! empty( $atts['class'] ) ) {
1716
+ $classes = $atts['class'];
1717
+ }
1718
+
1719
  $style = array();
1720
  if ( ! empty( $atts['padding_side'] ) ) {
1721
  $style[] = 'padding-left:' . $atts['padding_side'] . ';';
1722
  $style[] = 'padding-right:' . $atts['padding_side'] . ';';
1723
+ $classes[] = 'wc-shortcodes-call-to-action-side-padding';
1724
  }
1725
  if ( ! empty( $atts['padding_top'] ) ) {
1726
  $style[] = 'padding-top:' . $atts['padding_top'] . ';';
1729
  $style[] = 'padding-bottom:' . $atts['padding_bottom'] . ';';
1730
  }
1731
 
 
 
 
 
 
 
 
 
1732
 
1733
  $html .= '<div id="wc-shortcodes-call-to-action" class="'.implode( ' ', $classes ).'">';
1734
  $html .= '<div class="wc-shortcodes-call-to-action-wrapper-inner wc-shortcodes-clearfix" style="'.implode( '', $style ).'">';
public/class-vars.php CHANGED
@@ -8,7 +8,7 @@ class WPC_Shortcodes_Vars {
8
  *
9
  * @var string
10
  */
11
- const VERSION = '3.37';
12
  const DB_VERSION = '1.0';
13
 
14
  /**
@@ -373,7 +373,7 @@ class WPC_Shortcodes_Vars {
373
  'gutter_spacing' => '80',
374
  'padding_top' => '20px',
375
  'padding_bottom' => '20px',
376
- 'padding_side' => '20px',
377
  'class' => '',
378
  );
379
  self::$attr->image_links = array(
8
  *
9
  * @var string
10
  */
11
+ const VERSION = '3.38';
12
  const DB_VERSION = '1.0';
13
 
14
  /**
373
  'gutter_spacing' => '80',
374
  'padding_top' => '20px',
375
  'padding_bottom' => '20px',
376
+ 'padding_side' => '',
377
  'class' => '',
378
  );
379
  self::$attr->image_links = array(
readme.txt CHANGED
@@ -113,6 +113,10 @@ See our help article on [how to manually upload a plugin](http://knowledgebase.a
113
 
114
  == Changelog ==
115
 
 
 
 
 
116
  = Version 3.37 =
117
 
118
  * Added call to action.
113
 
114
  == Changelog ==
115
 
116
+ = Version 3.38 =
117
+
118
+ * Better responive display for call to action.
119
+
120
  = Version 3.37 =
121
 
122
  * Added call to action.
wc-shortcodes.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://angiemakes.com/feminine-wordpress-blog-themes-women/
5
  Description: A plugin that adds a useful family of shortcodes to your WordPress theme.
6
  Author: Chris Baldelomar
7
  Author URI: http://angiemakes.com/
8
- Version: 3.37
9
  License: GPLv2 or later
10
  */
11
 
5
  Description: A plugin that adds a useful family of shortcodes to your WordPress theme.
6
  Author: Chris Baldelomar
7
  Author URI: http://angiemakes.com/
8
+ Version: 3.38
9
  License: GPLv2 or later
10
  */
11