public static function theme_setup() { self::jquery(); self::shortcodes_in_widgets(); self::remove_head_meta(); self::remove_update_notification(); self::theme_images(); add_theme_support('post-thumbnails'); add_theme_support('automatic-feed-links'); core_functions::favicon(); core_functions::no_smiley_face(); core_functions::all_post_formats(); }
{ $tpl = get_template_directory() . '/install-guide.php'; load_template($tpl); } if (!class_exists('cwp')) { add_filter('template_include', 'install_guide'); return; } /* * add layout tpl */ add_filter('template_include', array('cwp_layout', 'tpl_include')); /** * adds all post functions */ core_functions::all_post_formats(); /** * setup some script variables */ $css_path = get_template_directory_uri() . '/library/css'; $cycle_style = $css_path . '/home-cycle.css'; $tiptip_style = $css_path . '/tipTip.css'; /* * register styles */ wp_register_style('cycle', $cycle_style); wp_register_style('cycle', $tiptip_style); wp_register_style('flex-slider', get_stylesheet_directory_uri() . '/library/css/flexslider.css'); /* * register scripts */