================================================================== Snippet-title: recent_months v1.5 Creator: Graham Keellings E-mail: pivot@keellings.com Website: http://www.keellings.com/software/pivot.php Creation date: 5 May 2005, Vienna, Austria ================================================================== Content of zipped file: ----------------------- snippet_recent_months.php readme_recent_months.txt (this file) snippet_get_posts_for_month.php Usage: ------ 1) unpack this package in your extensions/snippets/ folder. 2) place a [[recent_months]] tag, with the appropriate parameters, in any of your template files, whereever you want the output to appear. 3) rebuild the FrontPage(s). Description: ------------ * IMPORTANT: this snippet requires at least Pivot 1.3 to work correctly. * On previous versions the last 2 parameters will be ignored. * * Outputs HTML with three links "this month/last/month/2 months ago" (text is * user definable by parameters), defaulting to this month. Each of the links * causes a list of post titles fopr that month to be output as URLs, leading * to the individual posts. * * Visit http://www.keellings.com/blog.php to see it in action * * Output might look something like this: * * Summary: This month Last month 2 months ago <--- click to change month * * My first post <--- these are the titles of the * Sun zoom spark <--- posts as URLS, linked to each * Web core, web core <--- individual post. * My head is my only house unless it rains * Yet another boring post * ----------------------------------------------------------------- * * Parameters: ----------- * @param string weblog - pass '.'for the current blog, '*' for * all blogs, or a blog title like 'my_blog'. * @param string introText - for instance "