This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function () { | |
if (document.documentElement.clientWidth < 950) { | |
// do nothing below 950px | |
} | |
else | |
jQuery('.header-widget').css('marginTop', jQuery('.site-header').outerHeight(true) ); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//get Pods object for current post | |
$pod = pods( 'room', get_the_id() ); | |
//get the value for the relationship field | |
$related = $pod->field( 'hotel' ); | |
//loop through related field, creating links to their own pages | |
//only if there is anything to loop through | |
if ( ! empty( $related ) ) { | |
foreach ( $related as $rel ) { ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = wp_get_attachment_url( get_post_thumbnail_id() ); | |
$filetype = wp_check_filetype($url); | |
if ($filetype[ext] == 'gif') | |
{the_post_thumbnail('full', array('class' => 'img-responsive')); } | |
else |