Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c2e44ab0

Přidáno uživatelem Michal Kliment před více než 9 roky(ů)

Release 1.0.12

Zobrazit rozdíly:

application/helpers/callback.php
// don't print days
unset($interval['days']);
// remove all empty keys
while (current($interval) == 0)
{
array_shift($interval);
}
$units = array
(
'y' => 'year',
......
$pieces = array();
foreach ($interval as $unit => $val)
{
// do not work with empty values (fixes #412)
if (empty($val))
{
continue;
}
// make plural (if needed) and translate
$unit = strtolower(__($units[$unit]. (($val > 1) ? 's' : '')));
......
* @param type $name
* @param type $args
*/
public function not_empty($item, $name, $args = array())
public static function not_empty($item, $name, $args = array())
{
if ($item->$name === NULL)
{
......
{
if (empty($item->message_id))
{
echo ' ';
echo ' - ';
}
else
{
......
public static function message_field($item, $name)
{
// system messages
if ($item->type >= 0)
if ($item->type > 0)
{
// system messages
echo __($item->message);
}
elseif ($item->type == 0)
else if ($item->type === NULL)
{
// user messages
echo $item->message;
// null value means no message
echo '<span style="color: #999">' . __('No redirection') . '</span>';
}
else
{
// null value means no message
echo __('No redirection');
// user messages
echo $item->message;
}
}
......
if ($message->type == Message_Model::CONTACT_INFORMATION ||
$message->type == Message_Model::CANCEL_MESSAGE ||
$message->type == Message_Model::UNKNOWN_DEVICE_MESSAGE)
$message->type == Message_Model::UNKNOWN_DEVICE_MESSAGE)
{
echo '&nbsp;';
}
......
{
$message = new Message_Model($item->id);
echo html::anchor(
url::base().'redirection/?id='.$message->id,
__('Preview'), array('target' => '_blank')
);
if (empty($message->text))
{
echo '<span class="red">' . __('Empty') . '</span>';
}
else
{
echo html::anchor(
url::base().'redirection/?id='.$message->id,
__('Preview'), array('target' => '_blank')
);
}
}
/**
......
* @param type $item
* @param type $name
*/
public function port_mode_field($item, $name)
public static function port_mode_field($item, $name)
{
echo Iface_Model::get_port_mode($item->port_mode);
}

Také k dispozici: Unified diff