-
Notifications
You must be signed in to change notification settings - Fork 0
/
archives.php
executable file
·59 lines (47 loc) · 1.01 KB
/
archives.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<div class="pagepost">
<h2>Last 25 Posts</h2>
<ul>
<?php get_archives('postbypost', '25', 'other', '<li>', '</li>', false); ?>
</ul>
</h2>
<h2>Archives by Month:</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<h2>Archives by Subject:</h2>
<ul>
<?php wp_list_cats(); ?>
</ul>
<h2>Weighted Categories:</h2>
<div id="categories">
<ul>
<?php
$minfont = 10;
$maxfont = 40;
$fontunit = "pt";
$category_ids_to_exclude = "1,25";
weighted_categories($minfont, $maxfont, $fontunit, $category_ids_to_exclude);
?>
</ul>
</div>
<h2>Weighted Words:</h2>
<ul>
<?php
$mincount = 25;
$minlength = 3;
$minfont = 50;
$maxfont = 250;
weighted_words($mincount, $minlength, $minfont, $maxfont)
?>
</ul>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>