HOME_MENU, 'frontpage-menu' => FRONT_MENU )); } add_action('after_setup_theme', 'blackwell_setup'); endif; /** * Registering plugin notification class */ add_action('tgmpa_register', 'blackwell_plugins_notify'); $functions_path = get_template_directory() . '/functions/'; require_once ($functions_path . 'admin-interface.php'); require_once ($functions_path . 'theme-options.php'); require_once($functions_path . 'plugin-activation.php'); require_once($functions_path . 'plugin-notify.php'); /** * Styles Enqueue */ function blackwell_add_stylesheet() { wp_enqueue_style('blackwell-style', get_stylesheet_uri()); wp_enqueue_style('animate_css3', get_template_directory_uri() . "/css/animate.css", '', '', 'all'); wp_enqueue_style('960_24_col_responsive', get_template_directory_uri() . "/css/960_24_col_responsive.css", '', '', 'all'); wp_enqueue_style('font_awesome', get_template_directory_uri() . "/css/font-awesome.min.css", '', '', 'all'); } add_action('wp_enqueue_scripts', 'blackwell_add_stylesheet'); /** * jQuery Enqueue */ function blackwell_wp_enqueue_scripts() { wp_enqueue_script('blackwell-superfish', get_template_directory_uri() . '/js/superfish.js', array('jquery')); wp_enqueue_script('blackwell-bigslide', get_template_directory_uri() . '/js/bigslide.js', array('jquery')); wp_enqueue_script('blackwell-singlePageNav', get_template_directory_uri() . '/js/jquery.singlePageNav.js', array('jquery')); wp_enqueue_script('blackwell-custom', get_template_directory_uri() . '/js/custom.js', array('jquery')); wp_enqueue_style('google-font', '//fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900'); if (is_singular() and get_site_option('thread_comments')) { wp_print_scripts('comment-reply'); } } add_action('wp_enqueue_scripts', 'blackwell_wp_enqueue_scripts'); /** * Custom Jqueries Enqueue */ function blackwell_get_option($name) { $options = get_option('blackwell_options'); if (isset($options[$name])) return $options[$name]; } function blackwell_update_option($name, $value) { $options = get_option('blackwell_options'); $options[$name] = $value; return update_option('blackwell_options', $options); } function blackwell_delete_option($name) { $options = get_option('blackwell_options'); unset($options[$name]); return update_option('blackwell_options', $options); } // Add CLASS attributes to the first