Shortcodes by Angie Makes - Version 1.82

Version Description

Download this release

Release Info

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

Code changes from version 1.81 to 1.82

README.md CHANGED
@@ -4,7 +4,7 @@
4
  **Donate link:** http://webplantmedia.com/donate/
5
  **Tags:** shortcode, shortcodes, accordion, accordions, tab, tabs, toggle, columns, column, section, sections, testimonials, border, borders, button, buttons, fullwidth, full width, notification, notifications, google maps, maps, googlemaps, social icons, progress bar, pricing, pricing box, highlights, image, flags, banners, countdown, rsvp, custom html, code, code snippets, snippets, isotope, masonry, posts, post_type, font awesome, icons, fontawesome, fa icons
6
  **Requires at least:** 3.7
7
- **Tested up to:** 4.3
8
  **Stable tag:** trunk
9
  **License:** GPLv2 or later
10
  **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
@@ -66,6 +66,10 @@ Use the shortcode manager in the TinyMCE text editor
66
 
67
  ## Changelog ##
68
 
 
 
 
 
69
  ### Version 1.81
70
 
71
  * Load all sharing service scripts over SSL
4
  **Donate link:** http://webplantmedia.com/donate/
5
  **Tags:** shortcode, shortcodes, accordion, accordions, tab, tabs, toggle, columns, column, section, sections, testimonials, border, borders, button, buttons, fullwidth, full width, notification, notifications, google maps, maps, googlemaps, social icons, progress bar, pricing, pricing box, highlights, image, flags, banners, countdown, rsvp, custom html, code, code snippets, snippets, isotope, masonry, posts, post_type, font awesome, icons, fontawesome, fa icons
6
  **Requires at least:** 3.7
7
+ **Tested up to:** 4.4
8
  **Stable tag:** trunk
9
  **License:** GPLv2 or later
10
  **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
66
 
67
  ## Changelog ##
68
 
69
+ ### Version 1.82
70
+
71
+ * Fixed bug with restructured WP_Query class in WordPress 4.4
72
+
73
  ### Version 1.81
74
 
75
  * Load all sharing service scripts over SSL
includes/shortcode-functions.php CHANGED
@@ -1151,14 +1151,41 @@ if( ! function_exists( 'wc_shortcodes_posts' ) ) {
1151
  'date_format' => 'M j, Y',
1152
  ), $atts );
1153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1154
  // changed default layout name. Let's catch old inputs
1155
  $valid_layouts = array( 'masonry', 'grid' );
1156
- if ( ! in_array( $atts['layout'], $valid_layouts ) ) {
1157
- $atts['layout'] = "masonry";
1158
  }
1159
 
1160
- $is_masonry = 'masonry' == $atts['layout'] ? true : false;
1161
- $is_grid = 'grid' == $atts['layout'] ? true : false;
1162
 
1163
  if ( $is_masonry ) {
1164
  wp_enqueue_script('wc-shortcodes-posts');
@@ -1168,8 +1195,8 @@ if( ! function_exists( 'wc_shortcodes_posts' ) ) {
1168
  }
1169
 
1170
  $valid_templates = array( 'box', 'borderless' );
1171
- if ( ! in_array( $atts['template'], $valid_templates ) ) {
1172
- $atts['template'] = "box";
1173
  }
1174
 
1175
  // clean input values
@@ -1179,20 +1206,20 @@ if( ! function_exists( 'wc_shortcodes_posts' ) ) {
1179
  $wpc_term = $_GET['wpc_term'];
1180
  }
1181
  $atts['post__in'] = wc_shortcodes_comma_delim_to_array( $atts['post__in'] );
1182
- $atts['columns'] == (int) $atts['columns'];
1183
- $atts['excerpt_length'] = (int) $atts['excerpt_length'];
1184
  $atts['order'] = strtoupper( $atts['order'] );
1185
- $atts['heading_type'] = strtolower( $atts['heading_type'] );
1186
 
1187
- if ( ! is_numeric( $atts['gutter_space'] ) ) {
1188
- $atts['gutter_space'] = 20;
1189
  }
1190
- if ( $atts['gutter_space'] > 0 && $atts['gutter_space'] < 1 ) {
1191
- $atts['gutter_space'] = (int) ( $atts['gutter_space'] * 1000 );
1192
  }
1193
- $atts['gutter_space'] = (int) $atts['gutter_space'];
1194
- if ( $atts['gutter_space'] > 50 || $atts['gutter_space'] < 0 ) {
1195
- $atts['gutter_space'] = 20;
1196
  }
1197
 
1198
  if (isset($atts['posts_per_page']) && $atts['posts_per_page']) {
@@ -1231,59 +1258,59 @@ if( ! function_exists( 'wc_shortcodes_posts' ) ) {
1231
 
1232
  // setting attributes right for the php script
1233
  $valid_headings = array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' );
1234
- $atts['heading_type'] = in_array( $atts['heading_type'], $valid_headings ) ? $atts['heading_type'] : 'h2';
1235
 
1236
  $valid_columns = array( 2, 3, 4, 5, 6, 7, 8, 9 );
1237
- $atts['columns'] = in_array( $atts['columns'], $valid_columns ) ? $atts['columns'] : 2;
1238
 
1239
- ($atts['title'] == "yes") ? ($atts['title'] = true) : ($atts['title'] = false);
1240
- ($atts['meta_all'] == "yes") ? ($atts['meta_all'] = true) : ($atts['meta_all'] = false);
1241
- ($atts['meta_author'] == "yes") ? ($atts['meta_author'] = true) : ($atts['meta_author'] = false);
1242
- ($atts['meta_date'] == "yes") ? ($atts['meta_date'] = true) : ($atts['meta_date'] = false);
1243
- ($atts['meta_comments'] == "yes") ? ($atts['meta_comments'] = true) : ($atts['meta_comments'] = false);
1244
- ($atts['thumbnail'] == "yes") ? ($atts['thumbnail'] = true) : ($atts['thumbnail'] = false);
1245
- ($atts['content'] == "yes") ? ($atts['content'] = true) : ($atts['content'] = false);
1246
- ($atts['paging'] == "yes" && ! $atts['nopaging']) ? ($atts['paging'] = true) : ($atts['paging'] = false);
1247
- ($atts['filtering'] == "yes") ? ($atts['filtering'] = true) : ($atts['filtering'] = false);
1248
  ($atts['order'] == "ASC") ? ($atts['order'] = "ASC") : ($atts['order'] = "DESC");
1249
 
1250
  $nav_filter_hard_links = false;
1251
- if ( $atts['paging'] ) {
1252
  $nav_filter_hard_links = true;
1253
  }
1254
 
1255
  $wc_shortcodes_posts_query = new WP_Query($atts);
1256
- $wc_shortcodes_posts_query->excerpt_length = $atts['excerpt_length'];
1257
 
1258
  $html = '';
1259
 
1260
  $class = array();
1261
  $class[] = 'wc-shortcodes-posts';
1262
  $class[] = 'wc-shortcodes-clearfix';
1263
- $class[] = 'wc-shortcodes-posts-col-' . $atts["columns"];
1264
- $class[] = 'wc-shortcodes-posts-layout-' . $atts['layout'];
1265
- $class[] = 'wc-shortcodes-posts-template-' . $atts['template'];
1266
- $class[] = 'wc-shortcodes-posts-gutter-space-' . $atts['gutter_space'];
1267
  if ( ! $is_masonry ) {
1268
  $class[] = 'wc-shortcodes-posts-no-masonry';
1269
  }
1270
- if ( $atts['filtering'] ) {
1271
  ob_start();
1272
  include( 'templates/nav-filtering.php' );
1273
  $html .= ob_get_clean();
1274
  }
1275
 
1276
  $html .= '<div class="wc-shortcodes-posts-wrapper">';
1277
- $html .= '<div id="wc-shortcodes-posts-'.$instance.'" data-gutter-space="'.$atts["gutter_space"].'" data-columns="'.$atts["columns"].'" class="' . implode( ' ', $class ) . '">';
1278
 
1279
  while( $wc_shortcodes_posts_query->have_posts() ) :
1280
  $wc_shortcodes_posts_query->the_post();
1281
 
1282
- if ( $atts['content'] && empty( $post->post_excerpt ) && empty( $post->post_content ) )
1283
- $atts['content'] = false;
1284
 
1285
  ob_start();
1286
- include('templates/'.$atts['template'].'/index.php');
1287
  $html .= ob_get_clean();
1288
 
1289
  endwhile;
@@ -1292,7 +1319,7 @@ if( ! function_exists( 'wc_shortcodes_posts' ) ) {
1292
  $html .= '</div>';
1293
 
1294
  //no paging if only the latest posts are shown
1295
- if ( $atts['paging'] ) {
1296
  ob_start();
1297
  include('templates/nav-pagination.php');
1298
  $html .= ob_get_clean();
1151
  'date_format' => 'M j, Y',
1152
  ), $atts );
1153
 
1154
+ // fix bug with title argument being added to WP_Query() in 4.4
1155
+ $keys = array(
1156
+ 'title',
1157
+ 'meta_all',
1158
+ 'meta_author',
1159
+ 'meta_date',
1160
+ 'meta_comments',
1161
+ 'thumbnail',
1162
+ 'content',
1163
+ 'paging',
1164
+ 'size',
1165
+ 'filtering',
1166
+ 'columns',
1167
+ 'gutter_space',
1168
+ 'heading_type',
1169
+ 'layout',
1170
+ 'template',
1171
+ 'excerpt_length',
1172
+ 'date_format',
1173
+ );
1174
+
1175
+ $display = array();
1176
+ foreach ( $keys as $key ) {
1177
+ $display[ $key ] = $atts[ $key ];
1178
+ unset( $atts[ $key ] );
1179
+ }
1180
+
1181
  // changed default layout name. Let's catch old inputs
1182
  $valid_layouts = array( 'masonry', 'grid' );
1183
+ if ( ! in_array( $display['layout'], $valid_layouts ) ) {
1184
+ $display['layout'] = "masonry";
1185
  }
1186
 
1187
+ $is_masonry = 'masonry' == $display['layout'] ? true : false;
1188
+ $is_grid = 'grid' == $display['layout'] ? true : false;
1189
 
1190
  if ( $is_masonry ) {
1191
  wp_enqueue_script('wc-shortcodes-posts');
1195
  }
1196
 
1197
  $valid_templates = array( 'box', 'borderless' );
1198
+ if ( ! in_array( $display['template'], $valid_templates ) ) {
1199
+ $display['template'] = "box";
1200
  }
1201
 
1202
  // clean input values
1206
  $wpc_term = $_GET['wpc_term'];
1207
  }
1208
  $atts['post__in'] = wc_shortcodes_comma_delim_to_array( $atts['post__in'] );
1209
+ $display['columns'] == (int) $display['columns'];
1210
+ $display['excerpt_length'] = (int) $display['excerpt_length'];
1211
  $atts['order'] = strtoupper( $atts['order'] );
1212
+ $display['heading_type'] = strtolower( $display['heading_type'] );
1213
 
1214
+ if ( ! is_numeric( $display['gutter_space'] ) ) {
1215
+ $display['gutter_space'] = 20;
1216
  }
1217
+ if ( $display['gutter_space'] > 0 && $display['gutter_space'] < 1 ) {
1218
+ $display['gutter_space'] = (int) ( $display['gutter_space'] * 1000 );
1219
  }
1220
+ $display['gutter_space'] = (int) $display['gutter_space'];
1221
+ if ( $display['gutter_space'] > 50 || $display['gutter_space'] < 0 ) {
1222
+ $display['gutter_space'] = 20;
1223
  }
1224
 
1225
  if (isset($atts['posts_per_page']) && $atts['posts_per_page']) {
1258
 
1259
  // setting attributes right for the php script
1260
  $valid_headings = array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' );
1261
+ $display['heading_type'] = in_array( $display['heading_type'], $valid_headings ) ? $display['heading_type'] : 'h2';
1262
 
1263
  $valid_columns = array( 2, 3, 4, 5, 6, 7, 8, 9 );
1264
+ $display['columns'] = in_array( $display['columns'], $valid_columns ) ? $display['columns'] : 2;
1265
 
1266
+ ($display['title'] == "yes") ? ($display['title'] = true) : ($display['title'] = false);
1267
+ ($display['meta_all'] == "yes") ? ($display['meta_all'] = true) : ($display['meta_all'] = false);
1268
+ ($display['meta_author'] == "yes") ? ($display['meta_author'] = true) : ($display['meta_author'] = false);
1269
+ ($display['meta_date'] == "yes") ? ($display['meta_date'] = true) : ($display['meta_date'] = false);
1270
+ ($display['meta_comments'] == "yes") ? ($display['meta_comments'] = true) : ($display['meta_comments'] = false);
1271
+ ($display['thumbnail'] == "yes") ? ($display['thumbnail'] = true) : ($display['thumbnail'] = false);
1272
+ ($display['content'] == "yes") ? ($display['content'] = true) : ($display['content'] = false);
1273
+ ($display['paging'] == "yes" && ! $atts['nopaging']) ? ($display['paging'] = true) : ($display['paging'] = false);
1274
+ ($display['filtering'] == "yes") ? ($display['filtering'] = true) : ($display['filtering'] = false);
1275
  ($atts['order'] == "ASC") ? ($atts['order'] = "ASC") : ($atts['order'] = "DESC");
1276
 
1277
  $nav_filter_hard_links = false;
1278
+ if ( $display['paging'] ) {
1279
  $nav_filter_hard_links = true;
1280
  }
1281
 
1282
  $wc_shortcodes_posts_query = new WP_Query($atts);
1283
+ $wc_shortcodes_posts_query->excerpt_length = $display['excerpt_length'];
1284
 
1285
  $html = '';
1286
 
1287
  $class = array();
1288
  $class[] = 'wc-shortcodes-posts';
1289
  $class[] = 'wc-shortcodes-clearfix';
1290
+ $class[] = 'wc-shortcodes-posts-col-' . $display["columns"];
1291
+ $class[] = 'wc-shortcodes-posts-layout-' . $display['layout'];
1292
+ $class[] = 'wc-shortcodes-posts-template-' . $display['template'];
1293
+ $class[] = 'wc-shortcodes-posts-gutter-space-' . $display['gutter_space'];
1294
  if ( ! $is_masonry ) {
1295
  $class[] = 'wc-shortcodes-posts-no-masonry';
1296
  }
1297
+ if ( $display['filtering'] ) {
1298
  ob_start();
1299
  include( 'templates/nav-filtering.php' );
1300
  $html .= ob_get_clean();
1301
  }
1302
 
1303
  $html .= '<div class="wc-shortcodes-posts-wrapper">';
1304
+ $html .= '<div id="wc-shortcodes-posts-'.$instance.'" data-gutter-space="'.$display["gutter_space"].'" data-columns="'.$display["columns"].'" class="' . implode( ' ', $class ) . '">';
1305
 
1306
  while( $wc_shortcodes_posts_query->have_posts() ) :
1307
  $wc_shortcodes_posts_query->the_post();
1308
 
1309
+ if ( $display['content'] && empty( $post->post_excerpt ) && empty( $post->post_content ) )
1310
+ $display['content'] = false;
1311
 
1312
  ob_start();
1313
+ include('templates/'.$display['template'].'/index.php');
1314
  $html .= ob_get_clean();
1315
 
1316
  endwhile;
1319
  $html .= '</div>';
1320
 
1321
  //no paging if only the latest posts are shown
1322
+ if ( $display['paging'] ) {
1323
  ob_start();
1324
  include('templates/nav-pagination.php');
1325
  $html .= ob_get_clean();
includes/templates/borderless/content-aside.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
- <?php if ( $atts['content'] ) : ?>
11
  <?php wc_shortcodes_the_content(); ?>
12
  <?php endif; ?>
13
 
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $display['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
+ <?php if ( $display['content'] ) : ?>
11
  <?php wc_shortcodes_the_content(); ?>
12
  <?php endif; ?>
13
 
includes/templates/borderless/content-audio.php CHANGED
@@ -5,13 +5,13 @@
5
  <?php wc_shortcodes_the_media_content(); ?>
6
  </div><!-- .entry-summary -->
7
 
8
- <?php if ( $atts['title'] ) : ?>
9
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
10
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
11
- </<?php echo $atts['heading_type']; ?>>
12
  <?php endif; ?>
13
 
14
- <?php if ( $atts['content'] ) : ?>
15
  <?php wc_shortcodes_the_excerpt(); ?>
16
  <?php endif; ?>
17
 
5
  <?php wc_shortcodes_the_media_content(); ?>
6
  </div><!-- .entry-summary -->
7
 
8
+ <?php if ( $display['title'] ) : ?>
9
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
10
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
11
+ </<?php echo $display['heading_type']; ?>>
12
  <?php endif; ?>
13
 
14
+ <?php if ( $display['content'] ) : ?>
15
  <?php wc_shortcodes_the_excerpt(); ?>
16
  <?php endif; ?>
17
 
includes/templates/borderless/content-chat.php CHANGED
@@ -1,19 +1,19 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
- <?php if ( $atts['title'] ) : ?>
11
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
13
- </<?php echo $atts['heading_type']; ?>>
14
  <?php endif; ?>
15
 
16
- <?php if ( $atts['content'] ) : ?>
17
  <?php wc_shortcodes_the_excerpt(); ?>
18
  <?php endif; ?>
19
 
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $display['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
+ <?php if ( $display['title'] ) : ?>
11
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
13
+ </<?php echo $display['heading_type']; ?>>
14
  <?php endif; ?>
15
 
16
+ <?php if ( $display['content'] ) : ?>
17
  <?php wc_shortcodes_the_excerpt(); ?>
18
  <?php endif; ?>
19
 
includes/templates/borderless/content-excerpt.php CHANGED
@@ -1,19 +1,19 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
- <?php if ( $atts['title'] ) : ?>
11
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
13
- </<?php echo $atts['heading_type']; ?>>
14
  <?php endif; ?>
15
 
16
- <?php if ( $atts['content'] ) : ?>
17
  <?php wc_shortcodes_the_excerpt(); ?>
18
  <?php endif; ?>
19
 
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $display['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
+ <?php if ( $display['title'] ) : ?>
11
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
13
+ </<?php echo $display['heading_type']; ?>>
14
  <?php endif; ?>
15
 
16
+ <?php if ( $display['content'] ) : ?>
17
  <?php wc_shortcodes_the_excerpt(); ?>
18
  <?php endif; ?>
19
 
includes/templates/borderless/content-gallery.php CHANGED
@@ -15,13 +15,13 @@
15
  </div>
16
  <?php endif; ?>
17
 
18
- <?php if ( $atts['title'] ) : ?>
19
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
20
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
21
- </<?php echo $atts['heading_type']; ?>>
22
  <?php endif; ?>
23
 
24
- <?php if ( $atts['content'] ) : ?>
25
  <?php wc_shortcodes_the_excerpt(); ?>
26
  <?php endif; ?>
27
 
15
  </div>
16
  <?php endif; ?>
17
 
18
+ <?php if ( $display['title'] ) : ?>
19
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
20
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
21
+ </<?php echo $display['heading_type']; ?>>
22
  <?php endif; ?>
23
 
24
+ <?php if ( $display['content'] ) : ?>
25
  <?php wc_shortcodes_the_excerpt(); ?>
26
  <?php endif; ?>
27
 
includes/templates/borderless/content-link.php CHANGED
@@ -1,24 +1,24 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
- <?php if ( $atts['title'] ) : ?>
11
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <?php
13
  $content = get_the_content();
14
  $has_url = get_url_in_content( $content );
15
  $link = ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
16
  ?>
17
  <a href="<?php echo esc_url( $link ); ?>"><?php the_title(); ?></a>
18
- </<?php echo $atts['heading_type']; ?>>
19
  <?php endif; ?>
20
 
21
- <?php if ( $atts['content'] ) : ?>
22
  <?php wc_shortcodes_the_content(); ?>
23
  <?php endif; ?>
24
 
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $display['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
+ <?php if ( $display['title'] ) : ?>
11
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <?php
13
  $content = get_the_content();
14
  $has_url = get_url_in_content( $content );
15
  $link = ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
16
  ?>
17
  <a href="<?php echo esc_url( $link ); ?>"><?php the_title(); ?></a>
18
+ </<?php echo $display['heading_type']; ?>>
19
  <?php endif; ?>
20
 
21
+ <?php if ( $display['content'] ) : ?>
22
  <?php wc_shortcodes_the_content(); ?>
23
  <?php endif; ?>
24
 
includes/templates/borderless/content-quote.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['content'] ) : ?>
5
  <div class="wc-shortcodes-entry-quote">
6
  <?php wc_shortcodes_the_content(); ?>
7
  </div><!-- .entry-summary -->
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['content'] ) : ?>
5
  <div class="wc-shortcodes-entry-quote">
6
  <?php wc_shortcodes_the_content(); ?>
7
  </div><!-- .entry-summary -->
includes/templates/borderless/content-video.php CHANGED
@@ -5,15 +5,15 @@
5
  <?php wc_shortcodes_the_media_content(); ?>
6
  </div><!-- .entry-summary -->
7
 
8
- <?php if ( $atts['title'] ) : ?>
9
  <div class="wc-shortcodes-entry-header">
10
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
11
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
12
- </<?php echo $atts['heading_type']; ?>>
13
  </div><!-- .entry-header -->
14
  <?php endif; ?>
15
 
16
- <?php if ( $atts['content'] ) : ?>
17
  <?php wc_shortcodes_the_excerpt(); ?>
18
  <?php endif; ?>
19
 
5
  <?php wc_shortcodes_the_media_content(); ?>
6
  </div><!-- .entry-summary -->
7
 
8
+ <?php if ( $display['title'] ) : ?>
9
  <div class="wc-shortcodes-entry-header">
10
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
11
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
12
+ </<?php echo $display['heading_type']; ?>>
13
  </div><!-- .entry-header -->
14
  <?php endif; ?>
15
 
16
+ <?php if ( $display['content'] ) : ?>
17
  <?php wc_shortcodes_the_excerpt(); ?>
18
  <?php endif; ?>
19
 
includes/templates/borderless/content.php CHANGED
@@ -1,19 +1,19 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
- <?php if ( $atts['title'] ) : ?>
11
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
13
- </<?php echo $atts['heading_type']; ?>>
14
  <?php endif; ?>
15
 
16
- <?php if ( $atts['content'] ) : ?>
17
  <?php wc_shortcodes_the_excerpt(); ?>
18
  <?php endif; ?>
19
 
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $display['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
+ <?php if ( $display['title'] ) : ?>
11
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
13
+ </<?php echo $display['heading_type']; ?>>
14
  <?php endif; ?>
15
 
16
+ <?php if ( $display['content'] ) : ?>
17
  <?php wc_shortcodes_the_excerpt(); ?>
18
  <?php endif; ?>
19
 
includes/templates/borderless/entry-meta.php CHANGED
@@ -1,6 +1,6 @@
1
- <?php if ( $atts['meta_all'] ) : ?>
2
  <div class="wc-shortcodes-footer-entry-meta wc-shortcodes-clearfix">
3
- <?php if ( $atts['meta_comments'] ) : ?>
4
  <?php if ( comments_open() ) : ?>
5
  <span class="wc-shortcodes-comments-link">
6
  <?php comments_popup_link( '<span class="wc-shortcodes-leave-reply">' . __( '0', 'wordpresscanvas' ) . '</span>', __( '1', 'wordpresscanvas' ), __( '%', 'wordpresscanvas' ) ); ?>
@@ -11,7 +11,7 @@
11
  <?php
12
  $meta = array();
13
  // Post author
14
- if ( $atts['meta_author'] ) {
15
  $meta[] = sprintf( '<span class="wc-shortcodes-author"><span class="wc-shortcodes-by">' . __( 'By', 'wc_shortcodes' ) . '</span> <a class="wc-shortcodes-url" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
16
  esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
17
  get_the_author(),
@@ -21,7 +21,7 @@
21
  ?>
22
 
23
  <?php
24
- if ( $atts['meta_date'] && ! has_post_format( 'link' ) ) {
25
  $meta[] = sprintf( '<span class="wc-shortcodes-date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="wc-shortcodes-entry-date" datetime="%3$s">%4$s</time></a></span>',
26
  esc_url( get_permalink() ),
27
  esc_attr( sprintf( __( 'Permalink to %s', 'wordpresscanvas' ), the_title_attribute( 'echo=0' ) ) ),
1
+ <?php if ( $display['meta_all'] ) : ?>
2
  <div class="wc-shortcodes-footer-entry-meta wc-shortcodes-clearfix">
3
+ <?php if ( $display['meta_comments'] ) : ?>
4
  <?php if ( comments_open() ) : ?>
5
  <span class="wc-shortcodes-comments-link">
6
  <?php comments_popup_link( '<span class="wc-shortcodes-leave-reply">' . __( '0', 'wordpresscanvas' ) . '</span>', __( '1', 'wordpresscanvas' ), __( '%', 'wordpresscanvas' ) ); ?>
11
  <?php
12
  $meta = array();
13
  // Post author
14
+ if ( $display['meta_author'] ) {
15
  $meta[] = sprintf( '<span class="wc-shortcodes-author"><span class="wc-shortcodes-by">' . __( 'By', 'wc_shortcodes' ) . '</span> <a class="wc-shortcodes-url" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
16
  esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
17
  get_the_author(),
21
  ?>
22
 
23
  <?php
24
+ if ( $display['meta_date'] && ! has_post_format( 'link' ) ) {
25
  $meta[] = sprintf( '<span class="wc-shortcodes-date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="wc-shortcodes-entry-date" datetime="%3$s">%4$s</time></a></span>',
26
  esc_url( get_permalink() ),
27
  esc_attr( sprintf( __( 'Permalink to %s', 'wordpresscanvas' ), the_title_attribute( 'echo=0' ) ) ),
includes/templates/box/content-aside.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
  <div class="wc-shortcodes-post-content">
11
- <?php if ( $atts['content'] ) : ?>
12
  <div class="wc-shortcodes-entry-summary">
13
  <?php wc_shortcodes_the_content(); ?>
14
  </div><!-- .entry-summary -->
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $display['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
  <div class="wc-shortcodes-post-content">
11
+ <?php if ( $display['content'] ) : ?>
12
  <div class="wc-shortcodes-entry-summary">
13
  <?php wc_shortcodes_the_content(); ?>
14
  </div><!-- .entry-summary -->
includes/templates/box/content-audio.php CHANGED
@@ -6,15 +6,15 @@
6
  </div><!-- .entry-summary -->
7
 
8
  <div class="wc-shortcodes-post-content">
9
- <?php if ( $atts['title'] ) : ?>
10
  <div class="wc-shortcodes-entry-header">
11
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
13
- </<?php echo $atts['heading_type']; ?>>
14
  </div><!-- .entry-header -->
15
  <?php endif; ?>
16
 
17
- <?php if ( $atts['content'] ) : ?>
18
  <div class="wc-shortcodes-entry-summary">
19
  <?php wc_shortcodes_the_excerpt(); ?>
20
  </div>
6
  </div><!-- .entry-summary -->
7
 
8
  <div class="wc-shortcodes-post-content">
9
+ <?php if ( $display['title'] ) : ?>
10
  <div class="wc-shortcodes-entry-header">
11
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
13
+ </<?php echo $display['heading_type']; ?>>
14
  </div><!-- .entry-header -->
15
  <?php endif; ?>
16
 
17
+ <?php if ( $display['content'] ) : ?>
18
  <div class="wc-shortcodes-entry-summary">
19
  <?php wc_shortcodes_the_excerpt(); ?>
20
  </div>
includes/templates/box/content-chat.php CHANGED
@@ -1,22 +1,22 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
  <div class="wc-shortcodes-post-content">
11
- <?php if ( $atts['title'] ) : ?>
12
  <div class="wc-shortcodes-entry-header">
13
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
14
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
15
- </<?php echo $atts['heading_type']; ?>>
16
  </div><!-- .entry-header -->
17
  <?php endif; ?>
18
 
19
- <?php if ( $atts['content'] ) : ?>
20
  <div class="wc-shortcodes-entry-summary">
21
  <?php wc_shortcodes_the_excerpt(); ?>
22
  </div><!-- .entry-summary -->
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $display['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
  <div class="wc-shortcodes-post-content">
11
+ <?php if ( $display['title'] ) : ?>
12
  <div class="wc-shortcodes-entry-header">
13
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
14
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
15
+ </<?php echo $display['heading_type']; ?>>
16
  </div><!-- .entry-header -->
17
  <?php endif; ?>
18
 
19
+ <?php if ( $display['content'] ) : ?>
20
  <div class="wc-shortcodes-entry-summary">
21
  <?php wc_shortcodes_the_excerpt(); ?>
22
  </div><!-- .entry-summary -->
includes/templates/box/content-excerpt.php CHANGED
@@ -1,22 +1,22 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
  <div class="wc-shortcodes-post-content">
11
- <?php if ( $atts['title'] ) : ?>
12
  <div class="wc-shortcodes-entry-header">
13
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
14
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
15
- </<?php echo $atts['heading_type']; ?>>
16
  </div><!-- .entry-header -->
17
  <?php endif; ?>
18
 
19
- <?php if ( $atts['content'] ) : ?>
20
  <div class="wc-shortcodes-entry-summary">
21
  <?php wc_shortcodes_the_excerpt(); ?>
22
  </div><!-- .entry-summary -->
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $display['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
  <div class="wc-shortcodes-post-content">
11
+ <?php if ( $display['title'] ) : ?>
12
  <div class="wc-shortcodes-entry-header">
13
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
14
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
15
+ </<?php echo $display['heading_type']; ?>>
16
  </div><!-- .entry-header -->
17
  <?php endif; ?>
18
 
19
+ <?php if ( $display['content'] ) : ?>
20
  <div class="wc-shortcodes-entry-summary">
21
  <?php wc_shortcodes_the_excerpt(); ?>
22
  </div><!-- .entry-summary -->
includes/templates/box/content-gallery.php CHANGED
@@ -15,15 +15,15 @@
15
  <?php endif; ?>
16
 
17
  <div class="wc-shortcodes-post-content">
18
- <?php if ( $atts['title'] ) : ?>
19
  <div class="wc-shortcodes-entry-header">
20
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
21
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
22
- </<?php echo $atts['heading_type']; ?>>
23
  </div><!-- .entry-header -->
24
  <?php endif; ?>
25
 
26
- <?php if ( $atts['content'] ) : ?>
27
  <div class="wc-shortcodes-entry-summary">
28
  <?php wc_shortcodes_the_excerpt(); ?>
29
  </div><!-- .entry-summary -->
15
  <?php endif; ?>
16
 
17
  <div class="wc-shortcodes-post-content">
18
+ <?php if ( $display['title'] ) : ?>
19
  <div class="wc-shortcodes-entry-header">
20
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
21
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
22
+ </<?php echo $display['heading_type']; ?>>
23
  </div><!-- .entry-header -->
24
  <?php endif; ?>
25
 
26
+ <?php if ( $display['content'] ) : ?>
27
  <div class="wc-shortcodes-entry-summary">
28
  <?php wc_shortcodes_the_excerpt(); ?>
29
  </div><!-- .entry-summary -->
includes/templates/box/content-link.php CHANGED
@@ -1,27 +1,27 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
  <div class="wc-shortcodes-post-content">
11
- <?php if ( $atts['title'] ) : ?>
12
  <div class="wc-shortcodes-entry-header">
13
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
14
  <?php
15
  $content = get_the_content();
16
  $has_url = get_url_in_content( $content );
17
  $link = ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
18
  ?>
19
  <a href="<?php echo esc_url( $link ); ?>"><?php the_title(); ?></a>
20
- </<?php echo $atts['heading_type']; ?>>
21
  </div><!-- .entry-header -->
22
  <?php endif; ?>
23
 
24
- <?php if ( $atts['content'] ) : ?>
25
  <div class="wc-shortcodes-entry-summary">
26
  <?php wc_shortcodes_the_content(); ?>
27
  </div><!-- .entry-summary -->
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $display['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
  <div class="wc-shortcodes-post-content">
11
+ <?php if ( $display['title'] ) : ?>
12
  <div class="wc-shortcodes-entry-header">
13
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
14
  <?php
15
  $content = get_the_content();
16
  $has_url = get_url_in_content( $content );
17
  $link = ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
18
  ?>
19
  <a href="<?php echo esc_url( $link ); ?>"><?php the_title(); ?></a>
20
+ </<?php echo $display['heading_type']; ?>>
21
  </div><!-- .entry-header -->
22
  <?php endif; ?>
23
 
24
+ <?php if ( $display['content'] ) : ?>
25
  <div class="wc-shortcodes-entry-summary">
26
  <?php wc_shortcodes_the_content(); ?>
27
  </div><!-- .entry-summary -->
includes/templates/box/content-quote.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['content'] ) : ?>
5
  <div class="wc-shortcodes-entry-quote">
6
  <?php wc_shortcodes_the_content(); ?>
7
  </div><!-- .entry-summary -->
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['content'] ) : ?>
5
  <div class="wc-shortcodes-entry-quote">
6
  <?php wc_shortcodes_the_content(); ?>
7
  </div><!-- .entry-summary -->
includes/templates/box/content-video.php CHANGED
@@ -6,15 +6,15 @@
6
  </div><!-- .entry-summary -->
7
 
8
  <div class="wc-shortcodes-post-content">
9
- <?php if ( $atts['title'] ) : ?>
10
  <div class="wc-shortcodes-entry-header">
11
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
13
- </<?php echo $atts['heading_type']; ?>>
14
  </div><!-- .entry-header -->
15
  <?php endif; ?>
16
 
17
- <?php if ( $atts['content'] ) : ?>
18
  <div class="wc-shortcodes-entry-summary">
19
  <?php wc_shortcodes_the_excerpt(); ?>
20
  </div>
6
  </div><!-- .entry-summary -->
7
 
8
  <div class="wc-shortcodes-post-content">
9
+ <?php if ( $display['title'] ) : ?>
10
  <div class="wc-shortcodes-entry-header">
11
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
12
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
13
+ </<?php echo $display['heading_type']; ?>>
14
  </div><!-- .entry-header -->
15
  <?php endif; ?>
16
 
17
+ <?php if ( $display['content'] ) : ?>
18
  <div class="wc-shortcodes-entry-summary">
19
  <?php wc_shortcodes_the_excerpt(); ?>
20
  </div>
includes/templates/box/content.php CHANGED
@@ -1,22 +1,22 @@
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
- <?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
  <div class="wc-shortcodes-post-content">
11
- <?php if ( $atts['title'] ) : ?>
12
  <div class="wc-shortcodes-entry-header">
13
- <<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
14
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
15
- </<?php echo $atts['heading_type']; ?>>
16
  </div><!-- .entry-header -->
17
  <?php endif; ?>
18
 
19
- <?php if ( $atts['content'] ) : ?>
20
  <div class="wc-shortcodes-entry-summary">
21
  <?php wc_shortcodes_the_excerpt(); ?>
22
  </div><!-- .entry-summary -->
1
  <?php $classes[] = 'wc-shortcodes-post-box'; ?>
2
  <div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
3
  <div class="wc-shortcodes-post-border">
4
+ <?php if ( $display['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
5
  <div class="wc-shortcodes-entry-thumbnail">
6
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $display['size'] ); ?></a>
7
  </div>
8
  <?php endif; ?>
9
 
10
  <div class="wc-shortcodes-post-content">
11
+ <?php if ( $display['title'] ) : ?>
12
  <div class="wc-shortcodes-entry-header">
13
+ <<?php echo $display['heading_type']; ?> class="wc-shortcodes-entry-title">
14
  <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
15
+ </<?php echo $display['heading_type']; ?>>
16
  </div><!-- .entry-header -->
17
  <?php endif; ?>
18
 
19
+ <?php if ( $display['content'] ) : ?>
20
  <div class="wc-shortcodes-entry-summary">
21
  <?php wc_shortcodes_the_excerpt(); ?>
22
  </div><!-- .entry-summary -->
includes/templates/box/entry-meta.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php if ( $atts['meta_all'] ) : ?>
2
  <div class="wc-shortcodes-footer-entry-meta wc-shortcodes-clearfix">
3
  <div class="wc-shortcodes-entry-meta-inner wc-shortcodes-clearfix">
4
- <?php if ( $atts['meta_comments'] ) : ?>
5
  <?php if ( comments_open() ) : ?>
6
  <span class="wc-shortcodes-comments-link">
7
  <?php comments_popup_link( '<span class="wc-shortcodes-leave-reply">' . __( '0', 'wordpresscanvas' ) . '</span>', __( '1', 'wordpresscanvas' ), __( '%', 'wordpresscanvas' ) ); ?>
@@ -12,7 +12,7 @@
12
  <?php
13
  $meta = array();
14
  // Post author
15
- if ( $atts['meta_author'] ) {
16
  $meta[] = sprintf( '<span class="wc-shortcodes-author"><span class="wc-shortcodes-by">' . __( 'By', 'wc_shortcodes' ) . '</span> <a class="wc-shortcodes-url" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
17
  esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
18
  get_the_author(),
@@ -22,12 +22,12 @@
22
  ?>
23
 
24
  <?php
25
- if ( $atts['meta_date'] && ! has_post_format( 'link' ) ) {
26
  $meta[] = sprintf( '<span class="wc-shortcodes-date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="wc-shortcodes-entry-date" datetime="%3$s">%4$s</time></a></span>',
27
  esc_url( get_permalink() ),
28
  esc_attr( sprintf( __( 'Permalink to %s', 'wordpresscanvas' ), the_title_attribute( 'echo=0' ) ) ),
29
  esc_attr( get_the_date( 'c' ) ),
30
- esc_html( sprintf( '%2$s', get_post_format_string( get_post_format() ), get_the_date( $atts['date_format'] ) ) )
31
  );
32
  }
33
  ?>
1
+ <?php if ( $display['meta_all'] ) : ?>
2
  <div class="wc-shortcodes-footer-entry-meta wc-shortcodes-clearfix">
3
  <div class="wc-shortcodes-entry-meta-inner wc-shortcodes-clearfix">
4
+ <?php if ( $display['meta_comments'] ) : ?>
5
  <?php if ( comments_open() ) : ?>
6
  <span class="wc-shortcodes-comments-link">
7
  <?php comments_popup_link( '<span class="wc-shortcodes-leave-reply">' . __( '0', 'wordpresscanvas' ) . '</span>', __( '1', 'wordpresscanvas' ), __( '%', 'wordpresscanvas' ) ); ?>
12
  <?php
13
  $meta = array();
14
  // Post author
15
+ if ( $display['meta_author'] ) {
16
  $meta[] = sprintf( '<span class="wc-shortcodes-author"><span class="wc-shortcodes-by">' . __( 'By', 'wc_shortcodes' ) . '</span> <a class="wc-shortcodes-url" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
17
  esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
18
  get_the_author(),
22
  ?>
23
 
24
  <?php
25
+ if ( $display['meta_date'] && ! has_post_format( 'link' ) ) {
26
  $meta[] = sprintf( '<span class="wc-shortcodes-date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="wc-shortcodes-entry-date" datetime="%3$s">%4$s</time></a></span>',
27
  esc_url( get_permalink() ),
28
  esc_attr( sprintf( __( 'Permalink to %s', 'wordpresscanvas' ), the_title_attribute( 'echo=0' ) ) ),
29
  esc_attr( get_the_date( 'c' ) ),
30
+ esc_html( sprintf( '%2$s', get_post_format_string( get_post_format() ), get_the_date( $display['date_format'] ) ) )
31
  );
32
  }
33
  ?>
includes/templates/nav-filtering.php CHANGED
@@ -41,7 +41,7 @@ if ( ! empty( $taxonomy ) ) {
41
  ?>
42
 
43
  <?php if ( sizeof( $links ) > 2 ) : ?>
44
- <nav data-target="#wc-shortcodes-posts-<?php echo $instance; ?>" class="wc-shortcodes-filtering<?php echo $nav_filter_class; ?> wc-shortcodes-filtering-layout-<?php echo $atts['layout']; ?> wc-shortcodes-nav-<?php echo $taxonomy; ?>">
45
  <?php echo implode( "<span class='tag-divider'>/</span>", $links ); ?>
46
  </nav>
47
  <?php endif; ?>
41
  ?>
42
 
43
  <?php if ( sizeof( $links ) > 2 ) : ?>
44
+ <nav data-target="#wc-shortcodes-posts-<?php echo $instance; ?>" class="wc-shortcodes-filtering<?php echo $nav_filter_class; ?> wc-shortcodes-filtering-layout-<?php echo $display['layout']; ?> wc-shortcodes-nav-<?php echo $taxonomy; ?>">
45
  <?php echo implode( "<span class='tag-divider'>/</span>", $links ); ?>
46
  </nav>
47
  <?php endif; ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: cbaldelomar
4
  Donate link: http://webplantmedia.com/donate/
5
  Tags: shortcode, shortcodes, accordion, accordions, tab, tabs, toggle, columns, column, section, sections, testimonials, border, borders, button, buttons, fullwidth, full width, notification, notifications, google maps, maps, googlemaps, social icons, progress bar, pricing, pricing box, highlights, image, flags, banners, countdown, rsvp, custom html, code, code snippets, snippets, isotope, masonry, posts, post_type, font awesome, icons, fontawesome, fa icons
6
  Requires at least: 3.7
7
- Tested up to: 4.3.1
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -88,6 +88,10 @@ Use the shortcode manager in the TinyMCE text editor
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  = Version 1.81 =
92
 
93
  * Load all sharing service scripts over SSL
4
  Donate link: http://webplantmedia.com/donate/
5
  Tags: shortcode, shortcodes, accordion, accordions, tab, tabs, toggle, columns, column, section, sections, testimonials, border, borders, button, buttons, fullwidth, full width, notification, notifications, google maps, maps, googlemaps, social icons, progress bar, pricing, pricing box, highlights, image, flags, banners, countdown, rsvp, custom html, code, code snippets, snippets, isotope, masonry, posts, post_type, font awesome, icons, fontawesome, fa icons
6
  Requires at least: 3.7
7
+ Tested up to: 4.4
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
88
 
89
  == Changelog ==
90
 
91
+ = Version 1.82 =
92
+
93
+ * Fixed bug with restructured WP_Query class in WordPress 4.4
94
+
95
  = Version 1.81 =
96
 
97
  * Load all sharing service scripts over SSL
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.81
9
  License: GPLv2 or later
10
  */
11
 
12
- define( 'WC_SHORTCODES_VERSION', '1.81' );
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.82
9
  License: GPLv2 or later
10
  */
11
 
12
+ define( 'WC_SHORTCODES_VERSION', '1.82' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );