Shortcodes by Angie Makes - Version 1.21

Version Description

Download this release

Release Info

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

Code changes from version 1.20 to 1.21

README.md CHANGED
@@ -65,6 +65,11 @@ Use the shortcode manager in the TinyMCE text editor
65
 
66
  ## Changelog ##
67
 
 
 
 
 
 
68
  ### Version 1.20
69
 
70
  * Added image shortcode.
65
 
66
  ## Changelog ##
67
 
68
+ ### Version 1.21
69
+
70
+ * Better responsiveness logic for isotope posts.
71
+ * Minor improvements for image shortcode.
72
+
73
  ### Version 1.20
74
 
75
  * Added image shortcode.
includes/js/posts.js CHANGED
@@ -58,7 +58,12 @@
58
 
59
  if ( containerWidth < 568 ) { columns = 1; }
60
  else if ( containerWidth < 768 ) { columns -= 2; }
61
- else if ( containerWidth < 991 ) { columns -= 1; }
 
 
 
 
 
62
 
63
  if ( columns < 1 ) {
64
  columns = 1;
58
 
59
  if ( containerWidth < 568 ) { columns = 1; }
60
  else if ( containerWidth < 768 ) { columns -= 2; }
61
+ else if ( containerWidth < 991 ) {
62
+ columns -= 1;
63
+ if ( columns < 2 ) {
64
+ columns = 2;
65
+ }
66
+ }
67
 
68
  if ( columns < 1 ) {
69
  columns = 1;
includes/shortcode-functions.php CHANGED
@@ -1169,7 +1169,6 @@ if( !function_exists('wc_shortcodes_image') ) {
1169
  'font_size' => '',
1170
 
1171
  // misc options
1172
- 'src' => '',
1173
  'class' => '',
1174
  ), $atts ) );
1175
 
@@ -1178,7 +1177,6 @@ if( !function_exists('wc_shortcodes_image') ) {
1178
 
1179
  // sanitize
1180
  $attachment_id = (int) $attachment_id;
1181
- $src = esc_url( $src );
1182
 
1183
  // classes
1184
  $classes = array();
@@ -1229,12 +1227,6 @@ if( !function_exists('wc_shortcodes_image') ) {
1229
 
1230
  }
1231
 
1232
- // insert caption
1233
- if ( ! empty( $caption ) ) {
1234
- $html .= '<p class="wp-caption-text">' . esc_html( $caption ) . '</p>';
1235
- $div_wrapper = true;
1236
- }
1237
-
1238
  // check link_to
1239
  if ( ! empty( $url ) )
1240
  $url = esc_url( $url );
@@ -1246,6 +1238,12 @@ if( !function_exists('wc_shortcodes_image') ) {
1246
  if ( 'none' != $link_to )
1247
  $html = '<a class="wc-shortcodes-image-anchor" href="' . $url . '">' . $html . '</a>';
1248
 
 
 
 
 
 
 
1249
  // do we need a div wrapper?
1250
  if ( $div_wrapper ) {
1251
  $html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
1169
  'font_size' => '',
1170
 
1171
  // misc options
 
1172
  'class' => '',
1173
  ), $atts ) );
1174
 
1177
 
1178
  // sanitize
1179
  $attachment_id = (int) $attachment_id;
 
1180
 
1181
  // classes
1182
  $classes = array();
1227
 
1228
  }
1229
 
 
 
 
 
 
 
1230
  // check link_to
1231
  if ( ! empty( $url ) )
1232
  $url = esc_url( $url );
1238
  if ( 'none' != $link_to )
1239
  $html = '<a class="wc-shortcodes-image-anchor" href="' . $url . '">' . $html . '</a>';
1240
 
1241
+ // insert caption
1242
+ if ( ! empty( $caption ) ) {
1243
+ $html .= '<p class="wp-caption-text">' . esc_html( $caption ) . '</p>';
1244
+ $div_wrapper = true;
1245
+ }
1246
+
1247
  // do we need a div wrapper?
1248
  if ( $div_wrapper ) {
1249
  $html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
readme.txt CHANGED
@@ -86,6 +86,11 @@ Use the shortcode manager in the TinyMCE text editor
86
 
87
  == Changelog ==
88
 
 
 
 
 
 
89
  ### Version 1.20
90
 
91
  * Added image shortcode.
86
 
87
  == Changelog ==
88
 
89
+ ### Version 1.21
90
+
91
+ * Better responsiveness logic for isotope posts.
92
+ * Minor improvements for image shortcode.
93
+
94
  ### Version 1.20
95
 
96
  * Added image shortcode.
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.20
9
  License: GPLv2 or later
10
  */
11
 
12
- define( 'WC_SHORTCODES_VERSION', '1.20' );
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.21
9
  License: GPLv2 or later
10
  */
11
 
12
+ define( 'WC_SHORTCODES_VERSION', '1.21' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );