|
29 | 29 |
|
30 | 30 | ?> |
31 | 31 |
|
32 | | -<div id="app-navigation" role="navigation"> |
33 | | - <ul tabindex="0"> |
34 | | - <?php if (!empty($_['forms']['admin'])) { ?> |
35 | | - <li class="app-navigation-caption"><?php p($l->t('Personal')); ?></li> |
36 | | - <?php |
37 | | - } |
38 | | - foreach ($_['forms']['personal'] as $form) { |
39 | | - if (isset($form['anchor'])) { |
40 | | - $anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.PersonalSettings.index', ['section' => $form['anchor']]); |
41 | | - $class = 'nav-icon-' . $form['anchor']; |
42 | | - $sectionName = $form['section-name']; ?> |
43 | | - <li <?php print_unescaped($form['active'] ? ' class="active"' : ''); ?> data-section-id="<?php print_unescaped($form['anchor']); ?>" data-section-type="personal"> |
44 | | - <a href="<?php p($anchor); ?>"<?php print_unescaped($form['active'] ? ' aria-current="page"' : ''); ?>> |
45 | | - <?php if (!empty($form['icon'])) { ?> |
46 | | - <img alt="" src="<?php print_unescaped($form['icon']); ?>"> |
47 | | - <span><?php p($form['section-name']); ?></span> |
48 | | - <?php } else { ?> |
49 | | - <span class="no-icon"><?php p($form['section-name']); ?></span> |
50 | | - <?php } ?> |
51 | | - </a> |
52 | | - </li> |
53 | | - <?php |
| 32 | +<div id="app-navigation"> |
| 33 | + <?php if (!empty($_['forms']['admin'])): ?> |
| 34 | + <div id="app-navigation-caption-personal" class="app-navigation-caption"><?php p($l->t('Personal')); ?></div> |
| 35 | + <?php endif; ?> |
| 36 | + <nav class="app-navigation-personal" aria-labelledby="app-navigation-caption-personal"> |
| 37 | + <ul tabindex="0"> |
| 38 | + <?php foreach ($_['forms']['personal'] as $form) { |
| 39 | + if (isset($form['anchor'])) { |
| 40 | + $anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.PersonalSettings.index', ['section' => $form['anchor']]); |
| 41 | + $class = 'nav-icon-' . $form['anchor']; |
| 42 | + $sectionName = $form['section-name']; ?> |
| 43 | + <li <?php print_unescaped($form['active'] ? ' class="active"' : ''); ?> data-section-id="<?php print_unescaped($form['anchor']); ?>" data-section-type="personal"> |
| 44 | + <a href="<?php p($anchor); ?>"<?php print_unescaped($form['active'] ? ' aria-current="page"' : ''); ?>> |
| 45 | + <?php if (!empty($form['icon'])) { ?> |
| 46 | + <img alt="" src="<?php print_unescaped($form['icon']); ?>"> |
| 47 | + <span><?php p($form['section-name']); ?></span> |
| 48 | + <?php } else { ?> |
| 49 | + <span class="no-icon"><?php p($form['section-name']); ?></span> |
| 50 | + <?php } ?> |
| 51 | + </a> |
| 52 | + </li> |
| 53 | + <?php |
| 54 | + } |
54 | 55 | } |
55 | | - } |
56 | | - ?> |
57 | | - |
58 | | - <?php |
59 | | - if (!empty($_['forms']['admin'])) { |
60 | 56 | ?> |
61 | | - <li class="app-navigation-caption"><?php p($l->t('Administration')); ?></li> |
62 | | - <?php |
63 | | - } |
64 | | - foreach ($_['forms']['admin'] as $form) { |
65 | | - if (isset($form['anchor'])) { |
66 | | - $anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => $form['anchor']]); |
67 | | - $class = 'nav-icon-' . $form['anchor']; |
68 | | - $sectionName = $form['section-name']; ?> |
69 | | - <li <?php print_unescaped($form['active'] ? ' class="active"' : ''); ?> data-section-id="<?php print_unescaped($form['anchor']); ?>" data-section-type="admin"> |
70 | | - <a href="<?php p($anchor); ?>"<?php print_unescaped($form['active'] ? ' aria-current="page"' : ''); ?>> |
71 | | - <?php if (!empty($form['icon'])) { ?> |
72 | | - <img alt="" src="<?php print_unescaped($form['icon']); ?>"> |
73 | | - <span><?php p($form['section-name']); ?></span> |
74 | | - <?php } else { ?> |
75 | | - <span class="no-icon"><?php p($form['section-name']); ?></span> |
76 | | - <?php } ?> |
77 | | - </a> |
78 | | - </li> |
79 | | - <?php |
| 57 | + </ul> |
| 58 | + </nav> |
| 59 | + |
| 60 | + <?php if (!empty($_['forms']['admin'])): ?> |
| 61 | + <div id="app-navigation-caption-administration" class="app-navigation-caption"><?php p($l->t('Administration')); ?></div> |
| 62 | + <?php endif; ?> |
| 63 | + <nav class="app-navigation-administration" aria-labelledby="app-navigation-caption-administration"> |
| 64 | + <ul tabindex="0"> |
| 65 | + <?php foreach ($_['forms']['admin'] as $form) { |
| 66 | + if (isset($form['anchor'])) { |
| 67 | + $anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => $form['anchor']]); |
| 68 | + $class = 'nav-icon-' . $form['anchor']; |
| 69 | + $sectionName = $form['section-name']; ?> |
| 70 | + <li <?php print_unescaped($form['active'] ? ' class="active"' : ''); ?> data-section-id="<?php print_unescaped($form['anchor']); ?>" data-section-type="admin"> |
| 71 | + <a href="<?php p($anchor); ?>"<?php print_unescaped($form['active'] ? ' aria-current="page"' : ''); ?>> |
| 72 | + <?php if (!empty($form['icon'])) { ?> |
| 73 | + <img alt="" src="<?php print_unescaped($form['icon']); ?>"> |
| 74 | + <span><?php p($form['section-name']); ?></span> |
| 75 | + <?php } else { ?> |
| 76 | + <span class="no-icon"><?php p($form['section-name']); ?></span> |
| 77 | + <?php } ?> |
| 78 | + </a> |
| 79 | + </li> |
| 80 | + <?php |
| 81 | + } |
80 | 82 | } |
81 | | - } |
82 | | - ?> |
83 | | - </ul> |
| 83 | + ?> |
| 84 | + </ul> |
| 85 | + </nav> |
84 | 86 | </div> |
85 | 87 | <div id="app-content" tabindex="0" data-active-section-id="<?php print_unescaped($_['activeSectionId']) ?>"> |
86 | 88 | <?php print_unescaped($_['content']); ?> |
|
0 commit comments