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
<div class="row equal-height"> | |
<div class="hidden-xs equal-height-trigger"></div> | |
<div class="col-sm-6 col-md-3"> | |
<div class="card"> | |
<div class="inner"> | |
<header> | |
<h3>Lorem</h3> | |
</header> | |
<p>Lorem ipsum Veniam eiusmod sunt velit deserunt ullamco cillum Duis dolore anim nulla Ut pariatur pariatur labore non esse qui proident ad.</p> |
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 | |
/** | |
* Add paragraph breaks to plain text notifications sent by Mandrill | |
* | |
* Mandrill's default option for handling this is a bit too | |
* agressive. This method checks the type of email, and attempts | |
* to detect whether or not it is HTML or not. | |
* | |
* @param array $message |
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
# Table Prefix | |
SET @prefix = 'wp'; | |
# Find and replace strings | |
SET @find = "www.example.com"; | |
SET @replace = "www.example.dev"; | |
# Build and execute the statements | |
SET @sql1 = CONCAT('UPDATE ', @prefix, '_options SET option_value = REPLACE(option_value,?,?)'); | |
SET @sql2 = CONCAT('UPDATE ', @prefix, '_posts SET guid = REPLACE(guid,?,?)'); |
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 // only keep the opening PHP tag if your functions.php doesn't have one. | |
// Filter the iframe URL for Vimeo | |
add_filter( 'fve_vimeo_iframe_url', 'fve_vimeo_iframe_url', 10, 2 ); | |
function fve_vimeo_iframe_url( $vimeo_iframe_url, $video_meta ) { | |
return 'https://player.vimeo.com/video/' . $video_meta['id'] . '?portrait=0&byline=0&title=0'; | |
} | |
// Filter the permalink for Vimeo | |
add_filter( 'fve_vimeo_permalink', 'fve_vimeo_permalink', 10, 2 ); |
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
var myArray = new Array(1, 2, 3); | |
var copy = myArray.slice(); | |
// now I can change myArray[0] = 5; & it wont affect copy array |
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
// This should be added to your custom lens based on the Tool Kit lens, right after these functions near the end of the file: | |
deckNavigation(); | |
overlay(); | |
setOptions(); | |
deckAdjustments(); | |
bindScrollEventForDotUpdate(); | |
bindScrollEventForThumbUpdate(); | |
// Add the external title to the frame |
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
<meta name="viewport" content="width=device-width, target-densityDpi=device-dpi"> |
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
$('#my_awesome_element').click(function(event){ | |
var element = this; | |
if (this.timer) clearTimeout(element.timer); | |
this.timer = setTimeout(function(){ | |
console.log("Nothing Pressed for 1000ms"); | |
},1000); | |
return 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
div { | |
width: intrinsic; /* Safari/WebKit uses a non-standard name */ | |
width: -moz-max-content; /* Firefox/Gecko */ | |
} |
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
</div> | |
</div> | |
</div> | |
<!-- /Footer --> | |
<?php wp_footer(); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
jQuery('.slidedeck-frame').bind('mouseenter', function(){ | |
jQuery('.slidedeck').slidedeck().pauseAutoPlay = true; |