'ffffff', 'text' => '404040', 'link' => '26ade4', 'border' => 'cccccc', 'url' => '26ade4', ); } if ( ! function_exists( 'publish_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 post thumbnails. * * @since Publish 1.0 */ function publish_setup() { /** * 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' ); /** * Make theme available for translation * Translations can be filed in the /languages/ directory */ load_theme_textdomain( 'publish', get_template_directory() . '/languages' ); /** * Add default posts and comments RSS feed links to head */ add_theme_support( 'automatic-feed-links' ); /** * Let WordPress manage the document title. */ add_theme_support( 'title-tag' ); /** * Enable Custom Backgrounds */ add_theme_support( 'custom-background' ); /** * Enable editor style */ add_editor_style(); /** * This theme uses wp_nav_menu() in one location. */ register_nav_menus( array( 'primary' => __( 'Primary Menu', 'publish' ), ) ); /** * Add support for the Aside Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'chat', 'image', 'video' ) ); /** * Add support for Infinite Scroll * @since Publish 1.2 */ add_theme_support( 'infinite-scroll', array( 'footer' => 'page', ) ); } endif; // publish_setup add_action( 'after_setup_theme', 'publish_setup' ); if ( ! function_exists( 'wp_body_open' ) ) : /** * Fire the wp_body_open action. * * Included for backward compatibility with WordPress versions prior to 5.2. */ function wp_body_open() { do_action( 'wp_body_open' ); } endif; /** * Register widgetized area and update sidebar with default widgets * * @since Publish 1.0 */ function publish_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'publish' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '