Exemplo n.º 1
0
 /**
  * Centralized method to retrieve a conversation's link.
  * This is where all the magic happens.
  *
  * @access	public
  * @param	null
  *
  * @return	string	The url for the person
  */
 public function getPermalink($xhtml = true, $external = false, $sef = true)
 {
     $url = FRoute::conversations(array('id' => $this->id, 'layout' => 'read', 'external' => $external, 'sef' => $sef), $xhtml);
     return $url;
 }
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Unauthorized Access');
if ($conversations) {
    ?>
	<?php 
    foreach ($conversations as $conversation) {
        ?>
		<li class="<?php 
        echo $conversation->isNew() ? ' is-unread' : ' is-read';
        ?>
">
			<div class="media notice-message">
				<a href="<?php 
        echo FRoute::conversations(array('layout' => 'read', 'id' => $conversation->id));
        ?>
">
				<div class="media-object pull-left">
					<div class="es-avatar">
						<?php 
        if ($conversation->type == SOCIAL_CONVERSATION_MULTIPLE) {
            ?>
							<img src="<?php 
            echo $conversation->getLastMessage($this->my->id)->getCreator()->getAvatar();
            ?>
" title="<?php 
            echo $this->html('string.escape', $conversation->getLastMessage($this->my->id)->getCreator()->getName());
            ?>
" />
						<?php 
Exemplo n.º 3
0
 /**
  * Retrieves the permalink to the item
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function getPermalink($xhtml = true)
 {
     $url = FRoute::conversations(array('layout' => 'download', 'fileid' => $this->id), $xhtml);
     return $url;
 }
Exemplo n.º 4
0
        ?>
				</div>
				<?php 
    }
    ?>

			</div>
		</div>
		<?php 
}
?>

		<div class="form-actions">
			<div class="pull-right">
				<a href="<?php 
echo FRoute::conversations();
?>
" class="btn btn-es btn-sm"><?php 
echo JText::_('COM_EASYSOCIAL_CANCEL_BUTTON');
?>
</a>
				<button class="btn btn-es-primary btn-sm" data-composer-submit><?php 
echo JText::_('COM_EASYSOCIAL_SUBMIT_BUTTON');
?>
</button>
			</div>
		</div>

		<input type="hidden" name="option" value="com_easysocial" />
		<input type="hidden" name="controller" value="conversations" />
		<input type="hidden" name="task" value="store" />
Exemplo n.º 5
0
 /**
  * Post processing after leaving a conversation
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function leave()
 {
     return $this->redirect(FRoute::conversations(array(), false));
 }
Exemplo n.º 6
0
					</a>
				</li>

				<li class="mailbox-item<?php 
echo $active == 'archives' ? ' active' : '';
?>
"
					data-mailboxItem
					data-mailbox="archives"
					data-title="<?php 
echo JText::_('COM_EASYSOCIAL_PAGE_TITLE_CONVERSATIONS_ARCHIVES', true);
echo $totalNewArchives > 0 ? ' (' . $totalNewArchives . ')' : '';
?>
"
					data-url="<?php 
echo FRoute::conversations(array('layout' => 'archives'));
?>
">
					<a href="javascript:void(0);">
						<?php 
echo JText::_('COM_EASYSOCIAL_CONVERSATIONS_ARCHIVES');
?>
						<span data-mailboxItem-counter>
							<?php 
if ($totalNewArchives > 0) {
    ?>
							(<?php 
    echo $totalNewArchives;
    ?>
)
							<?php 
Exemplo n.º 7
0
echo JText::_('COM_EASYSOCIAL_CONVERSATIONS_FILES');
?>
</h5>
<hr />
<?php 
if ($files) {
    ?>
	<ul class="fd-reset-list files-list">
		<?php 
    foreach ($files as $attachment) {
        ?>
		<li>
			<div class="row">
				<div class="col-md-12">
					<a href="<?php 
        echo FRoute::conversations(array('layout' => 'download', 'fileid' => $attachment->id));
        ?>
"
						data-es-provide="tooltip"
						data-original-title="<b><?php 
        echo $this->html('string.escape', $attachment->name);
        ?>
</b><br /><br /><?php 
        echo JText::sprintf('COM_EASYSOCIAL_CONVERSATIONS_FILE_UPLOADED_ON', $attachment->getUploadedDate()->toLapsed());
        ?>
"
						data-html="true"
						data-placement="bottom"
					>

						<i class="icon-es-<?php 
Exemplo n.º 8
0
 /**
  * Responsible to process an ajax call that tries to store a conversation.
  *
  * @since	1.0
  * @access	public
  * @param	SocialTableConversation
  */
 public function store($conversation = null)
 {
     $ajax = FD::ajax();
     if ($this->hasErrors()) {
         return $ajax->reject($this->getMessage());
     }
     $link = FRoute::conversations(array('id' => $conversation->id, 'layout' => 'read'), false);
     return $ajax->resolve($link);
 }
Exemplo n.º 9
0
 public function getInboxURL()
 {
     return FRoute::conversations();
 }