'array', 'sanitize_callback' => ['\ShareMyPost\Helpers', 'sanitize_settings'], 'default' => [], ]); } static function add_admin_menu() { add_menu_page( 'ShareMyPost', 'ShareMyPost', 'manage_options', 'sharemypost', '\ShareMyPost\Admin::dispatcher', SHAREMYPOST_ASSETS_URL.'/img/sidebar-logo.png'); } static function dispatcher() { echo '
'; } static function render_header() { if (defined('SHAREMYPOST_PRO_VERSION')) { $sub_tabs = [ 'inline_content' => ['label' => 'Inline Content', 'icon' => 'menu'], 'floating_bar' => ['label' => 'Floating Bar', 'icon' => 'align-pull-left', 'pro' => true], 'custom_networks' => ['label' => 'Custom Networks', 'icon' => 'networking', 'pro' => true], 'click_to_tweet' => ['label' => 'Click to X', 'pro' => true], 'configuration' => ['label' => 'Configuration', 'icon' => 'admin-settings', 'pro' => true], 'support' => ['label' => 'Support', 'icon' => 'sos'], 'license' => ['label' => 'License', 'icon' => 'admin-network'], ]; } else { $sub_tabs = [ 'inline_content' => ['label' => 'Inline Content', 'icon' => 'menu'], 'support' => ['label' => 'Support', 'icon' => 'sos'], 'go_pro' => ['label' => 'Go Pro', 'icon' => 'lock'], ]; } echo '