render_navigation(); ?>

get( 'Name' ) ) ); ?>

render_navigation(); ?>

render_navigation(); $changelog = BUSINESS_ASSISTANT_THEME_PATH . '/readme.txt'; $changelog_content = ''; if ( ! file_exists( $changelog ) ) { $changelog_content = esc_html__( 'Changelog file not found.', 'business-assistant' ); } elseif ( ! is_readable( $changelog ) ) { $changelog_content = esc_html__( 'Changelog file not readable.', 'business-assistant' ); } else { global $wp_filesystem; // Check if the the global filesystem isn't setup yet. if ( is_null( $wp_filesystem ) ) { WP_Filesystem(); } $content = $wp_filesystem->get_contents( $changelog ); // Extract changelog section if(preg_match('/== Changelog ==(.*?)(==|$)/s', $content, $matches)) { $changelog_content = trim($matches[1]); } else { $changelog_content = esc_html__('No changelog found in readme.txt', 'business-assistant'); } } ?>

get( 'Name' ) ));?>

get_navigation_items(); ?>
array( 'id' => 'dashboard', 'name' => esc_html__( 'About', 'business-assistant' ), 'icon' => '', 'url' => menu_page_url( 'business-assistant-dashboard', false ), ), 'plugins' => array( 'id' => 'plugins', 'name' => esc_html__( 'Demo Importer', 'business-assistant' ), 'icon' => '', 'url' => menu_page_url( 'business-assistant-plugins', false ), ), 'changelog' => array( 'id' => 'changelog', 'name' => esc_html__( 'Changelog', 'business-assistant' ), 'icon' => '', 'url' => menu_page_url( 'business-assistant-changelog', false ), ), ); return apply_filters( 'business_assistant_dashboard_navigation_items', $items ); } /** * Highlight dashboard page for plugins page. * * @since 1.0.0 * @param string $submenu_file The submenu file. */ public function highlight_submenu( $submenu_file ) { global $pagenow; // Check if we're on changelog page. if ( 'themes.php' === $pagenow ) { if ( isset( $_GET['page'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended if ( 'business-assistant-plugins' === $_GET['page'] || 'business-assistant-changelog' === $_GET['page'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended $submenu_file = 'business-assistant-dashboard'; } } } return $submenu_file; } } endif; /** * The function which returns the one Business_Assistant_Dashboard instance. * * Use this function like you would a global variable, except without needing * to declare the global. * * Example: * * @since 1.0.0 * @return object */ function business_assistant_dashboard() { return Business_Assistant_Dashboard::instance(); } business_assistant_dashboard();