Example #1
0
function thinkup_input_blogmeta()
{
    echo '<div class="entry-meta">';
    if (is_sticky() && is_home() && !is_paged()) {
        thinkup_input_sticky();
    }
    thinkup_input_blogauthor();
    thinkup_input_blogdate();
    thinkup_input_blogcomment();
    thinkup_input_blogcategory();
    thinkup_input_blogtag();
    echo '</div>';
}
Example #2
0
function thinkup_input_blogmeta()
{
    global $thinkup_blog_style;
    global $thinkup_blog_date;
    global $thinkup_blog_author;
    global $thinkup_blog_comment;
    global $thinkup_blog_category;
    global $thinkup_blog_tag;
    global $post;
    global $thinkup_blog_pageid;
    $_thinkup_meta_blogdate = get_post_meta($thinkup_blog_pageid, '_thinkup_meta_blogdate', true);
    $_thinkup_meta_blogauthor = get_post_meta($thinkup_blog_pageid, '_thinkup_meta_blogauthor', true);
    $_thinkup_meta_blogcomment = get_post_meta($thinkup_blog_pageid, '_thinkup_meta_blogcomment', true);
    $_thinkup_meta_blogcategory = get_post_meta($thinkup_blog_pageid, '_thinkup_meta_blogcategory', true);
    $_thinkup_meta_blogtags = get_post_meta($thinkup_blog_pageid, '_thinkup_meta_blogtags', true);
    // Set variables to avoid php non-object notice error
    $_thinkup_meta_blogstyle = NULL;
    // Assign meta data variable
    if (!empty($thinkup_blog_pageid)) {
        $_thinkup_meta_blogstyle = get_post_meta($thinkup_blog_pageid, '_thinkup_meta_blogstyle', true);
    }
    if (get_page_template_slug($thinkup_blog_pageid) !== 'template-blog.php') {
        if ($thinkup_blog_date !== '1' or $thinkup_blog_author !== '1' or $thinkup_blog_comment !== '1' or $thinkup_blog_category !== '1' or $thinkup_blog_tag !== '1') {
            echo '<div class="entry-meta">';
            if (is_sticky() && is_home() && !is_paged()) {
                thinkup_input_sticky();
            }
            if ($thinkup_blog_date !== '1') {
                thinkup_input_blogdate();
            }
            if ($thinkup_blog_author !== '1') {
                thinkup_input_blogauthor();
            }
            if ($thinkup_blog_comment !== '1') {
                thinkup_input_blogcomment();
            }
            if ($thinkup_blog_category !== '1') {
                thinkup_input_blogcategory();
            }
            if ($thinkup_blog_tag !== '1') {
                thinkup_input_blogtag();
            }
            echo '</div>';
        }
    } else {
        if (get_page_template_slug($thinkup_blog_pageid) == 'template-blog.php') {
            if ($_thinkup_meta_blogdate == 'on' or $_thinkup_meta_blogauthor == 'on' or $_thinkup_meta_blogcomment == 'on' or $_thinkup_meta_blogcategory == 'on' or $_thinkup_meta_blogtags == 'on') {
                echo '<div class="entry-meta">';
                if ($_thinkup_meta_blogdate == 'on') {
                    thinkup_input_blogdate();
                }
                if ($_thinkup_meta_blogauthor == 'on') {
                    thinkup_input_blogauthor();
                }
                if ($_thinkup_meta_blogcomment == 'on') {
                    thinkup_input_blogcomment();
                }
                if ($_thinkup_meta_blogcategory == 'on') {
                    thinkup_input_blogcategory();
                }
                if ($_thinkup_meta_blogtags == 'on') {
                    thinkup_input_blogtag();
                }
                echo '</div>';
            }
        }
    }
}
function thinkup_input_blogmeta()
{
    global $thinkup_blog_style;
    global $thinkup_blog_date;
    global $thinkup_blog_author;
    global $thinkup_blog_comment;
    global $thinkup_blog_category;
    global $thinkup_blog_tag;
    if ($thinkup_blog_date !== '1' or $thinkup_blog_author !== '1' or $thinkup_blog_comment !== '1' or $thinkup_blog_category !== '1' or $thinkup_blog_tag !== '1') {
        echo '<div class="entry-meta">';
        if (is_sticky() && is_home() && !is_paged()) {
            thinkup_input_sticky();
        }
        if ($thinkup_blog_date !== '1') {
            thinkup_input_blogdate();
        }
        if ($thinkup_blog_author !== '1') {
            thinkup_input_blogauthor();
        }
        if ($thinkup_blog_category !== '1') {
            thinkup_input_blogcategory();
        }
        if ($thinkup_blog_tag !== '1') {
            thinkup_input_blogtag();
        }
        if ($thinkup_blog_comment !== '1') {
            thinkup_input_blogcomment();
        }
        echo '</div>';
    }
}