Make lbrypress top level menu #21
2 changed files with 4 additions and 2 deletions
1
admin/images/lbry-logo.svg
Normal file
1
admin/images/lbry-logo.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 301.875 301.875"><path fill="#fff" d="M147.012 175.942l-104.6-51.3.2-7.9 104 51.2 132.2-81.2v-5.8l-124.8-60.2-139.2 86.1v38.5l131.8 65.2 137.6-84.4 3.9 6-141.1 86.4-139.2-68.8v-46.8l145.8-90.2 132.2 63.8v14.1z"/><path fill="#fff" d="M274.913 121.642l17.1 2.9-2.8 17.5-4.9-.8 2-12.6-12.2-2.1z"/></svg>
|
After Width: | Height: | Size: 377 B |
|
@ -25,12 +25,13 @@ class LBRY_Admin
|
||||||
*/
|
*/
|
||||||
public function create_options_page()
|
public function create_options_page()
|
||||||
{
|
{
|
||||||
add_options_page(
|
add_menu_page(
|
||||||
__('LBRYPress Settings', 'lbrypress'),
|
__('LBRYPress Settings', 'lbrypress'),
|
||||||
__('LBRYPress', 'lbrypress'),
|
__('LBRYPress', 'lbrypress'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
LBRY_ADMIN_PAGE,
|
LBRY_ADMIN_PAGE,
|
||||||
array($this, 'options_page_html')
|
array($this, 'options_page_html'),
|
||||||
|
plugin_dir_url(LBRY_PLUGIN_FILE) . '/admin/images/lbry-logo.svg'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue