← All changes
|
admin/partials/settings/survey-maker-settings.php
+110
-46
5.2.0.8
→
5.2.4.1
View file →
| @@ -169,8 +169,21 @@ | ||
| 169 | 169 | // Disable Submissions menu item notification |
| 170 | 170 | $options['survey_disable_submission_menu_notification'] = isset($options['survey_disable_submission_menu_notification']) ? esc_attr( $options['survey_disable_submission_menu_notification'] ) : 'off'; |
| 171 | 171 | $survey_disable_submission_menu_notification = (isset($options['survey_disable_submission_menu_notification']) && esc_attr( $options['survey_disable_submission_menu_notification'] ) == "on") ? true : false; |
| 172 | 172 | |
| 173 | + $survey_menu_badge_style_options = array( | |
| 174 | + 'classic' => array( | |
| 175 | + 'background' => '#ca4a1f', | |
| 176 | + 'label' => __( 'Default', 'survey-maker' ), | |
| 177 | + ), | |
| 178 | + 'wp_default' => array( | |
| 179 | + 'background' => '#3858e9', | |
| 180 | + 'label' => __( 'WordPress default', 'survey-maker' ), | |
| 181 | + ), | |
| 182 | + ); | |
| 183 | + $options['survey_menu_badge_style'] = isset($options['survey_menu_badge_style']) ? sanitize_key( $options['survey_menu_badge_style'] ) : 'classic'; | |
| 184 | + $survey_menu_badge_style = array_key_exists( $options['survey_menu_badge_style'], $survey_menu_badge_style_options ) ? $options['survey_menu_badge_style'] : 'classic'; | |
| 185 | + | |
| 173 | 186 | // Textarea height (public) |
| 174 | 187 | $survey_textarea_height = (isset($options['survey_textarea_height']) && $options['survey_textarea_height'] != '' && $options['survey_textarea_height'] != 0) ? absint( sanitize_text_field($options['survey_textarea_height']) ) : 100; |
| 175 | 188 | |
| 176 | 189 | // WP Editor height |
| @@ -226,49 +239,59 @@ | ||
| 226 | 239 | |
| 227 | 240 | // Add message varibales here |
| 228 | 241 | $message_variables = array( |
| 229 | 242 | 'general_message_variables' => array( |
| 230 | - 'current_date' => __('The date of the submission survey.' , "survey-maker"), | |
| 231 | - 'current_time' => __('The time of the submission survey.' , "survey-maker"), | |
| 232 | - 'current_day' => __('The day of the submission survey.' , "survey-maker"), | |
| 233 | - 'current_month' => __('The month of the submission survey.' , "survey-maker"), | |
| 234 | - 'unique_code' => __('Use to identify the uniqueness of each attempt.' , "survey-maker"), | |
| 235 | - 'post_id' => __('The ID of the current post.' , "survey-maker"), | |
| 236 | - 'home_page_url' => __('The URL of the home page.' , "survey-maker"), | |
| 237 | - 'post_author_email' => __('The Email of the author of the post.' , "survey-maker"), | |
| 238 | - 'post_title' => __('The Post title of the current post.' , "survey-maker"), | |
| 239 | - 'post_author_nickname' => __('The Nickname of the author of the post.' , "survey-maker"), | |
| 240 | - 'post_author_display_name' => __('The Display name of the author of the post.' , "survey-maker"), | |
| 241 | - 'post_author_first_name' => __('The First Name of the author of the post.' , "survey-maker"), | |
| 242 | - 'post_author_last_name' => __('The Last Name of the author of the post.' , "survey-maker"), | |
| 243 | - 'site_title' => __('The title of the website.' , "survey-maker"), | |
| 244 | - 'site_description' => __('The description of the website.' , "survey-maker"), | |
| 243 | + 'current_date' => __('The date of the submission survey.' , "survey-maker"), | |
| 244 | + 'current_time' => __('The time of the submission survey.' , "survey-maker"), | |
| 245 | + 'current_day' => __('The day of the submission survey.' , "survey-maker"), | |
| 246 | + 'current_month' => __('The month of the submission survey.' , "survey-maker"), | |
| 247 | + 'unique_code' => __('Use to identify the uniqueness of each attempt.' , "survey-maker"), | |
| 248 | + 'post_id' => __('The ID of the current post.' , "survey-maker"), | |
| 249 | + 'home_page_url' => __('The URL of the home page.' , "survey-maker"), | |
| 250 | + 'post_author_email' => __('The Email of the author of the post.' , "survey-maker"), | |
| 251 | + 'post_title' => __('The Post title of the current post.' , "survey-maker"), | |
| 252 | + 'post_author_nickname' => __('The Nickname of the author of the post.' , "survey-maker"), | |
| 253 | + 'post_author_display_name' => __('The Display name of the author of the post.' , "survey-maker"), | |
| 254 | + 'post_author_first_name' => __('The First Name of the author of the post.' , "survey-maker"), | |
| 255 | + 'post_author_last_name' => __('The Last Name of the author of the post.' , "survey-maker"), | |
| 256 | + 'post_author_website_url' => __('The website url of the author of the post.' , "survey-maker"), | |
| 257 | + 'post_author_roles' => __('The role(s) of the author of the post when logged-in. In case the user is not logged-in, the field will be empty.' , "survey-maker"), | |
| 258 | + 'site_title' => __('The title of the website.' , "survey-maker"), | |
| 259 | + 'site_description' => __('The description of the website.' , "survey-maker"), | |
| 245 | 260 | ), |
| 246 | 261 | 'user_message_variables' => array( |
| 247 | - 'user_name' => __('The name the user entered into the survey form. It will work only if the name field exists in the form.' , "survey-maker"), | |
| 248 | - 'user_email' => __('The E-mail the user entered into the survey form. It will work only if the email field exists in the form.' , "survey-maker"), | |
| 249 | - 'user_wordpress_email' => __('The E-mail that was filled in their WordPress site during registration.' , "survey-maker"), | |
| 250 | - 'user_id' => __('The ID of the current user.' , "survey-maker"), | |
| 251 | - 'users_count' => __('The number of the passed users count of the given survey.' , "survey-maker"), | |
| 252 | - 'users_first_name' => __('The user\'s first name that was filled in their WordPress site during registration.' , "survey-maker"), | |
| 253 | - 'users_last_name' => __('The user\'s last name that was filled in their WordPress site during registration.' , "survey-maker"), | |
| 254 | - 'users_nick_name' => __('The user\'s nick name that was filled in their WordPress site during registration.' , "survey-maker"), | |
| 255 | - 'user_wordpress_roles' => __('The user\'s role(s) when logged-in. In case the user is not logged-in, the field will be empty.' , "survey-maker"), | |
| 256 | - 'users_display_name' => __('The user\'s display name that was filled in their WordPress site during registration.' , "survey-maker"), | |
| 257 | - 'users_ip_address' => __('The user\'s ip address.' , "survey-maker"), | |
| 258 | - 'admin_email' => __('Shows the admin\'s email that was filled in their WordPress profile.' , "survey-maker"), | |
| 262 | + 'user_name' => __('The name the user entered into the survey form. It will work only if the name field exists in the form.' , "survey-maker"), | |
| 263 | + 'user_email' => __('The E-mail the user entered into the survey form. It will work only if the email field exists in the form.' , "survey-maker"), | |
| 264 | + 'user_wordpress_email' => __('The E-mail that was filled in their WordPress site during registration.' , "survey-maker"), | |
| 265 | + 'user_id' => __('The ID of the current user.' , "survey-maker"), | |
| 266 | + 'user_registered' => __('The user\'s registration date when logged-in. In case the user is not logged-in, the field will be empty.' , "survey-maker"), | |
| 267 | + 'users_count' => __('The number of the passed users count of the given survey.' , "survey-maker"), | |
| 268 | + 'users_first_name' => __('The user\'s first name that was filled in their WordPress site during registration.' , "survey-maker"), | |
| 269 | + 'users_last_name' => __('The user\'s last name that was filled in their WordPress site during registration.' , "survey-maker"), | |
| 270 | + 'users_nick_name' => __('The user\'s nick name that was filled in their WordPress site during registration.' , "survey-maker"), | |
| 271 | + 'user_wordpress_roles' => __('The user\'s role(s) when logged-in. In case the user is not logged-in, the field will be empty.' , "survey-maker"), | |
| 272 | + 'user_website_url' => __('The user\'s website url that was filled in their WordPress profile.' , "survey-maker"), | |
| 273 | + 'users_display_name' => __('The user\'s display name that was filled in their WordPress site during registration.' , "survey-maker"), | |
| 274 | + 'users_ip_address' => __('The user\'s ip address.' , "survey-maker"), | |
| 275 | + 'admin_email' => __('Shows the admin\'s email that was filled in their WordPress profile.' , "survey-maker"), | |
| 259 | 276 | ), |
| 260 | 277 | 'survey_message_variables' => array( |
| 261 | - 'survey_title' => __('The title of the survey.' , "survey-maker"), | |
| 262 | - 'survey_id' => __('The ID of the survey.' , "survey-maker"), | |
| 263 | - 'current_survey_author' => __('It will show the author of the current survey.' , "survey-maker"), | |
| 264 | - 'current_survey_author_email' => __('It will show the author email of the current survey.' , "survey-maker"), | |
| 265 | - 'current_survey_page_link' => __('Prints the webpage link where the current survey is posted.' , "survey-maker"), | |
| 266 | - 'questions_count' => __('The number of the questions of the given survey.' , "survey-maker"), | |
| 267 | - 'sections_count' => __('The number of the sections of the given survey.' , "survey-maker"), | |
| 268 | - 'submission_count' => __('Shows the submission count of a particular survey.' , "survey-maker"), | |
| 269 | - 'creation_date' => __('The creation date of the survey.' , "survey-maker"), | |
| 270 | - 'modified_date' => __('The last modified date of the survey.' , "survey-maker"), | |
| 278 | + 'survey_title' => __('The title of the survey.' , "survey-maker"), | |
| 279 | + 'survey_category_title' => __('The title of the survey category.' , "survey-maker"), | |
| 280 | + 'survey_id' => __('The ID of the survey.' , "survey-maker"), | |
| 281 | + 'current_survey_author' => __('It will show the author of the current survey.' , "survey-maker"), | |
| 282 | + 'current_survey_author_email' => __('It will show the author email of the current survey.' , "survey-maker"), | |
| 283 | + 'current_survey_author_nickname' => __('It will show the author nickname of the current survey.' , "survey-maker"), | |
| 284 | + 'current_survey_author_display_name' => __('It will show the author display name of the current survey.' , "survey-maker"), | |
| 285 | + 'current_survey_author_website_url' => __('It will show the author Website URL of the current survey.' , "survey-maker"), | |
| 286 | + 'current_survey_author_registered' => __('It will show the author registration date of the current survey.' , "survey-maker"), | |
| 287 | + 'current_survey_page_link' => __('Prints the webpage link where the current survey is posted.' , "survey-maker"), | |
| 288 | + 'current_survey_page_title' => __('Prints the webpage title where the current survey is posted.' , "survey-maker"), | |
| 289 | + 'questions_count' => __('The number of the questions of the given survey.' , "survey-maker"), | |
| 290 | + 'sections_count' => __('The number of the sections of the given survey.' , "survey-maker"), | |
| 291 | + 'submission_count' => __('Shows the submission count of a particular survey.' , "survey-maker"), | |
| 292 | + 'creation_date' => __('The creation date of the survey.' , "survey-maker"), | |
| 293 | + 'modified_date' => __('The last modified date of the survey.' , "survey-maker"), | |
| 271 | 294 | ) |
| 272 | 295 | ); |
| 273 | 296 | ?> |
| 274 | 297 | <div class="wrap" style="position:relative;"> |
| @@ -274,11 +297,11 @@ | ||
| 274 | 297 | <div class="wrap" style="position:relative;"> |
| 275 | 298 | <div class="container-fluid"> |
| 276 | 299 | <div class="ays-survey-heading-box"> |
| 277 | 300 | <div class="ays-survey-wordpress-user-manual-box"> |
| 278 | - <a href="https://ays-pro.com/wordpress-survey-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;"> | |
| 301 | + <a href="https://ays-pro.com/wordpress-survey-maker-user-manual#frag_general_settings" target="_blank" style="text-decoration: none;font-size: 13px;"> | |
| 279 | 302 | <i class="ays_fa ays_fa_file_text" ></i> |
| 280 | - <span style="margin-left: 3px;text-decoration: underline;">View Documentation</span> | |
| 303 | + <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__( "How to configure general settings", "survey-maker" ); ?></span> | |
| 281 | 304 | </a> |
| 282 | 305 | </div> |
| 283 | 306 | </div> |
| 284 | 307 | <h1 class="wp-heading-inline"> |
| @@ -608,8 +631,30 @@ | ||
| 608 | 631 | <div class="col-sm-8"> |
| 609 | 632 | <input type="checkbox" name="ays_survey_disable_submission_menu_notification" id="ays_survey_disable_submission_menu_notification" value="on" <?php echo $survey_disable_submission_menu_notification ? 'checked' : ''; ?>> |
| 610 | 633 | </div> |
| 611 | 634 | </div> |
| 635 | + <hr> | |
| 636 | + <div class="form-group row"> | |
| 637 | + <div class="col-sm-4"> | |
| 638 | + <label> | |
| 639 | + <?php echo esc_html__( "Menu badge style", 'survey-maker' ); ?> | |
| 640 | + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __('Choose the style of the notification badges displayed in the WordPress admin menu.','survey-maker') ); ?>"> | |
| 641 | + <i class="ays_fa ays_fa_info_circle"></i> | |
| 642 | + </a> | |
| 643 | + </label> | |
| 644 | + </div> | |
| 645 | + <div class="col-sm-8"> | |
| 646 | + <div class="ays-survey-menu-badge-style-options" style="display:flex; gap:10px; flex-wrap:wrap;"> | |
| 647 | + <?php foreach ( $survey_menu_badge_style_options as $style_key => $style_data ) : ?> | |
| 648 | + <label for="ays_survey_menu_badge_style_<?php echo esc_attr( $style_key ); ?>" style="display:flex; align-items:center; gap:12px; padding:14px 20px; border:1px solid #c3c4c7; border-radius:4px; background:#f6f7f7; cursor:pointer;"> | |
| 649 | + <input type="radio" name="ays_survey_menu_badge_style" id="ays_survey_menu_badge_style_<?php echo esc_attr( $style_key ); ?>" value="<?php echo esc_attr( $style_key ); ?>" <?php checked( $survey_menu_badge_style, $style_key ); ?>> | |
| 650 | + <span class="ays-survey-menu-badge" style="margin-left:0; background:<?php echo esc_attr( $style_data['background'] ); ?>;">2</span> | |
| 651 | + <span class="screen-reader-text"><?php echo esc_html( $style_data['label'] ); ?></span> | |
| 652 | + </label> | |
| 653 | + <?php endforeach; ?> | |
| 654 | + </div> | |
| 655 | + </div> | |
| 656 | + </div> | |
| 612 | 657 | </fieldset> <!-- Menu notifications --> |
| 613 | 658 | <hr> |
| 614 | 659 | <fieldset> |
| 615 | 660 | <legend> |
| @@ -918,8 +963,16 @@ | ||
| 918 | 963 | do_action( 'ays_sm_settings_page_integrations' ); |
| 919 | 964 | ?> |
| 920 | 965 | </div> |
| 921 | 966 | <div id="tab3" class="ays-survey-tab-content <?php echo ($ays_survey_tab == 'tab3') ? 'ays-survey-tab-content-active' : ''; ?>"> |
| 967 | + <div class="ays-survey-heading-box" style="margin: 0;"> | |
| 968 | + <div class="ays-survey-wordpress-user-manual-box"> | |
| 969 | + <a href="https://www.youtube.com/watch?v=ct7_edtpuAs" target="_blank" style="text-decoration: none;font-size: 13px;"> | |
| 970 | + <span><img src='<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/youtube-video-icon.svg' ></span> | |
| 971 | + <span style="margin-left: 3px; text-decoration: underline;"><?php echo esc_html__('How to use the Message variables', "survey-maker"); ?></span> | |
| 972 | + </a> | |
| 973 | + </div> | |
| 974 | + </div> | |
| 922 | 975 | <p class="ays-subtitle"> |
| 923 | 976 | <?php echo esc_html__('Message variables',"survey-maker")?> |
| 924 | 977 | <a class="ays_help" data-toggle="tooltip" data-html="true" title="<p><?php echo esc_attr__( 'You can copy these variables and paste them in the following options from the survey settings', "survey-maker" ); ?>:</p> |
| 925 | 978 | <ul class='ays_tooltop_ul'> |
| @@ -941,10 +994,8 @@ | ||
| 941 | 994 | <p style="text-indent:30px;margin:0;color:red;">* <?php echo esc_html__( "Reply To Name", "survey-maker" ); ?></p> |
| 942 | 995 | </div> |
| 943 | 996 | </blockquote> |
| 944 | 997 | <hr> |
| 945 | - <div style="display: flex;justify-content: center; align-items: center;margin-bottom: 15px;"><iframe width="560" height="315" class="ays-survey-iframe-video-link" src="https://www.youtube.com/embed/ct7_edtpuAs" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen loading="lazy"></iframe></div> | |
| 946 | - <hr> | |
| 947 | 998 | <div class="form-group row"> |
| 948 | 999 | <div class="col-sm-12"> |
| 949 | 1000 | <?php echo $actions->message_variables_section($message_variables); ?> |
| 950 | 1001 | </div> |
| @@ -1001,10 +1052,11 @@ | ||
| 1001 | 1052 | <div class="col-sm-9"> |
| 1002 | 1053 | <input type="text" id="ays_survey_redirecting_after_text" name="ays_survey_redirecting_after_text" class="ays-text-input" value='<?php echo esc_attr($redirecting_after_text); ?>'> |
| 1003 | 1054 | </div> |
| 1004 | 1055 | </div> |
| 1056 | + | |
| 1057 | + <?php if( 1 == 0 ): ?> | |
| 1005 | 1058 | <hr> |
| 1006 | - | |
| 1007 | 1059 | <div class="form-group row" style="margin:0px;"> |
| 1008 | 1060 | <div class="col-sm-12 ays-pro-features-v2-main-box ays-pro-features-v2-main-box-small"> |
| 1009 | 1061 | <div class="ays-pro-features-v2-small-buttons-box"> |
| 1010 | 1062 | <div class="ays-pro-features-v2-video-button"></div> |
| @@ -1161,15 +1213,16 @@ | ||
| 1161 | 1213 | </div> |
| 1162 | 1214 | <div class="col-sm-9"> |
| 1163 | 1215 | <input type="text" class="ays-text-input"> |
| 1164 | 1216 | <blockquote class="ays_warning" style="margin-top: 8px"> |
| 1165 | - <p style="margin:0;"><?php echo esc_html__( "Note: The text must include the <strong>%s</strong> sign (that is the name of the survey the user passed) in it. Otherwise, the default text will be displayed.", "survey-maker" ); ?></p> | |
| 1217 | + <p style="margin:0;"><?php echo esc_html__( "Note: The text must include the %s sign (that is the name of the survey the user passed) in it. Otherwise, the default text will be displayed.", "survey-maker" ); ?></p> | |
| 1166 | 1218 | </blockquote> |
| 1167 | 1219 | </div> |
| 1168 | 1220 | </div> |
| 1169 | 1221 | </div> |
| 1170 | 1222 | </div> |
| 1171 | - | |
| 1223 | + <?php endif; ?> | |
| 1224 | + | |
| 1172 | 1225 | <hr /> |
| 1173 | 1226 | <p class="ays-subtitle"> |
| 1174 | 1227 | <?php echo esc_html__('Buttons texts',"survey-maker")?> |
| 1175 | 1228 | <a class="ays_help" data-toggle="tooltip" data-html="true" title="<p style='margin-bottom:3px;'><?php echo esc_html__( 'If you make a change here, these words will not be translated!', "survey-maker" ); ?>"> |
| @@ -1335,8 +1388,9 @@ | ||
| 1335 | 1388 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __("Shows the logged-in user's First Name. If the user is not logged-in, the shortcode will be empty.","survey-maker") ); ?>"> |
| 1336 | 1389 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1337 | 1390 | </a> |
| 1338 | 1391 | </label> |
| 1392 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "Shows the logged-in user's First Name. If the user is not logged-in, the shortcode will be empty.", "survey-maker" ); ?></span> | |
| 1339 | 1393 | </div> |
| 1340 | 1394 | <div class="col-sm-8"> |
| 1341 | 1395 | <input type="text" id="ays_survey_user_first_name" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_user_first_name]'> |
| 1342 | 1396 | </div> |
| @@ -1353,8 +1407,9 @@ | ||
| 1353 | 1407 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __("Shows the logged-in user's last name. If the user is not logged-in, the shortcode will be empty.","survey-maker") ); ?>"> |
| 1354 | 1408 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1355 | 1409 | </a> |
| 1356 | 1410 | </label> |
| 1411 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "Shows the logged-in user's last name. If the user is not logged-in, the shortcode will be empty.", "survey-maker" ); ?></span> | |
| 1357 | 1412 | </div> |
| 1358 | 1413 | <div class="col-sm-8"> |
| 1359 | 1414 | <input type="text" id="ays_survey_user_last_name" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_user_last_name]'> |
| 1360 | 1415 | </div> |
| @@ -1371,8 +1426,9 @@ | ||
| 1371 | 1426 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __("Shows the logged-in user's nickname. If the user is not logged-in, the shortcode will be empty.","survey-maker") ); ?>"> |
| 1372 | 1427 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1373 | 1428 | </a> |
| 1374 | 1429 | </label> |
| 1430 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "Shows the logged-in user's nickname. If the user is not logged-in, the shortcode will be empty.", "survey-maker" ); ?></span> | |
| 1375 | 1431 | </div> |
| 1376 | 1432 | <div class="col-sm-8"> |
| 1377 | 1433 | <input type="text" id="ays_survey_user_nickname" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_user_nick_name]'> |
| 1378 | 1434 | </div> |
| @@ -1389,8 +1445,9 @@ | ||
| 1389 | 1445 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __("Shows the logged-in user's display name. If the user is not logged-in, the shortcode will be empty.","survey-maker") ); ?>"> |
| 1390 | 1446 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1391 | 1447 | </a> |
| 1392 | 1448 | </label> |
| 1449 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "Shows the logged-in user's display name. If the user is not logged-in, the shortcode will be empty.", "survey-maker" ); ?></span> | |
| 1393 | 1450 | </div> |
| 1394 | 1451 | <div class="col-sm-8"> |
| 1395 | 1452 | <input type="text" id="ays_survey_user_display_name" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_user_display_name]'> |
| 1396 | 1453 | </div> |
| @@ -1407,8 +1464,9 @@ | ||
| 1407 | 1464 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __("Shows the logged-in user's email. If the user is not logged-in, the shortcode will be empty.","survey-maker") ); ?>"> |
| 1408 | 1465 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1409 | 1466 | </a> |
| 1410 | 1467 | </label> |
| 1468 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "Shows the logged-in user's email. If the user is not logged-in, the shortcode will be empty.", "survey-maker" ); ?></span> | |
| 1411 | 1469 | </div> |
| 1412 | 1470 | <div class="col-sm-8"> |
| 1413 | 1471 | <input type="text" id="ays_survey_user_email" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_user_email]'> |
| 1414 | 1472 | </div> |
| @@ -1425,8 +1483,9 @@ | ||
| 1425 | 1483 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __("Shows user's role(s) when logged-in. In case the user is not logged-in, the field will be empty.","survey-maker") ); ?>"> |
| 1426 | 1484 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1427 | 1485 | </a> |
| 1428 | 1486 | </label> |
| 1487 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "Shows user's role(s) when logged-in. In case the user is not logged-in, the field will be empty.", "survey-maker" ); ?></span> | |
| 1429 | 1488 | </div> |
| 1430 | 1489 | <div class="col-sm-8"> |
| 1431 | 1490 | <input type="text" id="ays_survey_user_wordpress_roles" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_user_wordpress_roles]'> |
| 1432 | 1491 | </div> |
| @@ -1443,8 +1502,9 @@ | ||
| 1443 | 1502 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Copy the following shortcode and paste it in posts. Insert the Survey ID to receive the number of participants of the survey.',"survey-maker"); ?>"> |
| 1444 | 1503 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1445 | 1504 | </a> |
| 1446 | 1505 | </label> |
| 1506 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "Copy the following shortcode and paste it in posts. Insert the Survey ID to receive the number of participants of the survey.", "survey-maker" ); ?></span> | |
| 1447 | 1507 | </div> |
| 1448 | 1508 | <div class="col-sm-8"> |
| 1449 | 1509 | <input type="text" id="ays_survey_passed_users_count" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_passed_users_count id="Your_survey_ID"]'> |
| 1450 | 1510 | </div> |
| @@ -1461,8 +1521,9 @@ | ||
| 1461 | 1521 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __("You need to insert Your Survey ID in the shortcode. It will show the creation date of the particular survey. If there is no survey available/found with that particular Survey ID, the shortcode will be empty.","survey-maker") ); ?>"> |
| 1462 | 1522 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1463 | 1523 | </a> |
| 1464 | 1524 | </label> |
| 1525 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "You need to insert Your Survey ID in the shortcode. It will show the creation date of the particular survey.", "survey-maker" ); ?></span> | |
| 1465 | 1526 | </div> |
| 1466 | 1527 | <div class="col-sm-8"> |
| 1467 | 1528 | <input type="text" id="ays_survey_show_creation_date" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_creation_date id="Your_Survey_ID"]'> |
| 1468 | 1529 | </div> |
| @@ -1479,8 +1540,9 @@ | ||
| 1479 | 1540 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __("You need to insert Your Survey ID in the shortcode. It will show the number of the sections of the given survey. If there is no survey available/found with that particular Survey ID, the shortcode will be empty.","survey-maker") ); ?>"> |
| 1480 | 1541 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1481 | 1542 | </a> |
| 1482 | 1543 | </label> |
| 1544 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "You need to insert Your Survey ID in the shortcode. It will show the number of the sections of the given survey.", "survey-maker" ); ?></span> | |
| 1483 | 1545 | </div> |
| 1484 | 1546 | <div class="col-sm-8"> |
| 1485 | 1547 | <input type="text" id="ays_survey_show_sections_count" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_sections_count id="Your_Survey_ID"]'> |
| 1486 | 1548 | </div> |
| @@ -1497,8 +1559,9 @@ | ||
| 1497 | 1559 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __("You need to insert Your Survey ID in the shortcode. It will show the number of the questions of the given survey. If there is no survey available/found with that particular Survey ID, the shortcode will be empty.","survey-maker") ); ?>"> |
| 1498 | 1560 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1499 | 1561 | </a> |
| 1500 | 1562 | </label> |
| 1563 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "You need to insert Your Survey ID in the shortcode. It will show the number of the questions of the given survey.", "survey-maker" ); ?></span> | |
| 1501 | 1564 | </div> |
| 1502 | 1565 | <div class="col-sm-8"> |
| 1503 | 1566 | <input type="text" id="ays_survey_show_questions_count" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_questions_count id="Your_Survey_ID"]'> |
| 1504 | 1567 | </div> |
| @@ -1515,8 +1578,9 @@ | ||
| 1515 | 1578 | <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr( __("Put this shortcode on a page to show the total count of survey categories.","survey-maker") ); ?>"> |
| 1516 | 1579 | <i class="ays_fa ays_fa_info_circle"></i> |
| 1517 | 1580 | </a> |
| 1518 | 1581 | </label> |
| 1582 | + <span class="ays_survey_small_hint_text"><?php echo esc_html__( "Put this shortcode on a page to show the total count of survey categories.", "survey-maker" ); ?></span> | |
| 1519 | 1583 | </div> |
| 1520 | 1584 | <div class="col-sm-8"> |
| 1521 | 1585 | <input type="text" id="ays_survey_categories_count" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_survey_categories_count]'> |
| 1522 | 1586 | </div> |
| @@ -1909,9 +1973,9 @@ | ||
| 1909 | 1973 | </div> |
| 1910 | 1974 | </div> |
| 1911 | 1975 | </div> |
| 1912 | 1976 | <hr/> |
| 1913 | - <div style="position:sticky;padding:15px 0px;bottom:0;" class="ays-survey-save-changes-settings-page-mobile"> | |
| 1977 | + <div style="position:sticky;padding:15px 0px;bottom:0;z-index:999999;" class="ays-survey-save-changes-settings-page-mobile"> | |
| 1914 | 1978 | <?php |
| 1915 | 1979 | wp_nonce_field('settings_action', 'settings_action'); |
| 1916 | 1980 | // $other_attributes = array(); |
| 1917 | 1981 | |
| @@ -1970,5 +2034,5 @@ | ||
| 1970 | 2034 | <div class="ays-modal-footer" style="display:none"> |
| 1971 | 2035 | </div> |
| 1972 | 2036 | </div> |
| 1973 | 2037 | </div> |
| 1974 | -<!-- Pro features modal end --> | |
| 2038 | +<!-- Pro features modal end --> | |