This commit is contained in:
nguyen dung
2022-02-18 16:43:41 +07:00
commit 39b8cb3612
4470 changed files with 1378320 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<div class="page-title normal-title">
<div class="page-title-inner container flex-row medium-flex-wrap medium-text-center">
<div class="flex-col flex-grow">
<h1 class="entry-title is-larger uppercase pb-0 pt-0 mb-0">
<?php
if(is_tax()){
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
echo $term->name;
} else { the_title(); } ?>
</h1>
</div>
<div class="flex-col flex-right">
<?php get_flatsome_portfolio_breadcrumbs(); ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,28 @@
<div class="page-title portfolio-featured-title featured-title no-overflow">
<div class="page-title-bg">
<div class="title-bg fill bg-fill" data-parallax-container=".page-title" data-parallax-background data-parallax="-4"
<?php if(get_theme_mod('portfolio_archive_bg')) echo 'style="background-image:url('.do_shortcode(get_theme_mod('portfolio_archive_bg')).')"'; ?>>
</div>
<div class="title-overlay fill" style="background-color: rgba(0,0,0,.6)"></div>
</div>
<div class="page-title-inner container flex-row dark">
<div class="flex-col flex-grow">
<?php do_action('flatsome_portfolio_title_left'); ?>
</div>
<div class="flex-col flex-center text-center" data-parallax="-1" data-parallax-fade="true">
<h1 class="entry-title is-xlarge uppercase">
<?php
if(is_tax()){
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
echo $term->name;
} else { the_title(); } ?>
</h1>
<?php do_action('flatsome_portfolio_title_after'); ?>
</div>
<div class="flex-col flex-grow text-right">
<?php do_action('flatsome_portfolio_title_right'); ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,13 @@
<div class="page-title">
<div class="page-title-inner container flex-row">
<div class="flex-col flex-grow">
<h1 class="entry-title uppercase mb-0">
<?php
if(is_tax()){
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
echo $term->name;
} else { the_title(); } ?>
</h1>
</div>
</div>
</div>

View File

@@ -0,0 +1,38 @@
<?php get_template_part( 'template-parts/portfolio/archive-portfolio-title', get_theme_mod( 'portfolio_archive_title', '' ) ); ?>
<div id="content" role="main" class="page-wrapper">
<?php
$cat = false;
$filter = get_theme_mod( 'portfolio_archive_filter', 'left' );
$filter_nav = get_theme_mod( 'portfolio_archive_filter_style', 'line-grow' );
if ( $filter == 'disabled' || is_tax() ) $filter = 'disabled';
// Check if category.
if ( is_tax() ) $cat = get_queried_object()->term_id;
// Height.
$height = get_theme_mod( 'portfolio_height', 0 ) ? get_theme_mod( 'portfolio_height', 0 ) : '';
echo flatsome_apply_shortcode( 'ux_portfolio', array(
'image_height' => $height,
'filter' => $filter,
'filter_nav' => $filter_nav,
'type' => 'row',
'cat' => $cat,
'orderby' => get_theme_mod( 'portfolio_archive_orderby', 'menu_order' ),
'order' => get_theme_mod( 'portfolio_archive_order', 'desc' ),
'col_spacing' => get_theme_mod( 'portfolio_archive_spacing', 'small' ),
'columns' => get_theme_mod( 'portfolio_archive_columns', 4 ),
'columns__md' => get_theme_mod( 'portfolio_archive_columns_tablet', 3 ),
'columns__sm' => get_theme_mod( 'portfolio_archive_columns_mobile', 2 ),
'depth' => get_theme_mod( 'portfolio_archive_depth', 0 ),
'depth_hover' => get_theme_mod( 'portfolio_archive_depth_hover', 0 ),
'image_radius' => get_theme_mod( 'portfolio_archive_image_radius', 0 ),
'image_size' => get_theme_mod( 'portfolio_archive_image_size', 'medium' ),
) );
?>
<?php wp_reset_query(); ?>
</div>

View File

@@ -0,0 +1,5 @@
<?php while ( have_posts() ) : the_post(); ?>
<?php if(get_the_content()) {the_content();} else {
the_post_thumbnail('original');
}; ?>
<?php endwhile; wp_reset_query(); // end of the loop. ?>

View File

@@ -0,0 +1,13 @@
<?php if(get_theme_mod('portfolio_next_prev',1) == 0) return; ?>
<div class="row">
<div class="large-12 col pb-0">
<div class="flex-row flex-has-center next-prev-nav bt bb">
<div class="flex-col flex-left text-left">
<?php flatsome_previous_post_link_portfolio(); ?>
</div>
<div class="flex-col flex-right text-right">
<?php flatsome_next_post_link_portfolio(); ?>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,15 @@
<?php
/**
* Portfolio related
*/
if ( get_theme_mod( 'portfolio_related', 1 ) == 0 ) {
return;
}
$terms = get_the_terms( get_the_ID(), 'featured_item_category' );
$term_id = $terms ? current( $terms )->term_id : '';
$height = get_theme_mod( 'portfolio_height' );
$height = $height ? $height : '';
echo do_shortcode( '<div class="portfolio-related">[ux_portfolio image_height="' . $height . '" class="portfolio-related" exclude="' . get_the_ID() . '" cat="' . $term_id . '"]</div>' );

View File

@@ -0,0 +1,31 @@
<div class="row">
<?php if(!flatsome_option('portfolio_title')) { ?>
<div class="large-4 col col-divided pb-0">
<div class="featured_item_cats breadcrumbs pt-0">
<?php echo get_the_term_list( get_the_ID(), 'featured_item_category', '', '<span class="divider">|</span>', '' ); ?>
</div>
<h1 class="entry-title is-xlarge uppercase"><?php the_title(); ?></h1>
<?php if ( get_theme_mod( 'portfolio_share', 1 ) ) : ?>
<div class="portfolio-share is-small">
<?php echo do_shortcode( '[share style="small"]' ) ?>
</div>
<?php endif; ?>
</div>
<?php } ?>
<div class="col col-fit pb-0">
<?php the_excerpt();?>
<?php if(get_the_term_list( get_the_ID(), 'featured_item_tag')) { ?>
<div class="item-tags is-small uppercase bt pb-half pt-half">
<strong><?php _e('Tags','woocommerce'); ?>:</strong>
<?php echo strip_tags (get_the_term_list( get_the_ID(), 'featured_item_tag', '', ' / ', '' )); ?>
</div>
<?php } ?>
<?php if(flatsome_option('portfolio_title') =='featured') { ?>
<div class="portfolio-share">
<?php echo do_shortcode('[share]')?>
</div>
<?php } ?>
</div>
</div>

View File

@@ -0,0 +1,21 @@
<?php if(!flatsome_option('portfolio_title')) { ?>
<div class="featured_item_cats breadcrumbs mb-half">
<?php echo get_the_term_list( get_the_ID(), 'featured_item_category', '', '<span class="divider">|</span>', '' ); ?>
</div>
<h1 class="entry-title uppercase"><?php the_title(); ?></h1>
<?php } ?>
<?php the_excerpt();?>
<?php if ( get_theme_mod( 'portfolio_share', 1 ) ) : ?>
<div class="portfolio-share">
<?php echo do_shortcode( '[share style="small"]' ) ?>
</div>
<?php endif; ?>
<?php if(get_the_term_list( get_the_ID(), 'featured_item_tag')) { ?>
<div class="item-tags is-small bt pt-half uppercase">
<strong><?php _e('Tags','woocommerce'); ?>:</strong>
<?php echo strip_tags (get_the_term_list( get_the_ID(), 'featured_item_tag', '', ' / ', '' )); ?>
</div>
<?php } ?>

View File

@@ -0,0 +1,10 @@
<div class="page-title normal-title portfolio-breadcrumb-title">
<div class="page-title-inner container flex-row medium-flex-wrap medium-text-center">
<div class="flex-col flex-grow">
<h1 class="entry-title is-larger uppercase pb-0 pt-0 mb-0"><?php the_title(); ?></h1>
</div>
<div class="flex-col flex-right">
<?php get_flatsome_portfolio_breadcrumbs(); ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<div class="page-title portfolio-featured-title featured-title no-overflow">
<div class="page-title-bg fill">
<div class="title-bg fill bg-fill" style="background-image: url('<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>');" data-parallax-container=".page-title" data-parallax="-2" data-parallax-background></div>
<div class="title-overlay fill" style="background-color: rgba(0,0,0,.6)"></div>
</div>
<div class="page-title-inner container flex-row dark">
<div class="flex-col flex-center text-center">
<div class="featured_item_cats breadcrumbs pb-0 op-7">
<?php echo get_the_term_list( get_the_ID(), 'featured_item_category', '', ', ', '' ); ?>
</div>
<h1 class="entry-title is-xlarge uppercase"><?php the_title(); ?></h1>
<?php do_action('flatsome_portfolio_title_after'); ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,21 @@
<?php get_template_part('template-parts/portfolio/portfolio-title', flatsome_option('portfolio_title')); ?>
<div class="portfolio-top">
<div class="row page-wrapper">
<div class="large-12 col mb-0 pb-0">
<div class="portfolio-summary entry-summary">
<?php get_template_part('template-parts/portfolio/portfolio-summary','full'); ?>
</div>
</div>
</div>
<div id="portfolio-content" role="main">
<div class="portfolio-inner">
<?php get_template_part('template-parts/portfolio/portfolio-content'); ?>
</div>
</div>
</div>
<div class="portfolio-bottom">
<?php get_template_part('template-parts/portfolio/portfolio-next-prev'); ?>
<?php get_template_part('template-parts/portfolio/portfolio-related'); ?>
</div>

View File

@@ -0,0 +1,23 @@
<?php get_template_part('template-parts/portfolio/portfolio-title', flatsome_option('portfolio_title')); ?>
<div class="portfolio-top">
<div class="row page-wrapper">
<div id="portfolio-content" class="large-12 col" role="main">
<div class="portfolio-summary entry-summary pb">
<?php get_template_part('template-parts/portfolio/portfolio-summary','full'); ?>
</div>
<div class="portfolio-inner">
<?php get_template_part('template-parts/portfolio/portfolio-content'); ?>
</div>
</div>
</div>
</div>
<div class="portfolio-bottom">
<?php get_template_part('template-parts/portfolio/portfolio-next-prev'); ?>
<?php get_template_part('template-parts/portfolio/portfolio-related'); ?>
</div>

View File

@@ -0,0 +1,25 @@
<?php get_template_part('template-parts/portfolio/portfolio-title', flatsome_option('portfolio_title')); ?>
<div class="portfolio-top">
<div class="row">
<div class="large-3 col">
<div class="portfolio-summary entry-summary">
<?php get_template_part('template-parts/portfolio/portfolio-summary'); ?>
</div>
</div>
<div id="portfolio-content" class="large-9 col col-first col-divided" role="main">
<div class="portfolio-inner">
<?php get_template_part('template-parts/portfolio/portfolio-content'); ?>
</div>
</div>
</div>
</div>
<div class="portfolio-bottom">
<?php get_template_part('template-parts/portfolio/portfolio-next-prev'); ?>
<?php get_template_part('template-parts/portfolio/portfolio-related'); ?>
</div>

View File

@@ -0,0 +1,22 @@
<?php get_template_part('template-parts/portfolio/portfolio-title', flatsome_option('portfolio_title')); ?>
<div class="portfolio-top">
<div id="portfolio-content" role="main" class="page-wrapper">
<div class="portfolio-inner">
<?php get_template_part('template-parts/portfolio/portfolio-content'); ?>
</div>
</div>
<div class="row">
<div class="large-12 col">
<div class="portfolio-summary entry-summary">
<?php get_template_part('template-parts/portfolio/portfolio-summary','full'); ?>
</div>
</div>
</div>
</div>
<div class="portfolio-bottom">
<?php get_template_part('template-parts/portfolio/portfolio-next-prev'); ?>
<?php get_template_part('template-parts/portfolio/portfolio-related'); ?>
</div>

View File

@@ -0,0 +1,22 @@
<?php get_template_part('template-parts/portfolio/portfolio-title', flatsome_option('portfolio_title')); ?>
<div class="portfolio-top">
<div class="row page-wrapper">
<div id="portfolio-content" class="large-12 col" role="main">
<div class="portfolio-inner pb">
<?php get_template_part('template-parts/portfolio/portfolio-content'); ?>
</div>
<div class="portfolio-summary entry-summary">
<?php get_template_part('template-parts/portfolio/portfolio-summary','full'); ?>
</div>
</div>
</div>
</div>
<div class="portfolio-bottom">
<?php get_template_part('template-parts/portfolio/portfolio-next-prev'); ?>
<?php get_template_part('template-parts/portfolio/portfolio-related'); ?>
</div>

View File

@@ -0,0 +1,21 @@
<?php get_template_part('template-parts/portfolio/portfolio-title', flatsome_option('portfolio_title')); ?>
<div class="portfolio-top">
<div class="page-wrapper row">
<div class="large-3 col col-divided">
<div class="portfolio-summary entry-summary sticky-sidebar">
<?php get_template_part('template-parts/portfolio/portfolio-summary'); ?>
</div>
</div>
<div id="portfolio-content" class="large-9 col" role="main">
<div class="portfolio-inner">
<?php get_template_part('template-parts/portfolio/portfolio-content'); ?>
</div>
</div>
</div>
</div>
<div class="portfolio-bottom">
<?php get_template_part('template-parts/portfolio/portfolio-next-prev'); ?>
<?php get_template_part('template-parts/portfolio/portfolio-related'); ?>
</div>