Ejemplo n.º 1
0
function dfll_tweet($tweet, $post_id)
{
    global $dfllCustomFieldValue;
    // in case it was added using the first-line method
    $url = get_post_meta($post_id, 'linked_list_url', true);
    if (empty($url) && empty($dfllCustomFieldValue)) {
        // not a linked list item
        if (get_option('dfll_twitter_glyph_before_non_linked_list')) {
            // check for option
            $tweet->tw_text = get_glyph() . " " . $tweet->tw_text;
        }
    } else {
        // is a linked list item
        if (get_option('dfll_twitter_glyph_before_linked_list')) {
            // check for option
            $tweet->tw_text = get_option('dfll_glyph_before_link_title_text') . " " . $tweet->tw_text;
        }
    }
    return $tweet;
}
Ejemplo n.º 2
0
function get_media_glyphs()
{
    if (in_category("videos") || has_tag("video")) {
        echo get_glyph("video");
    }
    if (in_category("audio") || has_tag("audio")) {
        echo get_glyph("audio");
    }
    if (in_category("images") || has_tag("images") || has_tag("image") || has_tag("gallery")) {
        echo get_glyph("gallery");
    }
    echo "<span class=\"badge\">" . get_glyph("comments") . get_comments_number() . "</span>";
}