PluginProbe
Survey Maker by AYS / 5.2.2.7
Survey Maker by AYS v5.2.2.7
5.2.4.1 5.2.4.0 5.2.3.9 5.2.3.8 5.2.3.7 5.2.3.6 5.2.3.5 5.2.3.4 5.2.3.3 5.2.3.2 5.2.3.1 5.2.3.0 5.2.2.9 5.2.2.8 5.2.2.7 5.2.2.6 5.2.2.5 5.2.2.4 5.2.2.3 5.2.2.2 5.2.2.1 5.2.2.0 5.2.1.9 5.2.1.8 5.2.0.8 All 154 releases
survey-maker / admin / partials / surveys / survey-maker-surveys-display.php

survey-maker-surveys-display.php in Survey Maker by AYS 5.2.2.7, at admin/partials/surveys/survey-maker-surveys-display.php

78 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $action = ( isset($_GET['action']) ) ? sanitize_text_field( $_GET['action'] ) : '';
3 $id = ( isset($_GET['survey']) ) ? sanitize_text_field( $_GET['survey'] ) : null;
4
5 $survey_max_id = Survey_Maker_Admin::get_max_id('surveys');
6
7 $plus_icon_svg = "<span class=''><img src='". esc_attr(SURVEY_MAKER_ADMIN_URL) ."/images/icons/plus-icon.svg'></span>";
8 $youtube_icon_svg = "<span ><img src='". esc_attr(SURVEY_MAKER_ADMIN_URL) ."/images/icons/youtube-video-icon.svg' ></span>";
9 ?>
10
11 <div class="wrap ays_surveys_list_table">
12 <div class="ays-survey-heading-box">
13 <div class="ays-survey-wordpress-user-manual-box">
14 <a href="https://www.youtube.com/watch?v=dxYz-gNrrrY" target="_blank" style="text-decoration: none;font-size: 13px;">
15 <span><img src='<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/youtube-video-icon.svg' ></span>
16 <span style="margin-left: 3px; text-decoration: underline;"><?php echo esc_html__('60 min Video Guide', "survey-maker"); ?></span>
17 </a>
18 <a href="https://ays-pro.com/wordpress-survey-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
19 <i class="ays_fa ays_fa_file_text" ></i>
20 <span style="margin-left: 3px;text-decoration: underline;">View Documentation</span>
21 </a>
22 </div>
23 </div>
24 <h1 class="wp-heading-inline">
25 <?php
26 echo esc_html__( get_admin_page_title(), "survey-maker" );
27 ?>
28 </h1>
29 <?php do_action('ays_survey_sale_banner'); ?>
30 <div class="ays-survey-maker-add-new-button-box">
31 <?php
32 echo sprintf( '<a href="?page=%s&action=%s" class="page-title-action button-primary page-title-action-surveys-page ays-survey-add-new-button-page-title-action ays-survey-add-new-button-new-design" style="margin-left: 0 !important;"> %s ' . esc_html(__('Add New', "survey-maker")) . '</a>', esc_attr( $_REQUEST['page'] ), 'add', wp_kses($plus_icon_svg, Survey_Maker_Data::get_allowed_tags_for_loader()));
33 ?>
34 </div>
35 <div id="poststuff" style="padding-top: 0;">
36 <div id="post-body" class="metabox-holder">
37 <div id="post-body-content" style="margin-bottom: 10px;">
38 <div class="meta-box-sortables ui-sortable">
39 <?php
40 $this->surveys_obj->views();
41 ?>
42 <form method="post">
43 <?php
44 $this->surveys_obj->prepare_items();
45 $search = __( "Search", "survey-maker" );
46 $this->surveys_obj->search_box($search, $this->plugin_name);
47 $this->surveys_obj->display();
48
49 ?>
50
51 </form>
52 </div>
53 </div>
54 </div>
55
56 <br class="clear">
57 <?php if($survey_max_id <= 3): ?>
58 <div class="ays-survey-create-survey-video-box" style="margin: auto;">
59 <div class="ays-survey-create-survey-title">
60 <h4><?php echo esc_html__( "Create Your First Survey in Under One Minute", "survey-maker" ); ?></h4>
61 </div>
62 <div class="ays-survey-create-survey-youtube-video">
63 <div class="ays-survey-youtube-placeholder" data-video-id="vHW1f7xtAJU">
64 <img src="<?php echo esc_url(SURVEY_MAKER_ADMIN_URL .'/images/youtube/create-survey-video-screenshot.webp'); ?>" width="560" height="315">
65 </div>
66 </div>
67 </div>
68 <?php else: ?>
69 <div class="ays-survey-create-survey-video-box" style="margin: auto;height: 83px;">
70 <div class="ays-survey-create-survey-youtube-video">
71 <?php echo wp_kses($youtube_icon_svg, Survey_Maker_Data::get_allowed_tags_for_loader()); ?>
72 <a href="https://www.youtube.com/watch?v=vHW1f7xtAJU" target="_blank" title="YouTube video player" >How to create Survey in Under One Minute</a>
73 </div>
74 </div>
75 <?php endif ?>
76 </div>
77 </div>
78