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 '
'; echo ''."\n"; foreach ( (array) $cats as $cat) { // Handle each category. // First, fix the sort_order info //$orderby = $cat['sort_order']; //$orderby = (bool_from_yn($cat['sort_desc'])?'_':'') . $orderby; // Display the category name $countcat += 1; if (($countcat % $num_columns == 1) or ($countcat == 1) ) echo "\n"; $catfront = ' \n"; echo ($catfront . $cattext . $catitem); if ($countcat % $num_columns == 0) echo "\n"; } } if (($countcat % $num_columns = 3) or ($countcat == 1)) echo "\n"; echo "
cat_name . '" '; else $cattext = ''; $catitem = '>' . $cat->cat_name . "
\n"; echo "
\n"; } /** function get_links_notes() ** Gets the links associated with category n. ** Parameters: ** category (default -1) - The category to use. If no category supplied ** uses all ** before (default '') - the html to output before the link ** after (default '
') - the html to output after the link ** between (default ' ') - the html to output between the link/image ** and it's description. Not used if no image or show_images == true ** show_images (default true) - whether to show images (if defined). ** orderby (default 'id') - the order to output the links. E.g. 'id', 'name', ** 'url', 'description', or 'rating'. Or maybe owner. If you start the ** name with an underscore the order will be reversed. ** You can also specify 'rand' as the order which will return links in a ** random order. ** show_description (default true) - whether to show the description if ** show_images=false/not defined . ** show_rating (default false) - show rating stars/chars ** limit (default -1) - Limit to X entries. If not specified, all entries ** are shown. ** show_updated (default 0) - whether to show last updated timestamp ** show_notes - determines if notes should be displayed in addition to description ** show_image_and_name (default false) - Show both image and name instead of only one or the other ** use_html_tags (default false) - Use HTML tags for formatting instead of just displaying them ** show_rss (default false) - Display RSS URI if available in link description ** beforenote (default
) - Code to print out between the description and notes */ function get_links_notes($category = '', $before = '', $after = '
', $between = ' ', $show_images = true, $orderby = 'name', $show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $show_notes = false, $show_image_and_name = false, $use_html_tags = false, $show_rss = false, $beforenote = '
', $echo = true ) { global $wpdb; $order = 'ASC'; if ( substr($orderby, 0, 1) == '_' ) { $order = 'DESC'; $orderby = substr($orderby, 1); } if ( $category == -1 ) //get_bookmarks uses '' to signify all categories $category = ''; $results = get_bookmarks("category=$category&orderby=$orderby&order=$order&show_updated=$show_updated&limit=$limit"); if ( !$results ) return; $output = ''; foreach ( (array) $results as $row) { if (!isset($row->recently_updated)) $row->recently_updated = false; $output .= $before; if ($show_updated && $row->recently_updated) $output .= get_option('links_recently_updated_prepend'); $the_link = '#'; if (!empty($row->link_url) ) $the_link = wp_specialchars($row->link_url); $rel = $row->link_rel; if ('' != $rel ) $rel = ' rel="' . $rel . '"'; if ($use_html_tags) { $descnotes = $row->link_notes; } else { $descnotes = wp_specialchars($row->link_notes, ENT_QUOTES); } $desc = wp_specialchars($row->link_description, ENT_QUOTES); $name = wp_specialchars($row->link_name, ENT_QUOTES); $title = $desc; if ($show_updated) { if (substr($row->link_updated_f,0,2) != '00') { $title .= ' ('.__('Last updated') . ' ' . date(get_option('links_updated_date_format'), $row->link_updated_f + (get_option('gmt_offset') * 3600)) .')'; } } if ('' != $title) $title = ' title="' . $title . '"'; $alt = ' alt="' . $name . '"'; $target = $row->link_target; if ('' != $target) $target = ' target="' . $target . '"'; $output .= ''; if ( $row->link_image != null && $show_images ) { if ( strpos($row->link_image, 'http') !== false ) $output .= "link_image\" $alt $title />"; else // If it's a relative path $output .= "link_image\" $alt $title />"; } else { $output .= $name; } $output .= ''; if ($show_updated && $row->recently_updated) { $output .= get_option('links_recently_updated_append'); } if ($use_html_tags) { $desc = $row->link_description; } else { $desc = wp_specialchars($row->link_description, ENT_QUOTES); } if ($show_description && ($desc != '')) $output .= $between . $desc; if ($show_notes && ($descnotes != '')) { $output .= $beforenote . $between . $descnotes; } if ($show_rss && ($row->link_rss != '')) { $output .= $between . 'RSS'; } $output .= "$after\n"; } // end while if ( !$echo ) return $output; echo $output; } /* * function get_links_anchor() * * added by Yannick Lefebvre * * Output a list of all links, listed by category, using the * settings in $wpdb->linkcategories and output it as a nested * HTML unordered list. Can also insert anchors for categories * * Parameters: * order (default 'name') - Sort link categories by 'name' or 'id' * hide_if_empty (default true) - Supress listing empty link categories * catanchor (default false) - Adds name anchors to categorie links to be able to link directly to categories\ * showdescription (default false) - Displays link descriptions. Added for 2.1 since link categories no longer have this setting * shownotes (default false) - Shows notes in addition to description for links (useful since notes field is larger than description) * showrating (default false) - Displays link ratings. Added for 2.1 since link categories no longer have this setting * showupdated (default false) - Displays link updated date. Added for 2.1 since link categories no longer have this setting * categorylist (default null) - Only show links inside of selected categories. Enter category numbers in a string separated by commas * showimages (default false) - Displays link images. Added for 2.1 since link categories no longer have this setting * show_image_and_name (default false) - Show both image and name instead of only one or the other * use_html_tags (default false) - Use HTML tags for formatting instead of just displaying them * show_rss (default false) - Display RSS URI if available in link description * beforenote (default
) - Code to print out between the description and notes */ function get_links_anchor_notes($order = 'name', $hide_if_empty = 'obsolete', $catanchor = false, $showdescription = false, $shownotes = false, $showrating = false, $showupdated = false, $categorylist = '', $show_images = false, $show_image_and_name = false, $use_html_tags = false, $show_rss = false, $beforenote = '
') { global $wpdb; $order = strtolower($order); // Handle link category sorting $direction = 'ASC'; if ('_' == substr($order,0,1)) { $direction = 'DESC'; $order = substr($order,1); } if ($categorylist != '') $catsearch = ' AND link_category in (' . $categorylist . ') '; else $catsearch = ''; 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 '\n"; } } ?> Your Little Words - Part 4
 
Your Little Words

 

February 2012
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
272829  

Recent Posts


Write

When horrible meets longing

February 8th, 2009 by brandon

When horrible meets longing
their closeness is oddly enticing
even though their dance looks quite absurd.
They take my hand
and try to make me dance
to a song that is unheardI twist and shout
please let me out
but their grip is ever so tight.
I bite, I claw
I rip, I gnaw
yet I underestimate their might.

I know this song
will soon wear me down
if I can’t unleash my sight.
They smile, I curse
they laugh, I’m worse
as they feast amongst my plight.

They tear me down
deep beneath the ground
few can understand
they rip and tear
I fall under their wear
my mer wish is but a hand.

but as I feared I’d see
no one has come for me
my grasp is filed with air
and as I watch it flow
as I watch it go
I’m left with nothing but despair

as they tear into me
as they chew whats left to be
I’m being slowly eaten away
but all that I can see,
my eyes full of glee,
is the end of a today.

Share This

Posted in Poetry | No Comments »

Adieu

February 8th, 2009 by brandon

I have lived more lives than some.
I have accomplished so much in my time.
That there are enough stories of me and what that I have done.
That people are excited just to meet me from and can’t help but express.
I have helped so many people.
Made so many smiles.
built so many bridges.
Walked so many miles.
I have done more in my short life than others in their long.
I have been given so many treasures.
been placed a King among pawns.and of this I would gladly trade it all for another moment in your arms.
and of this I would gladly trade it all for another moment in your arms.

I have achieved the highest education.
I have made the best of times.
I have visited other countries.
I have learned far and wide.
I have created another smile.
I have walked another mile.

and of this I would gladly trade it all for another moment in your arms.
and of this I would gladly trade it all for another moment in your arms.

I have sacrificed everything to make a change that is good.
Sacrificed everything and was rarely understood.
I had built myself up as a leader.
To pave the way unseen.
I’ve made a small fortune
Just to give it to those in need.

and of this I would gladly trade it all for another moment in your arms.
and of this I would gladly trade it all for another moment in your arms.

of all the luck I’ve lived by.
of all the legs I’ve had
to find myself standing
on my last one however sad.
if this is how it all ends.
if I am to bid adieu.
know my greatest treasure in all my life
is the time I spent with you.

and of this I would gladly trade it all for another moment in your arms.
and of this I would gladly trade it all for another moment in your arms.

Share This

Posted in Poetry | No Comments »

A time in perspective

February 8th, 2009 by brandon

I’ve been through some of my lowest lows.
While in my mind I can’t stop thinking of the hand I used to hold.
I know full well all of the pain I had caused you
My mind had me convinced to see the vision through.

A patch, a stitch, an entire new mental mapping here
In my hand practicing the path to adhere
I lick it, I stick it, and wait for me to heal.
Waiting and hoping for the time for us to feel.

Truth be told I never saw this coming.
That the anger from the holes I poked would leave us with nothing.
So I push and I prod and destroy things with my bullshit
broken to pieces laying here hoping you would say it

Even when I have the best intention
I can’t seem to help but leave the worst impression.
I spent too much time trying to be right for you
that I blew bigger holes in the things that we’ve been through.

I revel in my thoughts, desires, my wises to come true
of a life together spent with me, Kale, and you.

Share This

Posted in Poetry | No Comments »

Daily Routine

February 8th, 2009 by brandon

I get up around sometime AM
and take care of the morning things that I attend.
With a smile I look forwards to the day
thats before the demons come out to play.

They run through my mind with an explosion of emotions
I fight and struggle to silence their wicked notions.
I twist and I turn all the while I cannot help but yearn.
Until a word from from my madamsal returns.

To say it simply I’ve never known better.
A soul to grasp mine and help through the storm I weather.
The only question I that I hope to maintain.
Is when the storm settles where will I find my remains

within the angels grasp
or the demons clasps?

Share This

Posted in Poetry | No Comments »

« Previous Entries Next Entries »