PluginProbe ʕ •ᴥ•ʔ
Menu Icons by Themeisle – Add Icons to Navigation Menus / 0.12.6
Menu Icons by Themeisle – Add Icons to Navigation Menus v0.12.6
trunk 0.1.0 0.1.1 0.1.2 0.1.3 0.1.4 0.1.5 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.11.2 0.11.3 0.11.4 0.11.5 0.12.0 0.12.1 0.12.10 0.12.11 0.12.12 0.12.2 0.12.3 0.12.4 0.12.5 0.12.6 0.12.7 0.12.8 0.12.9 0.13.0 0.13.1 0.13.10 0.13.11 0.13.12 0.13.13 0.13.14 0.13.15 0.13.16 0.13.17 0.13.18 0.13.19 0.13.2 0.13.20 0.13.21 0.13.22 0.13.23 0.13.3 0.13.4 0.13.5 0.13.6 0.13.7 0.13.8 0.13.9 0.2.0 0.2.1 0.2.2 0.2.3 0.3.0 0.3.1 0.3.2 0.4.0 0.5.0 0.5.1 0.6.0 0.7.0 0.8.0 0.8.1 0.9.0 0.9.2
menu-icons / includes / type.php
menu-icons / includes Last commit date
library 6 years ago front.php 5 years ago media-template.php 10 years ago meta.php 8 years ago picker.php 5 years ago settings.php 5 years ago type-fonts.php 10 years ago type.php 10 years ago
type.php
108 lines
1 <?php
2 /**
3 * Icon type handler
4 *
5 * @package Menu_Icons
6 * @version 0.1.0
7 * @author Dzikri Aziz <kvcrvt@gmail.com>
8 */
9
10
11 /**
12 * Generic handler for icon type
13 *
14 * @since 0.1.0
15 */
16 abstract class Menu_Icons_Type {
17
18 /**
19 * Holds icon type
20 *
21 * @since 0.1.0
22 * @access protected
23 * @var string
24 */
25 protected $type;
26
27 /**
28 * Holds icon label
29 *
30 * @since 0.1.0
31 * @access protected
32 * @var string
33 */
34 protected $label;
35
36 /**
37 * Holds icon stylesheet URL
38 *
39 * @since 0.1.0
40 * @access protected
41 * @var string
42 */
43 protected $stylesheet;
44
45 /**
46 * Custom stylesheet ID
47 *
48 * @since 0.8.0
49 * @access protected
50 * @var string
51 */
52 protected $stylesheet_id;
53
54 /**
55 * Holds icon version
56 *
57 * @since 0.1.0
58 * @access protected
59 * @var string
60 */
61 protected $version;
62
63 /**
64 * Holds array key for icon value
65 *
66 * @since 0.1.0
67 * @access protected
68 * @var string
69 */
70 protected $key;
71
72 /**
73 * Holds menu settings
74 *
75 * @since 0.3.0
76 * @access protected
77 * @var array
78 */
79 protected $menu_setttings = array();
80
81
82 /**
83 * Class constructor
84 *
85 * This simply sets $key
86 *
87 * @since 0.1.0
88 * @since 0.9.0 Deprecated.
89 */
90 function __construct() {
91 _deprecated_function( __CLASS__, '0.9.0', 'Icon_Picker_Type' );
92 }
93
94
95 /**
96 * Register our type
97 *
98 * @since 0.1.0
99 * @since 0.9.0 Deprecated. This simply returns the $types.
100 * @param array $types Icon Types
101 * @uses apply_filters() Calls 'menu_icons_{type}_props' on type properties.
102 * @return array
103 */
104 public function register( $types ) {
105 return $types;
106 }
107 }
108