get_elements_by_tagname("entry"); foreach($entries as $entry) { $story_array[$counter] = new xml_story(); $element = $entry; $titles = $element->get_elements_by_tagname("title"); $title = $titles[0]; $story_array[$counter]->headline = $title->get_content(); $publish = $element->get_elements_by_tagname("published"); $date = $publish[0]; $story_array[$counter]->date = getDateFormat($date->get_content()); $content = $element->get_elements_by_tagname("content"); $description = $content[0]; $story_array[$counter]->description = $description->get_content(); $links = $element->get_elements_by_tagname("link"); $link = $links[0]; $href = $link->get_attribute_node("href"); $story_array[$counter]->href = $href->value(); $counter++; $labels = $element->get_elements_by_tagname("category"); foreach($labels as $label){ $labelTerm = $label->get_attribute_node("term"); $flag = 0; for($x = 0; $x < sizeof($labelArray); $x++){ if($labelArray[$x]['label'] == $labelTerm->value()){ $labelArray[$x]['num']++; $flag = 1; break; } } if($flag == 0){ $tempArray = array(); $tempArray['label'] = $labelTerm->value(); $tempArray['num'] = 1; $labelArray[sizeof($labelArray)] = $tempArray; } } } function getDateFormat($stamp){ $T = strrpos($stamp,"T"); $date = substr($stamp,0,$T); $year = substr($date,0,4); $month = substr($date,5,2); $day = substr($date,8,2); $time = substr($stamp,$T); $hour = substr($time,1,2); $min = substr($time,4,2); $format = "F jS, Y g:ia"; return date($format, mktime($hour, $min, 0, $month, $day, $year)); } ?> Hello World! - SHINE TV by Lightship Mutual

'; } ?>
   Learn about SHINE TV      


Hello World!


As Lightship Mutual joins the ranks of the online blogosphere, we look forward to providing insightful wit and biting commentary into today's social, political, and technological events as they relate to your personal finances.

Mission: Blog
The Daily Compass represents the ongoing thoughts, musings, and opinions of the advisors of Lightship Mutual. This forum serves to compliment our monthly newsletter, 'The Lightship Compass'. If you are not yet on our email list, click here to begin receiving our monthly publication, as well.

Staying true to our overall company's mission, we believe that this forum belongs to you. We fully anticipate a heavy involvement from our site visitors, and we look forward to providing accurate, clear, fast responses to your questions and comments.

Here Comes the Neighborhood
As the new kids on the blogosphere block, we're happy to be a part of your community. We promise: a well-manicured lawn, no loud music, and we'll only decorate the backside of our house with pink and green shutters. So feel free to drop by anytime with some fruit cake, punch, or any other treats from the welcome wagon. There are always interesting conversations around here, and we are truly excited to be a part of your online experience.

Labels: , , , , , ,

Comments: Post a Comment


View Additional Blog Entries





   Services    •    Community Forum   •   SHINE TV™   •   Contact Us   •   About Us   

Copyright © 2008, Lightship Mutual LLC. All Rights Reserved.   •  Media Relations  •   Privacy and Disclosure

CFP®, CERTIFIED FINANCIAL PLANNER™ and CFP (with flame logo) are certification marks owned by Certified Financial Planner Board of Standards Inc.  These marks are awarded to individuals who successfully complete CFP Board's initial and ongoing certification requirements.