You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.8 KiB
86 lines
2.8 KiB
<?php
|
|
/*
|
|
Template Name: GP | Category page ENG
|
|
Template Post Type: page
|
|
*/
|
|
get_header('gp_eng');
|
|
// wp_head();
|
|
add_filter('wpcf7_autop_or_not', '__return_false');
|
|
?>
|
|
<style>
|
|
.footer_box .footer_box-title {
|
|
font-family: 'Craftwork Grotesk', sans-serif !important;
|
|
}
|
|
</style>
|
|
|
|
|
|
<main>
|
|
|
|
<div class="category-page">
|
|
<div class="container category-page__c">
|
|
<img src="<?= get_template_directory_uri();?>/gp-include/assets/front-page/img/vector-head.svg" alt="" class="page-dec">
|
|
<img src="<?= get_template_directory_uri();?>/gp-include/assets/front-page/img/dec-m.svg" alt="" class="page-dec --m">
|
|
<h1 class="page_title">
|
|
your pet...
|
|
|
|
</h1>
|
|
|
|
<?php
|
|
|
|
$categories = get_categories( [
|
|
'taxonomy' => 'product_cat',
|
|
'type' => 'product',
|
|
'parent' => 0,
|
|
'orderby' => 'name',
|
|
'order' => 'ASC',
|
|
'hide_empty' => 1,
|
|
'hierarchical' => 1,
|
|
'exclude' => array(321,320, 711, 713),
|
|
'include' => '',
|
|
'number' => 0,
|
|
'pad_counts' => false,
|
|
] );
|
|
|
|
$count = count($categories);
|
|
|
|
?>
|
|
|
|
<div class="category-page-cards">
|
|
<div class="swiper-wrapper category-page-cards-w">
|
|
|
|
|
|
<?php
|
|
foreach($categories as $item):
|
|
?>
|
|
<div class="swiper-slide category-page-cards-item-wrap" style="z-index: <?=$count?>">
|
|
<a style="display:block;" href="<?=get_term_link($item)?>?show_categories=1" class="category-page-cards-item">
|
|
<img src="<?php echo get_field('cat_img', $item) ?>" alt="" class="category-page-card-img">
|
|
<span class="category-page-card-title"><?php echo get_field('cat_name', $item) ?></span>
|
|
</a>
|
|
</div>
|
|
|
|
<?php
|
|
$count-=1;
|
|
endforeach;
|
|
?>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="category-page-bottom">
|
|
<button class="arrow-left arrow"></button>
|
|
<a href="<?php echo get_page_link(18164) ?>" class="category-page-marker">
|
|
all products
|
|
</a>
|
|
<button class="arrow-right arrow"></button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<?php wp_footer('gp_eng') ?>
|
|
|
|
|