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
if ( is_page( 'page-template-page-landing-php' ) ) { | |
wp_enqueue_script( 'video' ); | |
} |
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 month we have been listening to | |
<?php | |
$username = 'tomhole1986'; | |
$itemCount = 5; | |
$month = 1; | |
$scrobbler_url = "http://ws.audioscrobbler.com/2.0/user/" . $username . "/topartists.xml?period=" . $month . "month&limit=" . $itemCount . ""; | |
$scrobbler_cache_file = 'scrobbler_' . $username . '_data.cache'; | |
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
// Get And Cache Vimeo Thumbnails | |
function get_vimeo_thumb($id, $size = 'thumbnail_small') | |
{ | |
if(get_transient('vimeo_' . $size . '_' . $id)) | |
{ | |
$thumb_image = get_transient('vimeo_' . $size . '_' . $id); | |
} | |
else | |
{ | |
$json = json_decode( file_get_contents( "http://vimeo.com/api/v2/video/" . $id . ".json" ) ); |
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
background-position: center center; | |
background-repeat: no-repeat; | |
background-attachment: fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; |
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 rkv_imagelink_setup() { | |
$image_set = get_option( 'image_default_link_type' ); | |
if ($image_set !== 'none') { | |
update_option('image_default_link_type', 'none'); | |
} | |
} | |
add_action('admin_init', 'rkv_imagelink_setup', 10); | |
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
$structure(document).ready(widow); | |
function widow(){ | |
$structure("h1,h2,h3,h4,h5").each(function() { | |
var wordArray = $structure(this).text().split(" "); | |
var finalTitle = ""; | |
for (i=0;i<=wordArray.length-1;i++) { | |
finalTitle += wordArray[i]; | |
if (i == (wordArray.length-2)) { |
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
-webkit-font-smoothing: antialiased; | |
text-shadow: 1px 1px 1px rgba(0,0,0,0.004); |
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
<?php | |
/* | |
* Loop through a Flexible Content field and display it's content with different views for different layouts | |
*/ | |
while(has_sub_field("content")): ?> | |
<?php if(get_row_layout() == "paragraph"): // layout: Content ?> | |
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
<?php | |
$location = get_field('location'); | |
if( !empty($location) ): | |
?> | |
<?php echo $location['lat']; ?> | |
<?php echo $location['lng']; ?>"> | |
<?php endif; ?> |
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
<?php | |
$location = get_sub_field('location'); | |
if( !empty($location) ): | |
?> | |
<img src="http://maps.googleapis.com/maps/api/staticmap?center=<?php echo $location['lat']; ?>,<?php echo $location['lng']; ?>&zoom=15&format=png&sensor=false&size=640x480&maptype=roadmap&visual_refresh=true&style=visibility:off&style=feature:road|element:geometry|visibility:simplified|color:0xefecec&style=feature:landscape|element:geometry|visibility:simplified|color:0xffffff&style=element:labels|visibility:on&markers=color:black|<?php echo $location['lat']; ?>,<?php echo $location['lng']; ?>"/> | |
<?php endif; ?> |