| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 | <?phprequire get_template_directory() . '/inc/hp-cleaner.php';require get_template_directory() . '/inc/hp-nav-walker.php';require get_template_directory() . '/inc/hp-templates.php';if ( ! function_exists( 'hp_setup' ) ) :  function hp_setup() {    add_theme_support( 'automatic-feed-links' );    add_theme_support( 'title-tag' );    add_theme_support( 'post-thumbnails' );    register_nav_menus( array(      'primary' => esc_html__( 'Primary', 'hp' ),    ));    add_theme_support( 'html5', array(      'comment-form',      'comment-list',      'caption',    ));    add_theme_support( 'customize-selective-refresh-widgets' );    add_theme_support( 'editor-styles' );    function hp_add_editor_styles() {      add_editor_style([        'css/bootstrap.css',        'style.css'      ] );    }    add_action( 'admin_init', 'hp_add_editor_styles' );  }endif;add_action( 'after_setup_theme', 'hp_setup' );function hp_content_width() {	$GLOBALS['content_width'] = apply_filters( 'hp_content_width', 1170 );}add_action( 'after_setup_theme', 'hp_content_width', 0 );function hp_widgets_init() {    register_sidebar( array(        'name'          => esc_html__( 'Sidebar', 'hp-theme' ),        'id'            => 'sidebar-1',        'description'   => esc_html__( 'Add widgets here.', 'hp-theme' ),        'before_widget' => '<section id="%1$s" class="widget %2$s">',        'after_widget'  => '</section>',        'before_title'  => '<h3 class="widget-title">',        'after_title'   => '</h3>',    ) );    register_sidebar( array(        'name'          => esc_html__( 'Footer 1', 'hp-theme' ),        'id'            => 'footer-1',        'description'   => esc_html__( 'Add widgets here.', 'hp-theme' ),        'before_widget' => '<section id="%1$s" class="widget %2$s">',        'after_widget'  => '</section>',        'before_title'  => '<h3 class="widget-title">',        'after_title'   => '</h3>',    ) );    register_sidebar( array(        'name'          => esc_html__( 'Footer 2', 'hp-theme' ),        'id'            => 'footer-2',        'description'   => esc_html__( 'Add widgets here.', 'hp-theme' ),        'before_widget' => '<section id="%1$s" class="widget %2$s">',        'after_widget'  => '</section>',        'before_title'  => '<h3 class="widget-title">',        'after_title'   => '</h3>',    ) );    register_sidebar( array(        'name'          => esc_html__( 'Footer 3', 'hp-theme' ),        'id'            => 'footer-3',        'description'   => esc_html__( 'Add widgets here.', 'hp-theme' ),        'before_widget' => '<section id="%1$s" class="widget %2$s">',        'after_widget'  => '</section>',        'before_title'  => '<h3 class="widget-title">',        'after_title'   => '</h3>',    ) );}add_action( 'widgets_init', 'hp_widgets_init' );function hp_scripts() {  wp_enqueue_style( 'hp-boot-css', get_template_directory_uri() . '/css/bootstrap.css' );  wp_enqueue_style( 'hp-jasny-boot-css', get_template_directory_uri() . '/css/jasny-bootstrap.css' );  wp_enqueue_style( 'hp-boot-font', get_template_directory_uri() . '/css/bootstrap-icons.css' );  wp_enqueue_style( 'hp-style', get_stylesheet_uri() );	wp_enqueue_script('jquery');  wp_enqueue_script('wp-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus.js', array(), '20151215', true );  wp_enqueue_script('hp-boot-js', get_template_directory_uri() . '/js/bootstrap.bundle.js', array(), '', true );  wp_enqueue_script('hp-jasny-boot-js', get_template_directory_uri() . '/js/jasny-bootstrap.js', array(), '', true );  wp_enqueue_script('hp-init', get_template_directory_uri() . '/js/init.js', array(), '', true );	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {		wp_enqueue_script( 'comment-reply' );	}}add_action( 'wp_enqueue_scripts', 'hp_scripts' );
 |