esc_html__( 'Primary', 'astrology' ), ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); add_theme_support( 'custom-background', array( 'default-color' => 'ffffff', 'default-image' => '', ) ); } endif; add_action( 'after_setup_theme', 'astrology_setup' ); function astrology_content_width() { $GLOBALS['content_width'] = apply_filters( 'astrology_content_width', 640 ); } add_action( 'after_setup_theme', 'astrology_content_width', 0 ); function astrology_custom_excerpt_length( $length ) { return 34; } add_filter( 'excerpt_length', 'astrology_custom_excerpt_length', 999 ); function astrology_custom_excerpt_length_more( $more ) { return ' {...}'; } add_filter( 'excerpt_more', 'astrology_custom_excerpt_length_more' ); /* * TGM plugin activation register hook */ add_action( 'tgmpa_register', 'astrology_action_tgm_plugin_active_register_required_plugins' ); function astrology_action_tgm_plugin_active_register_required_plugins() { if(class_exists('TGM_Plugin_Activation')){ $plugins = array( array( 'name' => __('Page Builder by SiteOrigin','astrology'), 'slug' => 'siteorigin-panels', 'required' => false, ), array( 'name' => __('SiteOrigin Widgets Bundle','astrology'), 'slug' => 'so-widgets-bundle', 'required' => false, ) ); $config = array( 'default_path' => '', 'menu' => 'astrology-install-plugins', 'has_notices' => true, 'dismissable' => true, 'dismiss_msg' => '', 'is_automatic' => true, 'message' => '', 'strings' => array( 'page_title' => __( 'Install Recommended Plugins', 'astrology' ), 'menu_title' => __( 'Install Plugins', 'astrology' ), 'installing' => __( 'Installing Plugin: %s', 'astrology' ), 'oops' => __( 'Something went wrong with the plugin API.', 'astrology' ), 'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.','astrology' ), 'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.','astrology' ), 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.','astrology' ), 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.','astrology' ), 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.','astrology' ), 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.','astrology' ), 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.','astrology' ), 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.','astrology' ), 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins','astrology' ), 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins','astrology' ), 'return' => __( 'Return to Recommended Plugins Installer', 'astrology' ), 'plugin_activated' => __( 'Plugin activated successfully.', 'astrology' ), 'complete' => __( 'All plugins installed and activated successfully. %s', 'astrology' ), 'nag_type' => 'updated' ) ); tgmpa( $plugins, $config ); } } /** * wp enqueue style and script. */ require_once get_template_directory() . '/inc/enqueue-file.php'; /** * widgets. */ require_once get_template_directory() . '/inc/widgets.php'; /** * customizer additions. */ require_once get_template_directory() . '/inc/customizer.php'; require_once get_template_directory() . '/inc/breadcumbs.php';