MEET Kaiju’s FRIENDS!

Add New Link    Edit Links‘; } ?>


‘)));
// Cut the string to the requested length, and strip any extraneous spaces from the beginning and end.
$desc = trim(substr($short_desc, 0, $length));
// Find out what the last displayed character is in the shortened string
$lastchar = substr($desc, -1, 1);
// If the last character is a period, an exclamation point, or a question mark, clear out the appended text.
if ($lastchar == ‘.’ || $lastchar == ‘!’ || $lastchar == ‘?’) $suffix=”;
// Append the text.
$desc .= $suffix;
// Send the new description back to the page.
return $desc; }

//grab bookmark link array
$bookmarks = array();
$bookmarks = get_bookmarks(‘category=37&orderby=rand’); //can i order by the $rss_item_date ?
//assign names to variables

if (function_exists(‘postbar’))
postbar();

foreach ($bookmarks as $bookmark) {
$bm_descr = $bookmark->link_description;
$bm_name = $bookmark->link_name;
$bm_url = $bookmark->link_url;
$bm_rss = $bookmark->link_rss;
$bm_id=$bookmark->link_id;
$bm_notes=$bookmark->link_notes;

if ($bm_rss == “” && $bm_notes == “”) echo ‘

‘.$bm_descr.’
  • no item

‘;
elseif($bm_rss ==”” && $bm_notes != “”) echo ‘

‘.$bm_descr.’ | |
  • no item

‘;
else {
//grab a simplepie object from the given RSS feed
$bm_ff_rss = fetch_feed($bm_rss);

// check that the object is created correctly
if (!is_wp_error( $bm_ff_rss ) ) {
$rss_favicon = $bm_ff_rss->get_favicon(); //return the url of the favicon image
$rss_title = $bm_ff_rss->get_title();
// Figure out how many total items there are, but limit it to 1.
$maxitems = $bm_ff_rss->get_item_quantity(1);
// Build an array of items, starting with the first element, and get 1 item
$rss_items = array();
$rss_items = $bm_ff_rss->get_items(0, $maxitems);

// assign names to variables.
foreach ( $rss_items as $rss_item ){
$rss_item_date = $rss_item->get_date(‘| M j, Y ‘);
$rss_item_permalink = $rss_item->get_permalink();
$rss_item_title = $rss_item->get_title();

$rss_item_content = $rss_item->get_content(); //prefers full contents over summary

$rss_item_descr = $rss_item->get_description(); //prefers summary over full contents

$rss_item_excerpt = shorten($rss_item_content, 200); //200 words excerpt of the contents, tags completely stripped off

}
?>

| ‘; ?>

  • No Recent RSS Items.
  • ‘;
    else
    ?>



    •  
    • about me