Source for file contentadministrator.php
Documentation is available at contentadministrator.php
* @package Joomla.Administrator
* @subpackage com_content
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla.Administrator
* @subpackage com_content
* Render the list of associated items
* @param int $articleid The article item id
* @return string The language HTML
foreach ($associations as $tag =>
$associated)
$associations[$tag] = (int)
$associated->id;
// Get the associated menu items
$query =
$db->getQuery(true)
->select('l.sef as lang_sef')
->from('#__content as c')
->select('cat.title as category_title')
->join('LEFT', '#__categories as cat ON cat.id=c.catid')
->join('LEFT', '#__languages as l ON c.language=l.lang_code')
->select('l.title as language_title');
$items =
$db->loadObjectList('id');
catch
(RuntimeException $e)
throw
new Exception($e->getMessage(), 500);
foreach ($items as &$item)
$url =
JRoute::_('index.php?option=com_content&task=article.edit&id=' . (int)
$item->id);
JHtml::_('image', 'mod_languages/' .
$item->image .
'.gif',
array('title' =>
$item->language_title),
'(' .
$item->category_title .
')'
$item->link =
JHtml::_('tooltip', implode(' ', $tooltipParts), null, null, $text, $url, null, 'hasTooltip label label-association label-' .
$item->lang_sef);
* Show the feature/unfeature links
* @param int $value The state value
* @param int $i Row number
* @param boolean $canChange Is user allowed to change?
* @return string HTML code
public static function featured($value =
0, $i, $canChange =
true)
JHtml::_('bootstrap.tooltip');
// Array of image, task, title, action
0 =>
array('unfeatured', 'articles.featured', 'COM_CONTENT_UNFEATURED', 'COM_CONTENT_TOGGLE_TO_FEATURE'),
1 =>
array('featured', 'articles.unfeatured', 'COM_CONTENT_FEATURED', 'COM_CONTENT_TOGGLE_TO_UNFEATURE'),
$html =
'<a href="#" onclick="return listItemTask(\'cb' .
$i .
'\',\'' .
$state[1] .
'\')" class="btn btn-micro hasTooltip' .
($value ==
1 ?
' active' :
'') .
'" title="' .
JHtml::tooltipText($state[3]) .
'"><i class="icon-'
$html =
'<a class="btn btn-micro hasTooltip disabled' .
($value ==
1 ?
' active' :
'') .
'" title="' .
JHtml::tooltipText($state[2]) .
'"><i class="icon-'
Documentation generated on Tue, 19 Nov 2013 14:56:56 +0100 by phpDocumentor 1.4.3