Файловый менеджер - Редактировать - /var/www/gravitycm.com/wp-content/themes/gravity/page-template/product.php
Назад
<?php /* Template Name: Gravity product & capabilities Page */ get_header(); ?> <?php $pro_sec1_image = get_field('pro_sec1_image'); $pro_sec1_image_url = wp_get_attachment_image_src($pro_sec1_image['ID'],'full'); ?> <section class="hero-banner" style="background-image: url('<?php echo $pro_sec1_image_url[0]; ?>');"> <div class="container"> <div class="hero-banner-text"> <?php if($pro_sec1_title = get_field('pro_sec1_title')){ ?><h4><?php echo $pro_sec1_title; ?></h4><?php } if($pro_sec1_sub_title = get_field('pro_sec1_sub_title')){ ?><h1><?php echo $pro_sec1_sub_title; ?></h1><?php } ?> </div> </div> </section> <section id="product-inner"> <div class="container"> <div class="row"> <div class="product-inner-title-col"> <div class="product-inner-title"> <?php echo apply_filters( 'the_content', get_field('pro_sec2_title') ); ?> <?php if($pro_sec2_sub_title = get_field('pro_sec2_sub_title')){ ?><h2><?php echo $pro_sec2_sub_title; ?></h2><?php } ?> </div> </div> <?php $pro_sec2_product_listing = get_field('pro_sec2_product_listing'); if($pro_sec2_product_listing){ ?> <div class="product-inner-col isotope-gallery"> <?php $product_list_cnt = count($pro_sec2_product_listing); // echo $product_list_cnt; foreach ($pro_sec2_product_listing as $key => $pro_sec2_product_listings) { $mode_value = $key % 2; // if($mode_value == 0){ ?><?php // } $product_image = $pro_sec2_product_listings['product_image']; $product_image_tag = wp_get_attachment_image($product_image['ID'],'full'); $pro_sec2_product_title = $pro_sec2_product_listings['pro_sec2_product_title']; $product_ingredient_list = $pro_sec2_product_listings['product_ingredient_list']; ?> <div class="product-inner testimonial-item"> <?php echo $product_image_tag; ?> <h2><?php echo $pro_sec2_product_title; ?></h2> <?php if($product_ingredient_list){ ?> <ul> <?php foreach ($product_ingredient_list as $key => $product_ingredient_lists) { $add_ingredient = $product_ingredient_lists['add_ingredient']; $add_ingredient_url = $product_ingredient_lists['add_ingredient_url']; if(!empty($add_ingredient_url)){ ?> <li><a href="<?php echo $add_ingredient_url; ?>"><?php echo $add_ingredient; ?></a></li> <?php } else{ ?> <li><?php echo $add_ingredient; ?></li> <?php } } ?> </ul> <?php } ?> </div> <?php // if($mode_value == 0){ ?><?php // } } ?> </div> <?php } ?> </div> </div> </section> <section id="service-main" style="background: #F3F3F3;"> <div class="container"> <?php if($pro_sec3_title = get_field('pro_sec3_title')){ ?> <div class="services-header"> <h2><?php echo $pro_sec3_title; ?></h2> </div> <?php } ?> <?php $pro_sec3_service_listing = get_field('pro_sec3_service_listing'); if($pro_sec3_service_listing){ ?> <div class="row justify-content-center"> <?php foreach ($pro_sec3_service_listing as $key => $pro_sec3_service_listings) { $pro_sec3_service_icon = $pro_sec3_service_listings['pro_sec3_service_icon']; $pro_sec3_service_icon_tag = wp_get_attachment_image($pro_sec3_service_icon['ID'],'full'); $pro_sec3_service_title = $pro_sec3_service_listings['pro_sec3_service_title']; ?> <div class="service-col"> <div class="service"> <?php echo $pro_sec3_service_icon_tag; ?> <h4><?php echo $pro_sec3_service_title; ?></h4> </div> </div> <?php } ?> </div> <?php } ?> </div> </section> <section id="contact-main"> <div class="container"> <div class="row"> <div class="contact-title-col"> <div class="contact-title"> <?php if($pro_sec4_title = get_field('pro_sec4_title')){ ?> <h2><?php echo $pro_sec4_title; ?></h2> <?php } if($pro_sec4_sub_title = get_field('pro_sec4_sub_title')){ ?> <h4><?php echo $pro_sec4_sub_title; ?></h4> <?php } echo apply_filters( 'the_content', get_field('pro_sec4_content') ); ?> </div> </div> <div class="contact-filedleft-col"> <div class="contact-field"> <?php $pro_sec4_form_shortcode = get_field('pro_sec4_form_shortcode'); echo do_shortcode( $pro_sec4_form_shortcode ); ?> </div> </div> </div> </div> </section> <?php get_footer();?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.29 | Генерация страницы: 0.02 |
proxy
|
phpinfo
|
Настройка