HEX
Server: Apache/2.4.62 (Debian)
System: Linux plxsite 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024 x86_64
User: root (0)
PHP: 8.1.30
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/polygant_2023/about-subpage-template.php
<?php

/**
 * Template Name: About SubPage
 */

get_header('new');
?>


<?php
$cur_id = get_the_ID();
$cat = get_the_category($cur_id);

// ID категории
$categ = $cat->term_id ; 

$categories = get_the_category();
$catiti = $categories[0]->term_id ;

?>

<section class="info-page">
  

    <div class="container">
        <div class="one-single-post-header">
        <div class="one-single-post-header-sf">
                    <div class="one-single-post-header-sf-left">
             <h1 class="info-page__title">
                    <?php the_title(); ?>
                </h1>
                <div class="bread">
                   <p id="breadcrumbs"><span>
                       
                          <span>    <?php   $my_home_url = "/"; ?>
<a href="<?php echo $my_home_url; ?>" ><?php the_field('главная_название' ,  apply_filters( 'wpml_object_id', 233, 'page' ) );?></a></span>
                       
                     <?php
                     $parent_title = get_the_title($post->post_parent);

if ( ! empty( $parent_title ) ) {
    
    ?>
                         —    <span>    
<a href="<?php echo get_permalink( $post->post_parent ); ?>"><?php echo $parent_title; ?></a>
                       <?php
    
    
    ?>
                      </span>
                             <?php
}
                       ?>
                     
                       
                       — <span class="breadcrumb_last" aria-current="page">   <?php the_title();?></span>
                       
                       </span></p>
                </div>
                        
                        <?php if( get_field("краткое_описание") ): ?>
<div class="dop-descr-single-service info-page__content content">
                            <?php the_field('краткое_описание');?>
                        </div>
<?php else :?>
    
<?php endif; ?>
                        
                        
                            
                        
                        
                               <?php
if( have_rows('преимущества_или_услуги' ) ):
                        ?>
                        <div class="dop-priem-single-service">
                        <?php
    while ( have_rows('преимущества_или_услуги' ) ) : the_row();
   ?>
<div class="dop-priem-single-service-item"><img src="/wp-content/uploads/2023/06/check.svg"> <?php the_sub_field('пункт_преимущества'); ?></div>
    <?php
    endwhile;
                        ?>
                        </div>
                        <?php
else :
endif;
?> 
                        <?php if( get_field("краткое_описание") ): ?>
                        
                        
                        
<div class="archive-line-qw0whats rubread11">
                    <a href="" data-popup="form" class="hero__btn">   <?php the_field('request_a_quote' ,  apply_filters( 'wpml_object_id', 233, 'page' ) );?>    </a>
                    <span>  <?php the_field('or_contact_us_on' ,  apply_filters( 'wpml_object_id', 233, 'page' ) );?>
                    <a href="https://wa.me/message/SUBN2P3AVQCOF1" >  <img src="/wp-content/uploads/2023/06/wh.svg" alt="whatsapp">  WhatsApp   </a></span>
                    
                </div>
                        
                        
                        
                        
                           <div class="hero__footer enbread11">
                    <a href="#" data-popup="form" class="hero__btn">  <?php the_field('request_a_quote' ,  apply_filters( 'wpml_object_id', 233, 'page' ) );?></a>
                    <div class="hero__footer-text">
                       <?php the_field('or_contact_us_on' ,  apply_filters( 'wpml_object_id', 233, 'page' ) );?>
                        <a href="  <?php the_field('ссылка_на_телеграм' ,  apply_filters( 'wpml_object_id', 233, 'page' ) );?>" class="hero__link">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none"
                                xmlns="http://www.w3.org/2000/svg">
                                <path
                                    d="M20.665 3.717L2.935 10.554C1.725 11.04 1.732 11.715 2.713 12.016L7.265 13.436L17.797 6.791C18.295 6.488 18.75 6.651 18.376 6.983L9.843 14.684H9.841L9.843 14.685L9.529 19.377C9.989 19.377 10.192 19.166 10.45 18.917L12.661 16.767L17.26 20.164C18.108 20.631 18.717 20.391 18.928 19.379L21.947 5.151C22.256 3.912 21.474 3.351 20.665 3.717Z"
                                    fill="white" />
                            </svg>
                             <?php the_field('telegram' ,  apply_filters( 'wpml_object_id', 233, 'page' ) );?>
                        </a>
                    </div>
                </div>
<?php else :?>
    
<?php endif; ?> 
            </div>
        <?php if( get_field("краткое_описание") ): ?>
                <?php 
                if( has_post_thumbnail() ) {
?>  <div class="one-single-post-header-sf-right">
                
                
                
                <div class="one-single-post-header-sf-right-image" style="background: url(<?php echo get_the_post_thumbnail_url(); ?>); background-position: center; background-repeat: no-repeat; background-size: cover;"></div></div>
                <?php
} 
                ?>
                                    <?php
else :
endif;
?> 
                
            
            </div>
        </div>
        <div class="info-page__wrapper">
        

            <div class="info-page__main">


    <style>

.lang-en .button-show-pages-menuru {
display: none;
    }

.lang-ru .button-show-pages-menuen {
display: none;

    }
        .bread-two {
            display: none
        }
        .single-blog .bread-two {
            display: block;
        }
        .single-blog .bread-one {
            display: none;
        }
        .rubread , .enbread {
            display: none;
        }
        .lang-en .enbread {
            display: flex;
        }
        .lang-ru  .rubread{
                display: flex;
        }
        .lang-en .table-works__col  .enbread {
            display: inline;     color: #29292D;
        }
        .lang-ru  .table-works__col  .rubread{
                display: inline;     color: #29292D;
        }
        
</style>    
                
                     
                
                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

               
            

                <?php if ( has_excerpt() ) : ?>
                    <div class="info-page__excerpt">
                        <?php the_excerpt(); ?>
                    </div>
                <?php endif; ?>

                <div class="info-page__content content info-page__content-nomt" >

                    <?php the_content(); ?>

                    <?php $rateUsd = get_field('hourly_rate_usd'); ?>
                    <?php $rateEur = get_field('hourly_rate_eur'); ?>
                    <?php if ($rateUsd) : ?>
                        <div class="hourlyRate"> <span class="enbread">Hourly Rate:</span> <span class="rubread">Час работы: </span> <span><?php echo $rateUsd; ?> USD
                            <?php if ($rateEur) : ?>
                                (<?php echo $rateEur; ?> EUR)
                            <?php endif; ?></span>
                        </div>
                    <?php endif; ?>

                    <?php $developers = get_field('developers'); ?>

                    <?php if ($developers) : ?>
                        <div class="developers">
                            <?php foreach ($developers as $key => $post_id) : ?>
                                <?php $devImage = get_the_post_thumbnail_url($post_id, 'dev'); ?>
                                <?php $skill = get_field('skill', $post_id); ?>

                                <div class="developers-item">
                                    <div class="developers-item__img">
                                        <img src="<?php if ($devImage) { echo $devImage; } else { echo get_template_directory_uri() . '/img/devImg.jpg'; } ?>">
                                    </div>
                                    <div class="developers-item__info">
                                        <div class="developers-item__title">
                                            <?php echo get_the_title($post_id); ?>
                                                <?php if ($skill) : ?>,
                                                    <span>
                                                        <?php echo $skill; ?>
                                                    </span> 
                                                <?php endif; ?></div>
                                        <div class="developers-item__skills">
                                            <?php $skills = wp_get_post_terms($post_id, 'skill'); ?>
                                            <ul>
                                                <?php foreach ($skills as $key => $skill) : ?>
                                                    <li>
                                                        <?php echo $skill->name; ?>
                                                    </li>
                                                <?php endforeach; ?>
                                            </ul>
                                        </div>
                                        <div class="developers-item__content">
                                            <?php echo get_post_field('post_content', $post_id); ?>
                                        </div>
                                        <a href="#" data-popup="form" class="developers-item__btn">Hire Developer</a>
                                    </div>
                                </div>
                            <?php endforeach; ?>
                        </div>
                    <?php endif; ?>

                    <?php $text2 = get_field('text2'); ?>
                    <?php if ($text2) : ?>
                        <?php echo $text2; ?>
                    <?php endif; ?>

                    <?php $table_works = get_field('table_works'); ?>
                    <?php if ($table_works['table']) : ?>
                    <h4>
                        <?php echo $table_works['title']; ?>
                    </h4>
                        <div class="table-works">
                            <?php foreach ($table_works['table'] as $key => $item) : ?>
                                <?php $rate_usd = $item['rate_usd']; ?>
                                <?php $rate_eur = $item['rate_eur']; ?>
                                <div class="table-works__row">
                                    <div class="table-works__col"><?php echo $item['title']; ?></div>
                                    <div class="table-works__col"> <span class="enbread">Hourly Rate:</span> <span class="rubread">Час работы: </span> <span><?php echo $rate_usd; ?> USD
                                            <?php if ($rate_usd) { ?>(<?php echo $rate_eur; ?> EUR)<?php } ?></span></div>
                                </div>
                            <?php endforeach; ?>
                        </div>
                    <?php endif; ?>




 <div class="blog-item__meta" style="opacity: 0;">
                        
                        <div class="blog-item__el">
                            <div class="blog-item__el-icon">
                                <svg width="19" height="12" viewBox="0 0 19 12" fill="none" xmlns="http://www.w3.org/2000/svg">
                                    <g clip-path="url(#clip0_96_195)">
                                    <path d="M9.5 0C5.18182 0 1.49409 2.488 0 6C1.49409 9.512 5.18182 12 9.5 12C13.8182 12 17.5059 9.512 19 6C17.5059 2.488 13.8182 0 9.5 0ZM9.5 10C7.11636 10 5.18182 8.208 5.18182 6C5.18182 3.792 7.11636 2 9.5 2C11.8836 2 13.8182 3.792 13.8182 6C13.8182 8.208 11.8836 10 9.5 10ZM9.5 3.6C8.06636 3.6 6.90909 4.672 6.90909 6C6.90909 7.328 8.06636 8.4 9.5 8.4C10.9336 8.4 12.0909 7.328 12.0909 6C12.0909 4.672 10.9336 3.6 9.5 3.6Z" fill="#9CA1AB"/>
                                    </g>
                                    <defs>
                                    <clipPath id="clip0_96_195">
                                    <rect width="19" height="12" fill="white"/>
                                    </clipPath>
                                    </defs>
                                </svg>
                            </div>
                           
                        </div>
</div>
                    
<div class="info-page_meta_wrapper">
                  <div class="info-page_meta_autor-image"><?php echo get_avatar( get_the_author_meta('user_email') );  ?></div>
                      <div class="info-page_meta_autor-name">
                          <?php
                          $auth_id = get_the_author_ID();
                          $acf_id ='user_'.$auth_id;
                                $aut_name = get_field( "aut_display_name_rus", $acf_id );
                          $aut_link = get_author_posts_url($auth_id);
                          ?>
                          <a href="<?php echo $aut_link; ?>">
                          <div class="info-page_meta_autor-name-name"><?php echo $aut_name; ?></div>
                          <div class="info-page_meta_autor-name-descr"><?php the_author_meta( 'description' ); ?></div>
                          </a>
                 </div>
                      <div class="info-page_meta_about-article"><?php 
if (strtotime(get_the_date('Ymd'))<strtotime(get_the_modified_date('j F Y '))) {
  
    the_date('j F Y'); 
    ?>
                          <span > <span class="enbread">Updated on &nbsp;</span><span class="rubread">Обновлено &nbsp; </span>
                          
                          <?php

    the_modified_date(' j F Y'); 
    
    ?>
                    </span>   
                          <?php
    }
    else {

    the_date('j F Y');
        
        ?>
                          <span > <span class="enbread">Updated on &nbsp;</span><span class="rubread">Обновлено &nbsp; </span>
                          
                          <?php

    the_modified_date(' j F Y'); 
    
    ?>
                    </span>   
                          <?php
    }
?></div>

    
</div>
                     
<?php if( get_field("faq_-__верхний_заголовок") ): ?>

<?php $faqSchema = ''; ?>

<div class="section-faq-home-page article">
    <div class="container">
        <div class="container-faq-home">
            <div class="faq-home-left">
                <div class="more-article-about-theme"><?php the_field('faq_-__верхний_заголовок');?></div>
            </div>
            <div class="faq-home-right">
                <div class="daccordion2" id="daccordion2">
                                    
                <?php if(get_field('faq_вопрос_ответ')): ?>
                <?php while(has_sub_field('faq_вопрос_ответ')): ?>

                <?php $faqSchema .= '{
                    "@type": "Question",
                    "name": "'.get_sub_field('faq_-_вопрос').'",
                    "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "'.get_sub_field('faq_-_ответ').'"
                } },'; ?>
        
                <div class="daccordion__item2">
                    <div class="daccordion__title2"><?php the_sub_field('faq_-_вопрос'); ?><div class="arrac"><svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="5.65625" y="12.728" width="10" height="2" rx="1" transform="rotate(-45 5.65625 12.728)" fill="#29292D"/><rect x="7.07031" y="0.000244141" width="10" height="2" rx="1" transform="rotate(45 7.07031 0.000244141)" fill="#29292D"/></svg> </div></div>
                    <div class="daccordion__content2"><?php the_sub_field('faq_-_ответ'); ?>
                    </div>
                </div>
            
            
                <?php endwhile; ?>
                <?php endif; ?>
                               
                <script type="application/ld+json">
                {
                "@context": "https://schema.org",
                "@type": "FAQPage",
                "mainEntity":[ 
                <?php echo rtrim($faqSchema,','); ?>
                ]
                }
                </script>                                       
                
                </div>
            </div>
        </div>
    </div>
</div>

<?php else :?>    
<?php endif; ?>





<?php
if( have_rows('about_extra_links_list') ):
?>
<div class="sample-posts">  
    <div class="more-article-about-theme rubread">Еще услуги</div >
    <?php while( have_rows('about_extra_links_list') ) : the_row(); ?>
      <a class="link-on-more-articles" title="<?php the_sub_field('name'); ?>" href="<?php the_sub_field('link'); ?>" ><?php the_sub_field('name'); ?></a>
  <?php  endwhile; ?>
</div>
<?php
else :
endif;
?>

  <?php 
                            wp_reset_postdata(); ?>
                </div>

                <div class="ya-share2 social-share" data-curtain data-lang="en" data-services="twitter,facebook,whatsapp,vkontakte,telegram"></div>

                <?php endwhile; endif; ?>
        
                
                
                
            </div>
            
            
            
                <div class="info-page__sidebar">
                    <div class="info-page__sidebar-inner">                   
                      <div class="content-heading-list-wrapper">
                          <?php echo do_shortcode('[ez-toc]');?>
                        </div>
                    </div>     
            </div>
            
            
        </div>
        
        <?php
$featured_posts = get_field('page-reveiws');
if( $featured_posts ): ?>
   <div class="reviews swiper-check">
                                <div class="reviews__head">
                                    <h2 class="reviews__title"> 
                                           <?php the_field('service_testimonials_' ,  apply_filters( 'wpml_object_id', 233, 'page' ) );?>
                                    </h2>
                                    <div class="slider-controls reviews__controls">
                                        <div class="slider-controls__arrow slider-controls__arrow_prev info-page__arrow_prev">
                                            <svg width="8" height="13" viewBox="0 0 8 13" fill="none" xmlns="http://www.w3.org/2000/svg">
                                                <path fill-rule="evenodd" clip-rule="evenodd" d="M0.701814 10.821C0.357147 11.1657 0.357146 11.7245 0.701814 12.0692C1.04648 12.4138 1.6053 12.4138 1.94997 12.0692L7.0567 6.96242C7.06091 6.95836 7.0651 6.95426 7.06925 6.95011C7.30422 6.71514 7.379 6.38066 7.29361 6.08234C7.25375 5.94299 7.17895 5.81152 7.0692 5.70177C7.06612 5.69869 7.06303 5.69564 7.05991 5.69262L1.99144 0.624142C1.64677 0.279475 1.08796 0.279475 0.743289 0.624143C0.398621 0.96881 0.398622 1.52763 0.743289 1.8723L5.1969 6.32591L0.701814 10.821Z" fill="#6352CD"/>
                                            </svg>                                
                                        </div>
                                        <div class="slider-controls__pagination info-page__pagination"></div>
                                        <div class="slider-controls__arrow slider-controls__arrow_next info-page__arrow_next">
                                            <svg width="8" height="13" viewBox="0 0 8 13" fill="none" xmlns="http://www.w3.org/2000/svg">
                                                <path fill-rule="evenodd" clip-rule="evenodd" d="M0.701814 10.821C0.357147 11.1657 0.357146 11.7245 0.701814 12.0692C1.04648 12.4138 1.6053 12.4138 1.94997 12.0692L7.0567 6.96242C7.06091 6.95836 7.0651 6.95426 7.06925 6.95011C7.30422 6.71514 7.379 6.38066 7.29361 6.08234C7.25375 5.94299 7.17895 5.81152 7.0692 5.70177C7.06612 5.69869 7.06303 5.69564 7.05991 5.69262L1.99144 0.624142C1.64677 0.279475 1.08796 0.279475 0.743289 0.624143C0.398621 0.96881 0.398622 1.52763 0.743289 1.8723L5.1969 6.32591L0.701814 10.821Z" fill="#6352CD"/>
                                            </svg>                                
                                        </div>
                                    </div>
                                </div>
                                <div class="swiper info-page__slider">
                                    <div class="swiper-wrapper">
    <?php foreach( $featured_posts as $post ): 

        // Setup this post for WP functions (variable must be named $post).
        setup_postdata($post); ?>
       



          <div class="swiper-slide reviews-item">
                                                <div class="reviews-item__text">
                                                    <p>
                                                                                    <?php the_content(); ?>

                                                    </p>
                                                </div>
                                                <div class="reviews-author reviews-item__author">
                                                    <div class="reviews-author__img">
                                                                                            <?php the_post_thumbnail('full'); ?>

                                                    </div>
                                                    <div class="reviews-author__info">
                                                        <div class="reviews-author__name">
                                                          <?php the_title();?>
                                                        </div>
                                                        <div class="reviews-author__desc">
                                                                 <?php echo get_field('author-suptitle'); ?>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="reviews-item__icon">
                                                                                   <img src="<?php echo get_template_directory_uri(); ?>/inc/img/new-img//quote.svg" alt="qoute">

                                                </div>
                                            </div>


    <?php endforeach; ?>
      </div>
                                </div>
                            </div>
    <?php 
    // Reset the global post object so that the rest of the page works correctly.
    wp_reset_postdata(); ?>
<?php endif; ?>

                    
                    
                    
                    <?php
                        $featured_cases = get_field('page-cases');
                        if( $featured_cases ): 
                    
                    $b = 1; ?>
                            <?php foreach( $featured_cases as $post ): 

                                setup_postdata( $post); 
                    if($b == '2') break;
                    ?>
                                <div class="info-page__case">
                                    <h2 class="info-page__case-title">
                                 <?php the_field('_case_for_this_service' ,  apply_filters( 'wpml_object_id', 233, 'page' ) );?>
   

                                    </h2>
                                    <div class="cases-item">
                                        <div class="cases-item__img">
                                            <?php echo get_the_post_thumbnail(); ?>
                                        </div>
                                        <div class="cases-item__main">
                                            <h3 class="cases-item__title">
                                                <?php the_title(); ?>
                                            </h3>
                                            <div class="cases-item__label">
                                                <?php the_field('case-label'); ?>
                                            </div>
                                            <div class="cases-item__text">
                                                <p>
                                                        <?php the_field('case-descr');?> 
                                                </p>
                                              
                                            </div>
                                            <a href="<?php the_permalink(); ?>" class="cases-item__btn"> <?php the_field('read_more' ,  apply_filters( 'wpml_object_id', 233, 'page' ) );?>
</a>
                                        </div>
                                    </div>
                                </div>
                            <?php 
                    $b = $b + 1; 
                    endforeach; ?>
                            <?php 
                            wp_reset_postdata(); ?>
                    <?php endif; ?>
    </div>
</section>



<?php get_footer('new'); ?>

<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-sidebar/3.3.1/sticky-sidebar.min.js"></script>

<script> 


        var stickySidebar = new StickySidebar('.info-page__sidebar', {
            topSpacing: 100,
            bottomSpacing: 20,
            containerSelector: '.info-page__wrapper',
            innerWrapperSelector: '.info-page__sidebar-inner'
        });
    
</script>