asdf 1208
A Sad Day For Jobim, Kimberly, Lennon ;
Quit Warning Everyone, Right? Thank You
Posted in Poetry | No Comments »
/* Plugin Name: Link Library Plugin URI: http://nayanna.biz/ Description: Functions to generate link library page with a list of link categories with hyperlinks to the actual link lists. Other options are the ability to display notes on top of descriptions, to only display selected categories and to display names of links at the same time as their related images. Version: 0.3, Updated to support Wordpress 2.1 Author: Yannick Lefebvre Author URI: http://nayanna.biz/ A plugin for the blogging MySQL/PHP-based WordPress. Copyright © 2005 Yannick Lefebvre This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. You can also view a copy of the HTML version of the GNU General Public License at http://www.gnu.org/copyleft/gpl.html I, Yannick Lefebvre, can be contacted via e-mail at ylefebvre@gmail.com */ /* * function get_links_cats_anchor() * * added by Yannick Lefebvre * * Output a list of all links categories, listed by category, using the * settings in $wpdb->linkcategories and output it as table * * Parameters: * order (default 'name') - Sort link categories by 'name' or 'id' * hide_if_empty (default true) - Supress listing empty link categories * table_witdh (default 100) - Width of table, percentage * num_columns (default 1) - Number of columns in table * catanchor (default false) - Determines if links to generated anchors should be created */ function get_links_cats_anchor($order = 'name', $hide_if_empty = 'obsolete', $table_width = 100, $num_columns = 1, $catanchor = false) { global $wpdb; $countcat = 0; $order = strtolower($order); // Handle link category sorting $direction = 'ASC'; if (substr($order,0,1) == '_') { $direction = 'DESC'; $order = substr($order,1); } if (!isset($direction)) $direction = ''; // Fetch the link category data as an array of hashesa $cats = get_categories("type=link&orderby=$order&order=$direction&hierarchical=0"); // Display each category if ($cats) { echo '
| cat_name . '" '; else $cattext = ''; $catitem = '>' . $cat->cat_name . " | \n"; echo ($catfront . $cattext . $catitem); if ($countcat % $num_columns == 0) echo "

| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Feb | ||||||
| 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 | ||||
A Sad Day For Jobim, Kimberly, Lennon ;
Quit Warning Everyone, Right? Thank You
Posted in Poetry | No Comments »