/**
  * Class Constructor
  *
  * @since 1.0.1
  */
 public function __construct($shortcodes, $builder)
 {
     $this->_shortcodes = $shortcodes;
     $this->_builder = $builder;
     $this->_uniqueID = NP_HELPER::get_unique_number('np_sc_builder_');
     if ($this->_builder['builder']) {
         add_action('media_buttons', array(&$this, 'np_shortcode_builder_button'));
         add_action('admin_enqueue_scripts', array(&$this, 'register_builder_content'));
     }
 }
        /**
         * Show the subscribers list
         * @since 1.0.0
         *
         * @return void
         */
        public function email_to_download_leads()
        {
            $sql = "SELECT email, primary_time, is_subscribed FROM {$this->_tbl_name} GROUP BY(email)";
            $emails = $this->_db->get_results($sql, OBJECT);
            ?>
            <div class="wrap">
                <h2><?php 
            _e('View Leads', 'email-to-download');
            ?>
</h2>
                <div id="poststuff">
                        <div id="post-body" class="metabox-holder columns-2">
                            <div id="post-body-content">
                                <table class="wp-list-table widefat">
                                    <thead>
                                        <tr>
                                            <th><?php 
            _e('Email', 'email-to-download');
            ?>
</th>
                                            <th><?php 
            _e('Date', 'email-to-download');
            ?>
</th>
                                            <th><?php 
            _e('Subscribed', 'email-to-download');
            ?>
</th>
                                        </tr>
                                    </thead>
                                    <tfoot>
                                        <tr>
                                            <th><?php 
            _e('Email', 'email-to-download');
            ?>
</th>
                                            <th><?php 
            _e('Date', 'email-to-download');
            ?>
</th>
                                            <th><?php 
            _e('Subscribed', 'email-to-download');
            ?>
</th>
                                        </tr>
                                    </tfoot>
                                    <tbody>
                                        <?php 
            $i = 0;
            foreach ($emails as $email) {
                $i++;
                ?>
                                        <tr class="<?php 
                echo $i % 2 == 0 ? 'alternate' : '';
                ?>
">
                                            <td><?php 
                echo $email->email;
                ?>
</td>
                                            <td><?php 
                echo NP_HELPER::get_date_time_value(strtotime($email->primary_time), true, true);
                ?>
</td>
                                            <td><?php 
                echo $email->is_subscribed;
                ?>
</td>
                                        </tr>
                                        <?php 
            }
            ?>
                                    </tbody>
                                </table>
                            </div>
                            <?php 
            //echo ed_get_sidebar();
            ?>
                        </div>
                    </div>
            </div>
            <?php 
        }