예제 #1
0
        <?php 
wp_head();
?>
    </head>
    <body <?php 
body_class();
?>
>
<?php 
df_float_menu();
?>

                <div id="wrapper">
                <?php 
$page_transition = df_options('df_page_loader');
$loading_animation_image = esc_url(df_options('loading_animation_image'));
if ($page_transition) {
    ?>
                    <div class="ajax_loader">
                        <div class="ajax_loader_1">
                            <?php 
    if ($loading_animation_image != "") {
        ?>
                            <div class="ajax_loader_2">
                                <img src="<?php 
        echo $loading_animation_image;
        ?>
" alt="" />
                            </div><?php 
    } else {
        df_loading_spinners();
<?php

$df_hide_search = df_options('hide_search_form');
$df_404_text = df_options('404_page_text');
?>


<section class="error-404 not-found">
    <div class="df_row-fluid">
        <div class="page-content df_span6">
            <div class="warpper-404">
                <div class="content-404">
                    <h1 class="header-404">Page Not Found</h1>
                    <?php 
if ($df_404_text == '') {
    echo '<p class="text-404">We`re sorry!<br />We can`t seem to find the page you`re looking for.<br />Please try your search again or go to <span class="df-grand-link"><a href="' . esc_url(get_home_url()) . '">Homepage</a></span></p>';
} else {
    echo '<p class = "text-404">' . esc_attr($df_404_text) . '</p>';
}
if ($df_hide_search == '0') {
    get_search_form();
}
?>
                </div>
            </div>
        </div><!-- .page-content -->
    </div>
</section><!-- .error-404 -->
<?php

$col_extra = df_options('header_widget_bar') == '' ? 3 : df_options('header_widget_bar');
if ($col_extra != 0) {
    ?>

    <div class="header-widgets collapse col-full">
        <div class="header-widgets-inner df_container-fluid">
            <div class="df_row-fluid">

                <?php 
    $i = 0;
    while ($i < $col_extra) {
        $i++;
        switch ($col_extra) {
            case 4:
                $span = 'df_span-sm-3';
                break;
            case 3:
                $span = 'df_span-sm-4';
                break;
            case 2:
                $span = 'df_span-sm-6';
                break;
            case 1:
                $span = 'df_span-sm-12';
                break;
        }
        echo '<div class="' . $span . '">';
        dynamic_sidebar('header-widgetbar-' . $i);
        echo '</div>';
예제 #4
0
<?php

df_get_template('global', '_header', 'widgetbar');
?>
 
<?php 
df_get_template('global', '_footer', 'scroll-top');
df_get_template('global', '_footer', 'widgetbar');
?>

<?php 
$df_footer_textbox_left_setting = df_options('footer_textbox_left_setting');
$df_footer_textbox_right_setting = df_options('footer_textbox_right_setting');
$allowed_html = array('a' => array('href' => array(), 'class' => array()), 'p' => array());
${$df_footer_textbox_left_setting} = wp_kses($df_footer_textbox_left_setting, $allowed_html, "http, https, ftp, mailto");
$df_footer_textbox_right_setting = wp_kses($df_footer_textbox_right_setting, $allowed_html, "http, https, ftp, mailto");
if (function_exists('icl_register_string')) {
    icl_register_string('AZ Footer Content', 'footer text left – ' . $df_footer_textbox_left_setting, $df_footer_textbox_left_setting);
}
if (function_exists('icl_register_string')) {
    icl_register_string('AZ Footer Content', 'footer text right – ' . $df_footer_textbox_right_setting, $df_footer_textbox_right_setting);
}
$icl_t = function_exists('icl_t');
$footer_text_left = $icl_t ? icl_t('AZ Footer Content', 'footer text left – ' . $df_footer_textbox_left_setting, $df_footer_textbox_left_setting) : $df_footer_textbox_left_setting;
$footer_text_right = $icl_t ? icl_t('AZ Footer Content', 'footer text right – ' . $df_footer_textbox_right_setting, $df_footer_textbox_right_setting) : $df_footer_textbox_right_setting;
?>
 

	<footer id="footer-colophon" class="site-footer" role="contentinfo">
		<div class="df_container-fluid">
			<div class="site-info col-full">
    function df_float_menu()
    {
        $site_title = get_bloginfo('name');
        $site_description = get_bloginfo('description');
        $df_logo = df_options('logo');
        $df_mobile_logo = df_options('mobile_logo');
        $header_navbar_position = df_options('header_navbar_position');
        $df_logo_target_link = home_url('/');
        $df_float_menu = df_options('menu_float_setting');
        if ($df_float_menu != '1') {
            ?>
         <div class="df-float-menu">
            <div class="df-navibar-inner df_container-fluid">

                <div class="site-branding">
                    <h1 class="site-title hide">
                        <a href="<?php 
            echo esc_url(home_url('/'));
            ?>
" class="<?php 
            df_sitename_class();
            ?>
" rel="home"><?php 
            $site_title;
            ?>
</a>
                    </h1>
                    <a href="<?php 
            echo esc_url($df_logo_target_link);
            ?>
" class="<?php 
            df_sitename_class();
            ?>
" rel="home"> <?php 
            echo $df_logo == '' ? $site_title : '<img src="' . esc_url($df_logo) . '" alt="' . $site_description . '">';
            ?>
</a>
                    <a href="<?php 
            echo esc_url($df_logo_target_link);
            ?>
" class="<?php 
            df_sitename_class();
            ?>
 mobile-logo" rel="home"> <?php 
            echo $df_mobile_logo == '' ? $site_title : '<img src="' . esc_url($df_mobile_logo) . '" alt="' . $site_description . '">';
            ?>
</a>
                </div>
                
                <?php 
            df_mobile_menu_header();
            ?>
                
                <nav class="main-navigation" role="navigation">
                <?php 
            df_navbar_menu(array('menu_wraper' => '<ul id="df-float-main-nav" class="df-navi">%MENU_ITEMS%' . "\n" . '</ul>', 'menu_items' => "\n" . '<li class="%ITEM_CLASS%"><a href="%ITEM_HREF%"%ESC_ITEM_TITLE%>%ICON%<span>%ITEM_TITLE%%SPAN_DESCRIPTION%</span></a>%SUBMENU%</li> ', 'submenu' => '<ul class="sub-nav df_row-fluid">%ITEM%</ul>', 'params' => array('act_class' => 'act', 'please_be_mega_menu' => true)));
            ?>
                </nav><!-- #site-navigation float -->
                
                
            </div><!-- .container fluid-->
        </div><!-- .df-navibar float-->
        <?php 
        }
        /*end if df_float_menu*/
    }
<?php

$site_title = get_bloginfo('name');
$site_description = get_bloginfo('description');
$df_logo = esc_url(df_options('logo'));
?>
 <div class="universe-search">
  <div class="universe-search-close ent-text"></div>
  <div class="df_container-fluid col-full">
    <div class="universe-search-form">
 
        <input type="text" id="searchfrm" name="search" class="universe-search-input" placeholder="<?php 
_e('Start typing to get your search on...', 'dahztheme');
?>
" value="" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial;" autocomplete="off" spellcheck="false" dir="ltr"> 
 
    </div>
      <div id="jp-container-search" class="jp-container-search">
          <div class="universe-search-results"></div>
      </div>
  </div>
</div>

 <div class="<?php 
df_navibar_class();
?>
">
 	<div class="df-navibar-inner">
		<div class="site-branding">
			<h1 class="site-title hide">
				<a href="<?php 
        ?>
</label>
                          <input type="text" value="<?php 
        echo esc_attr(get_search_query());
        ?>
" name="s" id="s" placeholder="<?php 
        _e('search', 'dahztheme');
        ?>
" />
                      </div>
                  </form>
                <?php 
    }
    // booking top bar
    if (class_exists('Dahzhotelbooking') && df_options('hotel_reservation_top')) {
        echo "<li class='booking-topbar-desktop'>";
        echo do_shortcode('[booking_form_top_bar]');
        echo "</li>";
    }
    if (class_exists('Dahzhotelbooking') && df_options('hotel_reservation_top') && class_exists('UberMenu')) {
        echo "<li class='menu-uber-li-reservation'>";
        echo '<a href="' . esc_url(df_options('hotel_link_booking_mobile')) . '" class="menu-uber-reservation"><span class=" button">' . _x('Reservation', 'dahztheme') . '</span></a>';
        echo "</li>";
    }
    ?>
        </ul>
      </div>	
	</div>
</div>
<?php 
}
<?php

$site_title = get_bloginfo('name');
$site_description = get_bloginfo('description');
$df_logo = esc_url(df_options('logo'));
$df_logo_mobile = esc_url(df_options('mobile_logo'));
$header_navbar_position = df_options('header_navbar_position');
?>

<?php 
if ($header_navbar_position == 'classic-left' || $header_navbar_position == 'classic-right') {
    df_get_template('global', '_header-navbar-classic');
} else {
    $page_landing = is_page_template('template-landing.php');
    if ($page_landing) {
        $df_logo_target_link = get_post_meta($post->ID, 'df_metabox_logo_link', true);
    } else {
        $df_logo_target_link = home_url('/');
    }
    df_get_template('global', '_header-topbar');
    ?>
  

 <div class="<?php 
    df_navibar_class();
    ?>
">
 	<div class="df-navibar-inner df_container-fluid">
		<div class="site-branding">
			<h1 class="site-title hide">
				<a href="<?php 
예제 #9
0
<?php

global $post, $archive_author_layout;
$author_ids = get_the_author_meta('ID');
$archive_author_layout = df_options('archive_author_layout');
$archive_author_grid_layout = df_options('archive_author_grid_layout');
$archive_author_list_layout = df_options('archive_author_list_layout');
?>

<?php 
get_header();
?>

<div id="content" class="df_container-fluid col-full">
    <div id="main-sidebar-container">
        <div class="df-main">
            <?php 
df_single_blog_author();
if ($archive_author_layout == 'list') {
    if ($archive_author_list_layout == 'standard_image_top') {
        echo '<div class="df-standard-image-top">';
    } elseif ($archive_author_list_layout == 'standard_image_left') {
        echo '<div class="df-standard-image-left">';
    } elseif ($archive_author_list_layout == 'standard_image_right') {
        echo '<div class="df-standard-image-right">';
    }
} elseif ($archive_author_layout == 'grid') {
    df_arc_author_grid_js();
    echo '<div class="df-blog-grid-standard ' . $archive_author_grid_layout . '">';
}
?>