-
Notifications
You must be signed in to change notification settings - Fork 3
/
sam-pro-zones-list.php
48 lines (45 loc) · 1.42 KB
/
sam-pro-zones-list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* Created by PhpStorm.
* Author: minimus
* Date: 09.03.2015
* Time: 8:10
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if( ! class_exists( 'SamProZonesList' ) ) {
class SamProZonesList {
private $settings;
public function __construct( $options ) {
$this->settings = $options;
}
public function show() {
$newLink = admin_url('admin.php') . '?page=sam-pro-zone-editor';
$newZ = "<script id='NewZone' type='text/x-jsrender'><a class='e-toolbaricons e-icon new-zone' href='{$newLink}'/></script>";
$ddList = '<script id="viewMode" type="text/x-jsrender"><select id="view-mode">
<option value="10">'. __('All', SAM_PRO_DOMAIN) .'</option>
<option value="0">' . __('Active', SAM_PRO_DOMAIN) . '</option>
<option value="1">' . __('In Trash', SAM_PRO_DOMAIN) . '</option>
</select></script>';
?>
<?php echo $ddList; ?>
<script id="TrashZone" type="text/x-jsrender">
<a class="e-toolbaricons e-icon zone-to-trash"/>
</script>
<script id="UnTrashZone" type="text/x-jsrender">
<a class="e-toolbaricons e-icon zone-from-trash"/>
</script>
<?php echo $newZ ?>
<div class="wrap">
<h2><?php _e('Manage Zones', SAM_PRO_DOMAIN); ?></h2>
<div id="grid"></div>
<h4>Legend</h4>
<ul>
<li><i class="icon-leaf"></i>/<i class="icon-trash"></i> - <?php _e('Is active / Is in trash.', SAM_PRO_DOMAIN); ?></li>
</ul>
</div>
<?php
}
}
}