File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
classes/Visualizer/Module Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 1- # Copyright (C) 2016 Themeisle
1+ # Copyright (C) 2017 Themeisle
22# This file is distributed under the GPL v2.0 or later.
33msgid ""
44msgstr ""
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 <friends@themeisle.com>\n "
1313"Language-Team : Themeisle Translate <friends@themeisle.com>\n "
1414"X-Generator : grunt-wp-i18n 0.5.4\n "
You can’t perform that action at this time.
0 commit comments