/** * Blink functions and definitions * * @package Blink */ /** * The current version of the theme. * * @since 1.0. */ define( 'BLINK_VERSION', '1.0.6' ); /** * Set the content width based on the theme's design and stylesheet. */ if ( ! isset( $content_width ) ) { $content_width = 970; /* pixels */ } /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer/bootstrap.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /** * Load auto updater * * @since 1.0.2. */ require get_template_directory() . '/inc/updater/theme-updater.php'; if ( ! function_exists( 'blink_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function blink_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on Blink, use a find and replace * to change 'blink' to the name of your theme in all the template files */ load_theme_textdomain( 'blink', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'blink' ), ) ); /** * Add theme support for site logos. */ add_theme_support( 'site-logo', array( 'header-text' => array( 'site-title', 'site-description', ), 'size' => 'blink_logo', ) ); /** * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded