# survey-maker/5.2.2.8/admin/partials/popup/survey-maker-popups-display.php

Survey Maker by AYS, version 5.2.2.8. 71 lines.

- Page: https://pluginprobe.com/plugins/survey-maker/5.2.2.8/code/admin/partials/popup/survey-maker-popups-display.php
- Raw: https://pluginprobe.com/plugins/survey-maker/5.2.2.8/raw/admin/partials/popup/survey-maker-popups-display.php
- Modified: 2026-06-01T07:34:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/survey-maker/5.2.2.8/code/admin/partials/popup/survey-maker-popups-display.php#L10-L20`.

```php
<?php
$plus_icon_svg = "<span class=''><img src='". SURVEY_MAKER_ADMIN_URL ."/images/icons/plus-icon.svg'></span>";
$youtube_icon_svg = "<span><img src='". esc_attr(SURVEY_MAKER_ADMIN_URL) ."/images/icons/youtube-video-icon.svg' ></span>";

$action = isset( $_GET["action"] ) ? sanitize_key( $_GET["action"] ) : "";
$id     = isset( $_GET["id"] ) ? absint( sanitize_key( $_GET["id"] ) ) : null;

if($action == 'unpublish' || $action == 'publish'){
    // In our file that handles the request, verify the nonce.
    $nonce = esc_attr( $_REQUEST["_wpnonce"] );

    if ( ! wp_verify_nonce( $nonce, $this->plugin_name . "-" . $action . "-popup-survey" ) ) {
        die( "Go get a life script kiddies" );
    }

    $this->popup_surveys_obj->publish_unpublish_popup_survey($id,$action);
}
?>
<div class="wrap">
    <div class="ays-survey-heading-box">
        <div class="ays-survey-wordpress-user-manual-box">
            <a href="https://www.youtube.com/watch?v=gM6SQdOw3fA" target="_blank" style="text-decoration: none;font-size: 13px;">
                <?php echo wp_kses($youtube_icon_svg, Survey_Maker_Data::get_allowed_tags_for_loader()); ?>
                <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__( "How to use popup surveys", "survey-maker" ); ?></span>
            </a>
            <a href="https://ays-pro.com/blog/how-to-make-a-survey-popup-for-your-wordpress" target="_blank" style="text-decoration: none;font-size: 13px;">
                <i class="ays_fa ays_fa_file_text" ></i> 
                <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__( "View Documentation", "survey-maker" ); ?></span>
            </a>
            <a href="https://ays-demo.com/wordpress-popup-survey/" target="_blank" style="text-decoration: none;font-size: 13px;">
                <i class="ays_fa ays_fa_external_link" ></i>
                <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__( "Demo", "survey-maker" ); ?></span>
            </a>
        </div>
    </div>
    <h1 class="wp-heading-inline">
        <?php
        echo esc_html__( get_admin_page_title(), "survey-maker" );
        ?>
    </h1>
    <div class="ays-survey-popup-survey-description ays_survey_small_hint_text ays_survey_small_hint_text_for_menu_items" style="max-width: 760px;margin: 0 0 14px;">
        <p style="margin: 0"><?php echo esc_html__( "Create and manage popup surveys that display a selected survey in a popup window on your website.", "survey-maker" ); ?></p>
        <p style="margin: 0;"><?php echo esc_html__( "Set the popup trigger, display rules, size, position, and behavior for each survey popup.", "survey-maker" ); ?></p>
    </div>
    <?php do_action('ays_survey_sale_banner'); ?>
    <div class="ays-survey-maker-add-new-button-box">
        <?php 
            echo sprintf( '<a href="?page=%s&action=%s" class="page-title-action button-primary ays-survey-add-new-button-new-design" style="display: inline-block; 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()));
        ?>
    </div>
    
    <div id="poststuff">
        <div id="post-body" class="metabox-holder">
            <div id="post-body-content" style="margin-bottom: 10px;">
                <div class="meta-box-sortables ui-sortable">
                    <?php
                        $this->popup_surveys_obj->views();
                    ?>
                    <form method="post">
                        <?php
                            $this->popup_surveys_obj->prepare_items();
                            $this->popup_surveys_obj->display();
                        ?>
                    </form>
                </div>
            </div>
        </div>
        <br class="clear">
    </div>
</div>

```
