function __construct()
 {
     $this->headline = EZP_CS_Utility::__("Coming soon");
     $this->description = EZP_CS_Utility::__("Our exciting new website is coming soon! Check back later.");
     $this->disclaimer = EZP_CS_Utility::__("We won't spam you or sell your email address. Pinky swear.");
     $this->footer = EZP_CS_Utility::__("(C)2014 My Company LLC");
     $this->email_placeholder_text = EZP_CS_Utility::__("Enter email");
     $this->name_placeholder_text = EZP_CS_Utility::__("Enter name");
     $this->email_button_text = EZP_CS_Utility::__("Subscribe");
     $this->thank_you_headline = EZP_CS_Utility::__("Thank you!");
     $this->thank_you_description = EZP_CS_Utility::__("You'll hear from us when we launch.");
     $this->title = EZP_CS_Utility::__("Coming soon");
     $this->countdown_due_date = "";
     parent::__construct();
 }
 public static function add_new_subscriber($friendly_name, $email_address)
 {
     $error_text = null;
     $friendly_name = sanitize_text_field($friendly_name);
     $email_address = sanitize_text_field($email_address);
     if (strlen($friendly_name) > 255) {
         $error_text = EZP_CS_Utility::__('Name is too long') . '.';
     }
     if (!is_email($email_address) || strlen($email_address) > 255) {
         $error_text = EZP_CS_Utility::__('Email address is not valid') . '.';
     }
     // Note: If error with entity, silently let it go. No sense telling user, just admin.
     if ($error_text == null) {
         $contact = new EZP_Contact_Entity();
         $contact->friendly_name = $friendly_name;
         if ($contact->save()) {
             $email = new EZP_Email_Entity();
             $email->email_address = $email_address;
             $email->contact_id = $contact->id;
             if ($email->save()) {
                 $cse = new EZP_CS_Subscriber_Entity();
                 $cse->contact_id = $contact->id;
                 if (!$cse->save()) {
                     EZP_CS_Utility::debug('add_new_subscriber:Error saving subscriber entity to deleting email and contact');
                     $email->delete();
                     $contact->delete();
                 }
             } else {
                 EZP_CS_Utility::debug('add_new_subscriber:Error saving email entity so deleting contact');
                 $contact->delete();
             }
         } else {
             EZP_CS_Utility::debug('add_new_subscriber:Error saving contact entity');
         }
     }
     return $error_text;
 }
                </td>
            </tr>   
            <tr>
                <th scope="row">
<?php 
echo EZP_CS_Utility::_e("Height");
?>
                </th>
                <td>
                    <div class="compound-setting">                            
                        <input class='narrow-input' name="email_button_height" type="text" value="<?php 
echo $display->email_button_height;
?>
" />
                        <span class="description"><?php 
echo '*' . EZP_CS_Utility::__('Append px or %');
?>
</span>
                    </div>
                </td>
            </tr>  
            <tr>
<?php 
echo EZP_CS_Display_Entity::display_font_field_row("Font", 'email_button', $display);
?>
            </tr>
            <tr>
                <th scope="row">
<?php 
echo EZP_CS_Utility::_e("Color");
?>
echo $controls_display;
?>
; text-align:center;">
                    <button id="btn-prev" <?php 
echo $prev_disabled;
?>
 name="submit" type="submit" value="previous" onclick="window.location = '<?php 
echo $prev_url;
?>
';
                            return false;"><span style='float:left; margin-top:1px' class="ui-icon ui-icon-triangle-1-w"></span><?php 
EZP_CS_Utility::_e("Prev");
?>
</button>
                    <span ><?php 
echo EZP_CS_Utility::__('Page') . ' ' . ($current_page_idx + 1) . ' ' . EZP_CS_Utility::__('of') . ' ' . $num_pages;
?>
</span>
                    <button id="btn-next" <?php 
echo $next_disabled;
?>
 name="submit" type="submit" value="next" onclick="window.location = '<?php 
echo $next_url;
?>
';
                            return false;"><?php 
EZP_CS_Utility::_e("Next");
?>
<span style='float:right; margin-top:1px' class="ui-icon ui-icon-triangle-1-e"></span></button>

                </div> 
 function __construct()
 {
     $this->name = EZP_CS_Utility::__("Main Email");
     parent::__construct(self::$TABLE_NAME);
 }
                        <tr>
                            <td style="padding-left:0; padding-bottom:0;" colspan="2">
                                <small>Advanced Access Control available in <a style="color:red" href="http://easypiewp.com" target="_blank">Coming Soon Page Elite</a></small>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>    

<?php 
submit_button();
?>
            <a href="http://easypiewp.com/easy-pie-coming-soon-faq" target="_blank"><?php 
EZP_CS_Utility::_e('FAQ');
?>
</a>
            |
            <a href="http://wordpress.org/support/view/plugin-reviews/easy-pie-coming-soon" target="_blank"><?php 
echo EZP_CS_Utility::__('Rate');
?>
</a>
            |            
            <a href="http://easypiewp.com/about/" target="_blank"><?php 
EZP_CS_Utility::_e('Contact');
?>
</a>
        </form>
    </div>
</div>

                    <?php 
echo EZP_CS_Utility::_e("Text");
?>
                </th>
                <td>
                    <div class="compound-setting">                            
                        <textarea rows="5" cols="67" name="thank_you_description" type="text"><?php 
EZP_CS_Utility::_he($content->thank_you_description);
?>
</textarea>
                    </div>        
                </td>
            </tr>
        </table>
        <div style="margin-top:17px"><span class="description"><?php 
echo '*' . EZP_CS_Utility::__('Section relevant only if email collection is enabled in') . ' <a href="' . admin_url() . 'admin.php?page=' . EZP_CS_Constants::$SETTINGS_SUBMENU_SLUG . '">' . self::__('settings') . '</a>';
?>
</span></div>
    </div></div>

<div class="postbox" >
    <div class="inside" >
        <h3 ><?php 
EZP_CS_Utility::_e("Countdown");
?>
</h3>
        <table class="form-table"> 
            <tr>
                <th scope="row">
                    <?php 
echo EZP_CS_Utility::_e("Due Date");
 private static function render_font_options($current_font_name_value)
 {
     EZP_CS_Utility::render_option("arial", EZP_CS_Utility::__("Arial"), $current_font_name_value);
     EZP_CS_Utility::render_option("courier-new", EZP_CS_Utility::__("Courier New"), $current_font_name_value);
     EZP_CS_Utility::render_option("comic-sans-ms", EZP_CS_Utility::__("Comic Sans MS"), $current_font_name_value);
     EZP_CS_Utility::render_option("georgia", EZP_CS_Utility::__("Georgia"), $current_font_name_value);
     EZP_CS_Utility::render_option("impact", EZP_CS_Utility::__("Impact"), $current_font_name_value);
     EZP_CS_Utility::render_option("times-new-roman", EZP_CS_Utility::__("Times New Roman"), $current_font_name_value);
     EZP_CS_Utility::render_option("verdana", EZP_CS_Utility::__("Verdana"), $current_font_name_value);
 }