- md5
- 4dafefa77ff4e64b6b01ab918cbf4438
- sha1
- 20eee8cc7d27cb5e40a699374fa24c1a71665596
- sha256
- c0f4c510abf03fc2f8d96c48995d3ca61a006edded17bc8960cd755d6958d9a3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Utility class working with directory
*
* @package Joomla.Administrator
* @subpackage com_admin
* @since 1.6
*/
abstract class JHtmlDirectory
{
/**
* Method to generate a (un)writable message for directory
*
* @param boolean $writable is the directory writable?
*
* @return string html code
*/
public static function writable($writable)
{
if ($writable)
{
return '<span class="badge badge-success">' . JText::_('COM_ADMIN_WRITABLE') . '</span>';
}
else
{
return '<span class="badge badge-important">' . JText::_('COM_ADMIN_UNWRITABLE') . '</span>';
}
}
/**
* Method to generate a message for a directory
*
* @param string $dir the directory
* @param boolean $message the message
* @param boolean $visible is the $dir visible?
*
* @return string html code
*/
public static function message($dir, $message, $visible = true)
{
if ($visible)
{
$output = $dir;
}
else
{
$output = '';
}
if (empty($message))
{
return $output;
}
else
{
return $output . ' <strong>' . JText::_($message) . '</strong>';
}
}
}
The same content is in 13 releases, Joomla 3.2.2 to 3.3.6. See them all, or every version of this file.