| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 4 * @license GNU General Public License version 2 or later; see LICENSE.txt 5 */ 6 7 // no direct access 8 defined('_JEXEC') or die; 9 10 /** 11 * @package Joomla.Administrator 12 * @subpackage com_content 13 */ 14 abstract class JHtmlContentAdministrator 15 { 16 /** 17 * @param int $value The state value 18 * @param int $i 19 */ 20 static function featured($value = 0, $i, $canChange = true) 21 { 22 // Array of image, task, title, action 23 $states = array( 24 0 => array('disabled.png', 'articles.featured', 'COM_CONTENT_UNFEATURED', 'COM_CONTENT_TOGGLE_TO_FEATURE'), 25 1 => array('featured.png', 'articles.unfeatured', 'COM_CONTENT_FEATURED', 'COM_CONTENT_TOGGLE_TO_UNFEATURE'), 26 ); 27 $state = JArrayHelper::getValue($states, (int) $value, $states[1]); 28 $html = JHtml::_('image', 'admin/'.$state[0], JText::_($state[2]), NULL, true); 29 if ($canChange) { 30 $html = '<a href="#" onclick="return listItemTask(\'cb'.$i.'\',\''.$state[1].'\')" title="'.JText::_($state[3]).'">' 31 . $html.'</a>'; 32 } 33 34 return $html; 35 } 36 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |