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 ( get_post_meta($post->ID, 'fbimage', true) ) : ?> | |
<meta property="og:image" content="<?php echo(get_post_meta($post->ID, "fbimage", true)); ?>" /> | |
<?php endif; ?> |
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 itemscope itemtype="http://schema.org/Article" class="content"> | |
<h1 itemprop="name"><?php the_title(); ?></h1> | |
<div class="entry-content"> | |
<?php | |
if ( has_post_thumbnail() ) | |
the_post_thumbnail( 'single-post-thumbnail', array( 'itemprop' => 'image' ) ); | |
else | |
echo '<img src="' . get_bloginfo( 'stylesheet_directory' ) . '/images/default_thumb1.jpg" class="attachment wp-post-image" />'; |
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 Google field to WordPress profile | |
* Kudos to Justin Tadlock | |
* http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields | |
*/ | |
// Display the new field | |
function werewp_googleplus_field( $user ) { ?> | |
<h3>Extra profile information</h3> |
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
--- | |
layout: layout | |
--- | |
<div class="{{ post.layout }}"> | |
{{ content }} | |
</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 werewp_image_plus($html, $id , $class){ | |
$html = str_replace('class="'.$class.'"','itemprop="image" class="'.$class.'"',$html); | |
return $html; | |
} | |
add_filter('get_image_tag','werewp_image_plus',10,4); |
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 werewp_ogimage() { | |
$customimage = get_custom_field_image(); | |
echo '<meta property="og:image" content="'.$customimage.'" />'; | |
} | |
add_action( 'wp_head', 'werewp_ogimage' ); |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Not ready yet, come back later!</title> | |
<script src="/mint/?js"></script> | |
<style type="text/css"> | |
html { background: #fff url(http://farm3.static.flickr.com/2059/2342058776_a23acd225d_o.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; height: 100% } | |
</style> | |
</head> | |
<body> |
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 | |
/** | |
* The Header for our theme. | |
* | |
* Displays all of the <head> section and everything up till <div id="main"> | |
* | |
* @package WordPress | |
* @subpackage Twenty_Eleven | |
* @since Twenty Eleven 1.0 | |
*/ |
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
#!/usr/bin/env ruby | |
# Input: WordPress XML export file. | |
# Outputs: a series of Textile files ready to be included in a Jekyll site, | |
# and comments.yml which contains all approved comments with metadata which | |
# can be used for a Disqus import. | |
# Credits: @ecerulm https://gist.github.com/500506 | |
# Changes from the original gist: http://gist.github.com/268428 | |
# 1. Handles titles containing special characters. Those have to be YAML escaped | |
# 2. Use the original permalinks in wordpress. |
OlderNewer