コード例 #1
0
ファイル: content-chat.php プロジェクト: mystified7545/MyBlog
			</dt><dd>
<?php 
    weaverii_the_contnt_featured();
    ?>
			</dd></dl>
<?php 
    wp_link_pages(array('before' => '<div class="page-link"><span>' . __('Pages:', 'weaver-ii') . '</span>', 'after' => '</div>'));
    ?>
		</div><!-- .entry-content -->
<?php 
}
?>
		<footer class="entry-utility">
<?php 
if (comments_open()) {
    echo '<span ' . weaverii_meta_icons_class() . '><span class="comments-link">';
    comments_popup_link('<span class="leave-reply">' . '&nbsp;&nbsp;' . __('Leave a reply', 'weaver-ii') . '</span>', __('<b>1</b> Reply', 'weaver-ii'), __('<b>%</b> Replies', 'weaver-ii'));
    ?>
</span></span>

			<?php 
}
?>
			<?php 
edit_post_link(__('Edit', 'weaver-ii'), '<span class="edit-link">', '</span>');
?>
		</footer><!-- #entry-utility -->
<?php 
weaverii_inject_area('postpostcontent');
// inject post comment body
?>
コード例 #2
0
ファイル: functions.php プロジェクト: mystified7545/MyBlog
    /**
     * Prints HTML with meta information for the current post-date/time and author.
     * Create your own weaverii_posted_on to override in a child theme
     *
     * @since Weaver II 1.0
     */
    function weaverii_posted_in($type = '')
    {
        if (weaverii_getopt_checked('wii_post_info_hide_bottom') || weaverii_is_checked_post_opt('hide_bottom_post_meta') || weaverii_is_checked_page_opt('ttw_hide_pp_infobot') || weaverii_sc_getopt('hide_bottom_info')) {
            // hide bottom?
            edit_post_link(__('Edit', 'weaver-ii'), '<span class="edit-link">', '</span>');
            return;
        }
        if (weaverii_is_checked_page_opt('ttw_hide_pp_infobot') && !weaverii_sc_getopt('showposts')) {
            return;
        }
        if (($my_in = weaverii_getopt('_wvr_custom_posted_in_single')) != '' && $type == 'single') {
            weaverii_post_info_line($my_in);
            edit_post_link(__('Edit', 'weaver-ii'), '<span class="edit-link">', '</span>');
            return;
        }
        if (($my_in = weaverii_getopt('_wvr_custom_posted_in')) != '' && $type != 'single') {
            weaverii_post_info_line($my_in);
            edit_post_link(__('Edit', 'weaver-ii'), '<span class="edit-link">', '</span>');
            return;
        }
        echo '<div ' . weaverii_meta_icons_class() . ">\n";
        if ($type == 'single') {
            /* translators: used between list items, there is a space after the comma */
            $categories_list = get_the_category_list(__(', ', 'weaver-ii'));
            /* translators: used between list items, there is a space after the comma */
            $tags_list = get_the_tag_list('', __(', ', 'weaver-ii'));
            if ('' != $tags_list) {
                $utility_text = __('This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'weaver-ii');
            } elseif ('' != $categories_list) {
                $utility_text = __('This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'weaver-ii');
            } else {
                $utility_text = __('This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'weaver-ii');
            }
            if (weaverii_meta_icons_class() == '') {
                // not showing icons
                printf($utility_text, $categories_list, $tags_list, esc_url(get_permalink()), the_title_attribute('echo=0'), get_the_author(), esc_url(get_author_posts_url(get_the_author_meta('ID'))));
            } else {
                if ($categories_list) {
                    $cat_count = count(get_the_category());
                    if ($cat_count < 2 && weaverii_getopt_checked('wii_hide_singleton_cat')) {
                        echo "\t\t\t<span class=\"cat-links post_hide_singleton_cat\">\n";
                    } else {
                        echo "\t\t\t<span class=\"cat-links\">\n";
                    }
                    printf(__('<span class="%1$s">Posted in</span> %2$s', 'weaver-ii'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list);
                    ?>
			</span>
<?php 
                }
                // End if categories
                /* translators: used between list items, there is a space after the comma */
                if ($tags_list) {
                    ?>
			<span class="tag-links">
<?php 
                    printf(__('<span class="%1$s">Tagged</span> %2$s', 'weaver-ii'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list);
                    ?>
			</span>
<?php 
                }
                // End if $tags_list
                ?>
		<span class="permalink-icon"><a href="<?php 
                echo esc_url(get_permalink());
                ?>
" title="Permalink to <?php 
                the_title_attribute();
                ?>
" rel="bookmark"><?php 
                echo __('permalink', 'weaver-ii');
                ?>
</a></span>
<?php 
            }
            // end not showing icons
            edit_post_link(__('Edit', 'weaver-ii'), '<span class="edit-link">', '</span>');
        } else {
            if ($type == 'reply') {
                $dummy = true;
            } else {
                // else not single
                $show_sep = false;
                if ('page' != get_post_type()) {
                    // Hide category and tag text for pages on Search
                    /* translators: used between list items, there is a space after the comma */
                    $categories_list = get_the_category_list(__(', ', 'weaver-ii'));
                    $cat_count = count(get_the_category());
                    $skip = $cat_count < 2 && weaverii_getopt_checked('wii_hide_singleton_cat');
                    if ($categories_list && !$skip) {
                        ?>
			<span class="cat-links">
<?php 
                        printf(__('<span class="%1$s">Posted in</span> %2$s', 'weaver-ii'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list);
                        $show_sep = true;
                        ?>
			</span>
<?php 
                    }
                    // End if categories
                    /* translators: used between list items, there is a space after the comma */
                    $tags_list = get_the_tag_list('', __(', ', 'weaver-ii'));
                    if ($tags_list) {
                        if ($show_sep) {
                            ?>
			<span class="sep"> | </span>
<?php 
                        }
                        // End if $show_sep
                        ?>
			<span class="tag-links">
<?php 
                        printf(__('<span class="%1$s">Tagged</span> %2$s', 'weaver-ii'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list);
                        $show_sep = true;
                        ?>
			</span>
<?php 
                    }
                    // End if $tags_list
                }
                // End if 'page' != get_post_type()
                if (comments_open()) {
                    if ($show_sep) {
                        ?>
			<span class="sep"> | </span>
<?php 
                    }
                    // End if $show_sep
                    ?>
			<span class="comments-link"><?php 
                    comments_popup_link('<span class="leave-reply">' . apply_filters('weaverii_comment_reply', __('Leave a reply', 'weaver-ii')) . '</span>', apply_filters('weaverii_comment_reply', __('<b>1</b> Reply', 'weaver-ii')), apply_filters('weaverii_comment_reply', __('<b>%</b> Replies', 'weaver-ii')));
                    ?>
</span>
<?php 
                }
                // End if comments_open()
                edit_post_link(__('Edit', 'weaver-ii'), '<span class="edit-link">', '</span>');
            }
        }
        // end non-single
        ?>
	</div><!-- .entry-meta-icons -->
<?php 
    }
コード例 #3
0
function weaveriip_posted_on_code($date, $author)
{
    if (weaverii_getopt('wii_post_info_hide_top') || weaverii_is_checked_page_opt('wvp_perpost_info_hide_top')) {
        return '';
    }
    $leftm = '8';
    $on = "\t<div class=\"entry-meta\" style=\"margin-botom:-5px;margin-top:-10px;\"><div " . weaverii_meta_icons_class() . ">\n\t\t";
    $on .= '<span class="sep">Posted on </span><time class="entry-date" >' . $date . '<span class="by-author"> <span class="sep"> by </span> <span class="author vcard">' . $author . '</span></span>';
    $on .= "\n    </div></div><!-- .entry-meta -->\n";
    return $on;
}