$description = TextUtil::truncString($item->description, AutotweetDefaultView::MAX_CHARS_TITLE_SCREEN, true); echo htmlentities($description, ENT_COMPAT, 'UTF-8'); ?> </a> <?php if (!empty($item->url)) { echo ' <a href="' . TextUtil::renderUrl($item->url) . '" target="_blank"><i class="xticon xticon-globe"></i></a>'; } if (!empty($item->image_url)) { echo ' <a href="' . TextUtil::renderUrl($item->image_url) . '" target="_blank"><i class="xticon xticon-image"></i></a>'; } ?> </td> <td><?php echo AutoTweetModelPlugins::getSimpleName($item->plugin); ?> </td> <td><?php if ($has_error) { $alert_message = htmlentities($alert_message, ENT_COMPAT, 'UTF-8'); echo '<div rel="tooltip" data-original-title="' . $alert_message . '">'; echo EHtmlGrid::publishedWithIcons($item, $i, $this->perms->editstate); echo ' <a class="xticon xticon-thumbs-down"></a>'; echo ' - ' . JText::_('COM_AUTOTWEET_STATE_PUBSTATE_ERROR') . '</div>'; } else { echo SelectControlHelper::processedWithIcons($item, $i, $this->perms->editstate) . ' - ' . ($item->published ? JText::_('JYES') : JText::_('JNO')); } ?> </td>
<?php /** * @package Extly.Components * @subpackage com_autotweet - A powerful social content platform to manage multiple social networks. * * @author Prieco S.A. <*****@*****.**> * @copyright Copyright (C) 2007 - 2015 Prieco, S.A. All rights reserved. * @license http://http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * @link http://www.extly.com http://support.extly.com */ // No direct access defined('_JEXEC') or die('Restricted access'); F0FModel::getTmpInstance('Plugins', 'AutoTweetModel'); $result = array(); if ($count = count($this->items)) { foreach ($this->items as $item) { $native_object = json_decode($item->native_object); $has_error = isset($native_object->error) && $native_object->error; $description = TextUtil::truncString($item->description, AutotweetDefaultView::MAX_CHARS_TITLE_SCREEN, true); $elem = array('id' => $item->id, 'title' => $description, 'start' => JHtml::_('date', $item->publish_up, JText::_('COM_AUTOTWEET_DATE_FORMAT')), 'className' => $item->published ? $has_error ? 'req-error' : 'req-success' : ($has_error ? 'req-warning' : 'req-info'), 'checked_out' => $item->checked_out != 0, 'publish_up' => JHtml::_('date', $item->publish_up, JText::_('COM_AUTOTWEET_DATE_FORMAT')), 'description' => $description, 'plugin' => AutoTweetModelPlugins::getSimpleName($item->plugin), 'published' => $item->published); if (!empty($item->url)) { $elem['url'] = TextUtil::renderUrl($item->url); } if (!empty($item->image_url)) { $elem['image_url'] = TextUtil::renderUrl($item->image_url); } $result[] = $elem; } } echo EJSON_START . json_encode($result) . EJSON_END;