| 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 |
|