This file contains hidden or 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
function maintenance_redirect(){ | |
if( !is_user_logged_in() ){ | |
wp_redirect( site_url( 'maintenance.html' ), 302 ); | |
exit(); | |
} | |
} | |
add_action( 'init', 'maintenance_redirect' ); |
This file contains hidden or 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
content: "\f105"; | |
font-family: 'Line Awesome Free'; | |
font-weight: 900; |
This file contains hidden or 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
(function($) { | |
$(window).scroll(function() { | |
var header = $(document).scrollTop(); | |
var headerHeight = $(".header").outerHeight(); | |
if (header > headerHeight) { | |
$(".header").addClass("fixed"); | |
} else { | |
$(".header").removeClass("fixed"); | |
} | |
}); |
This file contains hidden or 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
/* jshint esversion: 6 */ | |
// @link: https://screenspan.net/blog/multiple-modals/ | |
// Get each modal and close button | |
const triggers = document.getElementsByClassName("trigger"); | |
const triggerArray = Array.from(triggers).entries(); | |
const modals = document.getElementsByClassName("modal"); | |
const closeButtons = document.getElementsByClassName("btn-close"); | |
// Then use `for...of`-loop with the index of each item in `triggerArray` for listening to a click event which toggles each modal to open and close | |
for (let [index, trigger] of triggerArray) { |
This file contains hidden or 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
(function($) { | |
$.fn.toTitleCase = function() { | |
return $(this).each(function() { | |
var ignore = "and,the,in,with,an,or,at,of,a,to,for".split(","); | |
var theTitle = $(this).text(); | |
var split = theTitle.split(" "); | |
for (var x = 0; x < split.length; x++) { | |
if (x > 0) { | |
if (ignore.indexOf(split[x].toLowerCase()) < 0) { |
This file contains hidden or 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
// Flexbox Mixins | |
@mixin flexbox { | |
display: -webkit-box; | |
display: -webkit-flex; | |
display: -moz-flex; | |
display: -ms-flexbox; | |
display: flex; | |
} |
This file contains hidden or 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
.description .more--content span { | |
display: none; | |
} | |
.description .more--link { | |
display: block; | |
} |
This file contains hidden or 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
/* | |
* example usage: client logo grid | |
*/ | |
.item { | |
border: 1px solid $gray-200; | |
margin:0 -1px -1px 0; | |
} |
This file contains hidden or 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
// ============================================================================================= | |
// ██████ ██ ██ ███ ██ █████ ███ ███ ██ ██████ | |
// ██ ██ ██ ██ ████ ██ ██ ██ ████ ████ ██ ██ | |
// ██ ██ ████ ██ ██ ██ ███████ ██ ████ ██ ██ ██ | |
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ | |
// ██████ ██ ██ ████ ██ ██ ██ ██ ██ ██████ | |
// ██████ █████ ██████ ██████ ██ ███ ██ ██████ | |
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ | |
// ██████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ | |
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ |
This file contains hidden or 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
<div class="contact container shadow" id="contact_form"> | |
<div class="contact row header"> | |
<h2>CONTACT US</h2> | |
<h3>Request information, book a studio, or plan your event!</h3> | |
<div id="contact_results"></div> | |
</div> | |
<div class="contact row body" id="contact_body"> | |
<div class="contact-elements"> | |
<ul> | |
<li> |
NewerOlder