* To keep the layout simple, we're making a tradeoff, as subtitle is more significant rather than taxonomy list
     * 
     * @param string 	posted on data
     * @param int 		post ID
     * @return string 	posted on + taxonomy list data
     */
    if (!function_exists('cinnamon_subtitles_posted_on')) {
        function cinnamon_subtitles_posted_on($posted_on, $post_id)
        {
            // Get subtitles
            $subtitle = get_the_subtitle($post_id);
            if ($subtitle && is_singular()) {
                $entry_subtitle = cinnamon_get_entry_subtitle($post_id);
                if ($entry_subtitle) {
                    return sprintf(__('%s under <span class="taxonomies">%s</span>', 'cinnamon'), $posted_on, $entry_subtitle);
                } else {
                    return $posted_on;
                }
            } else {
                return $posted_on;
            }
        }
    }
    add_filter('cinnamon_posted_on', 'cinnamon_subtitles_posted_on', 10, 2);
}
/**
 * Removing Subtitles styling
 */
if (class_exists('Subtitles') && method_exists('Subtitles', 'subtitle_styling')) {
    remove_action('wp_head', array(Subtitles::getInstance(), 'subtitle_styling'));
}
Beispiel #2
0
/**
 * Removes the built-in styles in the Subtitles plugin.
 *
 * @since checkout 1.0
 */
function checkout_remove_subtitles_styles()
{
    if (class_exists('Subtitles') && method_exists('Subtitles', 'subtitle_styling')) {
        remove_action('wp_head', array(Subtitles::getInstance(), 'subtitle_styling'));
    }
}