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
<a class="share_twitter" href="https://twitter.com/home?status=<?php the_title();echo " - ". $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?> " target="_blank"> | |
</a> | |
<a class="share_twitter" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?>&t=<?php the_title(); ?>" target="_blank"> | |
</a> |
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="icon" style="background-image:url(<?php the_sub_field('icon'); ?>)" onMouseOver="this.style.backgroundImage='url(<?php the_sub_field('hover_icon'); ?>)'" onMouseOut="this.style.backgroundImage='url(<?php the_sub_field('icon'); ?>)'"></div> |
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
$( document ).ajaxComplete(function( event,request, settings ) { | |
if($('.sent').length > 0){ | |
console.log('good'); | |
}else{ | |
console.log('bad'); | |
} | |
}); |
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 echo substr(get_the_excerpt(), 0,30); ?> |
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
//disable the submit btn when input field empty | |
$('input.search-field').mousemove(function() { | |
var empty = false; | |
$('.search-field').each(function() { | |
if ($(this).val().length == 0) { | |
empty = 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 $image = get_sub_field('features_img'); | |
if( !empty($image) ): | |
// vars | |
$url = $image['url']; | |
$title = $image['title']; | |
$alt = $image['alt']; | |
$caption = $image['caption']; |
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
(function($) { | |
$(document).ready(function(){ | |
alert("wow it's work!!!"); | |
//end of document).ready function | |
}); | |
$( window ).load( function(){ | |
//end of window.load function |
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="videoWrapper"> | |
<!-- from here: http://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php --> | |
<?php if( get_field('youtube_url') ){ | |
$embed_code = wp_oembed_get( get_field('youtube_url') ); | |
echo $embed_code; | |
} ?> | |
</div> |
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
(function($) { | |
$(document).ready(function(){ | |
alert("wow it's work!!!"); | |
// view the entire object of PHP variables | |
console.dir(ourPhpVariables); | |
// retrieve the site name from the object | |
var siteName = ourPhpVariables.siteName; | |
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
//Sassy Z-Index Management For Complex Layouts | |
$elements: project-covers, sorting-bar, modals, navigation; | |
.project-cover { | |
z-index: index($elements, project-covers); | |
} | |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ |