adding styles to the new booking widget being added to the rooms plugin
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 27 Aug 2018 20:49:48 +0000 (16:49 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 27 Aug 2018 20:49:48 +0000 (16:49 -0400)
header.php
rooms.php
style.css

index ec41372..a98b05d 100644 (file)
@@ -26,6 +26,7 @@
         'area'     : '<?php echo get_permalink(31); ?>'
     }
 </script>
+<script src='https://media.xmlcal.com/widget/1.00/js/bookWidget.min.js'></script>
 </head>
 
 <body <?php body_class(); ?>>
index e893ad9..3ffb94e 100644 (file)
--- a/rooms.php
+++ b/rooms.php
@@ -38,7 +38,9 @@ get_header();
                             'post_type'         => 'glm-rooms',
                             'post_status'       => 'publish',
                             'posts_per_page'    => -1,
+                  
                             'orderby'           => 'menu_order',
+                            'order'             => 'ASC',
                             'tax_query' => array(
                                 array(
                                     'taxonomy' => 'rooms_category',
@@ -88,6 +90,7 @@ get_header();
                                                 </div>
                                             </div>
                                     </div>
+                                    <?php echo get_field('booking_widget',get_the_id()); ?>
                                 </div>
                             <?php } ?> 
                             <?php wp_reset_query();?>
@@ -125,7 +128,7 @@ get_header();
         jQuery( "#rooms-tabs" ).tabs({
             active: tab
         });
-        
+        $("[id^='bookWidget']").addClass("small-12 medium-9 large-6 grid-columns booking-widget")
     });
 </script>
 <?php get_footer();
\ No newline at end of file
index 242b545..d607de0 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,7 +3,7 @@ Theme Name: Laurium Manor
 Theme URI: https://accesspressthemes.com/wordpress-themes/accesspress-parallax/
 Author: AccessPress Themes
 Author URI: https://accesspressthemes.com/
-Version: 1.0.1
+Version: 1.0.2
 License: GNU General Public License v3 or later
 License URI: http://www.gnu.org/licenses/gpl-3.0.html
 Text Domain: accesspress-parallax
@@ -16,7 +16,7 @@ Use it to make something cool, have fun, and share what you've learned with othe
 AccessPress Parallax is based on Underscores http://underscores.me/, (C) 2012-2014 Automattic, Inc.
 */
 /*--------------------------------------------------------------
-1.0 - Reset
+1.0.2 - Reset
 --------------------------------------------------------------
 light brown : #7D3E00;
 dark brown  : #320701;
@@ -2727,4 +2727,12 @@ Responsive grid for pages
     .parallax-section.team_template {
         background-attachment: scroll !important; 
     }
+}
+.room-amenities .ui-accordion-header{
+    padding: .2rem !important;
+}
+@media (min-width: 768px){
+    .booking-widget{
+        margin-top: 15px;
+    }
 }
\ No newline at end of file