PluginProbe
Chartify – WordPress Chart Plugin / 3.8.1
Chartify – WordPress Chart Plugin v3.8.1
3.8.1 3.8.0 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 trunk 1.0.0 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 All 84 releases
← All changes | admin/partials/charts/actions/chart-builder-charts-actions.php +110 -66 trunk → 3.8.1 View file →
@@ -1,66 +1,110 @@
1 -<?php
2 - require_once( CHART_BUILDER_ADMIN_PATH . "/partials/charts/actions/chart-builder-charts-actions-options.php" );
3 -?>
4 -<div class="wrap">
5 - <div class="container-fluid">
6 - <form class="ays-charts-form" id="ays-charts-form" method="post">
7 - <h1>
8 - <?php echo esc_attr($heading); ?>
9 - <input type="submit" name="ays_submit_top" value="<?php echo esc_html(__('Save and close', "chart-builder")) ?>" class="button button-primary ays-button ays-chart-loader-banner" id="ays-button-top-save">
10 - <input type="submit" name="ays_apply_top" value="<?php echo esc_html(__('Save', "chart-builder")) ?>" class="button button-secondary ays-button ays-chart-loader-banner" id="ays-button-top-apply">
11 - </h1>
12 - <hr/>
13 -
14 - <?php
15 - for($tab_ind = 1; $tab_ind <= 1; $tab_ind++){
16 - require_once( CHART_BUILDER_ADMIN_PATH . "/partials/charts/actions/partials/chart-builder-charts-actions-tab".$tab_ind.".php" );
17 - }
18 - ?>
19 -
20 - <input type="hidden" name="<?php echo esc_attr($html_name_prefix); ?>date_created" value="<?php echo esc_attr($date_created); ?>">
21 - <input type="hidden" name="<?php echo esc_attr($html_name_prefix); ?>date_modified" value="<?php echo esc_attr($date_modified); ?>">
22 - <hr/>
23 - <?php
24 - wp_nonce_field('chart_builder_action', 'chart_builder_action');
25 -
26 -// $other_attributes = array('id' => 'ays-button-save');
27 -// submit_button(__('Save and close', "chart-builder"), 'btn btn-primary ays-button ays-survey-loader-banner', 'ays_submit', false, $other_attributes);
28 -
29 -// $other_attributes = array('id' => 'ays-button-save-new');
30 -// submit_button(__('Save and new', "chart-builder"), 'primary ays-button ays-survey-loader-banner', 'ays_save_new', false, $other_attributes);
31 -
32 -// $other_attributes = array('id' => 'ays-button-apply');
33 -// submit_button(__('Save', "chart-builder"), 'btn btn-secondary ays-button ays-survey-loader-banner', 'ays_apply', false, $other_attributes);
34 -
35 - ?>
36 - <input type="submit" name="ays_submit" value="<?php echo esc_html(__('Save and close', "chart-builder")) ?>" class="button button-primary ays-button ays-chart-loader-banner" id="ays-button-save">
37 - <input type="submit" name="ays_apply" value="<?php echo esc_html(__('Save', "chart-builder")) ?>" class="button button-secondary ays-button ays-chart-loader-banner" id="ays-button-apply">
38 - <?php
39 - if($id === 0 && !isset($_GET['status'])){
40 - require_once( CHART_BUILDER_ADMIN_PATH . "/partials/charts/actions/partials/chart-builder-charts-add-new-layer-page.php" );
41 - }
42 - ?>
43 - </form>
44 -
45 - <div class="ays-modal" id="ays-chart-db-query-results">
46 - <div class="ays-modal-content">
47 - <div class="ays-preloader">
48 - <img class="loader" src="<?php echo esc_url(CHART_BUILDER_ADMIN_URL); ?>/images/loaders/tail-spin-result.svg" alt="" width="100">
49 - </div>
50 -
51 - <!-- Modal Header -->
52 - <div class="ays-modal-header">
53 - <span class="ays-close">&times;</span>
54 - <h2><?php echo esc_html(__('Database query results', "chart-builder")); ?></h2>
55 - </div>
56 -
57 - <!-- Modal body -->
58 - <div class="ays-modal-body">
59 - <div class="db-wizard-results"></div>
60 - </div>
61 -
62 - <!-- Modal footer -->
63 - </div>
64 - </div>
65 - </div>
66 -</div>
1 +<?php
2 + require_once( CHART_BUILDER_ADMIN_PATH . "/partials/charts/actions/chart-builder-charts-actions-options.php" );
3 +
4 + $form_id = "";
5 + if (!($id === 0 && !isset($_GET['type']) && !isset($_GET['source']))) {
6 + $form_id = "ays-charts-form-".stripslashes($chart_source_type);
7 + }
8 +
9 +?>
10 +<div class="wrap">
11 + <div class="ays-chart-heading-box">
12 + <div class="ays-chart-wordpress-user-manual-box">
13 + <a href="https://ays-pro.com/wordpress-chart-builder-plugin-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
14 + <i class="ays_fa ays_fa_file_text" ></i>
15 + <span style="margin-left: 3px;text-decoration: underline;">View Documentation</span>
16 + </a>
17 + </div>
18 + </div>
19 + <div class="container-fluid">
20 + <form class="ays-charts-form" id="<?php echo esc_attr($form_id); ?>" method="post">
21 + <input type="hidden" name="ays_chart_tab" value="<?php echo esc_attr($ays_chart_tab); ?>">
22 + <h1 class="wp-heading-inline">
23 + <?php echo esc_html( esc_attr($heading) ); ?>
24 + </h1>
25 + <div class="ays-chart-add-new-button-box" style="margin-top: 10px;">
26 + <input type="submit" name="ays_submit_top" value="<?php echo esc_html(__('Save and close', "chart-builder")) ?>" class="button button-primary ays-button ays-chart-loader-banner" id="ays-button-top-save">
27 + <input type="submit" name="ays_apply_top" value="<?php echo esc_html(__('Save', "chart-builder")) ?>" class="button button-secondary ays-button ays-chart-loader-banner" id="ays-button-top-apply">
28 + </div>
29 + <div>
30 + <?php if ($id !== null && $id !== 0): ?>
31 + <div class="ays-chart-subtitle-main-box">
32 + <p class="ays-subtitle">
33 + <?php if(isset($id) && count($get_all_charts) > 1):?>
34 + <strong class="ays_chart_title_in_top"><?php echo esc_attr( stripslashes( $object['title'] ) ); ?></strong>
35 + <img class="ays-subtitle-inner-charts-page ays-chart-open-charts-list" src="<?php echo esc_url(plugins_url('/images/icons/list_icon_svg.svg', dirname(__FILE__, 3))) // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?>" alt="" >
36 + <?php endif; ?>
37 + </p>
38 + <?php if(isset($id) && count($get_all_charts) > 1):?>
39 + <div class="ays-chart-charts-data">
40 + <?php $var_counter = 0; foreach($get_all_charts as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
41 + <?php ?>
42 + <label class="ays-chart-message-vars-each-data-label">
43 + <input type="radio" class="ays-chart-charts-each-data-checker" hidden id="ays_chart_message_var_count_<?php echo esc_attr($var_counter)?>" name="ays_chart_message_var_count">
44 + <div class="ays-chart-charts-each-data">
45 + <input type="hidden" class="ays-chart-charts-each-var" value="<?php echo esc_attr($var); ?>">
46 + <a href="?page=chart-builder&action=edit&id=<?php echo esc_attr($var_name['id']); ?>" target="_blank" class="ays-chart-go-to-charts" style="color:black;"><span><?php echo esc_attr(stripslashes($var_name['title'])); ?></span></a>
47 + </div>
48 + </label>
49 + <?php endforeach ?>
50 + </div>
51 + <?php endif; ?>
52 + </div>
53 + <div class="row">
54 + <div class="col-sm-12">
55 + <p style="font-size:14px; font-style:italic;">
56 + <?php echo esc_html(__("To make your chart live, copy shortcode", "chart-builder")); ?>
57 + <strong class="ays-chart-shortcode-box" title="<?php echo esc_html(__('Click to copy',"chart-builder"));?>" onClick="selectElementContents(this)" style="font-size:16px; font-style:normal;" data-bs-toggle="tooltip"><?php echo '[ays_chart id="'.esc_attr($id).'"]'; ?></strong>
58 + <?php echo " " . esc_html(__( "and paste it into your desired Page or Post.", "chart-builder")); ?>
59 + </p>
60 + </div>
61 + </div>
62 + <?php endif;?>
63 + </div>
64 + <hr />
65 +
66 + <?php
67 + if (!($id === 0 && !isset($_GET['type']) && !isset($_GET['source']))) {
68 + require_once( CHART_BUILDER_ADMIN_PATH . "/partials/charts/actions/partials/chart-builder-charts-actions-".stripslashes($chart_source_type).".php" );
69 + } else {
70 + require_once( CHART_BUILDER_ADMIN_PATH . "/partials/charts/chart-builder-charts-display.php" );
71 + }
72 + ?>
73 +
74 + <input type="hidden" name="<?php echo esc_attr($html_name_prefix); ?>date_created" value="<?php echo esc_attr($date_created); ?>">
75 + <input type="hidden" name="<?php echo esc_attr($html_name_prefix); ?>date_modified" value="<?php echo esc_attr($date_modified); ?>">
76 + <hr />
77 + <?php
78 + wp_nonce_field('chart_builder_action', 'chart_builder_action');
79 + ?>
80 + <input type="submit" name="ays_submit" value="<?php echo esc_html(__('Save and close', "chart-builder")) ?>" class="button button-primary ays-button ays-chart-loader-banner" id="ays-button-save">
81 + <input type="submit" name="ays_apply" value="<?php echo esc_html(__('Save', "chart-builder")) ?>" class="button button-secondary ays-button ays-chart-loader-banner" id="ays-button-apply">
82 + <?php
83 + if($id === 0 && !isset($_GET['type']) && !isset($_GET['source'])){
84 + require_once( CHART_BUILDER_ADMIN_PATH . "/partials/charts/actions/partials/chart-builder-charts-add-new-layer-page.php" );
85 + }
86 + ?>
87 + </form>
88 +
89 + <div class="ays-modal" id="ays-chart-db-query-results">
90 + <div class="ays-modal-content">
91 + <div class="ays-preloader">
92 + <img class="loader" src="<?php echo esc_url(plugins_url('/images/loaders/tail-spin-result.svg', dirname(__FILE__, 3))) // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?>" alt="" width="100">
93 + </div>
94 +
95 + <!-- Modal Header -->
96 + <div class="ays-modal-header">
97 + <span class="ays-close">&times;</span>
98 + <h2><?php echo esc_html(__('Database query results', "chart-builder")); ?></h2>
99 + </div>
100 +
101 + <!-- Modal body -->
102 + <div class="ays-modal-body">
103 + <div class="db-wizard-results"></div>
104 + </div>
105 +
106 + <!-- Modal footer -->
107 + </div>
108 + </div>
109 + </div>
110 +</div>