function b_wp_archives_monthly_show($options) { $block_style = $options[0] ? $options[0] : 0; $with_count = $options[1] == 0 ? false : true; $id = 1; global $dateformat, $time_difference, $siteurl, $blogfilename; global $tablelinks, $tablelinkcategories; global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb, $start_of_week; global $tableposts, $tablepost2cat, $tablecomments, $tablecategories; global $smilies_directory, $use_smilies, $wp_smiliessearch, $wp_smiliesreplace; global $wp_bbcode, $use_bbcode, $wp_gmcode, $use_gmcode, $use_htmltrans, $wp_htmltrans, $wp_htmltranswinuni; require_once dirname(__FILE__) . '/../wp-blog-header.php'; ob_start(); if ($block_style == 0) { // Simple Listing get_archives('monthly', '', 'html', '', '', $with_count); } else { // Dropdown Listing echo '<form name="archiveform" action="">'; echo '<select name="archive_chrono" onchange="window.location = (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);"> '; echo '<option value="">' . _WP_BY_MONTHLY . '</option>'; get_archives('monthly', '', 'option', '', '', $with_count); echo '</select>'; echo '</form>'; } $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function b_wp_archives_monthly_show($options, $wp_num = "") { $block_style = $options[0] ? $options[0] : 0; $with_count = $options[1] == 0 ? false : true; global $wpdb, $siteurl, $wp_id, $wp_inblock, $use_cache; $id = 1; $use_cache = 1; if ($wp_num == "") { $wp_id = $wp_num; $wp_inblock = 1; require dirname(__FILE__) . '/../wp-config.php'; $wp_inblock = 0; } ob_start(); if ($block_style == 0) { // Simple Listing get_archives('monthly', '', 'html', '', '', $with_count); } else { // Dropdown Listing echo '<form name="archiveform' . $wp_num . '" action="">'; echo '<select name="archive_chrono" onchange="window.location = (document.forms.archiveform' . $wp_num . '.archive_chrono[document.forms.archiveform' . $wp_num . '.archive_chrono.selectedIndex].value);"> '; echo '<option value="">' . _WP_BY_MONTHLY . '</option>'; get_archives('monthly', '', 'option', '', '', $with_count); echo '</select>'; echo '</form>'; } $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function smarty_get_archives($params) { $type = ''; $limit = ''; $format = 'html'; $before = ''; $after = ''; extract($params); return get_archives($type, $limit, $format, $before, $after); }
function b_wp_archives_monthly_show($option) { $id = 1; require_once dirname(__FILE__) . '/../wp-blog-header.php'; global $wpdb, $tablecomments, $tableposts; ob_flush(); ob_start(); get_archives('monthly'); $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function b_wp_archives_monthly_show($option) { $id = 1; global $dateformat, $time_difference, $siteurl, $blogfilename; global $tablelinks, $tablelinkcategories; global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb, $start_of_week; global $tableposts, $tablepost2cat, $tablecomments, $tablecategories; require_once dirname(__FILE__) . '/../wp-blog-header.php'; ob_start(); get_archives('monthly'); $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function b_wp_archives_monthly_show($options, $wp_num = "") { $block_style = $options[0] ? $options[0] : 0; $with_count = $options[1] == 0 ? false : true; $id = 1; $GLOBALS['use_cache'] = 1; if ($wp_num == "") { $GLOBALS['wp_id'] = $wp_num; $GLOBALS['wp_inblock'] = 1; require dirname(__FILE__) . '/../wp-config.php'; $GLOBALS['wp_inblock'] = 0; } $sel_value = ''; if (current_wp()) { init_param('GET', 'm', 'string', ''); init_param('GET', 'year', 'integer', ''); init_param('GET', 'monthnum', 'integer', ''); if (strlen(get_param('m')) == 6) { $sel_value = get_param('m'); } else { if (test_param('year') && test_param('monthnum')) { $sel_value = get_param('year') . zeroise(get_param('monthnum'), 2); } } } ob_start(); block_style_get($wp_num); if ($block_style == 0) { // Simple Listing echo "<ul class='wpBlockList'>\n"; get_archives('monthly', '', 'html', '', '', $with_count); echo "</ul>\n"; } else { // Dropdown Listing echo '<form name="archiveform' . $wp_num . '" id="archiveform' . $wp_num . '" action="#">'; echo '<select name="archive_chrono" onchange="window.location = (document.forms.archiveform' . $wp_num . '.archive_chrono[document.forms.archiveform' . $wp_num . '.archive_chrono.selectedIndex].value);"> '; echo '<option value="">' . _WP_BY_MONTHLY . '</option>'; get_archives('monthly', '', 'option', '', '', $with_count, $sel_value); echo '</select>'; echo '</form>'; } $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function _b_wp_archives_monthly_show($options, $wp_num = '') { $block_style = $options[0] ? $options[0] : 0; $with_count = $options[1] == 0 ? false : true; $sel_value = ''; if (current_wp()) { if (!empty($_SERVER['PATH_INFO'])) { permlink_to_param(); } init_param('GET', 'm', 'string', ''); init_param('GET', 'year', 'integer', ''); init_param('GET', 'monthnum', 'integer', ''); if (strlen(get_param('m')) == 6) { $sel_value = get_param('m'); } else { if (test_param('year') && test_param('monthnum')) { $sel_value = get_param('year') . zeroise(get_param('monthnum'), 2); } } } ob_start(); block_style_get($wp_num); if ($block_style == 0) { // Simple Listing echo '<ul class="wpBlockList">' . "\n"; get_archives('monthly', '', 'html', '', '', $with_count); echo '</ul>' . "\n"; } else { // Dropdown Listing echo '<form name="archiveform' . $wp_num . '" id="archiveform' . $wp_num . '" action="#">'; echo '<select name="archive_chrono" onchange="window.location = (document.forms.archiveform' . $wp_num . '.archive_chrono[document.forms.archiveform' . $wp_num . '.archive_chrono.selectedIndex].value);"> '; echo '<option value="' . wp_siteurl() . '">' . _WP_BY_MONTHLY . '</option>'; get_archives('monthly', '', 'option', '', '', $with_count, $sel_value); echo '</select>'; echo '</form>'; } $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function widget_oceanmist_browse() { ?> <div class="widget"> <div class="title"><h2><?php _e('Browse'); ?> </h2></div> <select name="archivemenu" onchange="document.location.href=this.options[this.selectedIndex].value;"> <option value=""><?php _e('Monthly Archives'); ?> </option> <?php get_archives('monthly', '', 'option', '', '', ''); ?> </select> <?php get_search_form(); ?> </div> <?php }
* The archive page template file * * This file will be loaded whenever a * request for a the archive is made * e.g http://example.com/archive/ * */ the_header(); ?> <div class="col col-12 no-gutter tablet-col tablet-huge-gutter tablet-col-9 tablet-right-gutter"> <h1>Archives</h1> <?php $archive = get_archives(); ?> <?php if (have_posts()) { ?> <?php foreach ($archive as $year => $month_group) { ?> <ul class="year"> <li> <span><?php echo $year; ?> </span>
<div id="sidebar"> <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) { ?> <div class="title"> <h2>Browse</h2> </div> <div class="post"> <select name="archivemenu" onchange="document.location.href=this.options[this.selectedIndex].value;"> <option value=""><?php _e('Monthly Archives'); ?> </option> <?php get_archives('monthly', '', 'option', '', '', ''); ?> </select> <?php include TEMPLATEPATH . '/searchform.php'; ?> </div> <div class="title"> <h2>Links</h2> </div> <div class="post"> <ul> <?php get_linksbyname('', '<li>', '</li>', '', TRUE, 'name', FALSE); ?> </ul>
<div id="sidebar"> <?php include TEMPLATEPATH . "/ads.php"; ?> <div id="sidebar_full"> <div id="tabber" class="tabber"> <div class="tabbertab" title="Recent Posts"> <ul> <li><ul> <?php get_archives('postbypost', 8); ?> </ul></li> </ul> </div> <div class="tabbertab" title="Your say"> <ul><li> <?php include TEMPLATEPATH . '/simple_recent_comments.php'; /* recent comments plugin by: www.g-loaded.eu */ if (function_exists('src_simple_recent_comments')) { src_simple_recent_comments(8, 60, '', ''); } ?> </li>
<div id="sidebar"> <form role="search" method="get" class="searchform" action="<?php echo esc_url(home_url('/')); ?> "> <div> <input placeholder="Search Posts..." type="text" value="<?php echo get_search_query(); ?> " name="s" id="s" /> <input type="submit" id="searchsubmit" value="<?php echo esc_attr_x('Search', 'submit button'); ?> " /> </div> </form> <h3>Recent Posts</h3> <ul> <?php get_archives('postbypost', '5', 'custom', '<li>', '</li>'); ?> </ul> <h3>Categories</h3> <ul> <?php wp_list_cats('sort_column=name'); ?> </ul> </div><!-- #secondary -->
<ul><?php wp_list_categories("title_li="); ?> </ul> </li> <?php if (is_single() or is_archive() or is_tag() or is_page()) { ?> <li id="recent-posts" class="widget-container"> <h3 class="widget-title"><?php _e("Recent Posts"); ?> </h3> <ul><?php get_archives("postbypost", 10); ?> </ul> </li> <?php } ?> <?php if (is_home()) { ?> <li id="random-posts" class="widget-container"> <h3 class="widget-title"><?php _e("Random Posts"); ?> </h3>
<!-- begin l_sidebar --> <div id="l_sidebar"> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(1)) { } else { ?> <h2>Recently Written</h2> <ul> <?php get_archives('postbypost', 10); ?> </ul> <h2>Categories</h2> <ul> <?php wp_list_cats('sort_column=name'); ?> </ul> <h2>Archives</h2> <ul> <?php
<h3><em>Calendar</em></h3> <?php get_calendar(); ?> <?php if (!is_page("archives")) { ?> <h3><em>Posts by Month</em></h3> <ul class="months"> <?php get_archives('monthly', '', '', '<li>', '</li>', ''); ?> </ul> <?php } ?> <h3><em>Posts by Category</em></h3> <ul class="categories"> <?php wp_list_cats('sort_column=name&hide_empty=0'); ?> </ul>
_e('Archives by Month'); ?> </h2> <ul> <? get_archives('monthly', '', 'html', '', '', true); ?> </ul> <br /> <h2><?php _e('Last 50 Entries'); ?> </h2> <ul> <?php get_archives('postbypost', '50', 'html', '', '', false); ?> </ul> </div> <hr /> </div> <?php get_sidebar(); ?> </div>
echo attribute_escape(__('Friends')); ?> </h2> <ul> <?php get_links(-1, "<li>", "</li>"); ?> </ul> <h2><?php echo attribute_escape(__('Archives')); ?> </h2> <ul> <?php get_archives(); ?> </ul> <h2><?php echo attribute_escape(__('Categories')); ?> </h2> <ul> <?php wp_list_cats('optionall=0&all=%20&sort_column=name'); ?> </ul> <?php if (function_exists('wp_theme_switcher')) { ?>
?> </div> <!-- /content --> <?php } ?> </div> <!-- /page header --> <div class="primary"> <h3><?php _e('Monthly Archives', 'tarski'); ?> </h3> <ul class="archivelist xoxo"> <?php get_archives('monthly', '', 'html', '', '', 'TRUE'); ?> </ul> <?php th_postend(); ?> </div> <!-- /primary --> <?php } } ?> <div class="secondary"> <?php if (get_tarski_option('show_categories')) { ?>
<ul id="l_sidebarwidgeted"> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?> <li id="categories"> <h2>文章分类</h2> <ul> <?php wp_list_categories('sort_column=name&title_li='); ?> </ul> </li> <li id="recent-posts"> <h2>最新文章</h2> <ul> <?php get_archives('postbypost', 5); ?> </ul> </li> <li id="meta"> <h2>站点工具</h2> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <li><a href="http://www.wordpress.org/">WordPress</a></li> <?php wp_meta(); ?> <li><a href="http://validator.w3.org/check?uri=referer">XHTML</a></li> </ul> </li>
<!-- <?php if (is_home()) { } else { ?> --> <h3>過去のお知らせ一覧</h3> <ul class="sidemenu"> <?php get_archives('monthly', 36); ?> </ul> <!-- <?php } ?> --> <?php if (is_home()) { } else { ?> <p><img src="<?php bloginfo('template_directory');
">RSS .92</a> | <a href="<?php bloginfo('atom_url'); ?> ">Atom 0.3</a></p> <h2 style="margin-top: 30px;">categories</h2> <?php catcloud(); ?> <div id="archivesbymonth"> <h2 style="margin-top: 30px;">month</h2> <ul><?php get_archives('monthly', '', 'html', '', '', true); ?> </ul> </div> <div id="archivesbypost"> <h2 style="margin-top: 30px;">post</h2> <ul><?php get_archives('postbypost', '', 'html', '', '', true); ?> </ul> </div> </div> <br class="clear" /> <?php get_footer();
} ?> </ul> <ul class="rightsub2"> <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(2)) { ?> <li> <h2><?php _e('Archives', 'andreas04'); ?> </h2> <ul> <?php get_archives('monthly', '12', 'html', '', '', TRUE); ?> </ul> </li> <li> <h2><?php _e('Categories', 'andreas04'); ?> </h2> <ul class="sellLi"> <?php wp_list_cats(''); ?> </ul> </li> <li>
<div id="sidebar" class="g33"> <hr/> <div class="clear"></div> <div id="sidebar1" class="g10 alpha"> <ul> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(1)) { } else { ?> <li><h3>Recent entries</h3> <ul><?php get_archives('postbypost', 5); ?> </ul> <br /></li> <li><h3>Meta</h3> <ul><?php wp_register(); ?> <li><?php wp_loginout(); ?> </li> <?php wp_meta(); ?> <li><a href="http://validator.w3.org/check?uri=referer">XHTML</a></li></ul> <br /></li> <?php } ?>
?> " /> <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?> " /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo $siteurl; ?> /wp-rsd.php" /> <?php get_archives('monthly', '', 'link'); // comments_popup_script(); // off by default $my_header = ob_get_contents(); ob_end_clean(); ob_start(); echo bloginfo('name'); $blog_name = ob_get_contents(); ob_end_clean(); $module_title = single_post_title(' :: ', false) . single_cat_title(' :: ', false) . single_month_title(' :: ', false); if (trim($module_title) == "") { $module_title = $blog_name; } else { $module_title = $blog_name . " : " . $module_title; } global $xoopsTpl; if ($xoopsTpl) {
<div id="main_content"> <h3 class="subhead"><?php bloginfo('name'); ?> Archives</h3> <p>Find what you're looking for.</p> <?php include TEMPLATEPATH . '/searchform.php'; ?> <div class="substory" id="left"> <h3 class="substory_subhead">Monthly Archives</h3> <p> <?php get_archives('monthly', '', 'custom', '', '<br/>'); ?> </p> </div> <div class="substory" id="right"> <h3 class="substory_subhead">Archives by Category</h3> <p> <?php wp_list_categories('orderby=name&style=none&title_li='); ?> </p> </div> </div> <?php
bloginfo('stylesheet_directory'); ?> /images/spacer.gif" alt="RSS" /></a></div> <div id="searchform"><?php include TEMPLATEPATH . '/searchform.php'; ?> </div> <div id="welcome"><p><?php include TEMPLATEPATH . '/welcome.php'; ?> </p></div> <!-- sidebar sub start --> <div id="sidebar_sub" class="clearfix"> <ul> <li class="recent_posts"> <ul> <?php get_archives('postbypost', 6); ?> </ul> </li> <li class="recent_comments"> <?php get_recent_comments(array('number' => 6)); ?> </li> </ul> </div> <!-- sidebar sub end --> </div> <!-- header end -->
function wp_get_archives($args = '') { parse_str($args, $r); if (!isset($r['type'])) { $r['type'] = ''; } if (!isset($r['limit'])) { $r['limit'] = ''; } if (!isset($r['format'])) { $r['format'] = 'html'; } if (!isset($r['before'])) { $r['before'] = ''; } if (!isset($r['after'])) { $r['after'] = ''; } if (!isset($r['show_post_count'])) { $r['show_post_count'] = false; } get_archives($r['type'], $r['limit'], $r['format'], $r['before'], $r['after'], $r['show_post_count']); }
<div id="sidebar"> <div class="widgets"> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar')) { } else { ?> <div id="widget_recent_entries" class="widget"> <h4>Recent Posts</h4> <ul> <?php get_archives('postbypost', '10', 'html'); ?> </ul> </div> <?php } ?> </div> </div>
<div id="sagtaraf"> <div class="sayfalist1"> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(1)) { } else { ?> <h1>Recently Written</h1> <ul><?php get_archives('postbypost', 16); ?> </ul> <h1>Archives</h1> <ul><?php get_archives('monthly', '12'); ?> </ul> <?php } ?> </div> <div class="sayfalist2"> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(2)) { } else { ?> <a href="<?php bloginfo('rss2_url'); ?> " title="RSS feed"><img src="<?php
<div class="right_bg"> <div class="right_head"><h2>Categories:</h2></div> <ul> <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?> </ul> </div> </div> <div class="widget_style"> <div class="right_bg"> <div class="right_head"><h2>Archives:</h2></div> <ul> <?php get_archives('monthly', '10', 'custom', '<li>', '</li>'); ?> </ul> </div> </div> <div> <? $ars['category_before']='<div class="right_top">'; $ars['category_after']='<div class="right_bottom"></div></div>';?> <?php wp_list_bookmarks($ars); ?> </div> <div class="widget_style"> <div class="right_bg"> <div class="right_head"><h2>Meta:</h2></div> <ul>