diff --git a/classes/Visualizer/Gutenberg/Block.php b/classes/Visualizer/Gutenberg/Block.php index 31210b5a5..3b6031ac1 100644 --- a/classes/Visualizer/Gutenberg/Block.php +++ b/classes/Visualizer/Gutenberg/Block.php @@ -105,7 +105,7 @@ public function enqueue_gutenberg_scripts() { $translation_array = array( 'isPro' => $type, - 'proTeaser' => Visualizer_Plugin::PRO_TEASER_URL, + 'proTeaser' => tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'blockupsell'), 'absurl' => VISUALIZER_ABSURL, 'charts' => Visualizer_Module_Admin::_getChartTypesLocalized(), 'adminPage' => menu_page_url( 'visualizer', false ), diff --git a/classes/Visualizer/Module.php b/classes/Visualizer/Module.php index c9ad1f2d7..d15d7f2cb 100644 --- a/classes/Visualizer/Module.php +++ b/classes/Visualizer/Module.php @@ -270,6 +270,9 @@ private function _getCSV( $rows, $filename, $enclose ) { $bom = chr( 0xEF ) . chr( 0xBB ) . chr( 0xBF ); $fp = tmpfile(); + if ( null === $fp ) { + $fp = fopen( wp_tempnam(), 'w+' ); + } if ( ! apply_filters( 'vizualizer_export_include_series_type', true ) ) { unset( $rows[1] ); $rows = array_values( $rows ); @@ -624,7 +627,7 @@ protected function get_inline_custom_css( $id, $settings ) { } $img_path = VISUALIZER_ABSURL . 'images'; - $css .= ".locker,.locker-loader{position:absolute;top:0;left:0;width:100%;height:100%}.locker{z-index:1000;opacity:.8;background-color:#fff;-ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)\";filter:alpha(opacity=80)}.locker-loader{z-index:1001;background:url($img_path/ajax-loader.gif) no-repeat center center}.dt-button{display:none!important}.visualizer-front-container.visualizer-lazy-render{content-visibility: auto;}"; + $css .= ".locker,.locker-loader{position:absolute;top:0;left:0;width:100%;height:100%}.locker{z-index:1000;opacity:.8;background-color:#fff;-ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)\";filter:alpha(opacity=80)}.locker-loader{z-index:1001;background:url($img_path/ajax-loader.gif) no-repeat center center}.dt-button{display:none!important}.visualizer-front-container.visualizer-lazy-render{content-visibility: auto;}.google-visualization-controls-categoryfilter label.google-visualization-controls-label {vertical-align: middle;}.google-visualization-controls-categoryfilter li.goog-inline-block {margin: 0 0.2em;}.google-visualization-controls-categoryfilter li {padding: 0 0.2em;}"; $css .= ''; $arguments = array( $css, $settings ); diff --git a/classes/Visualizer/Module/Admin.php b/classes/Visualizer/Module/Admin.php index 46cbd141a..a364c0d23 100644 --- a/classes/Visualizer/Module/Admin.php +++ b/classes/Visualizer/Module/Admin.php @@ -726,7 +726,7 @@ public function handleGetProSubMenu() { jQuery( document ).ready( function() { jQuery( '#toplevel_page_visualizer' ).on( 'click', 'li:not(.wp-submenu-head, .wp-first-item):eq(2)', function( e ) { e.preventDefault(); - window.open( 'https://themeisle.com/plugins/visualizer-charts-and-graphs/upgrade/#pricing', '_blank' ); + window.open( '', '_blank' ); } ); } ); @@ -968,6 +968,13 @@ public function renderLibraryPage() { $settings = $arguments[1]; } + if ( isset( $settings['controls']['ui']['labelStacking'] ) ) { + unset( $settings['controls']['ui']['labelStacking'] ); + } + if ( isset( $settings['controls']['ui']['orientation'] ) ) { + unset( $settings['controls']['ui']['orientation'] ); + } + // add chart to the array $charts[ $id ] = array( 'id' => $chart->ID, @@ -1086,7 +1093,7 @@ public function getPluginMetaLinks( $plugin_meta, $plugin_file ) { ); // flattr link $plugin_meta[] = sprintf( - '%s', + '%s', esc_html__( 'Pro Addon', 'visualizer' ) ); } diff --git a/classes/Visualizer/Module/Sources.php b/classes/Visualizer/Module/Sources.php index 1a82a9a18..44adc0edb 100644 --- a/classes/Visualizer/Module/Sources.php +++ b/classes/Visualizer/Module/Sources.php @@ -146,7 +146,7 @@ public function addProUpsell( $old, $feature = null ) { $return .= '
'; $return .= '
'; $return .= '

' . $msg . '

'; - $return .= ' ' . __( 'Buy now', 'visualizer' ) . ''; + $return .= ' ' . __( 'Buy now', 'visualizer' ) . ''; $return .= '
'; $return .= '
'; $return .= ''; diff --git a/classes/Visualizer/Plugin.php b/classes/Visualizer/Plugin.php index dcee37129..d7fa6afed 100644 --- a/classes/Visualizer/Plugin.php +++ b/classes/Visualizer/Plugin.php @@ -98,7 +98,7 @@ class Visualizer_Plugin { const CF_CHART_URL = 'visualizer-chart-url'; const CF_CHART_SCHEDULE = 'visualizer-chart-schedule'; // Added by Ash/Upwork - const PRO_TEASER_URL = 'https://themeisle.com/plugins/visualizer-charts-and-graphs/upgrade/#pricing'; + const PRO_TEASER_URL = 'https://themeisle.com/plugins/visualizer-charts-and-graphs/upgrade/'; const PRO_TEASER_TITLE = 'Check PRO version '; const CF_CHART_CACHE = 'visualizer-chart-cache'; diff --git a/classes/Visualizer/Render/Library.php b/classes/Visualizer/Render/Library.php index 1acfb257f..fdadf26ca 100644 --- a/classes/Visualizer/Render/Library.php +++ b/classes/Visualizer/Render/Library.php @@ -363,7 +363,7 @@ private function _renderChartBox( $placeholder_id, $chart_id, $with_filter = fal if ( $this->can_chart_have_action( 'image', $chart_id ) ) { echo ''; } - echo ''; + echo ''; echo ' '; echo '
(' . $chart_id . '): ' . $chart_status['date'] . '
'; echo ''; @@ -397,7 +397,7 @@ private function _renderSidebar() { echo '
  • ' . __( 'Frontend editor', 'visualizer' ) . '
  • '; echo '
  • ' . __( 'Private charts', 'visualizer' ) . '
  • '; echo '
  • ' . __( 'Auto-sync with online files', 'visualizer' ) . '
  • '; - echo '

    ' . __( 'View more features', 'visualizer' ) . '

    '; + echo '

    ' . __( 'View more features', 'visualizer' ) . '

    '; echo ''; echo ''; echo ''; diff --git a/classes/Visualizer/Render/Page/Types.php b/classes/Visualizer/Render/Page/Types.php index 2d52999d1..b02de2768 100644 --- a/classes/Visualizer/Render/Page/Types.php +++ b/classes/Visualizer/Render/Page/Types.php @@ -61,7 +61,7 @@ protected function _renderContent() { } echo '
    '; if ( ! $array['enabled'] ) { - echo ""; + echo ""; echo "" . __( 'PREMIUM', 'visualizer' ) . ''; } echo '

    Visualizer: Tables and Charts for WordPress plugin is a powerful and easy to use plugin used to create, manage and embed interactive, responsive charts & tables into your WordPress posts and pages.

    +

    Visualizer: Tables and Charts for WordPress plugin is a powerful and easy to use plugin used to create, manage and embed interactive, responsive charts & tables into your WordPress posts and pages.

    The plugin uses Google Visualization API, DataTables.net and ChartJS to add responsive & animated charts, graphs and tables, which support cross-browser compatibility and display perfectly on mobile devices. You can greatly customize all aspects of the charts and tables, and import the data from Excel, CSV, Google Sheets and more! @@ -46,7 +46,7 @@ Charts are rendered using HTML5/SVG technology to provide cross-browser compatib > * Priority email support from the developer of the plugin > * Support and updates for as long as your subscription is valid > -> **[Learn more about Visualizer PRO](http://themeisle.com/plugins/visualizer-charts-and-graphs/)** +> **[Learn more about Visualizer PRO](https://themeisle.com/plugins/visualizer-charts-and-graphs/?utm_source=plugin-readme&utm_medium=visualizer&utm_campaign=learnmore)** The plugins works perfectly with the all free or premium WordPress themes diff --git a/templates/docs.php b/templates/docs.php index 843a3da59..eee6e85cc 100644 --- a/templates/docs.php +++ b/templates/docs.php @@ -20,7 +20,7 @@ -

    We have many more features and charts, and offer email & chat support if you purchase our Pro Version.

    +

    We have many more features and charts, and offer email & chat support if you purchase our Pro Version.

    Ready to begin? Let's create a chart or view a demo! diff --git a/templates/more.php b/templates/more.php index 7fa88b19e..5b4f2e2cb 100644 --- a/templates/more.php +++ b/templates/more.php @@ -50,7 +50,7 @@

    Import any data from your database!

    Do you want to create a chart based on custom queries? Or display data about WordPress statistics? Do you want to import data periodically (every day, every hour, etc.) ?

    -

    With Pro you can do all of these, and much more. Visit our site to know more.

    +

    With Pro you can do all of these, and much more. Visit our site to know more.

    diff --git a/templates/support.php b/templates/support.php index e7668172c..31b570b00 100644 --- a/templates/support.php +++ b/templates/support.php @@ -11,7 +11,7 @@ href="https://themeisle.com/">ThemeIsle
    - More features