<?php
if ( ! isset( $content_width ) ) {
$content_width = 660;
}
/**
* Twenty Fifteen only works in WordPress 4.1 or later.
*/
if ( version_compare( $GLOBALS['wp_version'], '4.1-alpha', '<' ) ) {
}
if ( ! function_exists( 'test_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.
*
* @since Twenty Fifteen 1.0
*/
function test_setup() {
add_theme_support( 'post-thumbnails' );
add_theme_support( 'post-thumbnails', array( 'post' ) ); // Posts only
add_theme_support( 'post-thumbnails', array( 'page' ) ); // Pages only
add_theme_support( 'post-thumbnails', array( 'post', 'movie' ) ); // Posts and Movies
add_theme_support( 'html5', array(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
) );
/*
* Enable support for Post Formats.
*
* See: https://codex.wordpress.org/Post_Formats
*/
add_theme_support( 'post-formats', array(
'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat'
) );
/*
* Enable support for custom logo.
*
* @since Twenty Fifteen 1.5
*/
add_theme_support( 'custom-logo', array(
'height' => 248,
'width' => 248,
'flex-height' => true,
) );
}
endif;
add_action( 'after_setup_theme', 'test_setup' );
function register_my_menu() {
register_nav_menu('header-menu',__( 'Header Menu' ));
}
add_action( 'init', 'register_my_menu' );
function arphabet_widgets_init() {
register_sidebar( array(
'name' => 'Home right sidebar',
'id' => 'home_right_1',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'arphabet_widgets_init' );
function add_scripts() {
wp_enqueue_script(
'custom_script',
get_template_directory_uri() . '/js/jquery-2.1.1.js',
array('jquery'),null
);
wp_enqueue_script(
'script',
get_template_directory_uri() . '/js/script.js',
array('jquery'),null
);
}
function add_style() {
wp_enqueue_style( 'wpse-styles1', get_template_directory_uri() . '/css/zerogrid.css', array(), null );
wp_enqueue_style( 'wpse-styles2', get_template_directory_uri() . '/css/menu.css', array(), null );
wp_enqueue_style( 'wpse-styles3', get_template_directory_uri() . '/css/style.css', array(), null );
wp_enqueue_style( 'wpse-styles4', get_template_directory_uri() . '/font-awesome/css/font-awesome.min.css', array(), null );
wp_enqueue_style('wp_font5',get_template_directory_uri().'/owl-carousel/owl.carousel.css',array(),null);
wp_enqueue_style('wp_font6',get_template_directory_uri().'/owl-carousel/owl.theme.css',array(),null);
}
add_action( 'wp_enqueue_scripts', 'add_scripts' );
add_action( 'wp_enqueue_scripts', 'add_style' );
?>