From fee1beb22148dde6de53f79bc346c225fbcb32c1 Mon Sep 17 00:00:00 2001 From: Paul Kirby Date: Mon, 17 Feb 2020 16:08:54 -0600 Subject: [PATCH] Make lbrypress top level menu --- admin/images/lbry-logo.svg | 1 + classes/LBRY_Admin.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 admin/images/lbry-logo.svg diff --git a/admin/images/lbry-logo.svg b/admin/images/lbry-logo.svg new file mode 100644 index 0000000..82c8155 --- /dev/null +++ b/admin/images/lbry-logo.svg @@ -0,0 +1 @@ + diff --git a/classes/LBRY_Admin.php b/classes/LBRY_Admin.php index 4f7f657..23c5303 100644 --- a/classes/LBRY_Admin.php +++ b/classes/LBRY_Admin.php @@ -25,12 +25,13 @@ class LBRY_Admin */ public function create_options_page() { - add_options_page( + add_menu_page( __('LBRYPress Settings', 'lbrypress'), __('LBRYPress', 'lbrypress'), 'manage_options', LBRY_ADMIN_PAGE, - array($this, 'options_page_html') + array($this, 'options_page_html'), + plugin_dir_url(LBRY_PLUGIN_FILE) . '/admin/images/lbry-logo.svg' ); }