Changeset 207210
- Timestamp:
- 02/17/2010 07:15:49 PM (16 years ago)
- Location:
- lifestream/trunk
- Files:
-
- 4 added
- 3 edited
-
extensions/googlereader/extension.inc.php (modified) (3 diffs)
-
extensions/steepster (added)
-
extensions/steepster/extension.inc.php (added)
-
extensions/steepster/icon.png (added)
-
extensions/steepster/index.html (added)
-
extensions/twitter/extension.inc.php (modified) (3 diffs)
-
inc/labels.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lifestream/trunk/extensions/googlereader/extension.inc.php
r206728 r207210 9 9 const NS = 'http://www.google.com/schemas/reader/atom/'; 10 10 const HAS_EXCERPTS = true; 11 const AUTHOR = 'David Cramer, Kyle McNally'; 11 12 12 13 function __toString() … … 25 26 'url' => array($this->lifestream->__('Website URL:'), true, '', ''), 26 27 'user_id' => array($this->lifestream->__('User ID:'), null, '', ''), 28 'broadcast' => array($this->lifestream->__('Include Shared'), false, true, false), 29 'starred' => array($this->lifestream->__('Include Starred'), false, true, false) 27 30 ); 28 31 } … … 31 34 { 32 35 if (!$this->get_option('user_id')) return $this->get_option('url'); 33 return 'http://www.google.com/reader/public/atom/user%2F'.$this->get_option('user_id').'%2Fstate%2Fcom.google%2Fbroadcast'; 36 if ( $this->get_option('broadcast') && $this->get_option('starred') ) 37 return array( 38 'http://www.google.com/reader/public/atom/user%2F'.$this->get_option('user_id').'%2Fstate%2Fcom.google%2Fbroadcast', 39 'http://www.google.com/reader/public/atom/user%2F'.$this->get_option('user_id').'%2Fstate%2Fcom.google%2Fstarred' 40 ); 41 elseif ( $this->get_option('starred') ) 42 return 'http://www.google.com/reader/public/atom/user%2F'.$this->get_option('user_id').'%2Fstate%2Fcom.google%2Fstarred'; 43 else 44 return 'http://www.google.com/reader/public/atom/user%2F'.$this->get_option('user_id').'%2Fstate%2Fcom.google%2Fbroadcast'; 45 34 46 } 35 47 -
lifestream/trunk/extensions/twitter/extension.inc.php
r191677 r207210 8 8 const CAN_GROUP = false; 9 9 const DESCRIPTION = 'Specifying your password will allow Lifestream to pull in protected updates from your profile. Your password is stored in plaintext in the database, so only do this is you have no other option.'; 10 const AUTHOR = 'David Cramer, Kyle McNally'; 10 11 11 12 function __toString() … … 19 20 'username' => array($this->lifestream->__('Username:'), true, '', ''), 20 21 'password' => array($this->lifestream->__('Password:'), false, '', ''), 22 'hide_username' => array($this->lifestream->__('Hide Username'), false, true, false), 21 23 'hide_replies' => array($this->lifestream->__('Hide Replies'), false, true, false), 22 24 ); … … 90 92 function render_item($row, $item) 91 93 { 92 return $this->parse_search_term($this->parse_users($this->parse_urls(htmlspecialchars($item['description'])))) . ' ['.$this->lifestream->get_anchor_html(htmlspecialchars($this->get_option('username')), $item['link']).']'; 94 $url = $this->parse_search_term($this->parse_users($this->parse_urls(htmlspecialchars($item['description'])))); 95 if($this->get_option('hide_username')) return $url; 96 else return $url . ' ['.$this->lifestream->get_anchor_html(htmlspecialchars($this->get_option('username')), $item['link']).']'; 93 97 } 94 98 -
lifestream/trunk/inc/labels.php
r196391 r207210 133 133 { 134 134 return $this->lifestream->__('%1$s ate %3$s.', $this->get_user_label(), $this->get_feed_label(), $this->get_single_link()); 135 } 136 } 137 138 class Lifestream_DrankLabel extends Lifestream_Label 139 { 140 function get_label_single() 141 { 142 return $this->lifestream->__('Drank %2$s.', $this->get_feed_label(), $this->get_single_link()); 143 } 144 function get_label_single_user() 145 { 146 return $this->lifestream->__('%1$s drank %3$s.', $this->get_user_label(), $this->get_feed_label(), $this->get_single_link()); 135 147 } 136 148 }
Note: See TracChangeset
for help on using the changeset viewer.