Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function displayPanel($title, $count, $colour, $icon, $url) |
||
28 | { |
||
29 | ob_start(); ?> |
||
30 | |||
31 | <div class="col-lg-3 col-xs-6"> |
||
32 | <div class="small-box bg-<?php echo $colour; ?>"> |
||
33 | <div class="inner"> |
||
34 | <h3><?php echo number_format($count); ?></h3> |
||
35 | <p><?php echo $title; ?></p> |
||
36 | </div> |
||
37 | <div class="icon"> |
||
38 | <i class="ion ion-<?php echo $icon; ?>" style="padding-top:16px;"></i> |
||
39 | </div> |
||
40 | <?php if ($count != 0) { ?> |
||
41 | <a href="<?php echo WEB_ROOT; ?><?php echo $url; ?>" class="small-box-footer">View <i class="fa fa-arrow-circle-right"></i></a> |
||
42 | <?php } ?> |
||
43 | </div> |
||
44 | </div><?php |
||
45 | |||
46 | return ob_get_clean(); |
||
47 | } |
||
48 | |||
50 |