| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
include dirname(__FILE__) . '/includes/config.inc.php'; |
| 6 |
?> |
| 7 |
<div class="hh-wrapper"> |
| 8 |
<div class="hh-categories"> |
| 9 |
<?php |
| 10 |
$http_headers_tmp = array(); |
| 11 |
foreach ($http_headers_headers as $http_headers_item) |
| 12 |
{ |
| 13 |
if (!isset($http_headers_tmp[$http_headers_item[2]])) |
| 14 |
{ |
| 15 |
$http_headers_tmp[$http_headers_item[2]] = array('total' => 0, 'on' => 0); |
| 16 |
} |
| 17 |
$http_headers_tmp[$http_headers_item[2]]['total'] += 1; |
| 18 |
if (get_option($http_headers_item[1]) == 1) |
| 19 |
{ |
| 20 |
$http_headers_tmp[$http_headers_item[2]]['on'] += 1; |
| 21 |
} |
| 22 |
} |
| 23 |
foreach ($http_headers_categories as $http_headers_key => $http_headers_val) |
| 24 |
{ |
| 25 |
?> |
| 26 |
<a href="<?php echo esc_url(get_admin_url()); ?>options-general.php?page=http-headers&category=<?php echo esc_attr($http_headers_key); ?>" class="hh-category"> |
| 27 |
<i></i> |
| 28 |
<span><?php echo esc_html($http_headers_key[0]); ?></span> |
| 29 |
<strong><?php echo esc_html($http_headers_val); ?></strong><?php |
| 30 |
if (isset($http_headers_tmp[$http_headers_key])) |
| 31 |
{ |
| 32 |
printf('(%u/%u)', esc_html($http_headers_tmp[$http_headers_key]['on']), esc_html($http_headers_tmp[$http_headers_key]['total'])); |
| 33 |
} |
| 34 |
?></a> |
| 35 |
<?php |
| 36 |
} |
| 37 |
?> |
| 38 |
</div> |
| 39 |
|
| 40 |
<div class="hh-sidebar"> |
| 41 |
<div class="hh-sidebar-inner"> |
| 42 |
<h3><?php esc_html_e('Rate us', 'http-headers'); ?></h3> |
| 43 |
<p><?php esc_html_e('Tell us what you think about this plugin', 'http-headers'); ?> <a href="https://wordpress.org/support/plugin/http-headers/reviews/?rate=5#new-post"><?php esc_html_e('writing a review', 'http-headers'); ?></a>.</p> |
| 44 |
<h3><?php esc_html_e('Contribution', 'http-headers'); ?></h3> |
| 45 |
<p><?php esc_html_e('Help us to continue developing this plugin with a small donation.', 'http-headers'); ?></p> |
| 46 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank"> |
| 47 |
<input type="hidden" name="cmd" value="_xclick"> |
| 48 |
<input type="hidden" name="business" value="biggie@abv.bg"> |
| 49 |
<input type="hidden" name="item_name" value="HTTP Headers Donation"> |
| 50 |
<input type="hidden" name="no_shipping" value="1"> |
| 51 |
<input type="hidden" name="lc" value="US"> |
| 52 |
<input type="hidden" name="currency_code" value="USD"> |
| 53 |
<input type="hidden" name="item_number" value=""> |
| 54 |
$ <input type="text" name="amount" value="5" size="3"> |
| 55 |
<button type="submit" class="button"><?php esc_html_e('Donate', 'http-headers'); ?></button> |
| 56 |
</form> |
| 57 |
</div> |
| 58 |
</div> |
| 59 |
</div> |