@@ -48,9 +48,9 @@ discard block |
||
48 | 48 | continue; |
49 | 49 | } |
50 | 50 | |
51 | - $rules['trans.' . $locale . '.label'] = 'required'; |
|
52 | - if ($this->request->get('trans.' . $locale . '.url') != null) { |
|
53 | - $rules['trans.' . $locale . '.url'] = 'url'; |
|
51 | + $rules['trans.'.$locale.'.label'] = 'required'; |
|
52 | + if ($this->request->get('trans.'.$locale.'.url') != null) { |
|
53 | + $rules['trans.'.$locale.'.url'] = 'url'; |
|
54 | 54 | } |
55 | 55 | } |
56 | 56 | |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | $attributes = []; |
63 | 63 | |
64 | 64 | foreach ($this->request->get('trans', []) as $locale => $trans) { |
65 | - $attributes['trans.' . $locale . '.label'] = $locale . ' label'; |
|
66 | - $attributes['trans.' . $locale . '.url'] = $locale . ' link'; |
|
65 | + $attributes['trans.'.$locale.'.label'] = $locale.' label'; |
|
66 | + $attributes['trans.'.$locale.'.url'] = $locale.' link'; |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | $attributes['page_id'] = 'Interne pagina'; |
@@ -93,8 +93,8 @@ discard block |
||
93 | 93 | |
94 | 94 | // Check if it is a relative |
95 | 95 | if ($this->isRelativeUrl($trans['url'])) { |
96 | - $data['trans'][$locale]['url'] = '/'. trim($trans['url'], '/'); |
|
97 | - } else { |
|
96 | + $data['trans'][$locale]['url'] = '/'.trim($trans['url'], '/'); |
|
97 | + }else { |
|
98 | 98 | $data['trans'][$locale]['url'] = Root::fromString($trans['url'])->get(); |
99 | 99 | } |
100 | 100 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php include(__DIR__ . '/../_partials/header.php'); ?> |
|
1 | +<?php include(__DIR__.'/../_partials/header.php'); ?> |
|
2 | 2 | |
3 | 3 | <section class="column stack-l iconography" id="iconography"> |
4 | 4 | <h1>Iconography</h1> |
@@ -662,4 +662,4 @@ discard block |
||
662 | 662 | </div> |
663 | 663 | </section> |
664 | 664 | |
665 | -<?php include(__DIR__ . '/../_partials/footer.php'); ?> |
|
665 | +<?php include(__DIR__.'/../_partials/footer.php'); ?> |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php include(__DIR__ . '/../_partials/header.php'); ?> |
|
1 | +<?php include(__DIR__.'/../_partials/header.php'); ?> |
|
2 | 2 | |
3 | 3 | <section class="stack-l components" id="buttons"> |
4 | 4 | <h1>Buttons</h1> |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | </div> |
125 | 125 | </section> |
126 | 126 | |
127 | -<?php include(__DIR__ . '/../_partials/footer.php'); ?> |
|
127 | +<?php include(__DIR__.'/../_partials/footer.php'); ?> |
|
128 | 128 | |
129 | 129 | |
130 | 130 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php include(__DIR__ . '/../_partials/header.php'); ?> |
|
1 | +<?php include(__DIR__.'/../_partials/header.php'); ?> |
|
2 | 2 | |
3 | 3 | <section class="stack-l forms" id="thumbnails"> |
4 | 4 | <h1>Thumbnails</h1> |
@@ -43,4 +43,4 @@ discard block |
||
43 | 43 | </div> |
44 | 44 | </section> |
45 | 45 | |
46 | -<?php include(__DIR__ . '/../_partials/footer.php'); ?> |
|
47 | 46 | \ No newline at end of file |
47 | +<?php include(__DIR__.'/../_partials/footer.php'); ?> |
|
48 | 48 | \ No newline at end of file |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php include(__DIR__ . '/../_partials/header.php'); ?> |
|
1 | +<?php include(__DIR__.'/../_partials/header.php'); ?> |
|
2 | 2 | |
3 | 3 | <section class="stack-l tables" id="tables"> |
4 | 4 | <h1>Tables</h1> |
@@ -130,4 +130,4 @@ discard block |
||
130 | 130 | </table> |
131 | 131 | </section> |
132 | 132 | |
133 | -<?php include(__DIR__ . '/../_partials/footer.php'); ?> |
|
134 | 133 | \ No newline at end of file |
134 | +<?php include(__DIR__.'/../_partials/footer.php'); ?> |
|
135 | 135 | \ No newline at end of file |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php include(__DIR__ . '/../_partials/header.php'); ?> |
|
1 | +<?php include(__DIR__.'/../_partials/header.php'); ?> |
|
2 | 2 | |
3 | 3 | <section class="stack-l row" id="toggles"> |
4 | 4 | <h1>Toggles</h1> |
@@ -93,4 +93,4 @@ discard block |
||
93 | 93 | </div> |
94 | 94 | </section> |
95 | 95 | |
96 | -<?php include(__DIR__ . '/../_partials/footer.php'); ?> |
|
97 | 96 | \ No newline at end of file |
97 | +<?php include(__DIR__.'/../_partials/footer.php'); ?> |
|
98 | 98 | \ No newline at end of file |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php include(__DIR__ . '/../_partials/header.php'); ?> |
|
1 | +<?php include(__DIR__.'/../_partials/header.php'); ?> |
|
2 | 2 | |
3 | 3 | <section class="stack-l forms" id="forms"> |
4 | 4 | <h1>Form elements</h1> |
@@ -73,4 +73,4 @@ discard block |
||
73 | 73 | </div> |
74 | 74 | </section> |
75 | 75 | |
76 | -<?php include(__DIR__ . '/../_partials/footer.php'); ?> |
|
77 | 76 | \ No newline at end of file |
77 | +<?php include(__DIR__.'/../_partials/footer.php'); ?> |
|
78 | 78 | \ No newline at end of file |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php include(__DIR__ . '/../_partials/header.php'); ?> |
|
1 | +<?php include(__DIR__.'/../_partials/header.php'); ?> |
|
2 | 2 | |
3 | 3 | <section class="stack-l panels" id="panels"> |
4 | 4 | <h1>Panels</h1> |
@@ -91,4 +91,4 @@ discard block |
||
91 | 91 | </div> |
92 | 92 | </section> |
93 | 93 | |
94 | -<?php include(__DIR__ . '/../_partials/footer.php'); ?> |
|
95 | 94 | \ No newline at end of file |
95 | +<?php include(__DIR__.'/../_partials/footer.php'); ?> |
|
96 | 96 | \ No newline at end of file |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php include(__DIR__ . '/../_partials/header.php'); ?> |
|
1 | +<?php include(__DIR__.'/../_partials/header.php'); ?> |
|
2 | 2 | |
3 | 3 | <section class="stack-l navbar" id="navbar"> |
4 | 4 | <h1>Navigation</h1> |
@@ -131,4 +131,4 @@ discard block |
||
131 | 131 | |
132 | 132 | <pre class="row code-box" id="code-0"></pre> |
133 | 133 | |
134 | - <?php include(__DIR__ . '/../_partials/footer.php'); ?> |
|
134 | + <?php include(__DIR__.'/../_partials/footer.php'); ?> |