diff --git a/classes/LBRY_Admin.php b/classes/LBRY_Admin.php index 3c00622..ed57234 100644 --- a/classes/LBRY_Admin.php +++ b/classes/LBRY_Admin.php @@ -25,6 +25,7 @@ class LBRY_Admin */ public function create_options_page() { + add_menu_page( __( 'LBRYPress Settings', 'lbrypress' ), __( 'LBRYPress', 'lbrypress' ), @@ -48,6 +49,20 @@ class LBRY_Admin } } add_action( 'admin_enqueue_scripts', 'load_admin_stylesheet' ); + + // Admin Error Notices + function lbry_plugin_not_configured_notice() { + echo "
LBRYPress plugin is not configured yet. Please do it now.
Set Default to always Publish to LBRY, this can be adjusted when publishing a New Post.
', - 'lbry_default_publish_setting', - LBRY_SETTINGS, - - ); - } - - /** - * Checkbox to default to always allow publish on LBRY - */ - public function lbry_always_pub_callback() - { - $options = get_option( LBRY_SETTINGS )['lbry_default_publish_setting']; - if ( ! isset( $options ) ) { - $options = 0; - } - $checked = checked( $options, 1, false ); - printf( - 'Set Default to always Publish to LBRY, this can be adjusted when publishing a New Post.
', - 'lbry_default_publish_setting', - LBRY_SETTINGS, - - ); - } - /** * Checkbox to default to always allow publish on LBRY */ @@ -359,7 +338,6 @@ class LBRY_Admin