From 41ea7b184198b3bef1b063a34e313bee423d57c4 Mon Sep 17 00:00:00 2001 From: Dougal Campbell Date: Wed, 22 Oct 2003 21:26:20 +0000 Subject: [PATCH] Updated docs for dropdown_cats(), list_cats(), and get_archives() git-svn-id: https://develop.svn.wordpress.org/trunk@461 602fd350-edb4-49c9-b593-d223f7449a82 --- readme.html | 49 ++++++++++++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/readme.html b/readme.html index f8a13cea08..9c66f671d4 100644 --- a/readme.html +++ b/readme.html @@ -296,6 +296,11 @@ It will display a list of <option name="x">category-name
@@ -308,14 +313,18 @@ you can use it like this:

<?php list_cats() ?>
This tag is out of the WordPress loop.
-It will display a list of the categories, with links to them. like in b2archive.php, each category is on a line, the only way you can change this is by editing b2.template.functions.php
+It will display a list of the categories, with links to them.
Parameters:

@@ -506,19 +515,29 @@ typically, under the post itself. don't worry, the comments only appear if the p This tag is out of the b2 TrackBacks loop.
It will output the URL to TrackBack the post, that other people can copy and use in b2's posting interface to trackback this post.

In b2comments.php, like in the main template file, please keep the first PHP lines, the "while" lines, and the "}" lines.

-

You can modify the form, but do not remove "<?php echo ... ?>" and all the name="..." attributes.
-
-To include your archives:
-
-<?php get_archives('archivetype') ?>

-

"archivetype" can be any of the following:

- -

To include the calendar:

+

You can modify the form, but do not remove "<?php echo ... ?>" and all the name="..." attributes.

+
+

To include your archives:

+

<?php get_archives() ?>

+
Parameters for get_archives(): + +
+
+

To include the calendar:

<?php include("b2calendar.php") ?>
this will include a table with the current month's calendar, each day when you posted shows a link to this day's posts. You can customise this table with CSS classes:

.b2calendarmonth {}