daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Mar 12th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <?php
  2. $facility_title_name = get_post_meta( get_the_ID(), 'skeleton_facility_title_name', true );
  3. $facility_options = get_post_meta( get_the_ID(), 'skeleton_facility_options', true );
  4. ?>
  5. <!-- heading-title start -->
  6. <div class="heading-title">
  7.     <h3><?php echo $facility_title_name;?></h3>
  8. </div><!-- .heading-title end -->
  9. <?php
  10. if( $facility_options ) {?>
  11. <!-- facility-container start -->
  12. <div class="facility-container">
  13.     <?php foreach ( $facility_options as $facility_option ) { ?>
  14.         <?php
  15.             $facility_name = isset( $facility_option['skeleton_facility_name'] ) ? $facility_option['skeleton_facility_name'] : '';
  16.             $manufacturing_facilities_description = isset( $facility_option['skeleton_manufacturing_facilities_description'] ) ? $facility_option['skeleton_manufacturing_facilities_description'] : '';
  17.             $facilities_images = isset( $facility_option['skeleton_facilities_images'] ) ? $facility_option['skeleton_facilities_images'] : '';
  18.             $facilities_videos = isset( $facility_option['skeleton_facilities_videos'] ) ? $facility_option['skeleton_facilities_videos'] : '';
  19.             $facility_media = isset( $facility_option['skeleton_facility_media'] ) ? $facility_option['skeleton_facility_media'] : '';
  20.             $facility_video_type = isset( $facility_option['skeleton_facility_video_type'] ) ? $facility_option['skeleton_facility_video_type'] : '';
  21.         ?>
  22.         <!-- facility-name start -->
  23.         <div class="facility-name">
  24.             <?php echo $facility_name; ?>
  25.         </div><!-- .facility-name end -->
  26.         <!-- facility-description start -->
  27.         <div class="facility-description">
  28.             <?php echo $manufacturing_facilities_description; ?>
  29.         </div><!-- .facility-description end -->
  30.         <!-- facility-image start -->
  31.         <div class="facility-image">
  32.             <?php foreach ( $facilities_images as $facilities_image ) { ?>
  33.                 <figure> <?php echo wp_get_attachment_image( $facilities_image, "featured-full" ); ?> </figure>
  34.             <?php } ?>
  35.         </div><!-- .facility-image end -->
  36.         <!-- facility-vedio start -->
  37.         <div class="facility-vedio">
  38.             <?php foreach ( $facilities_videos as $facilities_video ) {?>
  39.                 <video src="<?php echo $facilities_video['src']; ?>">
  40.             <?php } ?>
  41.         </div><!-- .facility-vedio end -->
  42.  
  43.     <?php } ?>
  44. </div><!-- .facility-container end -->
  45. <?php } ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top