require get_template_directory() . '/class-wp-bootstrap-navwalker.php'; include(get_template_directory() . '/includes/theme-customizer.php'); include(get_template_directory() . '/includes/reservations.php'); include(get_template_directory() . '/includes/contact.php'); function restoran_setup(){ add_theme_support('post-thumbnails'); } add_action('after_setup_theme','restoran_setup'); function restoran_styles(){ wp_register_style('libraries', get_template_directory_uri() . '/libraries.css', array(), '4.4.1'); wp_register_style('style', get_template_directory_uri() . '/style.css', array('libraries'), '1.0'); wp_enqueue_style('libraries'); wp_enqueue_style('style'); if (basename(get_page_template())==='page-gallery.php'): //Lightbox css wp_enqueue_style('lightboxcss', get_template_directory_uri() . '/lightbox.css', array(), '2.1.11'); endif; //add javascript files wp_enqueue_script('jquery',get_template_directory_uri() . '/js/jquery-3.3.1.min.js', array(), '3.3.1', true); wp_enqueue_script('main',get_template_directory_uri() . '/js/main.js', array('jquery'), '1.0.0', true); wp_enqueue_script('plugin',get_template_directory_uri() . '/js/plugins.js', array('jquery'), '1.0.0', true); wp_enqueue_script('googlemaps', 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCi84FXix6rL1QwN82kMv8DZF5qwgnLh98&callback=initMap&v=weekly', array(), '', true); wp_enqueue_script('reservation', get_template_directory_uri() . '/js/reservation.js', array(), '1.0.0', true); wp_enqueue_script('contact', get_template_directory_uri() . '/js/contact.js', array(), '1.0.0', true); if (basename(get_page_template())==='page-gallery.php'): wp_enqueue_script('lightboxjs',get_template_directory_uri() . '/js/lightbox.js', array('jquery'), '1.0.0', true); endif; wp_enqueue_script('jquery'); wp_enqueue_script('main'); wp_enqueue_script('plugin'); wp_enqueue_script('googlemaps'); wp_enqueue_script('reservation'); wp_enqueue_script('contact'); } add_action('wp_enqueue_scripts', 'restoran_styles'); //Add menus function restoran_menus(){ register_nav_menus(array( 'header-menu'=>__('Header Menu', 'restoran'), 'social-menu'=>__('Social Menu', 'restoran'), )); } add_action( 'init','restoran_menus'); //navigation li class function add_class_li($classes,$item,$args){ if(isset($args->li_class)){ $classes[] = $args->li_class; } if(isset($args->active_class) && in_array('current-menu-item',$classes)){ $classes[] = $args->active_class; } return $classes; } add_filter('nav_menu_css_class','add_class_li',10,3); //navigation a class function add_anchor_class($attr,$item,$args){ if(isset($args->a_class)){ $attr['class'] = $args->a_class; } return $attr; } add_filter('nav_menu_link_attributes','add_anchor_class',10,3); add_action( 'customize_register', 'restoran_customize_register' ); Restoran Vrelo About Us - Restoran Vrelo