Example #1
0
 function widget($args, $instance)
 {
     extract($args, EXTR_SKIP);
     $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
     echo $before_widget . $before_title . $title . $after_title;
     $instance['number'] = $this->get_field_id('top');
     $instance['number'] = preg_replace('/[a-zA-Z-]/', '', $instance['number']);
     echo "<ul id='" . $this->get_field_id('top') . "\n        ' class='collapsing archives list'>\n";
     if (function_exists('collapsArch')) {
         collapsArch($instance);
     } else {
         wp_list_archives();
     }
     echo "</ul>\n";
     echo $after_widget;
 }
Example #2
0
			</li>
		<?php 
    }
    ?>
		</ul>
		<ul role="navigation">
			<?php 
    wp_list_pages('title_li=<h2>Pages</h2>');
    ?>

			<li><h2>Archives</h2>
            
           <?php 
    $defaults = array('noTitle' => '', 'inExcludeCat' => 'exclude', 'inExcludeCats' => '', 'inExcludeYear' => 'exclude', 'inExcludeYears' => '', 'sort' => 'DESC', 'showPages' => false, 'linkToArch' => true, 'showYearCount' => true, 'expandCurrentYear' => true, 'expandMonths' => true, 'expandYears' => true, 'expandCurrentMonth' => true, 'showMonthCount' => true, 'showPostTitle' => true, 'expand' => '0', 'showPostDate' => false, 'postDateFormat' => 'm/d', 'postDateAppenc' => 'after', 'accordion' => 0, 'postTitleLength' => '', 'post_type' => 'post', 'debug' => '0');
    if (function_exists('collapsArch')) {
        collapsArch($defaults);
    } else {
        echo "<ul>\n";
        wp_get_archives('type=monthly');
        echo "</ul>\n";
    }
    ?>
            
			</li>

			<?php 
    wp_list_categories('show_count=1&title_li=<h2>Categories</h2>');
    ?>
		</ul>
		<ul>
			<?php 
Example #3
0
            echo bloginfo('name');
            ?>
</a> blog archives.</p>

			<?php 
        }
        ?>

		<?php 
    }
    ?>
            
<?php 
    if (function_exists('collapsArch')) {
        echo "<ul>";
        collapsArch($defaults = array('noTitle' => '', 'inExcludeCat' => 'exclude', 'inExcludeCats' => '', 'inExcludeYear' => 'exclude', 'inExcludeYears' => '', 'sort' => 'DESC', 'showPages' => false, 'linkToArch' => true, 'showYearCount' => false, 'expandCurrentYear' => true, 'expandMonths' => true, 'expandYears' => true, 'expandCurrentMonth' => true, 'showMonthCount' => true, 'showPostTitle' => true, 'expand' => '0', 'showPostDate' => false, 'postDateFormat' => 'm/d', 'animate' => 0, 'postTitleLength' => '', 'debug' => '0'));
        echo "</ul>";
    } else {
        echo "<ul>\n";
        wp_get_archives();
        echo "</ul>\n";
    }
    ?>
  



			

			<?php 
}
			<?php 
get_header();
?>

	</div>
	
	<div class="archivesContainer">
		<h1>Archives</h1>
	
		<?php 
$letters = get_cat_ID("Letters");
$studentgallery = get_cat_ID("Student Gallery");
$icaughtyou = get_cat_ID("I Caught You");
if (function_exists('collapsArch')) {
    collapsArch(array('expand' => 2, 'inExcludeCat' => 'exclude', 'inExcludeCats' => 'letters,studentgallery,icaughtyou,admin,events', 'debug' => true));
} else {
    echo "<ul>\n";
    wp_get_archives();
    echo "</ul>\n";
}
?>

	</div>