芝麻web文件管理V1.00
编辑当前文件:/home/fambnfli/public_html/tr/wp-content/plugins/coming-soon/app/routes.php
get_count(); $seedprod_app_settings = get_option( 'seedprod_app_settings' ); if ( ! empty( $seedprod_app_settings ) ) { $seedprod_app_settings = json_decode( stripslashes( $seedprod_app_settings ) ); } // if notification disabled than change value to 0 if ( isset( $seedprod_app_settings ) ) { if ( isset( $seedprod_app_settings->disable_seedprod_notification ) ) { if ( true === $seedprod_app_settings->disable_seedprod_notification ) { $notifications_count = 0; } } } if ( ! empty( $notifications_count ) ) { $notification = '
' . $notifications_count . '
'; } add_menu_page( 'SeedProd', 'SeedProd' . $notification, apply_filters( 'seedprod_main_menu_capability', 'edit_others_posts' ), 'seedprod_lite', 'seedprod_lite_dashboard_page', 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI1IiBoZWlnaHQ9IjEzMiIgdmlld0JveD0iMCAwIDEyNSAxMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wIDBDMCAwIDIuOTE2NjQgMC4xOTc4OTQgNjIuODIxMiA4LjAyNjgzQzEyMi43MjYgMTUuODU1OCAxNDMuNDU5IDc2LjYwNjQgMTA2Ljc4MSAxMjkuNjI4QzExMi40NTQgODIuMjUyNyAxMDIuMDcgMzMuMTA2MiA2MC4zNjA1IDI3LjM2MDZDMTguNjUwNSAyMS42MTUxIDIyLjI4MzQgMjIuNDk1NCAyMi4yODM0IDIyLjQ5NTRDMjIuMjgzNCAyMi40OTU0IDIyLjk3NDUgMzIuOTI5OSAyNi44ODgzIDYwLjk3OTlDMzAuODAyMSA4OS4wMjk5IDUyLjcwMzUgMTAyLjc4NiA3MS44NzA0IDEwOS44NjhDNzEuODcwNCAxMDkuODY4IDcyLjk5NDUgNzcuMDQwMSA2Mi4zMDA3IDYyLjU5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LjAxNzIgMTA2LjU5MSA3LjU3NDIzIDYzLjNDMi4xMzEzIDIwLjAwODggMCAwIDAgMFoiIGZpbGw9IndoaXRlIi8+PC9zdmc+', apply_filters( 'seedprod_top_level_menu_postion', 58 ) ); add_submenu_page( 'seedprod_lite', __( 'SeedProd', 'coming-soon' ), __( 'Landing Pages', 'coming-soon' ), apply_filters( 'seedprod_dashboard_menu_capability', 'edit_others_posts' ), 'seedprod_lite', 'seedprod_lite_dashboard_page' ); add_submenu_page( 'seedprod_lite', __( 'Theme Builder', 'coming-soon' ), __( 'Theme Builder', 'coming-soon' ), apply_filters( 'seedprod_theme_templates_menu_capability', 'edit_others_posts' ), 'seedprod_lite_theme_templates', 'seedprod_lite_theme_templates_page' ); add_submenu_page( 'seedprod_lite', __( 'AI Themes', 'coming-soon' ), __( 'AI Themes', 'coming-soon' ) . '
NEW!
', apply_filters( 'seedprod_ai_themes_menu_capability', 'edit_others_posts' ), 'seedprod_lite_ai_themes', 'seedprod_lite_ai_themes_page' ); add_submenu_page( 'seedprod_lite', __( 'Setup', 'coming-soon' ), __( 'Setup', 'coming-soon' ), apply_filters( 'seedprod_setup_menu_capability', 'edit_others_posts' ), 'seedprod_lite_setup', 'seedprod_lite_setup_page' ); // if ( 'lite' === SEEDPROD_BUILD ) { // add_submenu_page( // 'seedprod_lite', // __( 'Templates', 'coming-soon' ), // __( 'Templates', 'coming-soon' ), // apply_filters( 'seedprod_templates_menu_capability', 'edit_others_posts' ), // 'seedprod_lite_templates', // 'seedprod_lite_templates_page' // ); // } add_submenu_page( 'seedprod_lite', __( 'Subscribers', 'coming-soon' ), __( 'Subscribers', 'coming-soon' ), apply_filters( 'seedprod_subscribers_menu_capability', 'edit_others_posts' ), 'seedprod_lite_subscribers', 'seedprod_lite_subscribers_page' ); add_submenu_page( 'seedprod_lite', __( 'Settings', 'coming-soon' ), __( 'Settings', 'coming-soon' ), apply_filters( 'seedprod_settings_menu_capability', 'edit_others_posts' ), 'seedprod_lite_settings', 'seedprod_lite_settings_page' ); add_submenu_page( 'seedprod_lite', __( 'Pop-ups', 'coming-soon' ), __( 'Pop-ups', 'coming-soon' ), apply_filters( 'seedprod_popup_menu_capability', 'edit_others_posts' ), 'seedprod_lite_popup', 'seedprod_lite_popup_page' ); add_submenu_page( 'seedprod_lite', __( 'Custom Code', 'coming-soon' ), __( 'Custom Code', 'coming-soon' ), apply_filters( 'seedprod_customcode_menu_capability', 'edit_others_posts' ), 'seedprod_lite_customcode', 'seedprod_lite_customcode_page' ); add_submenu_page( 'seedprod_lite', __( 'Growth Tools', 'coming-soon' ), __( 'Growth Tools', 'coming-soon' ), apply_filters( 'seedprod_growthtools_menu_capability', 'edit_others_posts' ), 'seedprod_lite_growth_tools', 'seedprod_lite_growth_tools_page' ); add_submenu_page( 'seedprod_lite', __( 'About Us', 'coming-soon' ), __( 'About Us', 'coming-soon' ), apply_filters( 'seedprod_aboutus_menu_capability', 'edit_others_posts' ), 'seedprod_lite_about_us', 'seedprod_lite_about_us_page' ); add_submenu_page( 'seedprod_lite', __( 'Request a Feature', 'coming-soon' ), '
' . __( 'Request a Feature', 'coming-soon' ) . '
', apply_filters( 'seedprod_featurerequest_menu_capability', 'edit_others_posts' ), 'seedprod_lite_featurerequest', 'seedprod_lite_featurerequest_page' ); if ( 'pro' === SEEDPROD_BUILD ) { add_submenu_page( 'seedprod_lite', __( 'Import / Export', 'coming-soon' ), __( 'Import / Export', 'coming-soon' ), apply_filters( 'seedprod_theme_templates_menu_capability', 'edit_others_posts' ), 'seedprod_lite_export_import_tools', 'seedprod_lite_export_import_tools_page' ); } if ( 'lite' === SEEDPROD_BUILD ) { add_submenu_page( 'seedprod_lite', __( 'Upgrade to Pro', 'coming-soon' ), '
' . __( 'Upgrade to Pro', 'coming-soon' ) . '
', apply_filters( 'seedprod_gopro_menu_capability', 'edit_others_posts' ), 'seedprod_lite_get_pro', 'seedprod_lite_get_pro_page' ); // add class add_action( 'admin_footer', 'seedprod_lite_upgrade_link_class' ); /** * Add class to upgrade link * * @since 5.0 */ function seedprod_lite_upgrade_link_class() { echo ""; } } add_submenu_page( 'seedprod_lite', __( 'Templates', 'coming-soon' ), __( 'Templates', 'coming-soon' ), apply_filters( 'seedprod_templates_menu_capability', 'edit_others_posts' ), 'seedprod_lite_template', 'seedprod_lite_template_page' ); add_submenu_page( 'seedprod_lite', __( 'Builder', 'coming-soon' ), __( 'Builder', 'coming-soon' ), apply_filters( 'seedprod_builder_menu_capability', 'edit_others_posts' ), 'seedprod_lite_builder', 'seedprod_lite_builder_page' ); add_submenu_page( 'seedprod_lite', __( 'Import/Export', 'coming-soon' ), __( 'Import/Export', 'coming-soon' ), apply_filters( 'seedprod_exportimport_menu_capability', 'edit_others_posts' ), 'sp_pro_importexport', 'seedprod_lite_importexport_page' ); add_submenu_page( 'seedprod_lite', __( 'Debug', 'coming-soon' ), __( 'Debug', 'coming-soon' ), apply_filters( 'seedprod_debug_menu_capability', 'edit_others_posts' ), 'sp_pro_debug', 'seedprod_lite_debug_page' ); add_submenu_page( 'themes.php', __( 'Theme Builder', 'coming-soon' ), __( 'Theme Builder', 'coming-soon' ), apply_filters( 'seedprod_theme_templates_menu_capability', 'edit_others_posts' ), 'seedprod_lite_theme_templates', 'seedprod_lite_theme_templates_page' ); } add_action( 'admin_head', 'seedprod_lite_remove_menus' ); /** * Remove menus for plugin. */ function seedprod_lite_remove_menus() { remove_submenu_page( 'seedprod_lite', 'seedprod_lite_builder' ); remove_submenu_page( 'seedprod_lite', 'seedprod_lite_template' ); remove_submenu_page( 'seedprod_lite', 'sp_pro_importexport' ); remove_submenu_page( 'seedprod_lite', 'sp_pro_debug' ); $dimiss_setup = get_option( 'seedprod_dismiss_setup' ); if ( ! empty( $dimiss_setup ) ) { remove_submenu_page( 'seedprod_lite', 'seedprod_lite_setup' ); } } /** * Import/Export page. */ function seedprod_lite_importexport_page() { require_once SEEDPROD_PLUGIN_PATH . 'resources/views/importexport.php'; } /** * Debug page. */ function seedprod_lite_debug_page() { require_once SEEDPROD_PLUGIN_PATH . 'resources/views/debug.php'; } /** * Dashboard page. */ function seedprod_lite_dashboard_page() { require_once SEEDPROD_PLUGIN_PATH . 'resources/views/dashboard.php'; } /** * Builder page. */ function seedprod_lite_builder_page() { require_once SEEDPROD_PLUGIN_PATH . 'resources/views/builder.php'; } /** * Template page. */ function seedprod_lite_template_page() { require_once SEEDPROD_PLUGIN_PATH . 'resources/views/builder.php'; } // update selected page add_action( 'admin_footer', 'seedprod_lite_update_selected_page_in_submenu' ); /** * Update menu for single page app. * * Add New! badge styling to footer so it's applied on hovered item too. */ function seedprod_lite_update_selected_page_in_submenu() { ?>