Version Description
Download this release
Release Info
Developer | creativethemeshq |
Plugin | Blocksy Companion |
Version | 1.8.8.5 |
Comparing to | |
See all releases |
Code changes from version 1.8.8.4 to 1.8.8.5
- blocksy-companion.php +1 -1
- framework/extensions/cookies-consent/static/bundle/main.min.css +1 -1
- framework/extensions/newsletter-subscribe/static/bundle/main.min.css +1 -1
- framework/extensions/product-reviews/extension.php +199 -12
- framework/extensions/product-reviews/global.php +91 -0
- framework/extensions/product-reviews/static/bundle/main-admin.min.css +1 -1
- framework/extensions/product-reviews/static/bundle/main.min.css +2 -2
- framework/extensions/product-reviews/static/bundle/sync.js +1 -0
- framework/extensions/product-reviews/static/js/sync.js +43 -0
- framework/extensions/product-reviews/static/sass/quick-info.scss +4 -3
- framework/extensions/product-reviews/static/sass/scores.scss +4 -4
- framework/extensions/product-reviews/static/sass/title.scss +1 -1
- framework/extensions/product-reviews/views/single-top.php +38 -27
- framework/extensions/trending/static/bundle/main.min.css +1 -1
- framework/extensions/widgets/static/bundle/main.min.css +1 -1
- readme.txt +4 -1
- static/bundle/dashboard.min.css +1 -1
- static/bundle/options.min.css +1 -1
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.8.8.
|
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.8.8.5
|
7 |
Author: CreativeThemes
|
8 |
Author URI: https://creativethemes.com
|
9 |
Text Domain: blc
|
framework/extensions/cookies-consent/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.8.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.8.5
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
framework/extensions/newsletter-subscribe/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.8.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.8.5
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/extension.php
CHANGED
@@ -4,6 +4,44 @@ require_once dirname(__FILE__) . '/helpers.php';
|
|
4 |
|
5 |
class BlocksyExtensionProductReviews {
|
6 |
public function __construct() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
add_filter(
|
8 |
'blocksy:options:cpt:page-title-args',
|
9 |
function ($args, $cpt) {
|
@@ -16,6 +54,32 @@ class BlocksyExtensionProductReviews {
|
|
16 |
10, 2
|
17 |
);
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
add_action('init', [$this, 'declare_cpt']);
|
20 |
|
21 |
add_action('load-post.php', [$this, 'init_metabox']);
|
@@ -75,11 +139,11 @@ class BlocksyExtensionProductReviews {
|
|
75 |
];
|
76 |
|
77 |
$option['settings']['overall_score'] = [
|
78 |
-
'label' => __('Overall Score', '
|
79 |
/*
|
80 |
'options' => [
|
81 |
'excerpt_length' => [
|
82 |
-
'label' => __('Length', '
|
83 |
'type' => 'ct-number',
|
84 |
'design' => 'inline',
|
85 |
'value' => 40,
|
@@ -127,19 +191,142 @@ class BlocksyExtensionProductReviews {
|
|
127 |
);
|
128 |
});
|
129 |
|
130 |
-
add_filter('
|
131 |
if ($prefix !== 'blc-product-review_single') {
|
132 |
return $options;
|
133 |
}
|
134 |
|
135 |
-
$options[$prefix . '
|
136 |
-
'label' => __('
|
137 |
-
'type' => 'ct-
|
138 |
-
'
|
139 |
-
'
|
140 |
-
|
141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
];
|
|
|
143 |
return $options;
|
144 |
}, 10, 2);
|
145 |
}
|
@@ -231,8 +418,8 @@ class BlocksyExtensionProductReviews {
|
|
231 |
'blocksy_settings_meta_box',
|
232 |
sprintf(
|
233 |
// Translators: %s is the theme name.
|
234 |
-
__( '%s Settings', '
|
235 |
-
__( '
|
236 |
),
|
237 |
function ($post) {
|
238 |
$values = get_post_meta($post->ID, 'blocksy_product_review_options');
|
4 |
|
5 |
class BlocksyExtensionProductReviews {
|
6 |
public function __construct() {
|
7 |
+
add_action(
|
8 |
+
'blocksy:hero:title:before',
|
9 |
+
function () {
|
10 |
+
if (! is_singular('blc-product-review')) {
|
11 |
+
return;
|
12 |
+
}
|
13 |
+
|
14 |
+
$maybe_schema = blocksy_schema_org_definitions('itemReviewed');
|
15 |
+
|
16 |
+
if (! $maybe_schema) {
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
|
20 |
+
echo '<div ' . $maybe_schema . '>';
|
21 |
+
echo '<meta itemprop="name" content="' . get_the_title() . '">';
|
22 |
+
if (get_the_post_thumbnail_url()) {
|
23 |
+
echo '<meta itemprop="image" content="' . get_the_post_thumbnail_url() . '">';
|
24 |
+
}
|
25 |
+
}
|
26 |
+
);
|
27 |
+
|
28 |
+
add_action(
|
29 |
+
'blocksy:hero:title:after',
|
30 |
+
function () {
|
31 |
+
if (! is_singular('blc-product-review')) {
|
32 |
+
return;
|
33 |
+
}
|
34 |
+
|
35 |
+
$maybe_schema = blocksy_schema_org_definitions('itemReviewed');
|
36 |
+
|
37 |
+
if (! $maybe_schema) {
|
38 |
+
return;
|
39 |
+
}
|
40 |
+
|
41 |
+
echo '</div>';
|
42 |
+
}
|
43 |
+
);
|
44 |
+
|
45 |
add_filter(
|
46 |
'blocksy:options:cpt:page-title-args',
|
47 |
function ($args, $cpt) {
|
54 |
10, 2
|
55 |
);
|
56 |
|
57 |
+
add_action(
|
58 |
+
'customize_preview_init',
|
59 |
+
function () {
|
60 |
+
if (! function_exists('get_plugin_data')){
|
61 |
+
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
62 |
+
}
|
63 |
+
|
64 |
+
$data = get_plugin_data(BLOCKSY__FILE__);
|
65 |
+
|
66 |
+
wp_enqueue_script(
|
67 |
+
'blocksy-product-reviews-customizer-sync',
|
68 |
+
BLOCKSY_URL . 'framework/extensions/product-reviews/static/bundle/sync.js',
|
69 |
+
[ 'ct-scripts', 'customize-preview' ],
|
70 |
+
$data['Version'],
|
71 |
+
true
|
72 |
+
);
|
73 |
+
}
|
74 |
+
);
|
75 |
+
|
76 |
+
add_action('blocksy:global-dynamic-css:enqueue', function ($args) {
|
77 |
+
blocksy_theme_get_dynamic_styles(array_merge([
|
78 |
+
'path' => dirname( __FILE__ ) . '/global.php',
|
79 |
+
'chunk' => 'global'
|
80 |
+
], $args));
|
81 |
+
}, 10, 3);
|
82 |
+
|
83 |
add_action('init', [$this, 'declare_cpt']);
|
84 |
|
85 |
add_action('load-post.php', [$this, 'init_metabox']);
|
139 |
];
|
140 |
|
141 |
$option['settings']['overall_score'] = [
|
142 |
+
'label' => __('Overall Score', 'blc'),
|
143 |
/*
|
144 |
'options' => [
|
145 |
'excerpt_length' => [
|
146 |
+
'label' => __('Length', 'blc'),
|
147 |
'type' => 'ct-number',
|
148 |
'design' => 'inline',
|
149 |
'value' => 40,
|
191 |
);
|
192 |
});
|
193 |
|
194 |
+
add_filter('blocksy_single_posts_post_elements_start', function ($options, $prefix) {
|
195 |
if ($prefix !== 'blc-product-review_single') {
|
196 |
return $options;
|
197 |
}
|
198 |
|
199 |
+
$options[$prefix . '_reviews_summary'] = [
|
200 |
+
'label' => __( 'Review Summary', 'blc' ),
|
201 |
+
'type' => 'ct-panel',
|
202 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
203 |
+
'inner-options' => [
|
204 |
+
|
205 |
+
blocksy_rand_md5() => [
|
206 |
+
'title' => __( 'General', 'blc' ),
|
207 |
+
'type' => 'tab',
|
208 |
+
'options' => [
|
209 |
+
|
210 |
+
$prefix . '_product_scores_width' => [
|
211 |
+
'label' => __( 'Scores Box Width', 'blc' ),
|
212 |
+
'type' => 'ct-slider',
|
213 |
+
'min' => 0,
|
214 |
+
'max' => 1200,
|
215 |
+
'value' => 800,
|
216 |
+
// 'responsive' => true,
|
217 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
218 |
+
],
|
219 |
+
|
220 |
+
$prefix . '_has_read_more' => [
|
221 |
+
'label' => __('Read More Button', 'blc'),
|
222 |
+
'type' => 'ct-switch',
|
223 |
+
'value' => 'yes',
|
224 |
+
'divider' => 'top',
|
225 |
+
'sync' => blocksy_sync_single_post_container([
|
226 |
+
'prefix' => $prefix,
|
227 |
+
'loader_selector' => '.ct-product-actions-group'
|
228 |
+
])
|
229 |
+
],
|
230 |
+
|
231 |
+
$prefix . '_has_buy_now' => [
|
232 |
+
'label' => __('Buy Now Button', 'blc'),
|
233 |
+
'type' => 'ct-switch',
|
234 |
+
'value' => 'yes',
|
235 |
+
'divider' => 'top',
|
236 |
+
'sync' => blocksy_sync_single_post_container([
|
237 |
+
'prefix' => $prefix,
|
238 |
+
'loader_selector' => '.ct-product-actions-group'
|
239 |
+
])
|
240 |
+
],
|
241 |
+
|
242 |
+
],
|
243 |
+
],
|
244 |
+
|
245 |
+
blocksy_rand_md5() => [
|
246 |
+
'title' => __( 'Design', 'blc' ),
|
247 |
+
'type' => 'tab',
|
248 |
+
'options' => [
|
249 |
+
|
250 |
+
$prefix . '_star_rating_color' => [
|
251 |
+
'label' => __( 'Star Rating Color', 'blc' ),
|
252 |
+
'type' => 'ct-color-picker',
|
253 |
+
'design' => 'inline',
|
254 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
255 |
+
|
256 |
+
'value' => [
|
257 |
+
'default' => [
|
258 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
259 |
+
],
|
260 |
+
|
261 |
+
'inactive' => [
|
262 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
263 |
+
],
|
264 |
+
],
|
265 |
+
|
266 |
+
'pickers' => [
|
267 |
+
[
|
268 |
+
'title' => __( 'Active', 'blc' ),
|
269 |
+
'id' => 'default',
|
270 |
+
'inherit' => '#FDA256'
|
271 |
+
],
|
272 |
+
|
273 |
+
[
|
274 |
+
'title' => __( 'Inactive', 'blc' ),
|
275 |
+
'id' => 'inactive',
|
276 |
+
'inherit' => '#F9DFCC'
|
277 |
+
],
|
278 |
+
],
|
279 |
+
],
|
280 |
+
|
281 |
+
$prefix . '_overall_score_text' => [
|
282 |
+
'label' => __( 'Overll Score Text', 'blc' ),
|
283 |
+
'type' => 'ct-color-picker',
|
284 |
+
'design' => 'inline',
|
285 |
+
'divider' => 'top',
|
286 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
287 |
+
|
288 |
+
'value' => [
|
289 |
+
'default' => [
|
290 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
291 |
+
],
|
292 |
+
],
|
293 |
+
|
294 |
+
'pickers' => [
|
295 |
+
[
|
296 |
+
'title' => __( 'Active', 'blc' ),
|
297 |
+
'id' => 'default',
|
298 |
+
'inherit' => '#ffffff'
|
299 |
+
],
|
300 |
+
],
|
301 |
+
],
|
302 |
+
|
303 |
+
$prefix . '_overall_score_backgroud' => [
|
304 |
+
'label' => __( 'Overll Score Background', 'blc' ),
|
305 |
+
'type' => 'ct-color-picker',
|
306 |
+
'design' => 'inline',
|
307 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
308 |
+
|
309 |
+
'value' => [
|
310 |
+
'default' => [
|
311 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
312 |
+
],
|
313 |
+
],
|
314 |
+
|
315 |
+
'pickers' => [
|
316 |
+
[
|
317 |
+
'title' => __( 'Active', 'blc' ),
|
318 |
+
'id' => 'default',
|
319 |
+
'inherit' => '#1A202C'
|
320 |
+
],
|
321 |
+
],
|
322 |
+
],
|
323 |
+
|
324 |
+
],
|
325 |
+
],
|
326 |
+
|
327 |
+
]
|
328 |
];
|
329 |
+
|
330 |
return $options;
|
331 |
}, 10, 2);
|
332 |
}
|
418 |
'blocksy_settings_meta_box',
|
419 |
sprintf(
|
420 |
// Translators: %s is the theme name.
|
421 |
+
__( '%s Settings', 'blc' ),
|
422 |
+
__( 'blc', 'blc' )
|
423 |
),
|
424 |
function ($post) {
|
425 |
$values = get_post_meta($post->ID, 'blocksy_product_review_options');
|
framework/extensions/product-reviews/global.php
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$prefix = 'blc-product-review_single';
|
4 |
+
|
5 |
+
|
6 |
+
$product_scores_width = get_theme_mod($prefix . '_product_scores_width', 800);
|
7 |
+
|
8 |
+
if ($product_scores_width !== 800) {
|
9 |
+
$css->put(
|
10 |
+
blocksy_prefix_selector('.ct-product-scores', $prefix),
|
11 |
+
'--product-scores-width: ' . $product_scores_width . 'px'
|
12 |
+
);
|
13 |
+
}
|
14 |
+
|
15 |
+
blocksy_output_colors([
|
16 |
+
'value' => get_theme_mod(
|
17 |
+
$prefix . '_star_rating_color',
|
18 |
+
[]
|
19 |
+
),
|
20 |
+
'default' => [
|
21 |
+
'default' => [
|
22 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT')
|
23 |
+
],
|
24 |
+
'inactive' => [
|
25 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT')
|
26 |
+
],
|
27 |
+
],
|
28 |
+
'css' => $css,
|
29 |
+
'variables' => [
|
30 |
+
'default' => [
|
31 |
+
'selector' => blocksy_prefix_selector(
|
32 |
+
'.ct-product-scores',
|
33 |
+
$prefix
|
34 |
+
),
|
35 |
+
'variable' => 'star-rating-initial-color'
|
36 |
+
],
|
37 |
+
|
38 |
+
'inactive' => [
|
39 |
+
'selector' => blocksy_prefix_selector(
|
40 |
+
'.ct-product-scores',
|
41 |
+
$prefix
|
42 |
+
),
|
43 |
+
'variable' => 'star-rating-inactive-color'
|
44 |
+
],
|
45 |
+
],
|
46 |
+
]);
|
47 |
+
|
48 |
+
blocksy_output_colors([
|
49 |
+
'value' => get_theme_mod(
|
50 |
+
$prefix . '_overall_score_text',
|
51 |
+
[]
|
52 |
+
),
|
53 |
+
'default' => [
|
54 |
+
'default' => [
|
55 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT')
|
56 |
+
]
|
57 |
+
],
|
58 |
+
'css' => $css,
|
59 |
+
'variables' => [
|
60 |
+
'default' => [
|
61 |
+
'selector' => blocksy_prefix_selector(
|
62 |
+
'.ct-product-scores',
|
63 |
+
$prefix
|
64 |
+
),
|
65 |
+
'variable' => 'overall-score-text-color'
|
66 |
+
],
|
67 |
+
],
|
68 |
+
]);
|
69 |
+
|
70 |
+
blocksy_output_colors([
|
71 |
+
'value' => get_theme_mod(
|
72 |
+
$prefix . '_overall_score_backgroud',
|
73 |
+
[]
|
74 |
+
),
|
75 |
+
'default' => [
|
76 |
+
'default' => [
|
77 |
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT')
|
78 |
+
]
|
79 |
+
],
|
80 |
+
'css' => $css,
|
81 |
+
'variables' => [
|
82 |
+
'default' => [
|
83 |
+
'selector' => blocksy_prefix_selector(
|
84 |
+
'.ct-product-scores',
|
85 |
+
$prefix
|
86 |
+
),
|
87 |
+
'variable' => 'overall-score-box-background'
|
88 |
+
],
|
89 |
+
],
|
90 |
+
]);
|
91 |
+
|
framework/extensions/product-reviews/static/bundle/main-admin.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.8.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.8.5
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/static/bundle/main.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.8.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
6 |
*/
|
7 |
|
8 |
-
.ct-product-hero .flexy-container{overflow:hidden}@media (max-width: 999.98px){.ct-product-hero .flexy-pills{--thumbs-spacing: 10px}}@media (min-width: 1000px){.ct-product-hero .flexy-pills{max-width:70%;margin:-8% auto 0 auto;--thumbs-spacing: 20px}}.ct-product-hero .flexy-pills ol{margin:0 calc(var(--thumbs-spacing) * -1)}.ct-product-hero .flexy-pills li{padding-top:var(--thumbs-spacing);padding-left:var(--thumbs-spacing);padding-right:var(--thumbs-spacing)}.ct-product-hero .flexy-pills li img{width:100%;border-radius:3px;border-radius:2px;border:3px solid #fff}.ct-product-hero .hero-section{margin-top:var(--margin-bottom)}.ct-product-scores{display:grid;grid-column-gap:25px;grid-row-gap:25px;margin:0 auto;max-width:800px}@media (min-width: 690px){.ct-product-scores{grid-template-columns:2fr 1fr}}.ct-product-scores:not(:last-child){margin-bottom:60px}.ct-product-scores li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:10px 20px;background:rgba(243,243,243,0.5);border-radius:2px}.ct-product-scores li:hover{background:#f3f3f3}.ct-product-scores li>span{font-size:15px;font-weight:500}.ct-overall-score{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;color
|
1 |
/**
|
2 |
+
* - v1.8.8.5
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
6 |
*/
|
7 |
|
8 |
+
.ct-product-hero .flexy-container{overflow:hidden}@media (max-width: 999.98px){.ct-product-hero .flexy-pills{--thumbs-spacing: 10px}}@media (min-width: 1000px){.ct-product-hero .flexy-pills{max-width:70%;margin:-8% auto 0 auto;--thumbs-spacing: 20px}}.ct-product-hero .flexy-pills ol{margin:0 calc(var(--thumbs-spacing) * -1)}.ct-product-hero .flexy-pills li{padding-top:var(--thumbs-spacing);padding-left:var(--thumbs-spacing);padding-right:var(--thumbs-spacing)}.ct-product-hero .flexy-pills li img{width:100%;border-radius:3px;border-radius:2px;border:3px solid #fff}.ct-product-hero .hero-section{margin-top:var(--margin-bottom, 40px)}.ct-product-scores{display:grid;grid-column-gap:25px;grid-row-gap:25px;margin:0 auto;max-width:var(--product-scores-width, 800px)}@media (min-width: 690px){.ct-product-scores{grid-template-columns:2fr 1fr}}.ct-product-scores:not(:last-child){margin-bottom:60px}.ct-product-scores li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:10px 20px;background:rgba(243,243,243,0.5);border-radius:2px}.ct-product-scores li:hover{background:#f3f3f3}.ct-product-scores li>span{font-size:15px;font-weight:500}.ct-overall-score{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;color:var(--overall-score-text-color, #fff);border-radius:2px;background:var(--overall-score-box-background, #1A202C)}.ct-overall-score .ct-average-score{font-size:55px;font-weight:800;line-height:normal;margin-bottom:10px}.ct-overall-score .ct-score-label{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:0.02em;margin:15px 0 0 0}.ct-overall-score-layer{display:flex;flex-wrap:wrap;align-items:center}.ct-overall-score-layer .ct-score-label,.ct-overall-score-layer .ct-average-score{font-size:14px;font-weight:600}.ct-overall-score-layer .ct-average-score{margin:0 5px}.ct-overall-score-layer .star-rating{margin-left:auto}.ct-product-actions-group{display:flex;align-items:center;justify-content:center}.ct-product-actions-group:not(:last-child){margin-bottom:60px}.ct-product-actions-group .ct-button:not(:last-child){-webkit-margin-end:25px;margin-inline-end:25px}.ct-product-actions-group .ct-icon-container{color:inherit;-webkit-margin-start:10px;margin-inline-start:10px}.ct-product-description:not(:last-child){margin-bottom:60px}.ct-product-info{display:grid;grid-template-columns:var(--grid-template-columns);grid-column-gap:40px;grid-row-gap:40px;border-top:1px solid #ececec;padding-top:var(--content-vertical-spacing, 60px)}@media (min-width: 1000px){.ct-product-info{--grid-template-columns: 1.5fr 1fr 1fr}}@media (min-width: 690px) and (max-width: 999.98px){.ct-product-info{--grid-template-columns: 1fr 1fr}}.ct-product-info li{position:relative;-webkit-padding-start:22px;padding-inline-start:22px}.ct-product-info .ct-icon-container{position:absolute;left:0;top:0.4em;opacity:0.8;--icon-size: 13px}@media (min-width: 690px) and (max-width: 999.98px){.ct-specs{grid-column:1/-1}}.ct-specs ul{display:grid;grid-column-gap:40px}@media (min-width: 690px){.ct-specs ul{grid-template-columns:repeat(2, 1fr)}}.ct-product-hero{padding-top:var(--content-vertical-spacing, 60px)}.ct-product-hero .ct-container{padding-bottom:var(--content-vertical-spacing, 60px);border-bottom:1px solid #ececec}.ct-product-hero ul{--listIndent: 0;--listStyleType: none;--contentSpacing: 0}
|
framework/extensions/product-reviews/static/bundle/sync.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t,o){"use strict";o.r(t);var r,n=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},c=function(e,t){var o=t.forcedOutput,r=void 0!==o&&o;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return r?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return r?"none":"CT_CSS_SKIP_RULE";var n=[];return e.inset&&n.push("inset"),n.push("".concat(e.h_offset,"px")),n.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(n.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&n.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(n.push("".concat(e.blur,"px")),n.push("".concat(e.spread,"px"))),n.push(e.color.color),n.join(" ")},a=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",r={desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"},n=document.querySelector("style#".concat(r[o])),c=n.innerText,a="".concat(e["".concat(o,"_selector_prefix")]?"".concat(e["".concat(o,"_selector_prefix")]," "):"").concat(e.selector||":root"),i=null,l=c.match(i);0===c.trim().indexOf(a)?(i=new RegExp("".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(i)):(i=new RegExp("\\}\\s*?".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(i)),l||(0===(c="".concat(c," ").concat(a," { }")).trim().indexOf(a)?(i=new RegExp("".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(i)):(i=new RegExp("\\}\\s*?".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(i))),n.innerText=c.replace(i,l[0].indexOf("--".concat(e.variable,":"))>-1?l[0].replace(new RegExp("--".concat(e.variable,":[\\s\\S]*?;"),"gm"),t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";")):l[0].replace(new RegExp("".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{"),"gm"),"".concat(a," {").concat(t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";"))))},i=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",r=(e.type||"").indexOf("color")>-1?t["color"===e.type?"default":e.type.split(":")[1]].color:t;"border"===(e.type||"")&&(r=t&&"none"!==t.style?"".concat(t.width,"px ").concat(t.style," ").concat(t.color.color):"none"),"spacing"===(e.type||"")&&(r=n(t)),"box-shadow"===(e.type||"")&&(r=c(t,e)),a(e,"".concat(r).concat(e.unit||"").concat(e.important?" !important":""),o)},l=function(e,t){var o=t;t=e.extractValue?e.extractValue(t):t,e.whenDone&&e.whenDone(t,o),t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}(t,!!e.responsive),e.responsive?(e.enabled&&"no"===!wp.customize(e.enabled)()&&(t.mobile="0"+(e.unit?"":"px"),t.tablet="0"+(e.unit?"":"px"),t.desktop="0"+(e.unit?"":"px")),i(e,t.desktop,"desktop"),i(e,t.tablet,"tablet"),i(e,t.mobile,"mobile")):i(e,t)},s=o(0);function p(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var u,d="blc-product-review_single";p(r={},"".concat(d,"_product_scores_width"),{selector:Object(s.applyPrefixFor)(".ct-product-scores",d),variable:"product-scores-width",unit:"px"}),p(r,"".concat(d,"_star_rating_color"),[{selector:Object(s.applyPrefixFor)(".ct-product-scores",d),variable:"star-rating-initial-color",type:"color:default"},{selector:Object(s.applyPrefixFor)(".ct-product-scores",d),variable:"star-rating-inactive-color",type:"color:inactive"}]),p(r,"".concat(d,"_overall_score_text"),[{selector:Object(s.applyPrefixFor)(".ct-product-scores",d),variable:"overall-score-text-color",type:"color:default"}]),p(r,"".concat(d,"_overall_score_backgroud"),[{selector:Object(s.applyPrefixFor)(".ct-product-scores",d),variable:"overall-score-box-background",type:"color:default"}]),u=r,wp.customize.bind("change",(function(e){return u[e.id]&&(Array.isArray(u[e.id])?u[e.id]:[u[e.id]]).map((function(t){return l(t,e())}))}))}]);
|
framework/extensions/product-reviews/static/js/sync.js
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { handleVariablesFor } from 'customizer-sync-helpers'
|
2 |
+
import { applyPrefixFor } from 'blocksy-customizer-sync'
|
3 |
+
|
4 |
+
const prefix = 'blc-product-review_single'
|
5 |
+
|
6 |
+
handleVariablesFor({
|
7 |
+
|
8 |
+
[`${prefix}_product_scores_width`]: {
|
9 |
+
selector: applyPrefixFor('.ct-product-scores', prefix),
|
10 |
+
variable: 'product-scores-width',
|
11 |
+
unit: 'px',
|
12 |
+
},
|
13 |
+
|
14 |
+
[`${prefix}_star_rating_color`]: [
|
15 |
+
{
|
16 |
+
selector: applyPrefixFor('.ct-product-scores', prefix),
|
17 |
+
variable: 'star-rating-initial-color',
|
18 |
+
type: 'color:default',
|
19 |
+
},
|
20 |
+
|
21 |
+
{
|
22 |
+
selector: applyPrefixFor('.ct-product-scores', prefix),
|
23 |
+
variable: 'star-rating-inactive-color',
|
24 |
+
type: 'color:inactive',
|
25 |
+
},
|
26 |
+
],
|
27 |
+
|
28 |
+
[`${prefix}_overall_score_text`]: [
|
29 |
+
{
|
30 |
+
selector: applyPrefixFor('.ct-product-scores', prefix),
|
31 |
+
variable: 'overall-score-text-color',
|
32 |
+
type: 'color:default',
|
33 |
+
},
|
34 |
+
],
|
35 |
+
|
36 |
+
[`${prefix}_overall_score_backgroud`]: [
|
37 |
+
{
|
38 |
+
selector: applyPrefixFor('.ct-product-scores', prefix),
|
39 |
+
variable: 'overall-score-box-background',
|
40 |
+
type: 'color:default',
|
41 |
+
},
|
42 |
+
],
|
43 |
+
})
|
framework/extensions/product-reviews/static/sass/quick-info.scss
CHANGED
@@ -17,14 +17,15 @@
|
|
17 |
|
18 |
li {
|
19 |
position: relative;
|
20 |
-
padding-inline-start:
|
21 |
}
|
22 |
|
23 |
.ct-icon-container {
|
24 |
position: absolute;
|
25 |
left: 0;
|
26 |
-
top: 0.
|
27 |
-
opacity: 0.
|
|
|
28 |
}
|
29 |
}
|
30 |
|
17 |
|
18 |
li {
|
19 |
position: relative;
|
20 |
+
padding-inline-start: 22px;
|
21 |
}
|
22 |
|
23 |
.ct-icon-container {
|
24 |
position: absolute;
|
25 |
left: 0;
|
26 |
+
top: 0.4em;
|
27 |
+
opacity: 0.8;
|
28 |
+
--icon-size: 13px;
|
29 |
}
|
30 |
}
|
31 |
|
framework/extensions/product-reviews/static/sass/scores.scss
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
grid-column-gap: 25px;
|
4 |
grid-row-gap: 25px;
|
5 |
margin: 0 auto;
|
6 |
-
max-width: 800px;
|
7 |
|
8 |
@include media-breakpoint-up (md) {
|
9 |
grid-template-columns: 2fr 1fr;
|
@@ -40,9 +40,9 @@
|
|
40 |
align-items: center;
|
41 |
justify-content: center;
|
42 |
padding: 20px;
|
43 |
-
color: #fff;
|
44 |
border-radius: 2px;
|
45 |
-
background: #1A202C;
|
46 |
|
47 |
.ct-average-score {
|
48 |
font-size: 55px;
|
@@ -56,7 +56,7 @@
|
|
56 |
font-weight: 700;
|
57 |
text-transform: uppercase;
|
58 |
letter-spacing: 0.02em;
|
59 |
-
color:
|
60 |
margin: 15px 0 0 0;
|
61 |
}
|
62 |
}
|
3 |
grid-column-gap: 25px;
|
4 |
grid-row-gap: 25px;
|
5 |
margin: 0 auto;
|
6 |
+
max-width: var(--product-scores-width, 800px);
|
7 |
|
8 |
@include media-breakpoint-up (md) {
|
9 |
grid-template-columns: 2fr 1fr;
|
40 |
align-items: center;
|
41 |
justify-content: center;
|
42 |
padding: 20px;
|
43 |
+
color: var(--overall-score-text-color, #fff);
|
44 |
border-radius: 2px;
|
45 |
+
background: var(--overall-score-box-background, #1A202C);
|
46 |
|
47 |
.ct-average-score {
|
48 |
font-size: 55px;
|
56 |
font-weight: 700;
|
57 |
text-transform: uppercase;
|
58 |
letter-spacing: 0.02em;
|
59 |
+
// color: inherit;
|
60 |
margin: 15px 0 0 0;
|
61 |
}
|
62 |
}
|
framework/extensions/product-reviews/static/sass/title.scss
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
.ct-product-hero {
|
2 |
|
3 |
.hero-section {
|
4 |
-
margin-top: var(--margin-bottom);
|
5 |
}
|
6 |
}
|
1 |
.ct-product-hero {
|
2 |
|
3 |
.hero-section {
|
4 |
+
margin-top: var(--margin-bottom, 40px);
|
5 |
}
|
6 |
}
|
framework/extensions/product-reviews/views/single-top.php
CHANGED
@@ -132,28 +132,32 @@ if (! empty($scores)) {
|
|
132 |
echo '</div>';
|
133 |
}
|
134 |
|
135 |
-
|
|
|
136 |
|
137 |
-
$
|
138 |
-
|
139 |
-
'product_button_label',
|
140 |
-
$atts,
|
141 |
-
__('Buy Now', 'blc')
|
142 |
-
);
|
143 |
|
144 |
-
$
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
)
|
|
|
149 |
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
)
|
155 |
-
|
156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
/*
|
159 |
echo blc_get_icon([
|
@@ -163,12 +167,18 @@ if (
|
|
163 |
]);
|
164 |
*/
|
165 |
|
166 |
-
|
167 |
-
}
|
168 |
|
169 |
-
if (
|
170 |
-
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
/*
|
174 |
echo blc_get_icon([
|
@@ -178,10 +188,11 @@ if (! empty($product_button_label) && ! empty($product_link)) {
|
|
178 |
]);
|
179 |
*/
|
180 |
|
181 |
-
|
182 |
-
}
|
183 |
|
184 |
-
echo '</div>';
|
|
|
185 |
|
186 |
$product_specs = blocksy_akg('product_specs', $atts, []);
|
187 |
$product_pros = blocksy_akg('product_pros', $atts, []);
|
132 |
echo '</div>';
|
133 |
}
|
134 |
|
135 |
+
$has_read_more = get_theme_mod($prefix . '_has_read_more', 'yes') === 'yes';
|
136 |
+
$has_buy_now = get_theme_mod($prefix . '_has_buy_now', 'yes') === 'yes';
|
137 |
|
138 |
+
if ($has_read_more || $has_buy_now) {
|
139 |
+
echo '<div class="ct-product-actions-group">';
|
|
|
|
|
|
|
|
|
140 |
|
141 |
+
$product_link = blocksy_akg('product_link', $atts, '#');
|
142 |
+
$product_button_label = blocksy_akg(
|
143 |
+
'product_button_label',
|
144 |
+
$atts,
|
145 |
+
__('Buy Now', 'blc')
|
146 |
+
);
|
147 |
|
148 |
+
$product_read_content_button_label = blocksy_akg(
|
149 |
+
'product_read_content_button_label',
|
150 |
+
$atts,
|
151 |
+
__('Read More', 'blc')
|
152 |
+
);
|
153 |
+
|
154 |
+
if (
|
155 |
+
! empty($product_button_label)
|
156 |
+
&&
|
157 |
+
$has_read_more
|
158 |
+
) {
|
159 |
+
echo '<a href="#post-' . get_the_ID() . '" class="ct-button">';
|
160 |
+
echo $product_read_content_button_label;
|
161 |
|
162 |
/*
|
163 |
echo blc_get_icon([
|
167 |
]);
|
168 |
*/
|
169 |
|
170 |
+
echo '</a>';
|
171 |
+
}
|
172 |
|
173 |
+
if (
|
174 |
+
! empty($product_button_label)
|
175 |
+
&&
|
176 |
+
! empty($product_link)
|
177 |
+
&&
|
178 |
+
$has_buy_now
|
179 |
+
) {
|
180 |
+
echo '<a href="' . esc_url($product_link) . '" class="ct-button" ' . wp_kses_post($target_output) . '>';
|
181 |
+
echo $product_button_label;
|
182 |
|
183 |
/*
|
184 |
echo blc_get_icon([
|
188 |
]);
|
189 |
*/
|
190 |
|
191 |
+
echo '</a>';
|
192 |
+
}
|
193 |
|
194 |
+
echo '</div>';
|
195 |
+
}
|
196 |
|
197 |
$product_specs = blocksy_akg('product_specs', $atts, []);
|
198 |
$product_pros = blocksy_akg('product_pros', $atts, []);
|
framework/extensions/trending/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.8.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.8.5
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
framework/extensions/widgets/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.8.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.8.5
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Requires PHP: 7.0
|
|
5 |
Tested up to: 5.8
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
-
Stable tag: 1.8.8.
|
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.8.8.4: 2021-09-03
|
27 |
- Improvement: Better check for current language in conditions module
|
28 |
|
5 |
Tested up to: 5.8
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
+
Stable tag: 1.8.8.5
|
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.8.8.5: 2021-09-07
|
27 |
+
- Improvement: Product reviews extension schema org markup
|
28 |
+
|
29 |
1.8.8.4: 2021-09-03
|
30 |
- Improvement: Better check for current language in conditions module
|
31 |
|
static/bundle/dashboard.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.8.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.8.5
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
static/bundle/options.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.8.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.8.5
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|