Skip to content

Commit 1f11281

Browse files
authored
Merge pull request #126 from contactashish13/development
Reuse Shortcode on same page #124
2 parents d52a7e8 + 0f1a6c8 commit 1f11281

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

classes/Visualizer/Module/Frontend.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function renderChart( $atts ) {
111111
$id = 'visualizer-' . $atts['id'];
112112
$defaultClass = 'visualizer-front';
113113
$class = apply_filters( Visualizer_Plugin::FILTER_CHART_WRAPPER_CLASS, $atts['class'], $atts['id'] );
114-
$class = $defaultClass . ' ' . $class;
114+
$class = $defaultClass . ' ' . $class . ' ' . 'visualizer-front-' . $atts['id'];
115115
$class = ! empty( $class ) ? ' class="' . trim( $class ) . '"' : '';
116116

117117
$type = get_post_meta( $chart->ID, Visualizer_Plugin::CF_CHART_TYPE, true );
@@ -139,6 +139,8 @@ public function renderChart( $atts ) {
139139
$data = apply_filters( $atts['data'], $data, $chart->ID, $type );
140140
}
141141

142+
$id = $id . '-' . rand();
143+
142144
// add chart to the array
143145
$this->_charts[ $id ] = array(
144146
'type' => $type,

languages/visualizer.pot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Copyright (C) 2016 Themeisle
1+
# Copyright (C) 2017 Themeisle
22
# This file is distributed under the GPL v2.0 or later.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Visualizer: Charts and Graphs Lite 1.7.2\n"
5+
"Project-Id-Version: Visualizer: Charts and Graphs Lite 1.7.5\n"
66
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/visualizer/issues\n"
7-
"POT-Creation-Date: 2016-12-09 18:57:52+00:00\n"
7+
"POT-Creation-Date: 2017-01-16 15:53:56+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
11-
"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
11+
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: Themeisle Translate Team <[email protected]>\n"
1313
"Language-Team: Themeisle Translate <[email protected]>\n"
1414
"X-Generator: grunt-wp-i18n 0.5.4\n"

0 commit comments

Comments
 (0)