src/controllers/DefaultController.php
public function colorizeValue($value, $displayValue = false)
    {
        $text = ($displayValue) ? $value : Module::t('debug_state_on');
        if ($value) {
            return '<span style="color:green;">'.$text.'</span>';
        }
        return '<span style="color:red;">'.Module::t('debug_state_off').'</span>';
    }
public function colorizeValue($value, $displayValue = false)
    {
        $text = ($displayValue) ? $value : Module::t('debug_state_on');
        if ($value) {
            return '<span style="color:green;">'.$text.'</span>';
        }
        return '<span style="color:red;">'.Module::t('debug_state_off').'</span>';
    }
public function colorizeValue ( $ value , $ displayValue = false ) { $ text = ( $ displayValue ) ? $ value : Module :: t ( 'debug_state_on' ) ; if ( $ value ) { return '<span style="color:green;">' . $ text . '</span>' ; } return '<span style="color:red;">' . Module :: t ( 'debug_state_off' ) . '</span>' ; }
Context helper for layout main.php in order to colorize debug informations.

@param string $value
@param boolean $displayValue
@return string
Context helper for layout main . php in order to colorize debug informations .