/**
         * The settings page for this plugin
         * @since 1.0.1
         *
         * @access public
         */
        public function email_to_download_settings()
        {
            $options = $this->_options->get_options();
            $pages = get_pages();
            ?>
            <div class="wrap">
                <h2><?php 
            _e('Email to Download Settings', 'email-to-download');
            ?>
</h2>
                    <div id="poststuff">
                        <div id="post-body" class="metabox-holder columns-2">
                            <div id="post-body-content">
                                <form action="<?php 
            echo admin_url('?action=ed_settings_save&noheader=true');
            ?>
" method="post">
                                    <?php 
            wp_nonce_field('ed_save_settings_data', 'ed_save_settings_nonce');
            ?>
                                    <div class="postbox">
                                        <h3 class="hndle"><?php 
            _e('General Settings', 'email-to-download');
            ?>
</h3>
                                        <div class="inside">
                                            <table class="form-table">
                                                
                                                <?php 
            $form = array('wrap' => 'tr', 'elements' => array(array('label' => __('Download link will expire at:', 'email-to-download'), 'type' => 'text', 'name' => 'ed_settings[dw_expire]', 'default' => $this->_options->get_option('dw_expire'), 'value' => $this->_options->get_option('dw_expire'), 'placeholder' => false, 'options' => array(), 'attr' => 'size="5"'), array('label' => __('Select a page for expire message:', 'email-to-download'), 'type' => 'post_type', 'name' => 'ed_settings[dw_page]', 'default' => $this->_options->get_option('dw_page'), 'value' => $this->_options->get_option('dw_page'), 'placeholder' => false, 'options' => array('post_type' => 'page'), 'attr' => ''), array('label' => __('Notification email Subject:', 'email-to-download'), 'type' => 'text', 'name' => 'ed_settings[notify_email_subject]', 'default' => $this->_options->get_option('notify_email_subject'), 'value' => $this->_options->get_option('notify_email_subject'), 'placeholder' => false, 'options' => array(), 'attr' => 'size="50"'), array('label' => __('Notification email content:', 'email-to-download'), 'type' => 'textarea', 'name' => 'ed_settings[email_content]', 'default' => $this->_options->get_option('email_content'), 'value' => $this->_options->get_option('email_content'), 'placeholder' => false, 'options' => array(), 'attr' => 'cols="70" rows="10"')));
            echo NP_FORM_HELPER::build_form($form);
            ?>
                                                
                                                <tr>
                                                    <td colspan="2">
                                                        <input type="submit" name="ed_settings[submit]" class="button button-primary" value="<?php 
            _e('Save Settings', 'email-to-download');
            ?>
" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            
                            <!-- This is sidebar -->
                            
                            <?php 
            //echo ed_get_sidebar();
            ?>
                            
                            <!-- End of sidebar -->
                            
                        </div>
                    </div>
                
            </div>
            <?php 
        }
        /**
         * Add ShortCode builder button in editor
         *
         * @since 1.0.1
         */
        public function np_shortcode_builder_button()
        {
            ?>
            <div id="<?php 
            echo $this->_uniqueID;
            ?>
" class="np_sc_builder_content">
                <div class="np-selector">
                    <h3>Select a ShortCode</h3>
                    <hr>
                    <select class="np-select">
                        <option value="">Select a shortcode</option>
                        <?php 
            foreach ($this->_builder['codes'] as $key => $val) {
                ?>
                        <option value="<?php 
                echo $key;
                ?>
"><?php 
                echo $val;
                ?>
</option>
                        <?php 
            }
            ?>
                    </select>
                    <br><br>
                    <div class="np_sc_cb">
                        <?php 
            foreach ($this->_builder['atts'] as $key => $val) {
                ?>
                        <table cellpadding="5" cellspacing="5" id="<?php 
                echo $key;
                ?>
" class="np_sc_builder_tbl">
                            <?php 
                foreach ($this->_builder['atts'][$key] as $elem) {
                    echo NP_FORM_HELPER::element('tr', $elem['name'], $elem['type'], $elem['term'], $elem['default'], $elem['default'], $elem['default'], isset($elem['options']) ? $elem['options'] : array());
                }
                ?>
                        </table>
                        <?php 
            }
            ?>
                    </div>
                    <input type="button" class="button button-primary insert_editor" value="Insert Into Editor">
                </div>
            </div>
            <a data-src="<?php 
            echo $this->_uniqueID;
            ?>
" href="javascript:;" class="button np-shortcode-builder-button" title="<?php 
            echo $this->_builder['label'];
            ?>
"><span class="<?php 
            echo $this->_builder['icon'];
            ?>
"></span> <?php 
            echo $this->_builder['label'];
            ?>
</a>
            <?php 
        }