/content/code/trunk/administrator/components/com_artofcontent/helpers/html/artofcontent.php
PHP | 56 lines | 24 code | 6 blank | 26 comment | 2 complexity | 8ca8bbca2230140c4ba659e7cdfa0bbb MD5 | raw file
- <?php
- /**
- * @version $Id: artofcontent.php 497 2010-12-29 00:45:05Z eddieajau $
- * @package NewLifeInIT
- * @subpackage com_artofcontent
- * @copyright Copyright 2005 - 2010 New Life in IT Pty Ltd. All rights reserved
- * @license GNU General Public License <http://www.fsf.org/licensing/licenses/gpl.html>
- * @link http://www.theartofjoomla.com
- */
- // No direct access.
- defined('_JEXEC') or die;
- /**
- * Component HTML Helper
- *
- * @package NewLifeInIT
- * @subpackage com_artofcontent
- */
- class JHtmlArtofContent
- {
- /**
- * Display the published setting and icon
- *
- * @param int The value of the published field
- * @param int The row index
- *
- * @return string
- */
- function rule($value, $i, $suffix='')
- {
- $codes = array(1 => '✓', 0 => '✗');
- $alts = array(0 => 'COM_ARTOFCONTENT_RULE_DENIED', 1 => 'COM_ARTOFCONTENT_RULE_ALLOWED');
- $code = JArrayHelper::getValue($codes, $value, $codes[0]);
- $task = $value == 1 ? 'category.deny' : 'category.allow';
- $action = $value == 1 ? JText::_('COM_ARTOFCONTENT_RULE_DENY') : JText::_('COM_ARTOFCONTENT_RULE_ALLOW');
- // $html = '
- // <a href="javascript:void(0);" onclick="return listItemTask(\'cb'. $i .'\',\''. $prefix.$task .'\')" title="'. $action .'">
- // <img src="'. $img .'" border="0" alt="'. $alt .'" /></a>';
- $html = '<span class="rule">'.$code.'</span>';
- return $html;
- }
- function footer()
- {
- JHtml::_('behavior.modal', 'a.modal');
- echo '<div id="taojfooter">';
- echo '<a href="'.JRoute::_('index.php?option=com_artofcontent&view=about&tmpl=component').'" class="modal" rel="{handler: \'iframe\'}">';
- echo 'Artof User '.ArtofContentVersion::getVersion(true, true).'</a>';
- echo ' © 2005 - 2010 <a href="http://www.newlifeinit.com" target="_blank">New Life in IT Pty Ltd</a>. All rights reserved.';
- echo '</div>';
- }
- }