</span>
		    	</a>
		    	<?php 
}
?>
	    	</div>
	    	
	    	<?php 
include locate_template('tpls/portfolio-single-prevnext.php');
?>

			<?php 
if (!$hide_project_description) {
    ?>
			<div class="portfolio-description-container<?php 
    when_match(get_field('item_description_visibility') == 'collapsed', 'is-collapsed');
    ?>
">
				
				<div class="portfolio-description-showinfo">
					<h3><?php 
    the_title();
    ?>
</h3>
					
					<?php 
    if (!empty($show_project_info_text)) {
        ?>
						<p><?php 
        echo $show_project_info_text;
        ?>
        echo implode(' ', $column_classes);
        ?>
">
					<div class="portfolio-images-slider do-lazy-load"<?php 
        if ($auto_switch) {
            ?>
 data-autoswitch="<?php 
            echo esc_attr($auto_switch);
            ?>
"<?php 
        }
        ?>
>
						<?php 
        foreach ($gallery_images as $j => $image) {
            $img_class = when_match($j > 0, 'hidden', '', false);
            ?>
						<div class="image-slide nivo">
							<a href="<?php 
            echo esc_url($image['url']);
            ?>
" data-lightbox-gallery="post-gallery-<?php 
            echo esc_attr($i);
            ?>
">
								<?php 
            laborator_show_image_placeholder($image['id'], $main_thumbnail_size, $img_class, true, '');
            ?>
							</a>
						</div>
						<?php 
 *	Kalium WordPress Theme
 *
 *	Laborator.co
 *	www.laborator.co
 */
include locate_template('tpls/portfolio-details.php');
$has_services_section = $launch_link_href || count($checklists);
$is_centered = $layout_type == 'centered';
wp_enqueue_script('nivo-lightbox');
wp_enqueue_style('nivo-lightbox-default');
?>
<div class="container">

	<div class="page-container">
    	<div class="single-portfolio-holder portfolio-type-3<?php 
when_match($is_centered, 'portfolio-centered-layout alt-six', 'alt-four');
?>
">

			<div class="title section-title<?php 
echo $is_centered ? ' text-on-center' : '';
?>
">
				<h1><?php 
the_title();
?>
</h1>
				<?php 
if ($sub_title) {
    ?>
				<p><?php 
            $videojs_atts .= ' poster="' . $video_poster['url'] . '"';
        }
        $video_shortcode = do_shortcode("[video src=\"{$video_file['url']}\"]");
        $video_shortcode = preg_replace(array('/<div.*?>.*?(<video.*?<\\/video>).*?<\\/div.*?>/s', '/(width|height)=".*?"\\s?/'), array('\\1', ''), $video_shortcode);
        $video_shortcode = str_replace(array('wp-video-shortcode', '<video'), array('video-js ' . $player_skin . ' auto-width', '<video ' . $videojs_atts), $video_shortcode);
        # Enqueue Scripts
        wp_enqueue_script(array('video-js'));
        wp_enqueue_style('video-js');
        ?>
			<div class="<?php 
        echo implode(' ', $description_class);
        ?>
">

				<div class="gallery-item-description hidden<?php 
        when_match($i == 0, 'first-entry');
        echo " description-{$description_alignment}";
        ?>
">
					<div class="post-formatting">
						<?php 
        echo $description;
        # escaped by ACF plugin
        ?>
					</div>
				</div>
				<div class="lgrad"></div>

			</div>
			<div class="<?php 
        echo implode(' ', $image_class);
Exemplo n.º 5
0
					<span class="ham"></span>
				</a>
				<?php 
}
?>
			</div>
		</div>
		
		<?php 
# Full Screen Menu Container
if ($menu_type == 'full-bg-menu') {
    ?>
		<div class="full-screen-menu menu-open-effect<?php 
    echo " {$menu_full_bg_skin}";
    echo when_match($menu_full_bg_submenu_indicator, 'submenu-indicator');
    echo when_match($menu_full_bg_alignment == 'centered', 'menu-aligned-center');
    ?>
">
			<div class="container">
				<nav>
				<?php 
    echo $nav;
    if ($menu_full_bg_search_field) {
        ?>
					<form class="search-form" method="get" action="<?php 
        echo esc_url(home_url('/'));
        ?>
" enctype="application/x-www-form-urlencoded">
						<input id="full-bg-search-inp" type="search" class="search-field"  value="<?php 
        echo get_search_query();
        ?>
" data-term="*"><?php 
    _e('All', 'kalium');
    ?>
</a>
				</li>
			<?php 
    foreach ($portfolio_categories as $i => $term) {
        $is_active = $current_portfolio_category && $current_portfolio_category == $term->slug;
        $term_link = get_term_link($term, 'portfolio_category');
        if ($is_page_type) {
            $term_link = $portfolio_url . '?portfolio-category=' . $term->slug;
        }
        ?>
			<li class="portfolio-category-<?php 
        echo $term->slug . ' ';
        when_match($is_active, 'active');
        ?>
">
				<a href="<?php 
        echo esc_url($term_link);
        ?>
" data-term="<?php 
        echo esc_attr($term->slug);
        ?>
"><?php 
        echo esc_html($term->name);
        ?>
</a>
			</li>
			<?php 
    }
				<?php 
        if ($link_url) {
            ?>
				<a href="<?php 
            echo esc_url($link_url);
            ?>
" target="<?php 
            echo $link_target ? '_blank' : '_self';
            ?>
">
				<?php 
        }
        ?>

					<?php 
        laborator_show_image_placeholder($img['id'], $main_thumbnail_size, when_match($i > 0, 'hidden', '', false), false, '');
        ?>

				<?php 
        if ($link_url) {
            ?>
				</a>
				<?php 
        }
        ?>

				<?php 
        if ($caption) {
            ?>
				<div class="caption">
					<?php 
" data-wow-duration="1s"<?php 
if ($wow_one_by_one) {
    ?>
 data-wow-delay="<?php 
    echo esc_attr($wow_delay);
    ?>
s"<?php 
}
?>
>
		<div class="thumb">
			<?php 
if ($hover_style != 'none') {
    ?>
			<div class="hover-state padding<?php 
    when_match($hover_style == 'distanced', 'hover-style-one');
    ?>
">
				<?php 
    if ($description) {
        ?>
				<div class="social">
					<?php 
        echo $description;
        # escaped by ACF plugin
        ?>
				</div>
				<?php 
    }
    ?>
<?php

/**
 *	Kalium WordPress Theme
 *
 *	Laborator.co
 *	www.laborator.co
 */
# Show Simple Thumbnail or Gallery
if (!get_data('blog_single_thumbnails')) {
    return;
}
# Enqueue Nivo
wp_enqueue_script('nivo-lightbox');
wp_enqueue_style('nivo-lightbox-default');
?>
<div class="blog-head-holder nivo<?php 
when_match($blog_post_list_lazy_load, 'do-lazy-load-on-shown');
?>
">
	<?php 
include locate_template('tpls/post-thumbnail.php');
?>
</div>
function lab_wc_cart_menu_icon_mobile()
{
    if (!get_data('shop_cart_icon_menu')) {
        return;
    }
    $icon = get_data('shop_cart_icon');
    $hide_empty = get_data('shop_cart_icon_menu_hide_empty');
    $show_cart_contents = get_data('shop_cart_contents');
    $cart_items_counter = get_data('shop_cart_icon_menu_count');
    $ajax_mode = get_data('shop_cart_icon_menu_ajax');
    $cart_items = WC()->cart->cart_contents_count;
    ?>
	<div class="cart-icon-link-mobile-container">
		<a href="<?php 
    echo WC()->cart->get_cart_url();
    ?>
" class="cart-icon-link-mobile icon-type-<?php 
    echo esc_attr($icon);
    ?>
">
			<i class="icon icon-<?php 
    echo esc_attr($icon);
    ?>
"></i>
			
			<?php 
    _e('Cart', 'kalium');
    ?>
			
			<?php 
    if ($cart_items_counter) {
        ?>
			<span class="items-count<?php 
        when_match($ajax_mode, 'hide-notification');
        ?>
 cart-items-<?php 
        echo esc_attr($cart_items);
        ?>
"><?php 
        echo $ajax_mode ? '...' : $cart_items;
        ?>
</span>
			<?php 
    }
    ?>
		</a>
	</div>
	<?php 
}
Exemplo n.º 11
0
    $force_heading_title = $blog_title;
    $force_heading_description = $blog_description;
}
get_header();
?>
<div class="container">

	<div class="blog-holder<?php 
echo $is_masonry ? ' is-masonry-mode' : '';
?>
">
		<div class="row">
			<div class="col-md-<?php 
echo $sidebar_position == 'hide' ? 12 : 9;
when_match($sidebar_position == 'left', 'pull-right-md');
when_match($sidebar_position != 'hide', 'sidebar-present');
?>
">

				<?php 
// Loading Indicator
if ($is_masonry) {
    echo '<div class="masonry-still-loading">
						<strong>' . __('Loading posts...', 'kalium') . '</strong>
					</div>';
}
?>
				<div<?php 
echo $is_masonry ? ' id="isotope-container"' : '';
?>
 class="blog-posts-holder">
            $link = is_single() ? $image['url'] : $permalink;
            $caption = isset($image['caption']) ? $image['caption'] : '';
            $is_video = preg_match("/(youtube\\.com|vimeo\\.com)/i", $caption);
            if ($is_video) {
                $link = $image['caption'];
                $caption = '';
            }
            ?>
				<a href="<?php 
            echo esc_url($link);
            ?>
" title="<?php 
            echo esc_attr($caption);
            ?>
" class="<?php 
            when_match($i > 0, 'hidden');
            ?>
"<?php 
            if (is_single()) {
                ?>
 data-lightbox-gallery="post-gallery"<?php 
            }
            ?>
>
					<?php 
            echo laborator_show_image_placeholder($image['id'], $thumb_size, '', $blog_post_list_lazy_load);
            ?>
				</a>
				<?php 
            $i++;
        }
Exemplo n.º 13
0
            $custom_logo_max_width = $logo_image[1];
        }
    } else {
        $custom_logo_image = false;
    }
    if ($custom_logo_image && $custom_logo_max_width) {
        echo '<style>.logo-image { width: ' . $custom_logo_max_width . 'px; }</style>';
    }
}
?>
<a href="<?php 
echo home_url();
?>
" class="<?php 
echo esc_attr($header_logo_class);
when_match($use_uploaded_logo, 'logo-image', 'logo-text');
?>
">
<?php 
if ($use_uploaded_logo && isset($logo_image_url)) {
    ?>
	<img src="<?php 
    echo esc_url(str_replace(array('http:', 'https:'), '', $logo_image_url));
    ?>
" width="<?php 
    echo $logo_image[1];
    ?>
" height="<?php 
    echo $logo_image[2];
    ?>
" alt="logo" />
Exemplo n.º 14
0
# Body Calculate height and min-height
$border_width *= 2;
generate_custom_style('body', "height: calc(100% - {$border_width}px); min-height: calc(100% - {$border_width}px);");
?>
<div class="page-border<?php 
echo when_match($animations == 'fade', 'wow fadeIn');
?>
" data-wow-duration="<?php 
echo esc_attr($animation_duration) . 's';
?>
" data-wow-delay="<?php 
echo esc_attr($animation_delay) . 's';
?>
">
	<div class="top-border<?php 
echo when_match($animations == 'slide', 'wow fadeInDown');
?>
"></div>
	<div class="right-border<?php 
echo when_match($animations == 'slide', 'wow fadeInRight');
?>
"></div>
	<div class="bottom-border<?php 
echo when_match($animations == 'slide', 'wow fadeInUp');
?>
"></div>
	<div class="left-border<?php 
echo when_match($animations == 'slide', 'wow fadeInLeft');
?>
"></div>
</div>