src/component/Html/Breadcrumbs.php 1 location
|
@@ 185-195 (lines=11) @@
|
| 182 |
|
* |
| 183 |
|
* @return string |
| 184 |
|
*/ |
| 185 |
|
private function isAttribute($attribute, $value) |
| 186 |
|
{ |
| 187 |
|
if (is_array($value)) { |
| 188 |
|
array_filter($value); |
| 189 |
|
$value = trim(implode(' ', $value)); |
| 190 |
|
|
| 191 |
|
return !empty($value) ? ' '.$attribute.'="'.$value.'"' : ''; |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
return (isset($value) and !empty($value)) ? ' '.$attribute.'="'.trim($value).'"' : ''; |
| 195 |
|
} |
| 196 |
|
} |
| 197 |
|
|
src/component/Html/Navigation.php 1 location
|
@@ 541-551 (lines=11) @@
|
| 538 |
|
* |
| 539 |
|
* @return string |
| 540 |
|
*/ |
| 541 |
|
private function isAttribute($attribute, $value) |
| 542 |
|
{ |
| 543 |
|
if (is_array($value)) { |
| 544 |
|
array_filter($value); |
| 545 |
|
$value = trim(implode(' ', $value)); |
| 546 |
|
|
| 547 |
|
return !empty($value) ? ' '.$attribute.'="'.$value.'"' : ''; |
| 548 |
|
} |
| 549 |
|
|
| 550 |
|
return (isset($value) and !empty($value)) ? ' '.$attribute.'="'.trim($value).'"' : ''; |
| 551 |
|
} |
| 552 |
|
|
| 553 |
|
protected function each(&$arr) |
| 554 |
|
{ |
src/component/Html/Paging.php 1 location
|
@@ 105-115 (lines=11) @@
|
| 102 |
|
* |
| 103 |
|
* @return string |
| 104 |
|
*/ |
| 105 |
|
private function isAttribute($attribute, $value) |
| 106 |
|
{ |
| 107 |
|
if (is_array($value)) { |
| 108 |
|
array_filter($value); |
| 109 |
|
$value = trim(implode(' ', $value)); |
| 110 |
|
|
| 111 |
|
return !empty($value) ? ' '.$attribute.'="'.$value.'"' : ''; |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
return (isset($value) and !empty($value)) ? ' '.$attribute.'="'.trim($value).'"' : ''; |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
public function create() |
| 118 |
|
{ |
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 |
|
|