'Webriti Companion', 'slug' => 'webriti-companion', 'required' => false, ), ); /* * Array of configuration settings. Amend each line as needed. * * TGMPA will start providing localized text strings soon. If you already have translations of our standard * strings available, please help us make TGMPA even better by giving us access to these translations or by * sending in a pull-request with .po file(s) with the translations. * * Only uncomment the strings in the config array if you want to customize the strings. */ $config = array( 'id' => 'tgmpa', // Unique ID for hashing notices for multiple instances of TGMPA. 'default_path' => '', // Default absolute path to bundled plugins. 'menu' => 'tgmpa-install-plugins', // Menu slug. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. ); tgmpa( $plugins, $config ); } function busiprof_customizer_css() { wp_enqueue_style( 'busiprof-customizer-info', get_template_directory_uri() . '/css/pro-feature.css' ); } add_action( 'admin_init', 'busiprof_customizer_css' ); //theme ckeck plugin required add_theme_support( 'automatic-feed-links' ); add_theme_support('woocommerce'); //content width if ( ! isset( $content_width ) ) $content_width = 750; if ( ! function_exists( 'busiporf_setup' ) ) : function busiporf_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. */ load_theme_textdomain( 'busiprof', get_template_directory() . '/lang' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /* * Let WordPress manage the document title. */ add_theme_support( 'title-tag' ); // supports featured image add_theme_support( 'post-thumbnails' ); //Custom logo add_theme_support( 'custom-logo' , array( 'width' => 300, 'height' => 50, 'flex-width' => false, 'flex-height' => false, 'header-text' => array( 'site-title', 'site-description' ), ) ); //Added Woocommerce Galllery Support add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); // This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'busiprof' ) ) ); } // busiporf_setup endif; add_action( 'after_setup_theme', 'busiporf_setup' ); add_action( 'after_switch_theme', 'busiprof_import_busiprof_child_theme_data_in_busiprof_theme' ); /** * Import theme mods when switching from Busiprof child theme to Busiprof */ function busiprof_import_busiprof_child_theme_data_in_busiprof_theme() { // Get the name of the previously active theme. $previous_theme = strtolower( get_option( 'theme_switched' ) ); if ( ! in_array( $previous_theme, array( 'vdequator', 'vdperanto', 'arzine', 'lazyprof', ) ) ) { return; } // Get the theme mods from the previous theme. $previous_theme_content = get_option( 'theme_mods_' . $previous_theme ); if ( ! empty( $previous_theme_content ) ) { foreach ( $previous_theme_content as $previous_theme_mod_k => $previous_theme_mod_v ) { set_theme_mod( $previous_theme_mod_k, $previous_theme_mod_v ); } } } if ( ! function_exists( 'wp_body_open' ) ) { function wp_body_open() { /** * Triggered after the opening tag. */ do_action( 'wp_body_open' ); } } //Custom CSS compatibility $busiprof_theme_options = busiprof_theme_setup_data(); $busiprof_current_options = wp_parse_args(get_option('busiprof_theme_options', array()), $busiprof_theme_options); if ($busiprof_current_options['busiprof_custom_css'] != '' && $busiprof_current_options['busiprof_custom_css'] != 'nomorenow') { $css = ''; $css .= $busiprof_current_options['busiprof_custom_css']; $css .= (string) wp_get_custom_css(get_stylesheet()); $busiprof_current_options['busiprof_custom_css'] = 'nomorenow'; update_option('busiprof_theme_options', $busiprof_current_options); wp_update_custom_css_post($css, array()); } ?>