theme_name = apply_filters( 'bcf_theme_name', 'Business Consultant Finder'); $this->pro_url = apply_filters( 'bcf_pro_url', 'https://athemeart.com/downloads/business-consultant-finder/'); add_action( 'admin_menu', array( $this, 'admin_menu',5 ) ); add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); add_action( 'admin_notices', array( $this, 'admin_notices' ), 99 ); add_action( 'wp_ajax_business_consultant_finder_dismiss_notice', array( $this, 'dismiss_nux' ) ); add_action( 'admin_menu', array( $this, 'admin_menu' ) ); add_action('after_switch_theme', array( $this, 'business_consultant_finder_setup_options' ) ); } public function business_consultant_finder_setup_options(){ update_option( 'business_consultant_finder_admin_notice_dismissed', false ); } /** * Enqueue scripts. * */ public function enqueue_scripts() { global $wp_customize; if ( isset( $wp_customize ) ) { return; } wp_enqueue_style( 'business-consultant-finder-admin', get_template_directory_uri() . '/assets/admin/admin.css', '', '1' ); wp_enqueue_script( 'business-consultant-finder-admin', get_template_directory_uri() . '/assets/admin/admin.js', array( 'jquery', 'updates' ), '1', 'all' ); $business_consultant_finder_notify = array( 'nonce' => wp_create_nonce( 'business_consultant_finder_notice_dismiss' ) ); wp_localize_script( 'business-consultant-finder-admin', 'businessconsultantfinderNUX', $business_consultant_finder_notify ); } /** * Output admin notices. * */ public function admin_notices() { global $pagenow; if ( ( 'themes.php' != $pagenow ) || get_option( 'business_consultant_finder_admin_notice_dismissed' ) ) { return; } ?>

', '' ); ?>


theme_name );?>

get_contents( $changelog_file ); $changelog_list = $this->parse_changelog( $changelog ); echo wp_kses_post( $changelog_list ); } ?>
'; foreach ( $changes as $index => $line ) { $changelog .= wp_kses_post( preg_replace( '~(=\s*Version\s*(\d+(?:\.\d+)+)\s*=|$)~Uis', '${1}', $line ) ); } $changelog .= ''; } return wp_kses_post( $changelog ); } } endif; return new BusinessConsultantFinder_Notify_Admin();