Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Procedural File: directory.php

Source Location: /public_html/directory.php



Page Details:



Includes:

require_once('lib-common.php') [line 35]
Geeklog common function library






TEMPLATE_EXISTS [line 61]

TEMPLATE_EXISTS = file_exists($_CONF['path_themes'].$theme.'/directory.thtml')

[ Top ]



THIS_SCRIPT [line 43]

THIS_SCRIPT = 'directory.php'

[ Top ]




DIR_canonicalLink [line 470]

string DIR_canonicalLink( string $dir_topic, [int $year = 0], [int $month = 0])

Return a canonical link



Tags:

return:  <link rel="canonical"> tag


Parameters

string   $dir_topic   current topic or 'all'
int   $year   current year
int   $month   current month
[ Top ]



DIR_displayAll [line 413]

string DIR_displayAll( Template $template, string $dir_topic)

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:

return:  list of all the years in the db


Parameters

Template   $template   reference of the template
string   $dir_topic   current topic
[ Top ]



DIR_displayMonth [line 235]

string DIR_displayMonth( Template $template, string $dir_topic, int $year, int $month)

Display month view



Tags:

return:  list of articles for the given month


Parameters

Template   $template   reference of the template
string   $dir_topic   current topic
int   $year   year to display
int   $month   month to display
[ Top ]



DIR_displayYear [line 325]

string DIR_displayYear( Template $template, string $dir_topic, int $year)

Display year view



Tags:

return:  list of months (+ number of stories) for given year


Parameters

Template   $template   reference of the template
string   $dir_topic   current topic
int   $year   year to display
[ Top ]



DIR_lastDayOfMonth [line 75]

int DIR_lastDayOfMonth( int $month, int $year)

Helper function: Calculate last day of a given month



Tags:

return:  Number of days in that month
todo:  Bug: Will fail from 2038 onwards ... "The last day of any given month can be expressed as the "0" day of the next month", http://www.php.net/manual/en/function.mktime.php


Parameters

int   $month   Month
int   $year   Year
[ Top ]



DIR_monthLink [line 122]

string DIR_monthLink( string $dir_topic, int $year, int $month, int $count)

Build link to a month's page



Tags:

return:  month name + count, as link or plain text


Parameters

string   $dir_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)
[ Top ]



DIR_navBar [line 148]

string DIR_navBar( string $dir_topic, int $year, [int $month = 0])

Display navigation bar



Tags:

return:  navigation bar with prev, next, and "up" links


Parameters

string   $dir_topic   current topic
int   $year   current year
int   $month   current month (or 0 for year view pages)
[ Top ]



DIR_topicList [line 96]

string DIR_topicList( [string $dir_topic = 'all'], [int $year = 0], [int $month = 0])

Display a topic selection drop-down menu



Tags:

return:  HTML string of drop-down menu


Parameters

string   $dir_topic   current topic
int   $year   current year
int   $month   current month
[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:47:35 +0000 by phpDocumentor 1.4.3