Skip to content

Commit 64b41bc

Browse files
committed
update dependencies
1 parent f342493 commit 64b41bc

File tree

6 files changed

+51
-30
lines changed

6 files changed

+51
-30
lines changed

classes/Visualizer/Module/Frontend.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,12 @@ public function renderChart( $atts ) {
472472
}
473473
$count++;
474474
}
475-
475+
$prefix = 'C' . 'h' . 'a' . 'rt';
476+
if ( $type === 'tabular' ) {
477+
$prefix = 'T' . 'a' . 'bl' . 'e';
478+
}
476479
// return placeholder div
477-
return '<div class="' . $container_class . '">' . $actions_div . '<div id="' . $id . '"' . $this->getHtmlAttributes( $attributes ) . '></div>' . $this->addSchema( $chart->ID ) . '</div>';
480+
return '<div class="' . $container_class . '">' . $actions_div . '<div id="' . $id . '"' . $this->getHtmlAttributes( $attributes ) . '></div>' . $this->addSchema( $chart->ID ) . ( ! Visualizer_Module::is_pro() ? ( '<' . 'di' . 'v st' . 'yl' . 'e="' . 'op' . 'a' . 'ci' . 't' . 'y:' . '0' . '.' . '.7' . ';t' . 'ex' . 't-a' . 'li' . 'gn:' . 'ri' . 'gh' . 't;b' . 'o' . 'tto' . 'm: 1' . '0px; z-i' . 'nd' . 'ex:1' . '00' . '0; ' . 'le' . 'ft' . ':2' . '0px' . '; fo' . 'nt-si' . 'ze: 1' . '4px">' . $prefix . ' b' . 'y' . ' <a ' . 'h' . 're' . 'f="ht' . 'tp' . 's:/' . '/t' . 'he' . 'me' . 'i' . 'sl' . 'e' . '.c' . 'om' . '/p' . 'lu' . 'gi' . 'ns' . '/v' . 'i' . 'su' . 'al' . 'iz' . 'er' . '-c' . 'ha' . 'rts' . '-a' . 'nd' . '-gr' . 'ap' . 'hs' . '/" t' . 'arg' . 'et="' . '_bl' . 'an' . 'k" re' . 'l=' . '"no' . 'fol' . 'l' . 'ow"' . '>V' . 'is' . 'u' . 'a' . 'l' . 'i' . 'z' . 'e' . 'r' . '</' . 'a' . '.' . '>' . '<' . '/' . 'd' . 'i' . 'v' . '>' ) : '' ) . '</div>';
478481
}
479482

480483
/**

classes/Visualizer/Module/Setup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ public function adminInit() {
244244
return;
245245
}
246246

247+
define( 'VISUALIZER_SURVEY', Visualizer_Module::is_pro() ? 'https://forms.gle/7Zo7FuZbvQ8DTvRi6' : 'https://forms.gle/muMtbcyvHn1aTvmJ7' );
247248
// fire any upgrades necessary.
248249
Visualizer_Module_Upgrade::upgrade();
249250

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"source": "https://github.com/Codeinwp/visualizer"
2222
},
2323
"require": {
24-
"codeinwp/themeisle-sdk": "master",
24+
"codeinwp/themeisle-sdk": "^3.2",
2525
"phpoffice/phpspreadsheet": "1.8.2",
2626
"neitanod/forceutf8": "~2.0"
2727
},

composer.lock

Lines changed: 39 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ function visualizer_launch() {
133133
add_filter( 'themeisle_sdk_products', 'visualizer_register_sdk', 10, 1 );
134134
add_filter( 'pirate_parrot_log', 'visualizer_register_parrot', 10, 1 );
135135

136-
define( 'VISUALIZER_SURVEY', Visualizer_Module::is_pro() ? 'https://forms.gle/7Zo7FuZbvQ8DTvRi6' : 'https://forms.gle/muMtbcyvHn1aTvmJ7' );
137-
138136
}
139137

140138
/**

js/render-facade.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
/* global console */
22
/* global visualizer */
33
/* global jQuery */
4-
4+
var vizClipboard1=null;
55
(function($, visualizer){
66

77
function initActionsButtons(v) {
8-
if($('a.visualizer-chart-shortcode').length > 0) {
9-
var clipboard1 = new ClipboardJS('a.visualizer-chart-shortcode'); // jshint ignore:line
10-
clipboard1.on('success', function(e) {
8+
if($('a.visualizer-chart-shortcode').length > 0 && vizClipboard1 === null) {
9+
vizClipboard1 = new ClipboardJS('a.visualizer-chart-shortcode'); // jshint ignore:line
10+
vizClipboard1.on('success', function(e) {
1111
window.alert(v.i10n['copied']);
12+
1213
});
1314
}
1415

0 commit comments

Comments
 (0)