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
.soliloquy-container { | |
.soliloquy { | |
ul.soliloquy-slides { | |
li.soliloquy-item { | |
img.soliloquy-item-image { | |
// make sure the image fills the width of the container |
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 setEqualHeight(columns) { | |
// define our variables | |
var tallestcolumn = 0; | |
var currentHeight = 0; | |
// .each() iterates over a jquery object (in this case our columns argument) | |
columns.each( | |
function() { | |
// assign currentHeight variable the height of the current DOM element in our loop | |
currentHeight = jQuery(this).height(); | |
// is the currentHeight variable larger than the currentHeight variable? |
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
// CUSTOM CODE that checks ustream and displays banner if it's live | |
// GET URL represented as https://api.ustream.tv/channels/CHANNEL_ID.json | |
$.getJSON('https://api.ustream.tv/channels/5817556.json', function(data) | |
{ | |
// if the channel status is live then do something | |
if (data.channel.status == 'live') | |
{ | |
// alert('Its live!'); | |
} | |
}); |
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
// add open class to dropdown menu when hovered over | |
$(function() { | |
$(".dropdown").hover( | |
function(){ $(this).addClass('open'); }, | |
function(){ $(this).removeClass('open'); } | |
); | |
}); |
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 | |
function do_custom_pt_query( $args = array() ){ | |
global $post; | |
$def_args = array('post_type' => 'on_air_programs', | |
'numberposts' => -1, | |
'posts_per_page' => -1, |
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 | |
// Default arguments | |
$args = array( | |
'base' => '%_%', | |
'format' => '?page=%#%', | |
'total' => 1, | |
'current' => 0, | |
'show_all' => False, | |
'end_size' => 1, |
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 if (have_posts()) : ?> | |
<?php | |
// declare counter variable and assign it a value of 0 | |
$count = 0; | |
?> | |
<?php while (have_posts()) : the_post(); ?> | |
<?php if ($count % 4 == 3) { echo '<div class="post className">'; } else { echo '<div class="post>'; } ?> | |
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | |
<div class="entry"> |
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 | |
// Use this to retrieve the URL of the featured post thumbnail. | |
// You can change the 'thumbnail' part to any wordpress image size (eg full, medium, thumbnail, etc.). | |
$thumb_id = get_post_thumbnail_id(); | |
$thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail', true); | |
echo $thumb_url[0]; | |
?> |
OlderNewer