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
<h1>Level 1 heading</h1> | |
<p>Sed scelerisque sagittis lorem. Phasellus sodales. Nulla urna justo, vehicula in, suscipit nec, molestie sed, tellus.</p> | |
<h1 class="fancy">Level 1 heading class="fancy"</h1> | |
<p>Sed scelerisque sagittis lorem. Phasellus sodales. Nulla urna justo, vehicula in, suscipit nec, molestie sed, tellus.</p> | |
<h1 class="thin">Level 1 heading class="thin"</h1> |
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
/** | |
* Horizontal Type Line Behind Text | |
* Inspired by this discussion @ CSS-Tricks: http://css-tricks.com/forums/discussion/comment/51357#Comment_51357 | |
* Available on jsFiddle: http://jsfiddle.net/ericrasch/jAXXA/ | |
* Available on Dabblet: http://dabblet.com/gist/2045198 | |
* Available on GitHub Gist: https://gist.github.com/2045198 | |
*/ | |
h2 { |
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
.holder { | |
position: relative; | |
width: 215px; | |
height: 215px; | |
margin: 20px; | |
z-index: 999; | |
cursor: pointer; | |
} | |
.h1 { |
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
<!-- New HTML5 FB Comments --> | |
<div id="fb-root"></div> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; | |
fjs.parentNode.insertBefore(js, fjs); |
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 // https://gist.github.com/3310364 | |
$page_custom_fields = | |
array( | |
"most_popular" => array( | |
"name" => "most_popular", | |
"std" => "", | |
"title" => "Most Popular Degree", | |
"description" => "", | |
"type" => "checkbox"), |
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 | |
$ig_post_custom_fields = array ( | |
"infographic" => array( | |
"name" => "is_infographic", | |
"std" => "", | |
"title" => "Is this an infographic post?", | |
"description" => "If you check this box, we'll add a Pin It share option.", | |
"type" => "checkbox"), | |
"image_url" => 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
<?php | |
switch ($map_state) | |
{ | |
case 'Alabama': | |
$abbr = 'AL'; | |
break; | |
case 'Alaska': | |
$abbr = 'AK'; | |
break; |
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 // https://gist.github.com/3950382 | |
function toggle_monetization() { | |
global $post; | |
$custom = get_post_custom($post->ID); | |
if(isset($custom["toggle_monetization"][0])) { | |
$money = $custom["toggle_monetization"][0]; | |
} | |
?> | |
<p style="margin-bottom:10px;"> |
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
// Vimeo serves up poster images in 100, 200 and 640. But there's also size they don't serve: 1280 | |
// https://developer.vimeo.com/apis/simple | |
$vimeo_value = get_post_meta($post->ID, 'vimeo_value', TRUE); | |
$vimeo_video_id = substr($vimeo_value, strrpos($vimeo_value, '/')+1); // get just the id | |
$vimeo_xml_file = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$vimeo_video_id.php")); // get the video data from the API | |
$vimeo_video_width = $vimeo_xml_file[0]['width']; | |
$vimeo_thumbnail_large = $vimeo_xml_file[0]['thumbnail_large']; // load up one of the image sizes | |
if($vimeo_video_width < 1280) { | |
$vimeo_thumbnail = $vimeo_thumbnail_large; |
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 display_video($video_meta,$video_width,$video_height) { | |
$video_string = $video_meta; // url of the video; gonna use this to check if is a vimeo or youtube video | |
if( strpos($video_string, 'vimeo') ) { | |
/* =BEGIN: Insert Vimeo video from Custom Field ID | |
Source: http://wordpress.org/extend/plugins/lux-vimeo-shortcode/ |
OlderNewer