src/Ui/ControlPanel/Component/Button/ButtonNormalizer.php 2 locations
|
@@ 91-97 (lines=7) @@
|
| 88 |
|
/** |
| 89 |
|
* Make sure the HREF is absolute. |
| 90 |
|
*/ |
| 91 |
|
if ( |
| 92 |
|
isset($button['attributes']['href']) && |
| 93 |
|
is_string($button['attributes']['href']) && |
| 94 |
|
!starts_with($button['attributes']['href'], 'http') |
| 95 |
|
) { |
| 96 |
|
$button['attributes']['href'] = url($button['attributes']['href']); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
/** |
| 100 |
|
* If we have a dropdown then |
|
@@ 122-128 (lines=7) @@
|
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
// Make sure the HREF is absolute. |
| 122 |
|
if ( |
| 123 |
|
isset($dropdown['attributes']['href']) && |
| 124 |
|
is_string($dropdown['attributes']['href']) && |
| 125 |
|
!starts_with($dropdown['attributes']['href'], 'http') |
| 126 |
|
) { |
| 127 |
|
$dropdown['attributes']['href'] = url($dropdown['attributes']['href']); |
| 128 |
|
} |
| 129 |
|
} |
| 130 |
|
} |
| 131 |
|
} |
src/Ui/ControlPanel/Component/Navigation/NavigationNormalizer.php 1 location
|
@@ 63-69 (lines=7) @@
|
| 60 |
|
/** |
| 61 |
|
* Make sure the HREF and data-HREF are absolute. |
| 62 |
|
*/ |
| 63 |
|
if ( |
| 64 |
|
isset($link['attributes']['href']) && |
| 65 |
|
is_string($link['attributes']['href']) && |
| 66 |
|
!starts_with($link['attributes']['href'], 'http') |
| 67 |
|
) { |
| 68 |
|
$link['attributes']['href'] = url($link['attributes']['href']); |
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
$builder->setNavigation($links); |
src/Ui/ControlPanel/Component/Section/SectionNormalizer.php 2 locations
|
@@ 92-98 (lines=7) @@
|
| 89 |
|
/** |
| 90 |
|
* Make sure the HREF and data-HREF are absolute. |
| 91 |
|
*/ |
| 92 |
|
if ( |
| 93 |
|
isset($section['attributes']['href']) && |
| 94 |
|
is_string($section['attributes']['href']) && |
| 95 |
|
!starts_with($section['attributes']['href'], 'http') |
| 96 |
|
) { |
| 97 |
|
$section['attributes']['href'] = url($section['attributes']['href']); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
if ( |
| 101 |
|
isset($section['attributes']['data-href']) && |
|
@@ 100-106 (lines=7) @@
|
| 97 |
|
$section['attributes']['href'] = url($section['attributes']['href']); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
if ( |
| 101 |
|
isset($section['attributes']['data-href']) && |
| 102 |
|
is_string($section['attributes']['data-href']) && |
| 103 |
|
!starts_with($section['attributes']['data-href'], 'http') |
| 104 |
|
) { |
| 105 |
|
$section['attributes']['data-href'] = url($section['attributes']['data-href']); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
/** |
| 109 |
|
* Move child sections into main array. |
src/Ui/Form/Component/Button/ButtonNormalizer.php 1 location
|
@@ 86-92 (lines=7) @@
|
| 83 |
|
/** |
| 84 |
|
* Make sure the HREF is absolute. |
| 85 |
|
*/ |
| 86 |
|
if ( |
| 87 |
|
isset($button['attributes']['href']) && |
| 88 |
|
is_string($button['attributes']['href']) && |
| 89 |
|
!starts_with($button['attributes']['href'], 'http') |
| 90 |
|
) { |
| 91 |
|
$button['attributes']['href'] = url($button['attributes']['href']); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
if (isset($button['dropdown'])) { |
| 95 |
|
foreach ($button['dropdown'] as $key => &$dropdown) { |
src/Ui/Grid/Component/Button/ButtonNormalizer.php 1 location
|
@@ 68-74 (lines=7) @@
|
| 65 |
|
/** |
| 66 |
|
* Make sure the HREF is absolute. |
| 67 |
|
*/ |
| 68 |
|
if ( |
| 69 |
|
isset($button['attributes']['href']) && |
| 70 |
|
is_string($button['attributes']['href']) && |
| 71 |
|
!starts_with($button['attributes']['href'], 'http') |
| 72 |
|
) { |
| 73 |
|
$button['attributes']['href'] = url($button['attributes']['href']); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
/** |
| 77 |
|
* Use small buttons for grids. |
src/Ui/Table/Component/Button/ButtonNormalizer.php 1 location
|
@@ 96-102 (lines=7) @@
|
| 93 |
|
/** |
| 94 |
|
* Make sure the HREF is absolute. |
| 95 |
|
*/ |
| 96 |
|
if ( |
| 97 |
|
isset($button['attributes']['href']) && |
| 98 |
|
is_string($button['attributes']['href']) && |
| 99 |
|
!starts_with($button['attributes']['href'], 'http') |
| 100 |
|
) { |
| 101 |
|
$button['attributes']['href'] = url($button['attributes']['href']); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
/** |
| 105 |
|
* Use small buttons for tables. |
src/Ui/Table/Component/View/ViewNormalizer.php 1 location
|
@@ 91-97 (lines=7) @@
|
| 88 |
|
/** |
| 89 |
|
* Make sure the HREF is absolute. |
| 90 |
|
*/ |
| 91 |
|
if ( |
| 92 |
|
isset($view['attributes']['href']) && |
| 93 |
|
is_string($view['attributes']['href']) && |
| 94 |
|
!starts_with($view['attributes']['href'], 'http') |
| 95 |
|
) { |
| 96 |
|
$view['attributes']['href'] = url($view['attributes']['href']); |
| 97 |
|
} |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
$builder->setViews($views); |
src/Ui/Tree/Component/Button/ButtonNormalizer.php 1 location
|
@@ 78-84 (lines=7) @@
|
| 75 |
|
/** |
| 76 |
|
* Make sure the HREF is absolute. |
| 77 |
|
*/ |
| 78 |
|
if ( |
| 79 |
|
isset($button['attributes']['href']) && |
| 80 |
|
is_string($button['attributes']['href']) && |
| 81 |
|
!starts_with($button['attributes']['href'], 'http') |
| 82 |
|
) { |
| 83 |
|
$button['attributes']['href'] = url($button['attributes']['href']); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
/** |
| 87 |
|
* Use small buttons for trees. |