Blocksy Companion - Version 1.7.52

Version Description

Download this release

Release Info

Developer creativethemeshq
Plugin Icon wp plugin Blocksy Companion
Version 1.7.52
Comparing to
See all releases

Code changes from version 1.7.51 to 1.7.52

blocksy-companion.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Blocksy Companion
5
  Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
6
- Version: 1.7.51
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
  Text Domain: blc
3
  /*
4
  Plugin Name: Blocksy Companion
5
  Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
6
+ Version: 1.7.52
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
  Text Domain: blc
framework/extensions/cookies-consent/static/bundle/main.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.51
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.52
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/mailchimp/static/bundle/main.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.51
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.52
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/product-reviews/static/bundle/main-admin.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.51
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.52
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/product-reviews/static/bundle/main.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.51
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.52
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/widgets/static/bundle/main.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.51
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.52
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/theme-integration.php CHANGED
@@ -15,7 +15,13 @@ class ThemeIntegration {
15
  'orderby' => 'post_date',
16
 
17
  // yes | no
18
- 'has_pagination' => 'yes'
 
 
 
 
 
 
19
  ]
20
  );
21
 
15
  'orderby' => 'post_date',
16
 
17
  // yes | no
18
+ 'has_pagination' => 'yes',
19
+
20
+ // yes | no
21
+ 'ignore_sticky_posts' => 'no',
22
+
23
+ 'term_ids' => null,
24
+ 'post_ids' => null
25
  ]
26
  );
27
 
framework/views/blocksy-posts.php CHANGED
@@ -12,14 +12,45 @@ if (get_query_var('paged')) {
12
  $paged = 1;
13
  }
14
 
15
- $query = new WP_Query([
16
  'order' => 'DESC',
17
  'ignore_sticky_posts' => true,
18
  'post_type' => $args['post_type'],
19
  'orderby' => $args['orderby'],
20
  'posts_per_page' => $args['limit'],
21
- 'paged' => $paged
22
- ]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  $prefix = 'blog';
25
 
12
  $paged = 1;
13
  }
14
 
15
+ $query_args = [
16
  'order' => 'DESC',
17
  'ignore_sticky_posts' => true,
18
  'post_type' => $args['post_type'],
19
  'orderby' => $args['orderby'],
20
  'posts_per_page' => $args['limit'],
21
+ 'paged' => $paged,
22
+ 'ignore_sticky_posts' => $args['ignore_sticky_posts'] === 'yes'
23
+ ];
24
+
25
+ if (isset($args['post_ids']) && $args['post_ids']) {
26
+ $query_args['post__in'] = explode(',', $args['post_ids']);
27
+ }
28
+
29
+ if (isset($args['term_ids']) && $args['term_ids']) {
30
+ $tax_query = [
31
+ 'relation' => 'OR'
32
+ ];
33
+
34
+ foreach (explode(',', $args['term_ids']) as $internal_term_id) {
35
+ $term_id = trim($internal_term_id);
36
+ $term = get_term($term_id);
37
+
38
+ if (! $term) {
39
+ continue;
40
+ }
41
+
42
+ $tax_query[] = [
43
+ 'field' => $term_id,
44
+ 'taxonomy' => $term->taxonomy,
45
+ 'terms' => $term_id
46
+ ];
47
+ }
48
+
49
+
50
+ $query_args['tax_query'] = $tax_query;
51
+ }
52
+
53
+ $query = new WP_Query($query_args);
54
 
55
  $prefix = 'blog';
56
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires PHP: 7.0
5
  Tested up to: 5.6
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
- Stable tag: 1.7.51
9
 
10
  == Description ==
11
 
@@ -23,6 +23,9 @@ It runs and adds its enhancements only if the Blocksy theme is installed and act
23
  2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
24
 
25
  == Changelog ==
 
 
 
26
  1.7.51: 2021-01-24
27
  - Improvement: Header: Account element use user display name instead of username
28
  - Improvement: Floating cart take sticky header height into account
5
  Tested up to: 5.6
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
+ Stable tag: 1.7.52
9
 
10
  == Description ==
11
 
23
  2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
24
 
25
  == Changelog ==
26
+ 1.7.52: 2021-01-25
27
+ - New: Add term filtering for blocksy_posts shortcode
28
+
29
  1.7.51: 2021-01-24
30
  - Improvement: Header: Account element use user display name instead of username
31
  - Improvement: Floating cart take sticky header height into account
static/bundle/dashboard.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.51
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.52
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
static/bundle/options.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.51
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.52
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+