List
- one
- two
- three
Strong
Italic
/** | |
* 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( |
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 |
a:3:{s:4:"html";s:135:" | |
<div class="hide"><pre>stdClass::__set_state(array( | |
'links' => | |
array ( | |
), | |
))</pre></div> | |
";s:5:"value";s:61:"stdClass::__set_state(array( | |
'links' => |
function my_post_classes( $classes ) { | |
$classes = array_diff( $classes, array( 'hentry' ) ); | |
if ( 'page' !== get_post_type() ) { | |
// Adds a class for microformats v2 | |
$classes[] = 'h-entry'; | |
// add hentry to the same tag as h-entry | |
$classes[] = 'hentry'; | |
} | |
<?php | |
/** | |
* Quote Kind Reply. | |
* | |
* @package independence | |
*/ | |
?> | |
<?php |
<?php | |
/* | |
Default Template | |
* The Goal of this Template is to be a general all-purpose model that will be replaced by customization in other templates | |
*/ | |
$kind = get_post_kind_slug( get_the_ID() ); | |
$meta = new Kind_Meta( get_the_ID() ); | |
$author = Kind_View::get_hcard( $meta->get_author() ); | |
$cite = $meta->get_cite(); |