tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); /* * Allow user to change the website logo */ add_theme_support( 'custom-logo' ); /* * Allow user to add an custom header image */ add_theme_support( 'custom-header', (array)apply_filters( 'sixty_custom_header_args', array( 'width' => 1160, 'height' => 340 ) ) ); /* * Allow user to change thie background */ add_theme_support( 'custom-background', (array)apply_filters( 'sixty_custom_background_args', array() ) ); // This theme uses wp_nav_menu() in one location. register_nav_menus( (array) apply_filters( 'sixty_navigation', array( 'primary' => esc_html__( 'Primary Menu', 'sixty' ) ) ) ); /* * Allow theme to resize images */ add_image_size( 'sixty_thumbnail', 750, 422, array( 'center center' ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /* * Enable support for post formats * * @link https://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'link', 'quote', 'video', ) ); /** * This feature enables Selective Refresh for Widgets being managed within the Customizer. This feature became available in WordPress 4.5 */ add_theme_support( 'customize-selective-refresh-widgets' ); } add_action( 'after_setup_theme', 'sixty_setup' ); /** * Sets the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width * * @since v1.0.0 */ function sixty_content_width() { $GLOBALS['content_width'] = apply_filters( 'sixty_content_width', 650 ); } add_action( 'after_setup_theme', 'sixty_content_width', 0 ); /** * Enqueue and register styles */ function sixty_styles() { wp_enqueue_style( 'SourceSansPro', '//fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i', '1.0'); wp_enqueue_style( 'main-style', get_stylesheet_uri() ); wp_enqueue_script( 'sixty-scripts', get_template_directory_uri() . '/assets/js/dest/scripts.min.js', array(), '1.0.0' ); if( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'sixty_styles' ); /** * Add editor stylesheet for the theme. * * @since v1.0.0 */ function sixty_editor_styles() { add_editor_style( get_template_directory_uri() . '/assets/css/custom-editor-style.min.css' ); } add_action( 'admin_init', 'sixty_editor_styles' ); /** * Register sidebars * * @since v1.0.0 */ function sixty_sidebars() { $sidebar_one = (array)apply_filters( 'sixty_sidebar_one', array( 'id' => 'sidebar_one', 'name' => __( 'Main Sidebar', 'sixty' ), 'before_widget' => '
', 'before_title' => ' ', ) ); register_sidebar( $sidebar_one ); } add_action( 'widgets_init', 'sixty_sidebars' ); /** * Include extra files */ require get_template_directory() . '/includes/helpers.php'; require get_template_directory() . '/includes/template-tags.php'; require get_template_directory() . '/includes/social-media.php'; /** * Include customize file - Kirki */ include_once( dirname( __FILE__ ) . '/includes/kirki/kirki.php' ); require get_template_directory() . '/includes/customize/config.php'; /** * Modify comments markup structure * * @since v1.0.0 */ class sixty_Comment_Walker extends Walker_Comment { var $tree_type = 'comment'; var $db_fields = array( 'parent' => 'comment_parent', 'id' => 'comment_ID' ); // constructor – wrapper for the comments list function __construct() { ?>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>