<?php
include('post_type/fish.php');
include('post_type/map.php');
include('post_type/articles.php');
include('post_type/weather.php');
include('likeplugin/translit.php');
include('likeplugin/chekbox.php');
include('likeplugin/fields.php');
include('likeplugin/seo.php');
include('likeplugin/seofields.php');
include('likeplugin/lastarticles.php');
include('likeplugin/allusers.php');
function remove_menus(){
remove_menu_page( 'edit.php' );
remove_menu_page( 'tools.php' );
remove_menu_page( 'plugins.php' );
//remove_menu_page( 'profile.php' );
remove_menu_page( 'edit-comments.php' );
}
add_action( 'admin_menu', 'remove_menus' );
add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );
add_theme_support( 'customize-selective-refresh-widgets' );
add_theme_support( 'post-thumbnails' );
// Регистрирую стили
wp_register_style( 'jquery-ui.min', get_template_directory_uri() . '/assets/css/jquery-ui.min.css');
wp_register_style( 'bootstrap.min', get_template_directory_uri() . '/assets/css/bootstrap.min.css');
wp_register_style( 'animate.min', get_template_directory_uri() . '/assets/css/animate.min.css');
wp_register_style( 'bootsnav', get_template_directory_uri() . '/assets/bootsnav/css/bootsnav.css');
wp_register_style( 'RYPP', get_template_directory_uri() . '/assets/css/RYPP.css');
wp_register_style( 'font-awesome.min', get_template_directory_uri() . '/assets/font-awesome/css/font-awesome.min.css');
wp_register_style( 'themify-icons', get_template_directory_uri() . '/assets/themify-icons/themify-icons.css');
wp_register_style( 'weather-icons.min', get_template_directory_uri() . '/assets/weather-icons/css/weather-icons.min.css');
wp_register_style( 'flaticon', get_template_directory_uri() . '/assets/css/flaticon.css');
wp_register_style( 'owl.carousel', get_template_directory_uri() . '/assets/owl-carousel/owl.carousel.css');
wp_register_style( 'owl.theme', get_template_directory_uri() . '/assets/owl-carousel/owl.theme.css');
wp_register_style( 'owl.transitions', get_template_directory_uri() . '/assets/owl-carousel/owl.transitions.css');
wp_register_style( 'style', get_template_directory_uri() . '/assets/css/style.css');
// Подключаю стили
wp_enqueue_style( 'jquery-ui.min');
wp_enqueue_style( 'bootstrap.min');
wp_enqueue_style( 'animate.min');
wp_enqueue_style( 'bootsnav');
wp_enqueue_style( 'RYPP');
wp_enqueue_style( 'font-awesome.min');
wp_enqueue_style( 'themify-icons');
wp_enqueue_style( 'weather-icons.min');
wp_enqueue_style( 'flaticon');
wp_enqueue_style( 'owl.carousel');
wp_enqueue_style( 'owl.theme');
wp_enqueue_style( 'owl.transitions');
wp_enqueue_style( 'style');
// Регистрирую скрипты
wp_register_script( 'jquery.min', get_template_directory_uri() . '/assets/js/jquery.min.js');
wp_register_script( 'jquery-ui.min', get_template_directory_uri() . '/assets/js/jquery-ui.min.js');
wp_register_script( 'bootstrap.min', get_template_directory_uri() . '/assets/js/bootstrap.min.js');
wp_register_script( 'bootsnav', get_template_directory_uri() . '/assets/bootsnav/js/bootsnav.js');
wp_register_script( 'theia-sticky-sidebar', get_template_directory_uri() . '/assets/js/theia-sticky-sidebar.js');
wp_register_script( 'RYPP', get_template_directory_uri() . '/assets/js/RYPP.js');
wp_register_script( 'owl.carousel.min', get_template_directory_uri() . '/assets/owl-carousel/owl.carousel.min.js');
wp_register_script( 'jcustom', get_template_directory_uri() . '/assets/js/custom.js');
// Подключаю скрипты
wp_enqueue_script( 'jquery.min');
wp_enqueue_script( 'jquery-ui.min');
wp_enqueue_script( 'bootstrap.min');
wp_enqueue_script( 'bootsnav');
wp_enqueue_script( 'theia-sticky-sidebar');
wp_enqueue_script( 'RYPP');
wp_enqueue_script( 'owl.carousel.min');
wp_enqueue_script( 'jcustom');