', '' ); }else if( is_404() ){ ?>

', '
' ); } ?>
'; do_action('hotelone_header_section_start'); if ($header_pos == 'below_slider' ) { do_action('hotelone_header_end'); } do_action('hotelone_site_start'); if ($header_pos != 'below_slider' ) { do_action('hotelone_header_end'); } do_action('hotelone_header_section_end'); echo ''; } } if ( ! function_exists('hotelone_header_top') ) { function hotelone_header_top(){ hotelone_load_section( 'header_top' ); } } add_action( 'hotelone_header_section_start', 'hotelone_header_top' ); if ( ! function_exists('hotelone_navigation') ) { function hotelone_navigation(){ hotelone_load_section( 'navigation' ); } } add_action( 'hotelone_site_start', 'hotelone_navigation' ); if ( ! function_exists('hotelone_big_section') ) { function hotelone_big_section(){ if( is_front_page() && is_page_template('template-homepage.php') ){ hotelone_load_section('slider'); }else if( is_404() ){ hotelone_breadcrumbs(); }else{ hotelone_breadcrumbs(); } } } add_action( 'hotelone_header_end', 'hotelone_big_section' ); if ( ! function_exists( 'hotelone_logo' ) ) { function hotelone_logo(){ $class = array(); $html = ''; if ( function_exists( 'has_custom_logo' ) ) { if ( has_custom_logo()) { $html .= get_custom_logo(); }else{ if ( is_front_page() && !is_home() ) { $html .= '

' . get_bloginfo('name') . '

'; }else{ $html .= '

' . get_bloginfo('name') . '

'; } $description = get_bloginfo( 'description', 'display' ); if ( $description || is_customize_preview() ) { $html .= '

'.$description.'

'; } } } echo ''; echo wp_kses_post( $html ); echo ''; } } if ( ! function_exists( 'hotelone_load_section' ) ) { function hotelone_load_section( $Section_Id ){ do_action('hotelone_before_section_' . $Section_Id); do_action('hotelone_before_section_part', $Section_Id); get_template_part('section-all/section', $Section_Id ); do_action('hotelone_after_section_part', $Section_Id); do_action('hotelone_after_section_' . $Section_Id); } } if( ! function_exists('hotelone_footer_widget')){ function hotelone_footer_widget(){ $column = absint( get_theme_mod( 'footer_column_layout' , 4 ) ); $max_cols = 12; $layouts = 12; if ( $column > 1 ){ $default = "12"; switch ( $column ) { case 4: $default = '3+3+3+3'; break; case 3: $default = '4+4+4'; break; case 2: $default = '6+6'; break; } $layouts = sanitize_text_field( get_theme_mod( 'footer_custom_'.$column.'_columns', $default ) ); } $layouts = explode( '+', $layouts ); foreach ( $layouts as $k => $v ) { $v = absint( trim( $v ) ); $v = $v >= $max_cols ? $max_cols : $v; $layouts[ $k ] = $v; } $have_widgets = false; for ( $count = 0; $count < $column; $count++ ) { $id = 'footer-' . ( $count + 1 ); if ( is_active_sidebar( $id ) ) { $have_widgets = true; } } if ( $column > 0 && $have_widgets ) { ?> Britetechs','hotelone' )); $disable_bt = get_theme_mod('hotelone_btt_hide', false); ?> $v) { if (isset ($v['content_page'])) { $v['content_page'] = absint($v['content_page']); if ($v['content_page'] > 0) { $page_ids[] = wp_parse_args($v, array( 'icon_type' => 'icon', 'image' => '', 'icon' => 'gg', 'enable_link' => 0 )); } } } } return $page_ids; } } if ( ! function_exists( 'hotelone_get_section_rooms_data' ) ) { function hotelone_get_section_rooms_data(){ $rooms = get_theme_mod('hotelone_room'); if (is_string($rooms)) { $rooms = json_decode($rooms, true); } $page_ids = array(); if (!empty($rooms) && is_array($rooms)) { foreach ($rooms as $k => $v) { if (isset ($v['content_page'])) { $v['content_page'] = absint($v['content_page']); if ($v['content_page'] > 0) { $page_ids[] = wp_parse_args($v, array( 'rating' => '5', 'person' => 2, 'price' => '$100 / Per Night', 'enable_link' => 0 )); } } } } return $page_ids; } } add_action('wp_head','hotelone_primary_color'); function hotelone_primary_color(){ $custom_color_enable = get_theme_mod( 'custom_color_enable', false ); $theme_color = get_theme_mod( 'theme_color', '#e69b41' ); $custom_color_scheme = get_theme_mod( 'custom_color_scheme', '#e69b41' ); if($custom_color_enable==true){ $color = $custom_color_scheme; } else{ $color = $theme_color; } echo ''; } function hotelone_set_color( $color = '#e69b41' ){ list($r, $g, $b) = sscanf($color, "#%02x%02x%02x"); $option = wp_parse_args( get_option( 'hotelone_option', array() ), hotelone_reset_data() ); $color = isset($option['theme_color'])?$option['theme_color']:$color; ?> .nav>li>a{ padding: 10px px; } .subheader .subheaderInner{ padding-top:px; padding-bottom:px; } .subheader .subheaderInner{ background-color: ; } .subheader .subheaderInner .pageTitle{ color: ; } input:focus, textarea:focus, select:focus, .wpcf7 input[type='text']:focus, .wpcf7 input[type='email']:focus, .wpcf7 input[type='tel']:focus, .wpcf7 input[type='url']:focus, .wpcf7 input[type='number']:focus, .wpcf7 input[type='date']:focus, .wpcf7 textarea:focus { border-color: ; } input[type='submit'], .wpcf7-submit, .carousel-control, .big_title:after, .card-service .service-icon, .callout_section .callout-btn, .video_section .video-icon, .video_section .video-icon:hover, .card-room .overlay-btn, .rooms-tabs li a:hover, .rooms-tabs li a:focus, .rooms-tabs li.active a, #testimonial_carousel .carousel-indicators .active, .news_overlay_icon, .more-link, .count .count_icon, .team_social_icons, .contact_icons li span, .gallery-area .gallery-icon, .continue, a.continue:hover, a.continue:focus, .blog-tags li span, .page-numbers.current, .secondary .widget .widget_title:before, .footer_section .copy_right, .footer_section .widget .widget_title:after, .footer-addr .footer-cont-icon, .bottomScrollBtn, .more-link:hover, .more-link:focus, .hotel-primary, .hotel-secondry:hover, .owl-carousel .owl-dot, .news_date span:first-child { background-color: ; } a:hover, a:focus, .navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:focus, .navbar-default .navbar-nav>.open>a:hover, .dropdown-menu>.active>a:focus, .dropdown-menu>.active>a:hover, .navbar-default .navbar-nav .dropdown.open .dropdown-menu>li>a:focus, .navbar-default .navbar-nav .dropdown.open .dropdown-menu>li>a:hover, .navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus, .navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover, .hotel-primary:hover, .hotel-primary:focus, .section .section-title span, .card-service .service-content a:hover h4, .card-service .service-content a:focus h4, .card-room .overlay-btn:hover, .card-room .overlay-btn:focus, .card-room .room-content a .room_title:hover, .card-room .room-content a .room_title:focus, .testimonial .testimonial_title, .news .news_title:hover h3, .news .news_title:focus h3, .news .news_details a, .count .counter_title, .team .team_title:hover h3, .team .team_title:focus h3, .aboutPage_section h2 span, .contactPage a, .contactPage a:hover, .contactPage a:focus, .contactPageTitle, .galleryPage .galleryTitle span, .site-content a, .blog-text h4 a:hover, .error-page h2, .widget ul li a:hover, .widget ul li a:focus, .footer_section a, .footer_section .widget ul li a:hover, .footer_section .widget ul li a:focus, .footer-post .footer-post-title, .footer-post .footer-post-title:hover h4, .author-block .social-links ul li a:hover, .author-block .social-links ul li a:focus { color: ; } .card-room .overlay-btn, .rooms-tabs li a:hover, .rooms-tabs li a:focus, .rooms-tabs li.active a, .team, .team_social_icons, .gallery-area .gallery-icon, .hotel-primary, .hotel-primary:focus, .hotel-primary:hover, .hotel-primary:focus, .hotel-secondry:hover, .hotel-secondry:focus{ border: 1px solid ; } .aboutPage_section .about_thumb{ border: 3px solid ; } blockquote{ border-left: 1px solid ; } body{ font-family: '' !important; } .navbar-nav > li > a, .dropdown-menu > li > a{ font-family: '' !important; } h1, h2, h3, h4, h5, h6{ font-family: ''; } 'ids', 'hide_empty' => 1, 'number' => 2, ) ); $category_count = count( $categories ); set_transient( 'hotelone_categories', $category_count ); } if ( is_preview() ) { return true; } return $category_count > 1; } /** * Author Profile * */ add_filter( 'user_contactmethods', 'hotelone_author_profile', 10, 1); function hotelone_author_profile(){ $contactmethods['author_facebook'] = __('Author Facebook URL','hotelone'); $contactmethods['author_twitter'] = __('Author Twitter URL','hotelone'); $contactmethods['author_linkedin'] = __('Author Linkedin URL','hotelone'); $contactmethods['author_googleplus'] = __('Author Google Plus URL','hotelone'); $contactmethods['author_youtube'] = __('Author Youtube URL','hotelone'); return $contactmethods; } if ( ! function_exists( 'hotelone_author_detail' ) ) : function hotelone_author_detail(){ ?>