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
// | |
// Load core variables | |
// -------------------------------------------------- | |
@import "variables.less"; | |
.breakpoint(@class, @rules) when (@class = xs) { | |
@media (min-width: @screen-xs-min) and (max-width: @screen-xs-max) {@rules();} | |
} | |
.breakpoint(@class, @rules) when (@class = sm) { |
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 | |
/** | |
* Forces original site for previewing posts and pages when using domain mapping | |
* | |
* @return URL of preview link using original site | |
**/ | |
function original_site_preview_link($url, $post) { | |
$parts = parse_url($url); |
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 | |
// Forces edge in IE browsers | |
add_filter('wp_headers', 'bf_ie_add_header'); | |
function bf_ie_add_header($headers) { | |
if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) { | |
$headers['X-UA-Compatible'] = 'IE=edge,chrome=1'; | |
} | |
return $headers; | |
} |
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
/** | |
* Retrieve calendar embedding code | |
*/ | |
$calRaw = ''; | |
if (in_array('curl', get_loaded_extensions())) { | |
//counter for retry attempts | |
$i = 1; | |
//Let's act like a request has been made and returned error 302 so we process first attempt | |
$status['http_code'] = '302'; |