" class="<?php echo raindrops_article_wrapper_class(); ?> "> <<?php raindrops_doctype_elements('div', 'article'); ?> <?php raindrops_post_class(); ?> > <?php the_post_thumbnail('full', 'class=page-featured-image'); raindrops_entry_title(); ?> <div class="entry-content"> <?php raindrops_prepend_entry_content(); raindrops_entry_content(); ?> <br class="clear" /> <?php raindrops_append_entry_content(); ?> </div> <div class="linkpage clearfix"> <?php wp_link_pages('before=<p class="pagenate">&after=</p>&next_or_number=number&pagelink=<span>%</span>'); ?>
function raindrops_list_of_posts() { global $raindrops_list_of_posts_per_page; global $raindrops_list_of_posts_length; global $raindrops_list_of_posts_more; global $raindrops_list_of_posts_use_toggle; $query = get_query_var('paged'); if (!isset($raindrops_list_of_posts_per_page)) { $raindrops_list_of_posts_per_page = get_option('posts_per_page'); } if (!isset($raindrops_list_of_posts_excerpt_length)) { $raindrops_list_of_posts_length = 200; } if (!isset($raindrops_list_of_posts_excerpt_more)) { $raindrops_list_of_posts_more = '[...]'; } if (!isset($raindrops_list_of_posts_use_toggle)) { $raindrops_list_of_posts_use_toggle = true; } if (!isset($raindrops_list_of_posts_per_page)) { $raindrops_list_of_posts_per_page = get_option('posts_per_page'); } if ($query == 0) { $start = 1; } else { $start = ($query - 1) * $raindrops_list_of_posts_per_page + 1; } $raindrops_args = array('post_status' => 'publish', 'post_per_page' => $raindrops_list_of_posts_per_page, 'paged' => $query); $raindrops_list_of_post_query = new WP_Query($raindrops_args); if ($raindrops_list_of_post_query->have_posts()) { ?> <ol start="<?php echo $start; ?> " class="list-of-post-list"> <?php while ($raindrops_list_of_post_query->have_posts()) { $raindrops_list_of_post_query->the_post(); $raindrops_list_of_posts_empty_flag = false; ?> <li id="post-<?php the_ID(); ?> " <?php raindrops_post_class('list-of-post-items'); ?> > <?php raindrops_entry_title(); ?> <ul class="list-of-post-toggle"> <?php $raindrops_list_of_posts_excerpt = apply_filters('the_content', get_the_content()); $raindrops_list_of_posts_excerpt = preg_replace('!\\[[^\\]]*\\]!', '', $raindrops_list_of_posts_excerpt); if (empty($raindrops_list_of_posts_excerpt)) { $raindrops_list_of_posts_excerpt = esc_html__('Empty content', 'raindrops'); $raindrops_list_of_posts_empty_flag = true; } $raindrops_list_of_posts_contents = $raindrops_list_of_posts_excerpt; $raindrops_list_of_posts_excerpt = wp_html_excerpt($raindrops_list_of_posts_excerpt, $raindrops_list_of_posts_length, $raindrops_list_of_posts_more); if ($raindrops_list_of_posts_use_toggle == true) { $raindrops_toggle_title_class = 'raindrops-toggle raindrops-toggle-title'; $raindrops_toggle_content_class = 'raindrops-toggle'; } else { $raindrops_toggle_title_class = 'no-toggle-title'; $raindrops_toggle_content_class = 'no-toggle-content'; } if ($raindrops_list_of_posts_empty_flag == true) { $raindrops_toggle_title_class = 'no-toggle-title'; $raindrops_toggle_content_class = 'no-toggle-content'; } printf('<li class="%1$s">', $raindrops_toggle_title_class); echo $raindrops_list_of_posts_excerpt; if ($raindrops_list_of_posts_use_toggle == true and $raindrops_list_of_posts_empty_flag == false) { printf('</li><li class="%1$s">', $raindrops_toggle_content_class); echo $raindrops_list_of_posts_contents; } ?> </li> </ul> <div class="list-of-post-edit-link"> <?php raindrops_delete_post_link(__('Trash', 'raindrops'), '<span class="delete-link">', '</span>'); edit_post_link(__('Edit', 'raindrops'), '<span class="edit-link">', '</span>'); ?> </div> </li> <?php } //end while wp_reset_postdata(); ?> </ol> <?php } //end have_posts ?> <div class="list-of-post-next-prev"> <div class="left"> <?php next_posts_link(__('« Older Entries', 'raindrops'), $raindrops_list_of_post_query->max_num_pages); ?> </div> <div class="right"> <?php previous_posts_link(__('Newer Entries »', 'raindrops'), $raindrops_list_of_post_query->max_num_pages); ?> </div> </div> <?php }
<dl class="author"> <!-- The Loop --> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <dt> <?php $raindrops_date_format = get_option('date_format'); $raindrops_year = get_the_time('Y'); $raindrops_month = get_the_time('m'); $raindrops_day = get_the_time('d'); $day_link = esc_url(get_day_link($raindrops_year, $raindrops_month, $raindrops_day) . '#post-' . $post->ID); printf('<a href="%1$s" title="%2$s"><%4$s class="entry-date updated" %5$s>%3$s</%4$s></a>', $day_link, esc_attr('archives daily ' . get_the_time($raindrops_date_format)), get_the_date($raindrops_date_format), raindrops_doctype_elements('span', 'time', false), raindrops_doctype_elements('', 'datetime="' . esc_attr(get_the_date('c')) . '"', false)); raindrops_entry_title(array('raindrops_title_element' => 'span')); ?> </dt> <dd> <?php esc_html_e('Categories :', 'raindrops'); the_category(', '); ?> </dd> <dd> <?php esc_html_e('Tag :', 'raindrops'); echo get_the_tag_list('', ', '); ?> </dd> <?php