<div class="wrap clearfix" id="sendgrid-statistics-page"> <div class="pull-left sendgrid-statistics-header"> <div id="icon-sendgrid" class="icon32"><br></div> <h2 id="sendgrid-wordpress-statistics-header" class="sendgrid-statistics-header-toggle">SendGrid Wordpress Statistics</h2> <h2 id="sendgrid-general-statistics-header" class="sendgrid-statistics-header-toggle" style="display: none;">SendGrid General Statistics</h2> <a href="https://app.sendgrid.com/statistics" target="_blank" class="more-statistics">SendGrid Portal</a> </div> <div class="pull-right sendgrid-statistics-change-type"> <select id="sendgrid-statistics-change-type"> <option value="general">General statistics</option> <option value="wordpress" selected="selected">Wordpress statistics</option> <?php $categories = Sendgrid_Tools::get_categories_array(); ?> <?php if (is_array($categories) and count($categories) > 0) { ?> <optgroup label="Categories:"> <?php foreach ($categories as $cateogry) { ?> <option value="<?php echo $cateogry; ?> "><?php echo $cateogry; ?> </option> <?php } ?>