Beispiel #1
0
 public function getItemHTML($format = null)
 {
     // If were not in 'article' view, just show short summary
     /*
     $view = JRequest::getVar('view');
         	$task = JRequest::getVar('task');
         	
         	if( ($view != 'message' || $task != 'show') && $format != 'full'){
         		$date = new JDate($this->data->start_date);
     	$html = '<li class="message-item compact-item"><span class="label-compact label-event">Event</span>
     		<div class="message-content-compact">
     		<a href="'. $this->data->getUri().'">
     		'.StreamMessage::format($this->data->message).'
     		</a>
     		<span class="small hint">'.JXDate::formatLapse( $date ).'</span>
     		</div>
     		<div class="clear"></div>
     		</li>';
     	return $html;
     }
     */
     $tmpl = new StreamTemplate();
     $tmpl->set('stream', $this->data)->set('comment', StreamComment::getCommentSummaryHTML($this->data));
     return $tmpl->fetch('stream.item.event');
 }
Beispiel #2
0
 public function getItemHTML($format = null)
 {
     $tmpl = new StreamTemplate();
     // If were not in 'direct' view, just show short summary
     $view = JRequest::getVar('view');
     $task = JRequest::getVar('task');
     if ($view == 'direct' || $task == 'show') {
         $tmpl->set('stream', $this->data)->set('comment', StreamComment::getCommentSummaryHTML($this->data));
         return $tmpl->fetch('stream.item.direct');
     } else {
         $tmpl->set('stream', $this->data);
         return $tmpl->fetch('stream.compact.direct');
     }
 }
Beispiel #3
0
							<a class="meta-comment" href="#comment">Reply</a>
							<?php 
    // TODO: disabled until edit callback output fixed
    if ($my->authorise('stream.message.edit', $stream) && false) {
        ?>
								• <a class="meta-edit" href="#edit">Edit</a>
								• <a class="meta-edit" href="#remove">Delete</a>
								<?php 
    }
    ?>
							<div class="clear"></div>
						</div>

						<div class="message-content-bottom">
							<?php 
    echo StreamComment::getCommentSummaryHTML($stream);
    ?>
						</div>
					</li>
				</ul>
			</div>
		</li>
		<?php 
}
?>
	</ul>
</div>

<div class="pagination" style="display: none;">
	<?php 
if ($pagination) {
Beispiel #4
0
 public function getItemHTML($format = null)
 {
     $tmpl = new StreamTemplate();
     $tmpl->set('stream', $this->data)->set('comment', StreamComment::getCommentSummaryHTML($this->data));
     return $tmpl->fetch('stream.item.todo');
 }
Beispiel #5
0
        ?>
</a>
								• <a class="meta-edit" href="#remove"><?php 
        echo JText::_('COM_STREAM_LABEL_DELETE');
        ?>
</a>
								<?php 
    }
    ?>

							<div class="clear"></div>
						</div>

						<div class="message-content-bottom">
							<?php 
    echo StreamComment::getCommentSummaryHTML($event);
    ?>
						</div>
					</li>
				</ul>
			</div>
			<div class="clear"></div>
		</li>

		<?php 
}
?>
		
	</ul>
		<?php 
if (count($events) == 0) {
Beispiel #6
0
 /**
  * Return object HTML
  */
 public function getItemHTML($format = null)
 {
     // If were not in 'article' view, just show short summary
     $view = JRequest::getVar('view');
     $task = JRequest::getVar('task');
     $editType = JRequest::getVar('edit_type', '');
     $messageId = JRequest::getVar('message_id', 0);
     //var_dump($messageId);
     if ($editType == 'list') {
         return $this->getMilestoneHTML($this->data);
     }
     if ($view == 'message' && ($task == 'show' || $task == 'save' || $task == 'fetch') || $view == 'milestones' || $task == 'showMessages' || $messageId == $this->data->id) {
         $tmpl = new StreamTemplate();
         $tmpl->set('stream', $this->data)->set('comment', StreamComment::getCommentSummaryHTML($this->data));
         return $tmpl->fetch('stream.item.milestone');
     } else {
         $tmpl = new StreamTemplate();
         $tmpl->set('stream', $this->data)->set('comment', StreamComment::getCommentSummaryHTML($this->data));
         return $tmpl->fetch('stream.compact.milestone');
     }
     /*if($task != 'show'){
     			$data = json_decode($this->data->raw);
     			$date = new JDate( $this->data->created );
     			$user = JXFactory::getUser($this->data->user_id);
     			
     			$html = '<li style="border:none; background:#F2F2F2; padding:8px;list-style-type: none;margin: 0 0 15px;backgroun:#ddd"><span style="margin-right:6px;" class="label info">New Milestone</span>
     				'. StreamMessage::format($this->data->message) .'
     				<span class="small hint">- '.StreamTemplate::escape($user->name).' , '.JXDate::formatLapse( $date ).'</span>
     				</li>';
     			return $html;
     		}
     		
     		$tmpl = new StreamTemplate();
     		$tmpl->set( 'stream'	, $this->data)
     				->set('comment', StreamComment::getCommentSummaryHTML($this->data));
     		return $tmpl->fetch('stream.item.milestone');*/
 }