List
- one
- two
- three
Strong
Italic
function zenpress_setup() | |
{ | |
// This theme supports a custom header | |
// Change the width and height here | |
$cooking_header_args = array( | |
'width' => 1250, | |
'height' => 400, | |
'header-text' => true, | |
); |
/** | |
* Wraps the_content in e-content | |
* | |
*/ | |
function mf2_s_the_content( $content ) { | |
if ((mf2_s_template_type()=='article')||(is_page())) { | |
$wrap = '<div class="entry-content e-content"><p>'; | |
} | |
else { | |
$wrap = '<div class="entry-content e-content p-name"><p>'; |
/** | |
* Featured image in atom feed. | |
* @method featuredtoRSS | |
* @param $string $content post content. | |
* @return $string $content updated content w/image. | |
*/ | |
function independence_featuredtorss( $content ) { | |
global $post; | |
if ( has_post_thumbnail( $post->ID ) ) { | |
$content = '<div>' . get_the_post_thumbnail( $post->ID, 'medium', array( |
/** | |
* Unspam Webmentions | |
* | |
* @method unspam_webmentions | |
* @param [type] $approved [description]. | |
* @param [type] $commentdata [description]. | |
* @return [type] [description] | |
*/ | |
function unspam_webmentions( $approved, $commentdata ) { | |
return $commentdata['comment_type'] == 'webmention' ? 1 : $approved; |
/** | |
* Unspam Webmentions | |
* | |
* @method unspam_webmentions | |
* @param [type] $approved [description]. | |
* @param [type] $commentdata [description]. | |
* @return [type] [description] | |
*/ | |
function unspam_webmentions( $approved, $commentdata ) { |
/** | |
* Featured image in atom feed. | |
* @method featuredtoRSS | |
* @param $string $content post content. | |
* @return $string $content updated content w/image. | |
*/ | |
function independence_featuredtorss( $content ) { | |
global $post; | |
if ( has_post_thumbnail( $post->ID ) ) { | |
$content = '<div>' . get_the_post_thumbnail( $post->ID, 'medium', array( |
I hereby claim:
To claim this, I am signing this object:
function mf2_s_template_type() { | |
if (function_exists('get_post_kind') ) | |
{ | |
/* Use kinds for specific templates | |
*/ | |
$name = get_post_kind_slug(); | |
} | |
else { | |
/* Otherwise use post formats for templates | |
* For those post formats that have post kind |