Пример #1
0
				<div class="head-socials">
					<ul>
						<?php 
$socials = array('twitter', 'facebook', 'google-plus', 'instagram', 'pinterest', 'vimeo', 'youtube', 'linkedin');
for ($i = 0; $i < count($socials); $i++) {
    $url = '';
    $s = $socials[$i];
    $url = dess_setting('dess_' . $s);
    echo $url != '' ? '<li><a target="_blank" href="' . $url . '"><img src="' . esc_url(get_stylesheet_directory_uri()) . '/images/' . $s . '-icon.png" alt="' . $s . '" /></a></li>' : '';
}
?>
					</ul>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		<div class="head-logo">
			<div class="container">
				<div class="logo">
					<?php 
echo dess_setting('dess_logo') != '' ? '<a href="' . home_url() . '"><img src="' . dess_setting('dess_logo') . '" class="logo" alt="logo" /></a>' : '<a href="' . home_url() . '"><img src="' . esc_url(get_stylesheet_directory_uri()) . '/images/logo.png" class="logo" alt="logo" /></a>';
?>
	
					<?php 
//echo '<a href="'.home_url().'"><img src="'.get_header_image().'" class="logo" alt="logo" /></a>';
?>
	
				</div>
			</div>
		</div>
	</header>
Пример #2
0
<?php

get_header();
?>
	<?php 
if (dess_setting('dess_show_slider') == 1) {
    $args = array('post_type' => 'post', 'meta_key' => 'show_in_slider', 'meta_value' => 'yes', 'posts_per_page' => -1, 'ignore_sticky_posts' => true);
    $the_query = new WP_Query($args);
    if ($the_query->have_posts()) {
        echo '<div class="home_slider"><ul class="slides">';
        while ($the_query->have_posts()) {
            $the_query->the_post();
            $type = get_post_meta($post->ID, 'page_featured_type', true);
            switch ($type) {
                case 'youtube':
                    echo '<li><iframe width="560" height="315" src="http://www.youtube.com/embed/' . get_post_meta(get_the_ID(), 'page_video_id', true) . '?wmode=transparent" frameborder="0" allowfullscreen></iframe></li>';
                    break;
                case 'vimeo':
                    echo '<li><iframe src="http://player.vimeo.com/video/' . get_post_meta(get_the_ID(), 'page_video_id', true) . '?title=0&amp;byline=0&amp;portrait=0&amp;color=03b3fc" width="500" height="338" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></li>';
                    break;
                default:
                    $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
                    echo '<li><a style="background-image: url(' . $thumbnail[0] . ')" class="home_slide_bg" href="' . get_permalink() . '"></a><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>';
                    break;
            }
        }
        echo '</ul></div>';
        wp_reset_postdata();
    }
}
?>
Пример #3
0
		<footer id="foot">
			<div class="main-foot">
				<div class="container">
					<div class="foot-col">
						<?php 
dynamic_sidebar('footer-1');
?>
					</div>
					<div class="foot-col">
						<?php 
dynamic_sidebar('footer-2');
?>
					</div>
					<div class="foot-col">
						<?php 
dynamic_sidebar('footer-3');
?>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div class="bottom-foot">
				<div class="container">
					<p class="credits"><?php 
echo dess_setting('dess_copyright') != '' ? dess_setting('dess_copyright') : '2015 Copyright. Powered by WordPress';
?>
</p>
				</div>
			</div>
		</footer>
		<?php