src/component/Html/Navigation.php 1 location
|
@@ 516-526 (lines=11) @@
|
| 513 |
|
* |
| 514 |
|
* @return string |
| 515 |
|
*/ |
| 516 |
|
private function isAtribute($atribute, $value) |
| 517 |
|
{ |
| 518 |
|
if (is_array($value)) { |
| 519 |
|
array_filter($value); |
| 520 |
|
$value = trim(implode(' ', $value)); |
| 521 |
|
|
| 522 |
|
return !empty($value) ? ' '.$atribute.'="'.$value.'"' : ''; |
| 523 |
|
} |
| 524 |
|
|
| 525 |
|
return (isset($value) and !empty($value)) ? ' '.$atribute.'="'.trim($value).'"' : ''; |
| 526 |
|
} |
| 527 |
|
|
| 528 |
|
protected function each(&$arr) |
| 529 |
|
{ |
src/module/Appearance/Menu/Navigation.php 1 location
|
@@ 147-157 (lines=11) @@
|
| 144 |
|
* |
| 145 |
|
* @return string |
| 146 |
|
*/ |
| 147 |
|
private function isAttribute($attribute, $value) |
| 148 |
|
{ |
| 149 |
|
if (is_array($value)) { |
| 150 |
|
array_filter($value); |
| 151 |
|
$value = trim(implode(' ', $value)); |
| 152 |
|
|
| 153 |
|
return !empty($value) ? ' '.$attribute.'="'.$value.'"' : ''; |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
return (isset($value) and !empty($value)) ? ' '.$attribute.'="'.trim($value).'"' : ''; |
| 157 |
|
} |
| 158 |
|
} |
| 159 |
|
|