/** * @param $post */ function euzakupki_order_properties_metabox($post) { // Add an nonce field so we can check for it later. wp_nonce_field(plugin_basename(__FILE__), 'euzakupki_order_properties_metabox_nonce'); ?> <table class="ga-table"> <tbody> <tr> <?php euzakupki_shop_metabox_control_input($post, 'order', 'status', __('Статус:', 'euzakupki'), 'table'); ?> <?php euzakupki_shop_metabox_control_input($post, 'order', 'customer', __('Клиент:', 'euzakupki'), 'table', '', '', true); ?> </tr> <tr> <?php euzakupki_shop_metabox_control_input($post, 'order', 'price', __('Цена:', 'euzakupki'), 'table', ''); ?> <?php euzakupki_shop_metabox_control_input($post, 'order', 'order_id', __('ID заказа:', 'euzakupki'), 'table', '', '', true); ?> </tr> <tr> <?php euzakupki_shop_metabox_control_input($post, 'order', 'qty', __('Количество:', 'euzakupki'), 'table', '', '', true); ?> <td class="label"><label><?php echo __('URL продукта:', 'euzakupki'); ?> </label></label><?php echo euzakupki_get_postmeta($post->ID, 'order', 'product_url'); ?> </td> </tr> </tbody> </table> <?php }
<p><?php echo nl2br(euzakupki_get_postmeta(get_the_ID(), 'shop', 'shipping_info')); ?> </p> </div> <div class="col-sm-4 text-center"> <img src="<?php echo get_template_directory_uri(); ?> /img/icon-shop-fee.png" /> <h4><?php echo __('Комиссия', 'euzakupki'); ?> </h4> <p><?php echo apply_filters('output_fee', euzakupki_get_postmeta(get_the_ID(), 'shop', 'fee')); ?> </p> </div> </div> </div> </div> </div> </article> <?php } ?>
<?php while (have_posts()) { the_post(); ?> <article> <div class="container"> <div class="sub-heading"> <h1 class="text-center primary-heading"><?php the_title(); ?> </h1> <div class="sub-heading-sub"> <span class="text-center center-block"><?php echo euzakupki_get_postmeta(get_the_ID(), 'page', 'sub_heading'); ?> </span> </div> <div class="text-center"> <span class="divider" aria-hidden="true"><i class="glyphicon glyphicon-shopping-cart"></i></span> </div> </div> <div class="text-justify"><?php the_content(); ?> </div> <div class="tabpanel">
<ul class="slides text-center"> <?php foreach ($testimonials as $item) { ?> <li> <h4><?php echo $item->post_title; ?> </h4> <p><?php echo $item->post_content; ?> </p> <div class="slide-caption"> <small><em><?php echo euzakupki_get_postmeta($item->ID, 'testimonial', 'author'); ?> (<?php echo euzakupki_get_postmeta($item->ID, 'testimonial', 'location'); ?> )</em></small> </div> </li> <?php } ?> </ul> </div> </div> </section>
</form> <div id="mixitup_container" class="mixitup_container"> <?php if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <article class="view <?php echo euzakupki_get_ids_assigned_terms(get_the_ID()); ?> "> <a href="<?php echo euzakupki_get_postmeta(get_the_ID(), 'sale', 'url'); ?> " target="_blank" alt="<?php the_title(); ?> " title="<?php the_title(); ?> "> <?php the_post_thumbnail('sale'); ?> </a> <h4 class=""><?php the_title(); ?>
?> <div class="mask"> <h4><?php the_title(); ?> </h4> <p><?php the_excerpt(); ?> </p> <strong><?php echo __('Доставка', 'euzakupki'); ?> </strong> <span><?php echo nl2br(euzakupki_get_postmeta(get_the_ID(), 'shop', 'shipping_info')); ?> </span> </div> </a> </article> <?php } ?> <div class="gap"></div> <div class="gap"></div> </div>
<ul class="slides"> <?php $increment = 1; ?> <?php foreach ($sales as $item) { ?> <li id="slide_<?php echo $increment; ?> " class="slide_<?php echo $increment; ?> "> <a href="<?php echo euzakupki_get_postmeta($item->ID, 'sale', 'url'); ?> " target="_blank" alt="<?php echo $item->post_title; ?> " title="<?php echo $item->post_title; ?> "> <?php echo get_the_post_thumbnail($item->ID, 'sale'); ?> </a> <h4 class=""><?php echo $item->post_title; ?>
<?php echo get_the_post_thumbnail($item->ID, 'shop'); ?> <div class="mask"> <h4><?php echo $item->post_title; ?> </h4> <p><?php echo $item->post_excerpt; ?> </p> <strong><?php echo __('Доставка', 'euzakupki'); ?> </strong> <span><?php echo nl2br(euzakupki_get_postmeta($item->ID, 'shop', 'shipping_info')); ?> </span> </div> </a> </div> <?php } ?> </div> </div> </div> </section>