Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.17 KB | None | 0 0
  1. <?php
  2. /**
  3.  * SECTION: BRIEF LEFT
  4.  *
  5.  * @package parallax-one
  6.  */
  7.  
  8. $paralax_one_our_story_image = get_theme_mod( 'paralax_one_our_story_image', parallax_get_file( '/images/about-us.png' ) );
  9. $paralax_one_our_story_image = apply_filters( 'parallax_one_translate_single_string', $paralax_one_our_story_image, 'Our Story section' );
  10.  
  11. $parallax_one_our_story_title = get_theme_mod( 'parallax_one_our_story_title', esc_html__( 'Our Story', 'parallax-one' ) );
  12. $parallax_one_our_story_title = apply_filters( 'parallax_one_translate_single_string', $parallax_one_our_story_title, 'Our Story section' );
  13.  
  14. $parallax_one_our_story_text = get_theme_mod( 'parallax_one_our_story_text', esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', 'parallax-one' ) );
  15. $parallax_one_our_story_text = apply_filters( 'parallax_one_translate_single_string', $parallax_one_our_story_text, 'Our Story section' );
  16.  
  17. $parallax_one_frontpage_animations = get_theme_mod( 'parallax_one_enable_animations', false );
  18.  
  19. if ( ! empty( $paralax_one_our_story_image ) || ! empty( $parallax_one_our_story_title ) || ! empty( $parallax_one_our_story_content ) ) {
  20. ?>
  21. <?php parallax_hook_about_before(); ?>
  22. <section class="brief text-left brief-design-one brief-left" id="story" role="region" aria-label="<?php esc_html_e( 'About', 'parallax-one' ); ?>">
  23.     <?php parallax_hook_about_top(); ?>
  24.     <div class="section-overlay-layer">
  25.         <div class="container">
  26.             <div class="row">
  27.                 <!-- BRIEF IMAGE -->
  28.                 <?php
  29.                 if ( ! empty( $paralax_one_our_story_image ) ) {
  30.                     if ( ! empty( $parallax_one_our_story_title ) ) {
  31.                     ?>
  32.                                     <div class="col-md-6 brief-content-two">
  33.                                         <div class="brief-image-right"
  34.                                             <?php
  35.                                             if ( ! empty( $parallax_one_frontpage_animations ) && ( (bool) $parallax_one_frontpage_animations === true ) ) {
  36.                                                 echo 'data-scrollreveal="enter right after 0.15s over 1s"';
  37.                                             }
  38. ?>
  39. >
  40. <!--                                            <img src="<?php echo parallax_one_make_protocol_relative_url( esc_url( $paralax_one_our_story_image ) ); ?> " alt=" <?php echo esc_attr( $parallax_one_our_story_title ); ?>"> -->
  41.                                             <iframe width="560" height="315" src="https://www.youtube.com/embed/Yhg8s-K_WnQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  42.                                         </div>
  43.                                     </div>
  44.                                 <?php } else { ?>
  45.                                     <div class="col-md-6 brief-content-two">
  46.                                         <div class="brief-image-right"
  47.                                             <?php
  48.                                             if ( ! empty( $parallax_one_frontpage_animations ) && ( (bool) $parallax_one_frontpage_animations === true ) ) {
  49.                                                 echo 'data-scrollreveal="enter right after 0.15s over 1s"';
  50.                                             }
  51. ?>
  52. >
  53.                                             <img src="<?php echo parallax_one_make_protocol_relative_url( esc_url( $paralax_one_our_story_image ) ); ?>" alt="<?php echo esc_html__( 'About', 'parallax-one' ); ?>">
  54.                                         </div>
  55.                                     </div>
  56.                                 <?php
  57. }
  58.                 } elseif ( is_customize_preview() ) {
  59.                 ?>
  60.                                 <div class="col-md-6 brief-content-two paralax_one_only_customizer">
  61.                                     <div class="brief-image-right"
  62.                                     <?php
  63.                                     if ( ! empty( $parallax_one_frontpage_animations ) && ( (bool) $parallax_one_frontpage_animations === true ) ) {
  64.                                         echo 'data-scrollreveal="enter right after 0.15s over 1s"';
  65.                                     }
  66. ?>
  67. >
  68.                                     <img src="" >
  69.                                 </div>
  70.                             </div>
  71.                         <?php
  72.                 }
  73.                     ?>
  74.  
  75.                     <!-- BRIEF HEADING -->
  76.                     <?php
  77.                     if ( ! empty( $paralax_one_our_story_image ) ) {
  78.                                 echo '<div class="col-md-6 content-section brief-content-one">';
  79.                     } else {
  80.                         echo '<div class="col-md-12 content-section brief-content-one">';
  81.                     }
  82. ?>
  83.                             <?php
  84.                             if ( ! empty( $parallax_one_our_story_title ) ) {
  85.                                 echo '<h2 class="text-left dark-text">' . esc_attr( $parallax_one_our_story_title ) . '</h2><div class="colored-line-left"></div>';
  86.                             } elseif ( is_customize_preview() ) {
  87.                                 echo '<h2 class="text-left dark-text paralax_one_only_customizer"></h2><div class="colored-line-left paralax_one_only_customizer"></div>';
  88.                             }
  89.                             ?>
  90.  
  91.                             <?php
  92.  
  93.                             if ( ! empty( $parallax_one_our_story_text ) ) {
  94.                             ?>
  95.                                     <div class="brief-content-text"
  96.                                     <?php
  97.                                     if ( ! empty( $parallax_one_frontpage_animations ) && ( (bool) $parallax_one_frontpage_animations === true ) ) {
  98.                                         echo 'data-scrollreveal="enter left after 0.15s over 1s"';
  99.                                     }
  100. ?>
  101. >
  102.                                         <?php echo $parallax_one_our_story_text; ?>
  103.                                     </div>
  104.  
  105.                                 <?php } elseif ( is_customize_preview() ) { ?>
  106.                                     <div class="brief-content-text paralax_one_only_customizer"
  107.                                     <?php
  108.                                     if ( ! empty( $parallax_one_frontpage_animations ) && ( (bool) $parallax_one_frontpage_animations === true ) ) {
  109.                                         echo 'data-scrollreveal="enter left after 0.15s over 1s"';
  110.                                     }
  111. ?>
  112. >
  113.                                         <?php echo $parallax_one_our_story_text; ?>
  114.                                     </div>
  115.                                 <?php
  116. }
  117.                     ?>
  118.                     </div><!-- .brief-content-one-->
  119.                     </div>
  120.                 </div>
  121.             </div>
  122.             <?php parallax_hook_about_bottom(); ?>
  123.         </section><!-- .brief-design-one -->
  124.         <?php parallax_hook_about_after(); ?>
  125. <?php
  126. } else {
  127.     if ( is_customize_preview() ) {
  128. ?>
  129.         <?php parallax_hook_about_before(); ?>
  130.         <section class="brief text-left brief-design-one brief-left paralax_one_only_customizer" id="story" role="region" aria-label="<?php esc_html_e( 'About', 'parallax-one' ); ?>">
  131.             <?php parallax_hook_about_top(); ?>
  132.             <div class="col-md-6 brief-content-two paralax_one_only_customizer"><img src="" alt=""><div class="brief-image-right"></div></div>
  133.             <div class="col-md-6 content-section brief-content-one">
  134.                 <h2 class="text-left dark-text paralax_one_only_customizer"></h2><div class="colored-line-left paralax_one_only_customizer"></div>
  135.                 <div class="brief-content-text paralax_one_only_customizer"></div>
  136.             </div>
  137.             <?php parallax_hook_about_bottom(); ?>
  138.         </section>
  139.         <?php parallax_hook_about_after(); ?>
  140. <?php
  141.     } // End if().
  142. } // End if().
  143. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement