echo EHtmlGrid::lockedWithIcons($checkedout); ?> <a href="<?php echo $link; ?> "> <?php $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>';
* * @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 = htmlentities($item->description, ENT_COMPAT, 'UTF-8'); $description = TextUtil::truncString($description, AutotweetDefaultView::MAX_CHARS_TITLE_SHORT_SCREEN, true); $elem = array('id' => $item->id, 'title' => $description, 'start' => JHtml::_('date', $item->publish_up, DateTime::RFC3339), 'className' => $item->published ? $has_error ? 'req-error' : 'req-success' : ($has_error ? 'req-warning' : 'req-info')); /* if (!empty($item->url)) { $elem['url'] = TextUtil::renderUrl($item->url); } */ $elem['url'] = 'index.php?option=com_autotweet&view=composer&req-id=' . $item->id; if (!empty($item->image_url)) { $elem['image_url'] = TextUtil::renderUrl($item->image_url); } $result[] = $elem; } } echo json_encode($result);
echo JText::_('COM_AUTOTWEET_POST_ORIGINAL_URL_DESC'); ?> "><?php echo JText::_('COM_AUTOTWEET_POST_ORIGINAL_URL'); ?> </label> <div class="controls"> <input type="text" name="org_url" id="org_url" value="<?php echo TextUtil::renderUrl($this->item->org_url); ?> " maxlength="512" /> </div> </div> <?php echo EHtml::imageControl(TextUtil::renderUrl($this->item->image_url), 'image_url', 'COM_AUTOTWEET_POST_IMAGE_URL', 'COM_AUTOTWEET_POST_IMAGE_URL_DESC', null, null, true); ?> <div class="control-group"> <label for="show_url" class="control-label required" rel="tooltip" data-original-title="<?php echo JText::_('COM_AUTOTWEET_POST_SHOW_URL_DESC'); ?> "><?php echo JText::_('COM_AUTOTWEET_POST_SHOW_URL'); ?> <span class="star"> *</span></label> <div class="controls"> <?php echo SelectControlHelper::showurl($this->item->show_url, 'show_url', array('class' => 'input required', 'required' => 'required')); ?> </div>