PluginProbe
Survey Maker by AYS / 5.2.2.0
Survey Maker by AYS v5.2.2.0
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 / popup / survey-maker-popups-display.php

survey-maker-popups-display.php in Survey Maker by AYS 5.2.2.0, at admin/partials/popup/survey-maker-popups-display.php

78 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $survey_max_id = Survey_Maker_Admin::get_max_id('popup_surveys');
3 $plus_icon_svg = "<span class=''><img src='". SURVEY_MAKER_ADMIN_URL ."/images/icons/plus-icon.svg'></span>";
4 $youtube_icon_svg = "<span ><img src='". SURVEY_MAKER_ADMIN_URL ."/images/icons/youtube-video-icon.svg' ></span>";
5
6 $action = isset( $_GET["action"] ) ? sanitize_key( $_GET["action"] ) : "";
7 $id = isset( $_GET["id"] ) ? absint( sanitize_key( $_GET["id"] ) ) : null;
8
9 if($action == 'unpublish' || $action == 'publish'){
10 // In our file that handles the request, verify the nonce.
11 $nonce = esc_attr( $_REQUEST["_wpnonce"] );
12
13 if ( ! wp_verify_nonce( $nonce, $this->plugin_name . "-" . $action . "-popup-survey" ) ) {
14 die( "Go get a life script kiddies" );
15 }
16
17 $this->popup_surveys_obj->publish_unpublish_popup_survey($id,$action);
18 }
19 ?>
20 <div class="wrap">
21 <div class="ays-survey-heading-box">
22 <div class="ays-survey-wordpress-user-manual-box">
23 <a href="https://ays-pro.com/wordpress-survey-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
24 <i class="ays_fa ays_fa_file_text" ></i>
25 <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__( "View Documentation", "survey-maker" ); ?></span>
26 </a>
27
28 </div>
29 </div>
30 <h1 class="wp-heading-inline">
31 <?php
32 echo esc_html__( get_admin_page_title(), "survey-maker" );
33 ?>
34 </h1>
35 <?php do_action('ays_survey_sale_banner'); ?>
36 <div class="ays-survey-maker-add-new-button-box">
37 <?php
38 echo sprintf( '<a href="?page=%s&action=%s" class="page-title-action button-primary ays-survey-add-new-button-new-design"> %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()));
39 ?>
40 </div>
41
42 <div id="poststuff">
43 <div id="post-body" class="metabox-holder">
44 <div id="post-body-content" style="margin-bottom: 10px;">
45 <div class="meta-box-sortables ui-sortable">
46 <?php
47 $this->popup_surveys_obj->views();
48 ?>
49 <form method="post">
50 <?php
51 $this->popup_surveys_obj->prepare_items();
52 $this->popup_surveys_obj->display();
53 ?>
54 </form>
55 </div>
56 </div>
57 </div>
58 <br class="clear">
59 <div class="ays-survey-maker-add-new-button-box">
60 <?php echo sprintf( '<a href="?page=%s&action=%s" class="page-title-action button-primary ays-survey-add-new-button-new-design"> %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()));?>
61 </div>
62 <?php if($survey_max_id <= 0): ?>
63 <div class="ays-survey-create-survey-video-box" style="margin: auto;">
64 <div class="ays-survey-youtube-placeholder" data-video-id="gM6SQdOw3fA">
65 <img src="<?php echo esc_url(SURVEY_MAKER_ADMIN_URL .'/images/youtube/create-popup-survey-video-screenshot.webp'); ?>" width="560" height="315">
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/embed/gM6SQdOw3fA" target="_blank" title="YouTube video player" >How to create Popup Survey in Under One Minute</a>
73 </div>
74 </div>
75 <?php endif; ?>
76 </div>
77 </div>
78