PluginProbe
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls / 6.5.1
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls v6.5.1
6.5.1 6.5.0 6.4.9 6.4.8 6.4.7 6.4.6 6.4.5 6.4.4 6.4.3 6.4.2 6.4.1 6.4.0 6.3.9 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 5.6.0 5.6.1 5.6.2 5.6.3 5.6.4 5.6.5 All 154 releases
← All changes | admin/partials/poll-maker-ays-admin-display.php +45 -36 5.6.3 → 6.5.1 View file →
@@ -17,9 +17,9 @@
17 17 $this->polls_obj->duplicate_poll($id);
18 18 }
19 19 $poll_max_id = Poll_Maker_Ays_Admin::get_max_id('polls');
20 20
21 -$plus_icon_svg = "<span class=''><img src='". POLL_MAKER_AYS_ADMIN_URL ."/images/icons/add-new.svg'></span>";
21 +$plus_icon_svg = "<span class=''><img src='". esc_url(POLL_MAKER_AYS_ADMIN_URL) ."/images/icons/add-new.svg'></span>";
22 22
23 23 $quick_poll_plugin_nonce = wp_create_nonce( 'poll-maker-ajax-quick-poll-nonce' );
24 24 ?>
25 25
@@ -27,9 +27,9 @@
27 27 <div class="ays-poll-heading-box">
28 28 <div class="ays-poll-wordpress-user-manual-box">
29 29 <a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
30 30 <i class="ays_poll_fas ays_fa_file_text"></i>
31 - <span style="margin-left: 3px;text-decoration: underline;"><?php echo __("View Documentation", "poll-maker"); ?></span>
31 + <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__("View Documentation", "poll-maker"); ?></span>
32 32 </a>
33 33 </div>
34 34 </div>
35 35 <h1 class="wp-heading-inline">
@@ -39,13 +39,14 @@
39 39 </h1>
40 40 <div class='heading_buttons_container'>
41 41 <div class='ays-poll-add-new-button-box'>
42 42 <?php
43 - echo sprintf('<a href="?page=%s&action=%s" class="page-title-action button-primary ays-poll-add-new-button ays-poll-add-new-button-new-design"> %s ' . __('Add New', "poll-maker") . '</a>', esc_attr($_REQUEST['page']), 'add', $plus_icon_svg);
43 + echo sprintf('<a href="?page=%s&action=%s" class="page-title-action button-primary ays-poll-add-new-button ays-poll-add-new-button-new-design"> %s ' .esc_html__('Add New', "poll-maker") . '</a>', esc_attr($_REQUEST['page']), 'add', wp_kses_post($plus_icon_svg));
44 44 ?>
45 45 </div>
46 46 <div class="create_quick_poll_container">
47 - <button class="create_quick_poll" id="ays_create_quick_poll" title="<?php echo __( "Create Quick Poll", "poll-maker" ); ?>"><img src="<?php echo POLL_MAKER_AYS_ADMIN_URL . '/images/icons/icon-128x128.png' ?>" alt="Create Quick Poll"></button>
47 + <button class="create_quick_poll" id="ays_create_quick_poll" title="<?php echo esc_html__( "Create Quick Poll", "poll-maker" ); ?>"><img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/icon-128x128.png' ?>" alt="Create Quick Poll"></button>
48 + <span style=""><?php echo esc_html__("Quick Poll", "poll-maker"); ?></span>
48 49 </div>
49 50 </div>
50 51 <div class="ays_poll_modal" id="ays-poll-quick-create" style='display:none'>
51 52 <!-- Modal content -->
@@ -50,9 +51,9 @@
50 51 <div class="ays_poll_modal" id="ays-poll-quick-create" style='display:none'>
51 52 <!-- Modal content -->
52 53 <div class="ays_poll_modal_content ays-modal-content fadeInDown" id="ays-poll-quick-create-content">
53 54 <div class="ays-modal-header">
54 - <h4><?php echo __('Build your poll in a few minutes', "poll-maker"); ?></h4>
55 + <h4><?php echo esc_html__('Build your poll in a few minutes', "poll-maker"); ?></h4>
55 56 <span class="ays-close-quick-create">&times;</span>
56 57 </div>
57 58 <div class="ays-modal-quick-poll-content">
58 59 <form method="POST" id="ays-quick-poll-form">
@@ -57,40 +58,40 @@
57 58 <div class="ays-modal-quick-poll-content">
58 59 <form method="POST" id="ays-quick-poll-form">
59 60 <!-- Title -->
60 61 <div class="ays-modal-poll-title-add">
61 - <span><label for="ays-quick-poll-title"><?php echo __('Poll Title', "poll-maker"); ?></label></span>
62 + <span><label for="ays-quick-poll-title"><?php echo esc_html__('Poll Title', "poll-maker"); ?></label></span>
62 63 <input type="text" name="ays-poll-title" id="ays-quick-poll-title" data-required="true">
63 64 </div>
64 65 <!-- Question -->
65 66 <div class="ays-modal-poll-question-add">
66 - <span><label for="ays-quick-poll-question"><?php echo __('Question', "poll-maker"); ?></label></span>
67 - <textarea name="ays_poll_question" id="ays-quick-poll-question" placeholder="<?php echo __('Ask a question*', "poll-maker"); ?>" rows="3"></textarea>
67 + <span><label for="ays-quick-poll-question"><?php echo esc_html__('Question', "poll-maker"); ?></label></span>
68 + <textarea name="ays_poll_question" id="ays-quick-poll-question" placeholder="<?php echo esc_html__('Ask a question*', "poll-maker"); ?>" rows="3"></textarea>
68 69 </div>
69 70 <!-- Answers -->
70 71 <div class="ays-modal-poll-answers-section">
71 - <span><label for="quick_poll_answer-1"><?php echo __('Answers', "poll-maker"); ?></label></span>
72 + <span><label for="quick_poll_answer-1"><?php echo esc_html__('Answers', "poll-maker"); ?></label></span>
72 73 <div class="quick_poll_answer_box">
73 - <input class="quick_poll_answer" name="ays-poll-answers[]" data-id="1" placeholder="<?php echo __('Option*', "poll-maker"); ?>">
74 - <button type="button" class="quick_poll_answer_remove"><img src="<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/remove-normal.png')?>" alt="remove" width="20px"></button>
74 + <input class="quick_poll_answer" name="ays-poll-answers[]" data-id="1" placeholder="<?php echo esc_html__('Option*', "poll-maker"); ?>">
75 + <button type="button" class="quick_poll_answer_remove"><img src="<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/remove-normal.png')?>" alt="remove" width="20px"></button>
75 76 </div>
76 77 <div class="quick_poll_answer_box">
77 - <input class="quick_poll_answer" name="ays-poll-answers[]" data-id="2" placeholder="<?php echo __('Option*', "poll-maker"); ?>">
78 - <button type="button" class="quick_poll_answer_remove"><img src="<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/remove-normal.png')?>" alt="remove" width="20px"></button>
78 + <input class="quick_poll_answer" name="ays-poll-answers[]" data-id="2" placeholder="<?php echo esc_html__('Option*', "poll-maker"); ?>">
79 + <button type="button" class="quick_poll_answer_remove"><img src="<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/remove-normal.png')?>" alt="remove" width="20px"></button>
79 80 </div>
80 81 <div class="quick_poll_answer_box">
81 - <input class="quick_poll_answer" name="ays-poll-answers[]" data-id="3" placeholder="<?php echo __('Option*', "poll-maker"); ?>">
82 - <button type="button" class="quick_poll_answer_remove"><img src="<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/remove-normal.png')?>" alt="remove" width="20px"></button>
82 + <input class="quick_poll_answer" name="ays-poll-answers[]" data-id="3" placeholder="<?php echo esc_html__('Option*', "poll-maker"); ?>">
83 + <button type="button" class="quick_poll_answer_remove"><img src="<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/remove-normal.png')?>" alt="remove" width="20px"></button>
83 84 </div>
84 - <button type="button" class="quick_poll_add_option"><div><span>+</span></div><?php echo __('Add an Option', "poll-maker"); ?></button>
85 + <button type="button" class="quick_poll_add_option"><div><span>+</span></div><?php echo esc_html__('Add an Option', "poll-maker"); ?></button>
85 86 </div>
86 87 <div class="quick_poll_divider"></div>
87 88 <!-- Settings -->
88 89 <div class="quick_poll_settings">
89 - <h4><?php echo __('Settings', "poll-maker"); ?></h4>
90 + <h4><?php echo esc_html__('Settings', "poll-maker"); ?></h4>
90 91 <!-- Allow not to vote -->
91 92 <div>
92 - <span><?php echo __('Allow not to vote', "poll-maker"); ?></span>
93 + <span><?php echo esc_html__('Allow not to vote', "poll-maker"); ?></span>
93 94 <input type="checkbox" id="allow_not_to_vote" name="allow-not-vote" >
94 95 <label for="allow_not_to_vote">Toggle</label>
95 96 </div>
96 97 <!-- Allow multivote -->
@@ -95,57 +96,57 @@
95 96 </div>
96 97 <!-- Allow multivote -->
97 98 <div class='multivote-container'>
98 99 <div>
99 - <span><?php echo __('Allow multivote', "poll-maker"); ?></span>
100 + <span><?php echo esc_html__('Allow multivote', "poll-maker"); ?></span>
100 101 <input type="checkbox" id="allow_multivote_switch" name="allow_multivote_switch">
101 102 <label for="allow_multivote_switch">Toggle</label>
102 103 </div>
103 104 <!-- Multivote Settings -->
104 105 <div class="quick_poll_multivote_settings">
105 - <input type="number" id="quick-poll-multivote-min-count" name="quick-poll-multivote-min-count" placeholder="<?php echo __('Min', "poll-maker"); ?>">
106 - <input type="number" id="quick-poll-multivote-max-count" name="quick-poll-multivote-max-count" placeholder="<?php echo __('Max', "poll-maker"); ?>">
106 + <input type="number" id="quick-poll-multivote-min-count" name="quick-poll-multivote-min-count" placeholder="<?php echo esc_html__('Min', "poll-maker"); ?>">
107 + <input type="number" id="quick-poll-multivote-max-count" name="quick-poll-multivote-max-count" placeholder="<?php echo esc_html__('Max', "poll-maker"); ?>">
107 108 </div>
108 109 </div>
109 110 <!-- Show author -->
110 111 <div>
111 - <span><?php echo __('Show author', "poll-maker"); ?></span>
112 + <span><?php echo esc_html__('Show author', "poll-maker"); ?></span>
112 113 <input type="checkbox" name="quick-poll-show_poll_author" id="quick-poll-show-poll-author" value="1">
113 114 <label for="quick-poll-show-poll-author">Toggle</label>
114 115 </div>
115 116 <!-- Show title -->
116 117 <div>
117 - <span><?php echo __('Show title', "poll-maker"); ?></span>
118 + <span><?php echo esc_html__('Show title', "poll-maker"); ?></span>
118 119 <input type="checkbox" name="quick-poll-show-title" id="quick-poll-show-title" checked>
119 120 <label for="quick-poll-show-title">Toggle</label>
120 121 </div>
121 122 <!-- Show creation date -->
122 123 <div>
123 - <span><?php echo __('Show creation date', "poll-maker"); ?></span>
124 + <span><?php echo esc_html__('Show creation date', "poll-maker"); ?></span>
124 125 <input type="checkbox" name="quick-poll-show-creation-date" id="quick-poll-show-creation-date">
125 126 <label for="quick-poll-show-creation-date">Toggle</label>
126 127 </div>
127 128 <!-- Hide results -->
128 129 <div>
129 - <span><?php echo __('Hide results', "poll-maker"); ?></span>
130 + <span><?php echo esc_html__('Hide results', "poll-maker"); ?></span>
130 131 <input type="checkbox" name="quick-poll-hide-results" id="quick-poll-hide-results" value="1">
131 132 <label for="quick-poll-hide-results">Toggle</label>
132 133 </div>
133 134 <!-- Randomize answers -->
134 135 <div>
135 - <span><?php echo __('Randomize answers', "poll-maker"); ?></span>
136 + <span><?php echo esc_html__('Randomize answers', "poll-maker"); ?></span>
136 137 <input type="checkbox" name="quick-poll-randomize-answers" id="quick-poll-randomize-answers">
137 138 <label for="quick-poll-randomize-answers">Toggle</label>
138 139 </div>
139 140 <!-- Enable restart button -->
140 141 <div>
141 - <span><?php echo __('Enable restart button', "poll-maker"); ?></span>
142 + <span><?php echo esc_html__('Enable restart button', "poll-maker"); ?></span>
142 143 <input type="checkbox" name="quick-poll-enable-restart-button" id="quick-poll-enable-restart-button">
143 144 <label for="quick-poll-enable-restart-button">Toggle</label>
144 145 </div>
145 146 <!-- Results bar in RGBA -->
146 147 <div>
147 - <span><?php echo __('Results bar in RGBA', "poll-maker"); ?></span>
148 + <span><?php echo esc_html__('Results bar in RGBA', "poll-maker"); ?></span>
148 149 <input type="checkbox" name="quick-poll-res-rgba" id="quick-poll-res-rgba">
149 150 <label for="quick-poll-res-rgba">Toggle</label>
150 151 </div>
151 152 </div>
@@ -150,10 +151,10 @@
150 151 </div>
151 152 </div>
152 153 <!-- Save -->
153 154 <div class="quick_poll_save">
154 - <input type="button" id="ays-save-quick-poll" value="<?php echo __('Save', "poll-maker"); ?>">
155 - <input type="hidden" id="ays_poll_ajax_quick_poll_nonce" name="ays_poll_ajax_quick_poll_nonce" value="<?php echo $quick_poll_plugin_nonce; ?>">
155 + <input type="button" id="ays-save-quick-poll" value="<?php echo esc_html__('Save', "poll-maker"); ?>">
156 + <input type="hidden" id="ays_poll_ajax_quick_poll_nonce" name="ays_poll_ajax_quick_poll_nonce" value="<?php echo esc_attr($quick_poll_plugin_nonce); ?>">
156 157 </div>
157 158 </form>
158 159 </div>
159 160 </div>
@@ -169,9 +170,9 @@
169 170 ?>
170 171 <form method="post">
171 172 <?php
172 173 $this->polls_obj->prepare_items();
173 - $search = __("Search" , "poll-maker");
174 + $search =esc_html__("Search" , "poll-maker");
174 175 $this->polls_obj->search_box($search, $this->plugin_name);
175 176 $this->polls_obj->display();
176 177 ?>
177 178 </form>
@@ -180,24 +181,32 @@
180 181 </div>
181 182 <br class="clear">
182 183 </div>
183 184 <div class="ays-poll-create-poll-youtube-video-button-box">
184 - <?php echo sprintf( '<a href="?page=%s&action=%s" class="ays-poll-add-new-button-video ays-poll-add-new-button-new-design"> %s ' . __('Add New', "poll-maker") . '</a>', esc_attr( $_REQUEST['page'] ), 'add', $plus_icon_svg);?>
185 + <?php echo sprintf( '<a href="?page=%s&action=%s" class="ays-poll-add-new-button-video ays-poll-add-new-button-new-design"> %s ' .esc_html__('Add New', "poll-maker") . '</a>', esc_attr( $_REQUEST['page'] ), 'add', wp_kses_post($plus_icon_svg));?>
185 186 </div>
186 187 <?php if($poll_max_id <= 3): ?>
187 188 <div class="ays-poll-create-poll-video-box" style="margin: 10px auto 30px;">
188 189 <div class="ays-poll-create-poll-title">
189 - <h4><?php echo __( "Create Your First Poll in Under One Minute", "poll-maker" ); ?></h4>
190 + <h4><?php echo esc_html__( "Create Your First Poll in Under One Minute", "poll-maker" ); ?></h4>
190 191 </div>
191 192 <div class="ays-poll-create-poll-youtube-video">
192 - <iframe width="560" height="315" class="ays-poll-youtube-video-responsive" src="https://www.youtube.com/embed/0dfJQdAwdL4" loading="lazy" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
193 + <div class="ays-poll-youtube-placeholder" data-video-id="VhsTmx02LHQ">
194 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL .'/images/create-poll-on-wordpress.webp'); ?>" loading="lazy" width="560" height="315">
195 + </div>
193 196 </div>
197 + <div class="ays_poll_small_hint_text_for_message_variables" style="text-align: center;">
198 + <?php echo esc_html__( 'Please note that this video will disappear once you created 4 polls.', 'poll-maker' ); ?>
199 + </div>
200 + <div class="ays-poll-create-poll-youtube-video-button-box create-poll-youtube-video-bottom">
201 + <?php echo sprintf( '<a href="?page=%s&action=%s" class="ays-poll-add-new-button-video ays-poll-add-new-button-new-design"> %s ' .esc_html__('Add New', "poll-maker") . '</a>', esc_attr( $_REQUEST['page'] ), 'add', wp_kses_post($plus_icon_svg));?>
202 + </div>
194 203 </div>
195 204 <?php else: ?>
196 205 <div class="ays-poll-create-poll-video-box" style="margin: auto;">
197 206 <div class="ays-poll-create-poll-youtube-video">
198 - <a href="https://www.youtube.com/watch?v=0dfJQdAwdL4" target="_blank" title="YouTube video player" >
199 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL . '/images/icons/video_youtube_icon.svg' ?>" alt="How to create a Poll in Under One Minute">
207 + <a href="https://www.youtube.com/watch?v=VhsTmx02LHQ" target="_blank" title="YouTube video player" >
208 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/video_youtube_icon.svg' ?>" alt="How to create a Poll in Under One Minute">
200 209 <span>How to create a Poll in Under One Minute</span>
201 210 </a>
202 211 </div>
203 212 </div>