Procedural File: directory.php
Source Location: /public_html/directory.php
Page Details:
Includes:
THIS_SCRIPT [line 43]
DIR_canonicalLink [line 471]
string DIR_canonicalLink(
string $topic, [int $year = 0], [int $month = 0])
|
|
Return a canonical link
Tags:
Parameters
| string |
$topic |
current topic or 'all' |
| int |
$year |
current year |
| int |
$month |
current month |
DIR_displayAll [line 423]
string DIR_displayAll(
string $topic, [boolean $list_current_month = false])
|
|
Display main view (list of years) Displays an overview of all the years and months, starting with the first year for which a story has been posted. Can optionally display a list of the stories for the current month at the top of the page.
Tags:
Parameters
| string |
$topic |
current topic |
| boolean |
$list_current_month |
true = list stories f. current month |
DIR_displayMonth [line 245]
string DIR_displayMonth(
string $topic, int $year, int $month, [boolean $main = false])
|
|
Display month view
Tags:
Parameters
| string |
$topic |
current topic |
| int |
$year |
year to display |
| int |
$month |
month to display |
| boolean |
$main |
true: display view on its own page |
DIR_displayYear [line 329]
string DIR_displayYear(
string $topic, int $year, [boolean $main = false])
|
|
Display year view
Tags:
Parameters
| string |
$topic |
current topic |
| int |
$year |
year to display |
| boolean |
$main |
true: display view on its own page |
DIR_lastDayOfMonth [line 68]
int DIR_lastDayOfMonth(
int $month, int $year)
|
|
Helper function: Calculate last day of a given month
Tags:
Parameters
| int |
$month |
Month |
| int |
$year |
Year |
DIR_monthLink [line 127]
string DIR_monthLink(
string $topic, int $year, int $month, int $count)
|
|
Build link to a month's page
Tags:
Parameters
| string |
$topic |
current topic |
| int |
$year |
year to link to |
| int |
$month |
month to link to |
| int |
$count |
number of stories for that month (may be 0) |
DIR_navBar [line 154]
string DIR_navBar(
string $topic, int $year, [int $month = 0])
|
|
Display navigation bar
Tags:
Parameters
| string |
$topic |
current topic |
| int |
$year |
current year |
| int |
$month |
current month (or 0 for year view pages) |
DIR_topicList [line 90]
void DIR_topicList(
[string $topic = 'all'], [int $year = 0], [int $month = 0], [boolean $standalone = false])
|
|
Display a topic selection drop-down menu
Parameters
| string |
$topic |
current topic |
| int |
$year |
current year |
| int |
$month |
current month |
| boolean |
$standalone |
true: don't display form inline |
|
|