PluginProbe
HTTP Headers / 1.13.2
HTTP Headers v1.13.2
1.19.5 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.12.0 1.12.1 1.12.2 1.13.0 1.13.1 1.13.2 1.13.3 1.13.4 1.14.0 1.14.1 1.14.2 1.15.0 All 60 releases
http-headers / views / dashboard.php

dashboard.php in HTTP Headers 1.13.2, at views/dashboard.php

54 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 $tmp = array();
11 foreach ($headers as $item)
12 {
13 if (!isset($tmp[$item[2]]))
14 {
15 $tmp[$item[2]] = array('total' => 0, 'on' => 0);
16 }
17 $tmp[$item[2]]['total'] += 1;
18 if (get_option($item[1]) == 1)
19 {
20 $tmp[$item[2]]['on'] += 1;
21 }
22 }
23 foreach ($categories as $key => $val)
24 {
25 ?>
26 <a href="<?php echo get_admin_url(); ?>options-general.php?page=http-headers&amp;category=<?php echo $key; ?>" class="hh-category">
27 <i></i>
28 <span><?php echo $key[0]; ?></span>
29 <strong><?php echo $val; ?></strong>(<?php printf('%u/%u', @$tmp[$key]['on'], @$tmp[$key]['total']); ?>)</a>
30 <?php
31 }
32 ?>
33 </div>
34
35 <div class="hh-sidebar">
36 <div class="hh-sidebar-inner">
37 <h3><?php _e('Rate us', 'http-headers'); ?></h3>
38 <p><?php _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 _e('writing a review', 'http-headers'); ?></a>.</p>
39 <h3><?php _e('Contribution', 'http-headers'); ?></h3>
40 <p><?php _e('Help us to continue developing this plugin with a small donation.', 'http-headers'); ?></p>
41 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
42 <input type="hidden" name="cmd" value="_xclick">
43 <input type="hidden" name="business" value="biggie@abv.bg">
44 <input type="hidden" name="item_name" value="HTTP Headers Donation">
45 <input type="hidden" name="no_shipping" value="1">
46 <input type="hidden" name="lc" value="US">
47 <input type="hidden" name="currency_code" value="USD">
48 <input type="hidden" name="item_number" value="">
49 $ <input type="text" name="amount" value="5" size="3">
50 <button type="submit" class="button"><?php _e('Donate', 'http-headers'); ?></button>
51 </form>
52 </div>
53 </div>
54 </div>