Minor - format code

1.9.x
Julio Montoya 10 years ago
parent 94a0316be6
commit fe2c21ec14
  1. 12
      main/inc/lib/display.lib.php

@ -67,7 +67,6 @@ class Display
preg_match('/main\/([^*\/]+)/', $currentURL, $matches); preg_match('/main\/([^*\/]+)/', $currentURL, $matches);
$toolList = self::toolList(); $toolList = self::toolList();
if (!empty($matches)) { if (!empty($matches)) {
foreach ($matches as $match) { foreach ($matches as $match) {
if (in_array($match, $toolList)) { if (in_array($match, $toolList)) {
$help = explode('_', $match); $help = explode('_', $match);
@ -599,8 +598,6 @@ class Display
return '<a href="'.api_get_path(WEB_PATH).'index.php">'.$name.'</a>'; return '<a href="'.api_get_path(WEB_PATH).'index.php">'.$name.'</a>';
} }
/** /**
* Prints an <option>-list with all letters (A-Z). * Prints an <option>-list with all letters (A-Z).
* @param char $selected_letter The letter that should be selected * @param char $selected_letter The letter that should be selected
@ -1758,7 +1755,8 @@ class Display
* @param string $type * @param string $type
* @return string * @return string
*/ */
public static function label($content, $type = null) { public static function label($content, $type = null)
{
$class = ''; $class = '';
switch ($type) { switch ($type) {
case 'success': case 'success':
@ -1791,7 +1789,8 @@ class Display
* @param array $items * @param array $items
* @return null|string * @return null|string
*/ */
public static function actions($items) { public static function actions($items)
{
$html = null; $html = null;
if (!empty($items)) { if (!empty($items)) {
$html = '<div class="new_actions"><ul class="nav nav-pills">'; $html = '<div class="new_actions"><ul class="nav nav-pills">';
@ -1856,7 +1855,8 @@ class Display
/** /**
* @todo use twig * @todo use twig
*/ */
public static function group_button($title, $elements) { public static function group_button($title, $elements)
{
$html = '<div class="btn-toolbar"> $html = '<div class="btn-toolbar">
<div class="btn-group"> <div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown">'.$title.' <span class="caret"></span></button> <button class="btn dropdown-toggle" data-toggle="dropdown">'.$title.' <span class="caret"></span></button>

Loading…
Cancel
Save