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
<?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. |
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
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" prefix="og: http://ogp.me/ns#" <?php language_attributes(); ?>> | |
<?php if (have_posts()):while(have_posts()):the_post();endwhile;endif;?> | |
<!-- Facebook Opengraph --> | |
<meta property="fb:app_id" content="your_app_id" /> | |
<meta property="fb:admins" content="your_admin_id" /> | |
<meta property="og:url" content="<?php the_permalink() ?>"/> | |
<?php if (is_single()) { ?> | |
<meta property="og:title" content="<?php single_post_title(''); ?>" /> | |
<meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" /> | |
<meta property="og:type" content="article" /> |