"> <?php //Non standard indentation needed for plain-text display echo esc_html(self::display()); ?> </textarea> </div> <p class="submit"> <input type="submit" class="button-secondary" value="<?php _e('Download Sytem Info as Text File', 'send-system-info'); ?> " /> </p> </form> <h3 class="ssi-email-title"><?php _e('Send via Email', 'send-system-info'); ?> </h3> <?php Send_System_Info_Email::email_form_section(); ?> <h3 class="ssi-remote-title"><?php _e('Remote Viewing', 'send-system-info'); ?> </h3> <?php Send_System_Info_Viewer::remote_viewing_section(); ?> </div> </div>
/** * Render plugin page title, information and info textarea * * @since 1.0 * * @return void */ static function render_info() { $email_sent = Send_System_Info_Email::send_email(); if ($email_sent && 'sent' == $email_sent) { printf('<div id="message" class="updated"><p>%s</p></div>', __('Email sent successfully.', 'send-system-info')); } elseif ($email_sent && 'error' == $email_sent) { printf('<div id="message" class="error"><p>%s</p></div>', __('Error sending Email.', 'send-system-info')); } include SSI_VIEWS_DIR . 'send-system-info.php'; }