Commit 2d55aff950a05083ce01729a03c2c4aa775a589a

Added support for YouTube favorites, created getAuthor() and adjusted SharedItems to use it when possible.
  
7070 function getNeutralTitle(){
7171 return $this->title;
7272 }
73
74 function getAuthor(){
75 $author = $this->author;
76
77 #TODO: move this to config file or something
78 $author = str_replace('balleyne', 'Blaise', $author);
79
80 return $author;
81 }
7382
7483 function getSingleDescription(){
7584 return $this->summary ? '<p>'.$this->summary.'</p>' : '';
105105 function getSingleTitle(){
106106 return 'New Blog Post: ' . parent::getSingleTitle();
107107 }
108
109 function getSingleDescription(){
110 return htmlspecialchars_decode(parent::getSingleDescription());
111 }
108112}
109113
110114class Comments extends Entry{
195195
196196 function getSingleTitle(){
197197 #TODO: hardcoded. Can I use author? Is it not consistent enough?
198 return "Blaise $this->action " . parent::getSingleTitle();
198 return $this->getAuthor()." $this->action " . parent::getSingleTitle();
199199 }
200
200201 function getMultipleTitle(){
201202 return parent::getSingleTitle();
202203 }
223223
224224 $date = $this->timeSince(); //calculates date for most recent entry
225225
226 #TODO: hardcoded author
227 return "$icon Blaise $this->action $number $this->items: $list";
226 return "$icon ".$this->getAuthor()." $this->action $number $this->items: $list";
228227 }
229228}
230229
239239 return get_parent_class($this) == get_parent_class($other);
240240 }
241241
242 function getAuthor(){
243 return 'Blaise'; #TODO: hardcoded author
244 }
245
242246 function getSingleTitle(){
243247 $title = parent::getSingleTitle();
244248 if($this->play_count>1)
299299
300300 $date = $this->timeSince(); //calculates date for most recent entry
301301
302 #TODO: hardcoded author
302
303303 $icon = $example->getIcon();//$multinlist ? '<img src="http://blaise.ca/images/icons/music-notes.png"/>' : $example->getIcon();
304 return "$icon Blaise $this->action $number $this->items: $list";
304 return "$icon ".$this->getAuthor()." $this->action $number $this->items: $list";
305305 }
306306
307307 /**
483483 function getSingleTitle(){
484484 return parent::getSingleTitle().' by '.$this->author;
485485 }
486 function getAuthor(){
487 return 'Blaise'; #TODO: hardcoded author...
488 }
486489 function getMultipleTitle(){
487490 return Entry::getSingleTitle().' by '.$this->author;
488491 }
517517 function getSingleDescription(){
518518 return '';
519519 }
520
521 function getAuthor(){
522 return 'Blaise'; #TODO: hardcoded author
523 }
520524}
521525
522526#TODO: Since LastFM doesn't guarantee unique items, it should check to see
552552 function getSingleDescription(){
553553 return '';
554554 }
555
556 function getAuthor(){
557 return 'Blaise'; #TODO: harcoded author
558 }
555559}
556560
557561class WordPress extends Blog{}
568568 $summary = "<p>$summary</p>";
569569 return $summary;
570570 }
571}
572
573class YouTubeFavorites extends Favorites{
574 var $img = 'http://www.youtube.com/favicon.ico';
571575}
572576
573577?>