1<?php 2/** 3 * Template for individual tweets: 4 * 5 * Uses: 6 * ->body 7 * ->profileLink 8 * ->profileImg 9 * ->authorName 10 * ->authorFullname 11 * ->createdAt 12 * ->clientName 13 * ->tweet 14 * ->instanceid 15 * 16 */ 17?> 18<div class="hordeSmStreamstory"> 19 <div class="hordeSmAvatar"> 20 <?php echo $this->profileLink ?><img width="48" height="48" src="<?php echo $this->profileImg?>" alt="<?php echo $this->authorName?>" title="<?php echo $this->authorFullname?>" /></a> 21 </div> 22 <div><?php echo $this->profileLink?> <strong><?php echo $this->authorFullname ?></strong> <em><?php echo $this->authorName?></em></a></div> 23 <div class="hordeSmStreambody"> 24 <?php echo $this->body ?> 25 <div class="hordeSmStreaminfo"> 26 <?php echo sprintf(_("Posted %s via %s"), Horde_Date_Utils::relativeDateTime(strtotime($this->createdAt), $GLOBALS['prefs']->getValue('date_format')), $this->clientText)?> 27 </div> 28 <?php if (!empty($this->tweet->retweeted_status)):?> 29 <div class="hordeSmStreaminfo"> 30 <?php echo sprintf(_("Retweeted by %s"), Horde::externalUrl('http://twitter.com/' . $this->escape($this->tweet->user->screen_name), true)) . '@' . $this->escape($this->tweet->user->screen_name) ?></a> 31 </div> 32 <?php endif; ?> 33 <div class="hordeSmStreaminfo"> 34 <?php echo Horde::selfUrl()->link(array('onclick' => 'Horde[\'twitter' . $this->instanceid . '\'].buildReply(\'' . (string)$this->tweet->id_str . '\', \'' . $this->tweet->user->screen_name . '\', \'' . $this->tweet->user->name . '\'); return false;')) . _("Reply") ?></a> 35 | <?php echo Horde::selfUrl()->link(array('onclick' => 'Horde[\'twitter' . $this->instanceid . '\'].retweet(\'' . (string)$this->tweet->id_str . '\'); return false;')) . _("Retweet") ?></a> 36 <?php if (empty($this->tweet->favorited)): ?> 37 | <?php echo Horde::selfUrl()->link(array('id' => 'favorite' . $this->instanceid . $this->tweet->id_str, 'onclick' => 'Horde[\'twitter' . $this->instanceid . '\'].favorite(\'' . (string)$this->tweet->id_str . '\'); return false;')) . _("Favorite") ?></a> 38 <?php else: ?> 39 | <?php echo Horde::selfUrl()->link(array('id' => 'favorite' . $this->instanceid . $this->tweet->id_str, 'onclick' => 'Horde[\'twitter' . $this->instanceid . '\'].unfavorite(\'' . (string)$this->tweet->id_str . '\'); return false;')) . _("Unfavorite") ?></a> 40 <?php endif; ?> 41 </div> 42 <div class="clear"> </div> 43 </div> 44</div> 45