1 | <?php namespace EmailLog\Core\UI\Component; |
||
12 | class AdminUIEnhancer { |
||
13 | |||
14 | /** |
||
15 | * Plugin file name. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $plugin_file; |
||
20 | |||
21 | /** |
||
22 | * Plugin basename. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $plugin_basename; |
||
27 | |||
28 | /** |
||
29 | * Initialize the component and store the plugin basename. |
||
30 | * |
||
31 | * @param string|null $file Plugin file. |
||
32 | */ |
||
33 | 4 | public function __construct( $file = null ) { |
|
42 | |||
43 | /** |
||
44 | * Setup hooks. |
||
45 | * |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | public function load() { |
||
54 | |||
55 | /** |
||
56 | * Add link to Add-ons store. |
||
57 | * |
||
58 | * @see Additional links in the Plugin listing is based on |
||
59 | * @link http://zourbuth.com/archives/751/creating-additional-wordpress-plugin-links-row-meta/ |
||
60 | * |
||
61 | * @param array $links Array with default links to display in plugins page. |
||
62 | * @param string $file The name of the plugin file. |
||
63 | * |
||
64 | * @return array Modified list of links to display in plugins page. |
||
65 | */ |
||
66 | 2 | public function insert_addon_store_link( $links, $file ) { |
|
74 | |||
75 | /** |
||
76 | * Add link to 'View logs' page in plugin listing page. |
||
77 | * |
||
78 | * @param array $links List of links. |
||
79 | * |
||
80 | * @return array Modified list of links. |
||
81 | */ |
||
82 | 1 | public function insert_view_logs_link( $links ) { |
|
88 | |||
89 | /** |
||
90 | * Hook Footer links. |
||
91 | */ |
||
92 | public function hook_footer_links() { |
||
95 | |||
96 | /** |
||
97 | * Adds Footer links. |
||
98 | * |
||
99 | * @since Genesis |
||
100 | * |
||
101 | * @see Function relied on |
||
102 | * @link http://striderweb.com/nerdaphernalia/2008/06/give-your-wordpress-plugin-credit/ |
||
103 | */ |
||
104 | public function add_credit_links() { |
||
113 | } |
||
114 |