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.
182 lines
4.8 KiB
182 lines
4.8 KiB
<?php
|
|
/**
|
|
* The template for displaying all pages
|
|
*
|
|
* This is the template that displays all pages by default.
|
|
* Please note that this is the WordPress construct of pages and that other
|
|
* 'pages' on your WordPress site will use a different template.
|
|
*
|
|
*/
|
|
|
|
$loc = pll_current_language();
|
|
if ($loc == 'en'){
|
|
get_header('gp_eng');
|
|
}
|
|
else{
|
|
get_header('gp');
|
|
}
|
|
?>
|
|
|
|
<style>
|
|
.wd-nav-img {
|
|
max-height: 40px!important;
|
|
margin-right: 0;
|
|
}
|
|
.cart-desktop {
|
|
display: none!important;
|
|
}
|
|
.account-desktop{
|
|
display: none!important;;
|
|
}
|
|
.cart-mobile {
|
|
display: flex;
|
|
}
|
|
.account-mobile{
|
|
display: flex;
|
|
}
|
|
body{
|
|
padding-top: 8rem;
|
|
}
|
|
@media (max-width: 640px) {
|
|
body{
|
|
padding-top: 0rem;
|
|
}
|
|
.site-content.shop-content-area.col-lg-12.col-12.col-md-12.description-area-before.content-with-products.wd-builder-off{
|
|
padding-top: 40px;
|
|
}
|
|
}
|
|
.header_navs .header_nav{
|
|
|
|
background: linear-gradient(53.83deg, rgb(244, 66, 66), rgb(86, 158, 240));
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
.header-lang{
|
|
border-color: rgb(86, 158, 240);
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6' fill='none'%3E%3Cpath opacity='0.6' d='M0.75 0.5L4.25 4.5L7.75 0.5' stroke='%23569EF0'/%3E%3C/svg%3E");
|
|
}
|
|
.header-lang__c{
|
|
background: linear-gradient(53.83deg, rgb(244, 66, 66), rgb(86, 158, 240));
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
</style>
|
|
<style>
|
|
.wd-nav-img {
|
|
max-height: 40px!important;
|
|
margin-right: 0;
|
|
}
|
|
.cart-desktop {
|
|
display: none!important;
|
|
}
|
|
.account-desktop{
|
|
display: none!important;;
|
|
}
|
|
.cart-mobile {
|
|
display: flex;
|
|
}
|
|
.account-mobile{
|
|
display: flex;
|
|
}
|
|
|
|
|
|
</style>
|
|
<?if(!is_page('gp-test')): // заменить на is_front_page()?>
|
|
<body <?php body_class(); ?>>
|
|
<?php if ( function_exists( 'wp_body_open' ) ) : ?>
|
|
<?php wp_body_open(); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php do_action( 'woodmart_after_body_open' ); ?>
|
|
|
|
<div class="website-wrapper">
|
|
<?php if ( woodmart_needs_header() ) : ?>
|
|
<?php woodmart_page_top_part(); ?>
|
|
<?php endif ?>
|
|
<?endif;?>
|
|
|
|
|
|
<?php
|
|
|
|
// Get content width and sidebar position
|
|
$content_class = woodmart_get_content_class();
|
|
|
|
?>
|
|
|
|
|
|
<div class="site-content <?php echo esc_attr( $content_class ); ?>" role="main">
|
|
|
|
<?php /* The loop */ ?>
|
|
<?php while ( have_posts() ) : the_post(); ?>
|
|
|
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
|
|
|
|
|
<div class="wd-single-footer"><?php if( get_the_tag_list( '', ', ' ) ): ?>
|
|
<div class="single-meta-tags">
|
|
<span class="tags-title"><?php esc_html_e('Tags', 'woodmart'); ?>:</span>
|
|
<div class="tags-list">
|
|
<?php echo get_the_tag_list( '', ', ' ); ?>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?><?php if ( woodmart_get_opt( 'blog_share' ) && woodmart_is_social_link_enable( 'share' ) ): ?>
|
|
<div class="single-post-social">
|
|
<?php if( function_exists( 'woodmart_shortcode_social' ) ) echo woodmart_shortcode_social(array('type' => 'share', 'tooltip' => 'no', 'style' => 'colored')) ?>
|
|
</div>
|
|
<?php endif ?></div>
|
|
|
|
<?php if ( woodmart_get_opt( 'blog_navigation' ) ) woodmart_posts_navigation(); ?>
|
|
|
|
<?php
|
|
|
|
if ( woodmart_get_opt( 'blog_related_posts' ) ) {
|
|
$args = woodmart_get_related_posts_args( $post->ID );
|
|
|
|
$query = new WP_Query( $args );
|
|
$design = woodmart_get_opt( 'blog_design' );
|
|
|
|
woodmart_enqueue_inline_style( 'blog-base' );
|
|
if ( woodmart_is_blog_design_new( $design ) ) {
|
|
woodmart_enqueue_inline_style( 'blog-loop-base' );
|
|
} else {
|
|
woodmart_enqueue_inline_style( 'blog-loop-base-old' );
|
|
}
|
|
if ( 'small-images' === $design || 'chess' === $design ) {
|
|
woodmart_enqueue_inline_style( 'blog-loop-design-small-img-chess' );
|
|
} else {
|
|
woodmart_enqueue_inline_style( 'blog-loop-design-' . $design );
|
|
}
|
|
|
|
if( function_exists( 'woodmart_generate_posts_slider' ) ) echo woodmart_generate_posts_slider(array(
|
|
'title' => esc_html__('Related Posts', 'woodmart'),
|
|
'blog_design' => 'carousel',
|
|
'blog_carousel_design' => woodmart_is_blog_design_new( $design ) ? $design : 'masonry',
|
|
'el_class' => 'related-posts-slider',
|
|
'slides_per_view' => 2
|
|
), $query);
|
|
}
|
|
|
|
?>
|
|
|
|
<?php comments_template(); ?>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
</div><!-- .site-content -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<?php
|
|
$loc = pll_current_language();
|
|
if ($loc == 'en'){
|
|
get_footer('gp_eng');
|
|
}
|
|
else{
|
|
get_footer('gp');
|
|
}
|
|
?>
|
|
|
|
|
|
|