<?php /** * $Desc * * @author Gaviasthemes Team * @copyright Copyright (C) 2021 gaviasthemes. All Rights Reserved. * @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html * */ get_header(); $page_id = zilom_id(); $default_sidebar_config = zilom_get_option('single_portfolio_sidebar', 'right-sidebar'); $default_left_sidebar = zilom_get_option('single_portfolio_left_sidebar', 'blog_sidebar'); $default_right_sidebar = zilom_get_option('single_portfolio_right_sidebar', 'blog_sidebar'); $sidebar_layout_config = get_post_meta($page_id, 'zilom_sidebar_config', true); $left_sidebar = get_post_meta($page_id, 'zilom_left_sidebar', true); $right_sidebar = get_post_meta($page_id, 'zilom_right_sidebar', true); if ($sidebar_layout_config == "") { $sidebar_layout_config = $default_sidebar_config; } if ($left_sidebar == "") { $left_sidebar = $default_left_sidebar; } if ($right_sidebar == "") { $right_sidebar = $default_right_sidebar; } $left_sidebar_config = array('active' => false); $right_sidebar_config = array('active' => false); $main_content_config = array('class' => 'col-lg-12 col-xs-12'); $sidebar_config = zilom_sidebar_global($sidebar_layout_config, $left_sidebar, $right_sidebar); extract($sidebar_config); $_rand = wp_rand(); ?> <section id="wp-main-content" class="clearfix main-page"> <?php do_action( 'zilom_before_page_content' ); ?> <div class="container"> <div class="main-page-content row"> <div class="content-page <?php echo esc_attr($main_content_config['class']); ?>"> <div id="wp-content" class="wp-content clearfix"> <?php while ( have_posts() ) : the_post(); ?> <div class="portfolio-thumbnail"> <?php $gallery = get_post_meta(get_the_ID(), 'zilom_gallery_images', false ); ?> <?php if(count($gallery)){ ?> <div class="init-carousel-owl-theme owl-carousel" data-items="2" data-items_lg="2" data-items_md="2" data-items_sm="2" data-items_xs="1" data-loop="0" data-speed="1000" data-auto_play="1" data-auto_play_speed="1000" data-auto_play_timeout="5000" data-auto_play_hover="1" data-navigation="1" data-rewind_nav="1" data-pagination="0" data-mouse_drag="1" data-touch_drag="1"> <?php foreach ($gallery as $image) { $img = wp_get_attachment_image_src($image, 'full'); $image_url = isset($img[0]) ? $img[0] : ''; ?> <?php if(!empty($image_url)){ ?> <div class="item-colums"> <div class="gallery-item"> <img src="<?php echo esc_url($img[0]) ?>" alt="<?php the_title_attribute() ?>" /> <a class="photo-gallery" href="<?php echo esc_url($image_url); ?>" data-elementor-lightbox-slideshow="gallery-<?php echo esc_attr($_rand); ?>"><i class="las la-expand"></i></a> </div> </div> <?php } ?> <?php } ?> </div> <?php }else{ ?> <?php the_post_thumbnail( 'full', array( 'alt' => get_the_title() ) ); ?> <?php } ?> </div> <div class="portfolio-content"> <?php $informations = get_post_meta(get_the_ID(), 'pinformations', false ); if(isset($informations[0]) && $informations){ $informations = $informations[0]; $informations = array_filter($informations); }else{ $informations = false; } ?> <?php if($informations && !empty($informations)){ ?> <div class="portfolio-information"> <ul> <?php foreach ($informations as $key => $info) { ?> <?php if(isset($info['value']) && !empty($info['value'])){ ?> <li> <span class="label"><?php echo esc_html($info['label']) ?>: </span> <span class="value"><?php echo esc_html($info['value']) ?></span> </li> <?php } ?> <?php } ?> </ul> </div> <?php } ?> <div class="content-inner"> <h1 class="title"><?php echo get_the_title() ?></h1> <?php the_content() ?> </div> </div> <?php endwhile; ?> <?php if( comments_open() || get_comments_number() ) { comments_template(); } ?> <?php zilom_post_nav(); ?> </div> </div> <!-- Left sidebar --> <?php if($left_sidebar_config['active']): ?> <div class="sidebar wp-sidebar sidebar-left <?php echo esc_attr($left_sidebar_config['class']); ?>"> <?php do_action( 'zilom_before_sidebar' ); ?> <div class="sidebar-inner"> <?php dynamic_sidebar($left_sidebar_config['name'] ); ?> </div> <?php do_action( 'zilom_after_sidebar' ); ?> </div> <?php endif ?> <!-- Right Sidebar --> <?php if($right_sidebar_config['active']): ?> <div class="sidebar wp-sidebar sidebar-right <?php echo esc_attr($right_sidebar_config['class']); ?>"> <?php do_action( 'zilom_before_sidebar' ); ?> <div class="sidebar-inner"> <?php dynamic_sidebar($right_sidebar_config['name'] ); ?> </div> <?php do_action( 'zilom_after_sidebar' ); ?> </div> <?php endif ?> </div> </div> <?php do_action( 'zilom_after_page_content' ); ?> </section> <?php get_footer(); ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
css | Folder | 0755 |
|
|
fonts | Folder | 0755 |
|
|
images | Folder | 0755 |
|
|
includes | Folder | 0755 |
|
|
js | Folder | 0755 |
|
|
languages | Folder | 0755 |
|
|
nsl | Folder | 0755 |
|
|
sass | Folder | 0755 |
|
|
templates | Folder | 0755 |
|
|
tribe | Folder | 0755 |
|
|
tribe-events | Folder | 0755 |
|
|
tutor | Folder | 0755 |
|
|
woocommerce | Folder | 0755 |
|
|
404.php | File | 977 B | 0644 |
|
archive-courses.php | File | 2.09 KB | 0644 |
|
archive.php | File | 2.08 KB | 0644 |
|
comments.php | File | 3.41 KB | 0644 |
|
content-audio.php | File | 3.21 KB | 0644 |
|
content-gallery.php | File | 3.58 KB | 0644 |
|
content-link.php | File | 2.86 KB | 0644 |
|
content-quote.php | File | 2.84 KB | 0644 |
|
content-video.php | File | 3.11 KB | 0644 |
|
content.php | File | 2.92 KB | 0644 |
|
footer-dashboard.php | File | 624 B | 0644 |
|
footer.php | File | 1.84 KB | 0644 |
|
functions.php | File | 9.78 KB | 0644 |
|
header-builder.php | File | 1.7 KB | 0644 |
|
header-default.php | File | 3.23 KB | 0644 |
|
header.php | File | 585 B | 0644 |
|
index.php | File | 2.53 KB | 0644 |
|
page.php | File | 589 B | 0644 |
|
readme.txt | File | 0 B | 0644 |
|
screenshot.png | File | 183.1 KB | 0644 |
|
search.php | File | 4.47 KB | 0644 |
|
searchform.php | File | 677 B | 0644 |
|
sidebar.php | File | 280 B | 0644 |
|
single-event.php | File | 353 B | 0644 |
|
single-gva_team.php | File | 6.05 KB | 0644 |
|
single-portfolio.php | File | 6.07 KB | 0644 |
|
single.php | File | 3.18 KB | 0644 |
|
style.css | File | 946 B | 0644 |
|
taxonomy-category_portfolio.php | File | 3.03 KB | 0644 |
|
wpml-config.xml | File | 11.38 KB | 0644 |
|