예제 #1
0
    } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {
        echo '<h4>' . __('Blog Archives', THEME_NS) . '</h4>';
    }
    theme_post_wrapper(array('content' => ob_get_clean(), 'class' => 'breadcrumbs'));
    /* Display navigation to next/previous pages when applicable */
    if (theme_get_option('theme_top_posts_navigation')) {
        theme_page_navigation();
    }
    /* Start the Loop */
    while (have_posts()) {
        the_post();
        get_template_part('content', get_post_format());
    }
    /* Display navigation to next/previous pages when applicable */
    if (theme_get_option('theme_bottom_posts_navigation')) {
        theme_page_navigation();
    }
} else {
    theme_404_content();
}
?>
			<?php 
get_sidebar('bottom');
?>
              <div class="cleared"></div>
            </div>
            <div class="art-layout-cell art-sidebar1">
              <?php 
get_sidebar('default');
?>
              <div class="cleared"></div>
예제 #2
0
    echo wp_get_attachment_image($post->ID, array($attachment_size, 9999));
    // filterable image width with, essentially, no limit for image height.
    ?>
			</a>
		</p>
		<?php 
} else {
    ?>
			<p class="attachment center">
				<a href="<?php 
    echo wp_get_attachment_url();
    ?>
" title="<?php 
    echo esc_attr(strip_tags(get_the_title()));
    ?>
" rel="attachment">
					<?php 
    echo basename(get_permalink());
    ?>
				</a>
			</p>
		<?php 
}
echo theme_get_content();
if (wp_attachment_is_image()) {
    $metadata = wp_get_attachment_metadata();
    echo '<p class="center">' . sprintf(__('Full size is %s pixels', THEME_NS), sprintf('<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>', wp_get_attachment_url(), esc_attr(__('Link to full-size image', THEME_NS)), $metadata['width'], $metadata['height'])) . '</p>';
}
/* Display navigation to next/previous pages when applicable */
theme_page_navigation(array('wrap' => false, 'prev_link' => theme_get_next_image_link(false), 'next_link' => theme_get_previous_image_link(false)));
theme_post_wrapper(array('id' => theme_get_post_id(), 'class' => theme_get_post_class(), 'title' => '<a href="' . get_permalink($post->ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '</a>', 'heading' => theme_get_option('theme_' . (is_single() ? 'single' : 'posts') . '_article_title_tag'), 'before' => theme_get_metadata_icons('date,author,edit', 'header'), 'content' => ob_get_clean()));
예제 #3
0
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
    die('Please do not load this page directly. Thanks!');
}
if (post_password_required()) {
    theme_post_wrapper(array('content' => '<p class="nocomments">' . __('This post is password protected. Enter the password to view any comments.', THEME_NS) . '</p>'));
    return;
}
if (have_comments()) {
    theme_ob_start();
    printf(_n('One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), THEME_NS), number_format_i18n(get_comments_number()), '<em>' . get_the_title() . '</em>');
    theme_post_wrapper(array('content' => '<h4 id="comments">' . theme_ob_get_clean() . '</h4>'));
    $prev_link = get_previous_comments_link(__('<span class="meta-nav">&larr;</span> Older Comments', THEME_NS));
    $next_link = get_next_comments_link(__('Newer Comments <span class="meta-nav">&rarr;</span>', THEME_NS));
    theme_page_navigation(array('prev_link' => $prev_link, 'next_link' => $next_link));
    echo '<ul id="comments-list">';
    wp_list_comments('type=all&callback=theme_comment');
    echo '</ul>';
    theme_page_navigation(array('prev_link' => $prev_link, 'next_link' => $next_link));
}
theme_ob_start();
$args = array();
if (theme_get_option('theme_comment_use_smilies')) {
    function theme_comment_form_field_comment($form_field)
    {
        theme_include_lib('smiley.php');
        return theme_get_smilies_js() . '<p class="smilies">' . theme_get_smilies() . '</p>' . $form_field;
    }
    add_filter('comment_form_field_comment', 'theme_comment_form_field_comment');
}
comment_form();
theme_post_wrapper(array('content' => str_replace(array(' id="respond"', 'type="submit"'), array('', 'class="art-button" type="submit"'), theme_ob_get_clean()), 'id' => 'respond'));
예제 #4
0
 */
get_header();
?>
			<?php 
get_sidebar('top');
?>
			<?php 
if (have_posts()) {
    /* Display navigation to next/previous posts when applicable */
    if (theme_get_option('theme_top_single_navigation')) {
        theme_page_navigation(array('next_link' => theme_get_previous_post_link('&laquo; %link'), 'prev_link' => theme_get_next_post_link('%link &raquo;')));
    }
    while (have_posts()) {
        the_post();
        get_template_part('content', 'single');
        /* Display comments */
        if (theme_get_option('theme_allow_comments')) {
            comments_template();
        }
    }
    /* Display navigation to next/previous posts when applicable */
    if (theme_get_option('theme_bottom_single_navigation')) {
        theme_page_navigation(array('next_link' => theme_get_previous_post_link('&laquo; %link'), 'prev_link' => theme_get_next_post_link('%link &raquo;')));
    }
} else {
    theme_404_content();
}
?>
			<?php 
get_sidebar('bottom');
get_footer();