Added a video to the real to the real-estate page.
authorLaury GvR <laury@gaslightmedia.com>
Tue, 15 Aug 2017 15:27:26 +0000 (11:27 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 15 Aug 2017 15:27:26 +0000 (11:27 -0400)
assets/Real_Estate_Video.mp4 [new file with mode: 0644]
assets/Real_Estate_Video_Mobile.mp4 [new file with mode: 0644]
page.php

diff --git a/assets/Real_Estate_Video.mp4 b/assets/Real_Estate_Video.mp4
new file mode 100644 (file)
index 0000000..d121d9b
Binary files /dev/null and b/assets/Real_Estate_Video.mp4 differ
diff --git a/assets/Real_Estate_Video_Mobile.mp4 b/assets/Real_Estate_Video_Mobile.mp4
new file mode 100644 (file)
index 0000000..0dd0a80
Binary files /dev/null and b/assets/Real_Estate_Video_Mobile.mp4 differ
index 74299bb..3bef5c6 100644 (file)
--- a/page.php
+++ b/page.php
@@ -1,12 +1,27 @@
 <?php get_header(); ?>
 <main class="page-inside">
     <div id="head-img">
-        <?php echo glm_get_background(); ?>
+        <?php if ( is_page('real-estate') ) { ?>
+                <div class="show-for-medium-up">
+                    <video autoplay="" loop="" muted="">
+                        <source src="<?php bloginfo('template_url'); ?>/assets/Real_Estate_Video.mp4">
+                    </video>
+                </div>
+                <div class="show-for-small-down">
+                    <video autoplay="" loop="" muted="">
+                        <source src="<?php bloginfo('template_url'); ?>/assets/Real_Estate_Video_Mobile.mp4">
+                    </video>
+                </div>
+            <?php } else { ?>
+                <?php echo glm_get_background(); ?>
+                <div class="row show-for-medium-up">
+                    <img class="orb-shadow" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/shadow-lrg.jpg">
+                </div>
+            <?php } ?>
     </div>
+
     <?php //get_template_part('parts/reservation-form');?>
-    <div class="row show-for-medium-up">
-        <img class="orb-shadow" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/shadow-lrg.jpg">
-    </div>
+
     <div id="content-wrapper">
         <div class="row">
             <?php