@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * Creates a new resource |
75 | 75 | * |
76 | 76 | * @return string|null admin output to display or null for redirecting to the list |
77 | - */ |
|
77 | + */ |
|
78 | 78 | public function create() |
79 | 79 | { |
80 | 80 | return $this->client->create(); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * Deletes a resource |
86 | 86 | * |
87 | 87 | * @return string|null admin output to display or null for redirecting to the list |
88 | - */ |
|
88 | + */ |
|
89 | 89 | public function delete() |
90 | 90 | { |
91 | 91 | return $this->client->delete(); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * Returns a single resource |
97 | 97 | * |
98 | 98 | * @return string|null admin output to display or null for redirecting to the list |
99 | - */ |
|
99 | + */ |
|
100 | 100 | public function get() |
101 | 101 | { |
102 | 102 | return $this->client->get(); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * Saves the data |
108 | 108 | * |
109 | 109 | * @return string|null admin output to display or null for redirecting to the list |
110 | - */ |
|
110 | + */ |
|
111 | 111 | public function save() |
112 | 112 | { |
113 | 113 | return $this->client->save(); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * Returns a list of resource according to the conditions |
119 | 119 | * |
120 | 120 | * @return string admin output to display |
121 | - */ |
|
121 | + */ |
|
122 | 122 | public function search() |
123 | 123 | { |
124 | 124 | return $this->client->search(); |
@@ -161,7 +161,6 @@ |
||
161 | 161 | * |
162 | 162 | * You can add, remove or reorder the links in the navigation bar by |
163 | 163 | * setting a new list of client resource names. |
164 | - |
|
165 | 164 | * In the configuration files of extensions, you should only add entries using |
166 | 165 | * one of these lines: |
167 | 166 | * |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | |
285 | 285 | <?php foreach( $navitem as $subresource ) : ?> |
286 | 286 | <?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $subresource . '/groups', [] ) ) ) : ?> |
287 | - <li class="<?= str_replace( '/', '-', $subresource); ?>"> |
|
287 | + <li class="<?= str_replace( '/', '-', $subresource ); ?>"> |
|
288 | 288 | <a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, ['resource' => $subresource] + $params, [], $config ) ); ?>"> |
289 | 289 | <span class="name"><?= $enc->html( $this->translate( 'admin', $subresource ) ); ?></span> |
290 | 290 | </a> |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | |
333 | 333 | <?php foreach( $navitem as $subresource ) : ?> |
334 | 334 | <?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $subresource . '/groups', [] ) ) ) : ?> |
335 | - <li class="<?= str_replace( '/', '-', $subresource); ?>"> |
|
335 | + <li class="<?= str_replace( '/', '-', $subresource ); ?>"> |
|
336 | 336 | <a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, ['resource' => $subresource] + $params, [], $config ) ); ?>"> |
337 | 337 | <span class="name"><?= $enc->html( $this->translate( 'admin', $subresource ) ); ?></span> |
338 | 338 | </a> |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
59 | 59 | <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
60 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
60 | + <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
61 | 61 | <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
62 | 62 | </a> |
63 | 63 | </li> |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | <th class="actions"> |
110 | 110 | <a class="btn fa act-add" tabindex="1" |
111 | 111 | href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>" |
112 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
112 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
113 | 113 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>"> |
114 | 114 | </a> |
115 | 115 | |
@@ -171,11 +171,11 @@ discard block |
||
171 | 171 | <td class="actions"> |
172 | 172 | <a class="btn act-copy fa" tabindex="1" |
173 | 173 | href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>" |
174 | - title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>" |
|
174 | + title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry' ) ); ?>" |
|
175 | 175 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a> |
176 | 176 | <a class="btn act-delete fa" tabindex="1" |
177 | 177 | href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>" |
178 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
178 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
179 | 179 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a> |
180 | 180 | </td> |
181 | 181 | </tr> |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
54 | 54 | <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
55 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
55 | + <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
56 | 56 | <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
57 | 57 | </a> |
58 | 58 | </li> |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | </th> |
145 | 145 | <th class="actions"> |
146 | 146 | <div class="btn act-add fa" tabindex="1" |
147 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"> |
|
147 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"> |
|
148 | 148 | </div> |
149 | 149 | </th> |
150 | 150 | </tr> |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | </td> |
166 | 166 | <td class="actions"> |
167 | 167 | <div class="btn act-delete fa" tabindex="1" |
168 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"> |
|
168 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"> |
|
169 | 169 | </div> |
170 | 170 | </td> |
171 | 171 | </tr> |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | </td> |
183 | 183 | <td class="actions"> |
184 | 184 | <div class="btn act-delete fa" tabindex="1" |
185 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"> |
|
185 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"> |
|
186 | 186 | </div> |
187 | 187 | </td> |
188 | 188 | </tr> |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | <?php if( $this->access( 'super' ) ) : ?> |
112 | 112 | <a class="btn fa act-add" tabindex="1" |
113 | 113 | href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>" |
114 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
114 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
115 | 115 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>"> |
116 | 116 | </a> |
117 | 117 | <?php endif; ?> |
@@ -187,11 +187,11 @@ discard block |
||
187 | 187 | <?php if( $this->access( 'super' ) ) : ?> |
188 | 188 | <a class="btn act-copy fa" tabindex="1" |
189 | 189 | href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>" |
190 | - title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>" |
|
190 | + title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry' ) ); ?>" |
|
191 | 191 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a> |
192 | 192 | <a class="btn act-delete fa" tabindex="1" |
193 | 193 | href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>" |
194 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
194 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
195 | 195 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a> |
196 | 196 | <?php endif; ?> |
197 | 197 | </td> |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | <th class="actions"> |
112 | 112 | <a class="btn fa act-add" tabindex="1" |
113 | 113 | href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>" |
114 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
114 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
115 | 115 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>"> |
116 | 116 | </a> |
117 | 117 | |
@@ -177,12 +177,12 @@ discard block |
||
177 | 177 | <td class="actions"> |
178 | 178 | <a class="btn act-copy fa" tabindex="1" |
179 | 179 | href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>" |
180 | - title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>" |
|
180 | + title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry' ) ); ?>" |
|
181 | 181 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a> |
182 | 182 | <?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?> |
183 | 183 | <a class="btn act-delete fa" tabindex="1" |
184 | 184 | href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['resource' => 'locale', 'id' => $id] + $params, [], $delConfig ) ); ?>" |
185 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
185 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
186 | 186 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a> |
187 | 187 | <?php endif; ?> |
188 | 188 | </td> |
@@ -84,7 +84,7 @@ |
||
84 | 84 | ); |
85 | 85 | ?> |
86 | 86 | <button type="submit" class="btn act-search fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
87 | - title="<?= $enc->attr( $this->translate( 'admin', 'Search') ); ?>" |
|
87 | + title="<?= $enc->attr( $this->translate( 'admin', 'Search' ) ); ?>" |
|
88 | 88 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Search' ) ); ?>"> |
89 | 89 | </button> |
90 | 90 | </th> |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | <th class="actions"> |
109 | 109 | <a class="btn fa act-add" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>" |
110 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
110 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
111 | 111 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>"> |
112 | 112 | </a> |
113 | 113 | |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | </td> |
245 | 245 | <td class="actions"> |
246 | 246 | <a class="btn fa act-close" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>" |
247 | - title="<?= $enc->attr( $this->translate( 'admin', 'Close') ); ?>" |
|
247 | + title="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>" |
|
248 | 248 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>"> |
249 | 249 | </a> |
250 | 250 | </td> |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | <td class="actions"> |
346 | 346 | <?php if( !$this->site()->readonly( $siteId ) ) : ?> |
347 | 347 | <a class="btn act-edit fa" tabindex="<?= $this->get( 'tabindex' ); ?>" href="#" |
348 | - title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry') ); ?>" |
|
348 | + title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry' ) ); ?>" |
|
349 | 349 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Edit' ) ); ?>"></a> |
350 | 350 | <?php endif; ?> |
351 | 351 | </td> |