@@ -27,9 +27,12 @@ |
||
| 27 | 27 | </p> |
| 28 | 28 | <?php endif; ?> |
| 29 | 29 | </li> |
| 30 | - <?php else: ?> |
|
| 30 | + <?php else { |
|
| 31 | + : ?> |
|
| 31 | 32 | <li class="msg-ok"> |
| 32 | - <strong><?php echo $err['description']; ?></strong> |
|
| 33 | + <strong><?php echo $err['description']; |
|
| 34 | +} |
|
| 35 | +?></strong> |
|
| 33 | 36 | <?php if ($err['hint']): ?> |
| 34 | 37 | <i class="material-icons <?php echo $icons->getIconInfo()->getClass(); ?>"><?php echo $icons->getIconInfo()->getIcon(); ?></i> |
| 35 | 38 | <p class="hint"> |
@@ -7,9 +7,12 @@ discard block |
||
| 7 | 7 | <i id="user-type-footer" class="material-icons"><?php echo $context_userType->getIcon(); ?></i> |
| 8 | 8 | <span for="user-type-footer" |
| 9 | 9 | class="mdl-tooltip mdl-tooltip--top"><?php echo $context_userType->getTitle(); ?></span> |
| 10 | - <?php else: ?> |
|
| 10 | + <?php else { |
|
| 11 | + : ?> |
|
| 11 | 12 | <i class="material-icons">face</i> |
| 12 | - <?php endif; ?> |
|
| 13 | + <?php endif; |
|
| 14 | +} |
|
| 15 | +?> |
|
| 13 | 16 | <span id="user-name-footer"><?php echo $context_userName; ?></span> |
| 14 | 17 | <span for="user-name-footer" |
| 15 | 18 | class="mdl-tooltip mdl-tooltip--top"><?php printf('%s : %s', __('Grupo'), $context_userGroup); ?></span> |
@@ -26,12 +29,15 @@ discard block |
||
| 26 | 29 | </span> |
| 27 | 30 | <span for="secure-info" |
| 28 | 31 | class="mdl-tooltip mdl-tooltip--top"><?php echo 'HTTPS'; ?></span> |
| 29 | - <?php else: ?> |
|
| 32 | + <?php else { |
|
| 33 | + : ?> |
|
| 30 | 34 | <span id="secure-info" class="status-info"> |
| 31 | 35 | <i class="material-icons mdl-color-text--red-900">http</i> |
| 32 | 36 | </span> |
| 33 | 37 | <span for="secure-info" |
| 34 | - class="mdl-tooltip mdl-tooltip--top mdl-tooltip--large"><?php echo __('Indica si la conexión utiliza HTTPS.') . '<br><br>' . __('Las claves de formularios enviados se encriptan mediante PKI, el resto de datos no.'); ?></span> |
|
| 38 | + class="mdl-tooltip mdl-tooltip--top mdl-tooltip--large"><?php echo __('Indica si la conexión utiliza HTTPS.') . '<br><br>' . __('Las claves de formularios enviados se encriptan mediante PKI, el resto de datos no.'); |
|
| 39 | +} |
|
| 40 | +?></span> |
|
| 35 | 41 | <?php endif; ?> |
| 36 | 42 | |
| 37 | 43 | <?php if (DEBUG): ?> |
@@ -9,10 +9,13 @@ |
||
| 9 | 9 | <div id="res-content"> |
| 10 | 10 | <?php if ($data->getData()->getDataCount() === 0): ?> |
| 11 | 11 | <div class="noRes round"><?php echo __('No se encontraron registros'); ?></div> |
| 12 | - <?php else: ?> |
|
| 12 | + <?php else { |
|
| 13 | + : ?> |
|
| 13 | 14 | <!-- Data Header--> |
| 14 | 15 | <div id="search-header"> |
| 15 | - <?php include $data->getDataHeaderTemplate(); ?> |
|
| 16 | + <?php include $data->getDataHeaderTemplate(); |
|
| 17 | +} |
|
| 18 | +?> |
|
| 16 | 19 | </div> |
| 17 | 20 | |
| 18 | 21 | <?php if (\SP\Services\Account\AccountSearchItem::$topNavbar): ?> |
@@ -29,9 +29,12 @@ discard block |
||
| 29 | 29 | title="<?php echo $accountSearchData->getClientName(); ?>"><?php echo $accountSearchItem->getShortClientName(); ?></span> |
| 30 | 30 | </span> |
| 31 | 31 | </a> |
| 32 | - <?php else: ?> |
|
| 32 | + <?php else { |
|
| 33 | + : ?> |
|
| 33 | 34 | <span class="mdl-chip mdl-chip--contact"> |
| 34 | - <span style="background-color: <?php echo $accountSearchItem->getColor(); ?>;" |
|
| 35 | + <span style="background-color: <?php echo $accountSearchItem->getColor(); |
|
| 36 | +} |
|
| 37 | +?>;" |
|
| 35 | 38 | class="mdl-chip__contact mdl-color-text--white"><?php echo mb_ucfirst($accountSearchData->getClientName()); ?></span> |
| 36 | 39 | <span class="mdl-chip__text" |
| 37 | 40 | title="<?php echo $accountSearchData->getClientName(); ?>"><?php echo $accountSearchItem->getShortClientName(); ?></span> |
@@ -46,9 +49,12 @@ discard block |
||
| 46 | 49 | data-action-route="<?php echo $viewAccountRoute; ?>" |
| 47 | 50 | data-item-id="<?php echo $accountSearchData->getId(); ?>" |
| 48 | 51 | data-onclick="account/view"><?php echo $accountSearchData->getName(); ?></a> |
| 49 | - <?php else: ?> |
|
| 52 | + <?php else { |
|
| 53 | + : ?> |
|
| 50 | 54 | <div class="field-text"> |
| 51 | - <?php echo $accountSearchData->getName(); ?> |
|
| 55 | + <?php echo $accountSearchData->getName(); |
|
| 56 | +} |
|
| 57 | +?> |
|
| 52 | 58 | </div> |
| 53 | 59 | <?php endif; ?> |
| 54 | 60 | </div> |
@@ -69,14 +75,20 @@ discard block |
||
| 69 | 75 | <?php if ($accountSearchItem->isUrlIslink()): ?> |
| 70 | 76 | <a href="<?php echo $accountSearchData->getUrl(); ?>" target="_blank" |
| 71 | 77 | title="<?php printf(__('Abrir enlace a: %s'), $accountSearchData->getUrl()); ?>"><?php echo $accountSearchItem->getShortUrl(); ?></a> |
| 72 | - <?php else: ?> |
|
| 73 | - <div class="field-text"><?php echo $accountSearchItem->getShortUrl(); ?></div> |
|
| 78 | + <?php else { |
|
| 79 | + : ?> |
|
| 80 | + <div class="field-text"><?php echo $accountSearchItem->getShortUrl(); |
|
| 81 | +} |
|
| 82 | +?></div> |
|
| 74 | 83 | <?php endif; ?> |
| 75 | 84 | </div> |
| 76 | - <?php else: ?> |
|
| 85 | + <?php else { |
|
| 86 | + : ?> |
|
| 77 | 87 | <div class="field-user field-text label-field"></div> |
| 78 | 88 | <div class="field-url field-text label-field"></div> |
| 79 | - <?php endif; ?> |
|
| 89 | + <?php endif; |
|
| 90 | +} |
|
| 91 | +?> |
|
| 80 | 92 | </div> |
| 81 | 93 | <div class="label-row-down"> |
| 82 | 94 | <div class="tags-box"> |
@@ -110,8 +122,11 @@ discard block |
||
| 110 | 122 | <span |
| 111 | 123 | for="icon-private-<?php echo $accountSearchData->getId(); ?>" |
| 112 | 124 | class="mdl-tooltip mdl-tooltip--top"><?php echo __('Cuenta Privada (Grupo)'); ?></span> |
| 113 | - <?php else: ?> |
|
| 114 | - <i id="accesses-<?php echo $accountSearchData->getId(); ?>" |
|
| 125 | + <?php else { |
|
| 126 | + : ?> |
|
| 127 | + <i id="accesses-<?php echo $accountSearchData->getId(); |
|
| 128 | +} |
|
| 129 | +?>" |
|
| 115 | 130 | class="material-icons">face</i> |
| 116 | 131 | |
| 117 | 132 | <div class="mdl-tooltip mdl-tooltip--top" |
@@ -135,8 +150,11 @@ discard block |
||
| 135 | 150 | <span |
| 136 | 151 | for="btn-favorite-<?php echo $accountSearchData->getId(); ?>" |
| 137 | 152 | class="mdl-tooltip mdl-tooltip--top"><?php echo __('Eliminar Favorito'); ?></span> |
| 138 | - <?php else: ?> |
|
| 139 | - <i id="btn-favorite-<?php echo $accountSearchData->getId(); ?>" |
|
| 153 | + <?php else { |
|
| 154 | + : ?> |
|
| 155 | + <i id="btn-favorite-<?php echo $accountSearchData->getId(); |
|
| 156 | +} |
|
| 157 | +?>" |
|
| 140 | 158 | class="material-icons icon-favorite" |
| 141 | 159 | data-action-route-on="<?php echo $favoriteRouteOn; ?>" |
| 142 | 160 | data-action-route-off="<?php echo $favoriteRouteOff; ?>" |
@@ -200,8 +218,11 @@ discard block |
||
| 200 | 218 | data-action-id="<?php echo \SP\Core\Acl\ActionsInterface::WIKI_VIEW; ?>" |
| 201 | 219 | data-pagename="<?php echo $accountSearchData->getName(); ?>" |
| 202 | 220 | data-onclick="wiki/show">library_books</i> |
| 203 | - <?php else: ?> |
|
| 204 | - <a href="<?php echo $wikiPageUrl, $accountSearchData->getName(); ?>" |
|
| 221 | + <?php else { |
|
| 222 | + : ?> |
|
| 223 | + <a href="<?php echo $wikiPageUrl, $accountSearchData->getName(); |
|
| 224 | +} |
|
| 225 | +?>" |
|
| 205 | 226 | target="_blank"> |
| 206 | 227 | <i class="material-icons" |
| 207 | 228 | title="<?php echo __('Enlace a Wiki'); ?>">library_books</i> |
@@ -5,8 +5,11 @@ discard block |
||
| 5 | 5 | <div id="box-popup" class="box-password-view"> |
| 6 | 6 | <?php if (!$isLinked): ?> |
| 7 | 7 | <h2 class="center"><?php echo $header; ?></h2> |
| 8 | - <?php else: ?> |
|
| 9 | - <h2 class="center"><?php echo $header; ?> <i title="<?php echo __('Cuenta Vinculada'); ?>" |
|
| 8 | + <?php else { |
|
| 9 | + : ?> |
|
| 10 | + <h2 class="center"><?php echo $header; |
|
| 11 | +} |
|
| 12 | +?> <i title="<?php echo __('Cuenta Vinculada'); ?>" |
|
| 10 | 13 | class="material-icons"><?php echo $icons->getIconPublicLink()->getIcon(); ?></i> |
| 11 | 14 | </h2> |
| 12 | 15 | <?php endif; ?> |
@@ -32,9 +35,12 @@ discard block |
||
| 32 | 35 | <i class="material-icons"><?php echo $icons->getIconClipboard()->getIcon(); ?></i> |
| 33 | 36 | </button> |
| 34 | 37 | </td> |
| 35 | - <?php else: ?> |
|
| 38 | + <?php else { |
|
| 39 | + : ?> |
|
| 36 | 40 | <td class="dialog-pass-text"> |
| 37 | - <img src="data:image/png;base64,<?php echo $pass; ?>"/> |
|
| 41 | + <img src="data:image/png;base64,<?php echo $pass; |
|
| 42 | +} |
|
| 43 | +?>"/> |
|
| 38 | 44 | </td> |
| 39 | 45 | <td> </td> |
| 40 | 46 | <?php endif; ?> |
@@ -85,11 +85,14 @@ |
||
| 85 | 85 | <div class="lowres-title"><?php echo __('Clave'); ?></div> |
| 86 | 86 | |
| 87 | 87 | <img class="account-pass-image" src="data:image/png;base64,<?php echo $accountPassImage; ?>"/> |
| 88 | - <?php else: ?> |
|
| 88 | + <?php else { |
|
| 89 | + : ?> |
|
| 89 | 90 | <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label"> |
| 90 | 91 | <input id="password" name="password" type="text" |
| 91 | 92 | class="mdl-textfield__input mdl-color-text--indigo-400" |
| 92 | - value="<?php echo $accountData->getPass(); ?>" readonly> |
|
| 93 | + value="<?php echo $accountData->getPass(); |
|
| 94 | +} |
|
| 95 | +?>" readonly> |
|
| 93 | 96 | <label class="mdl-textfield__label" for="password"><?php echo __('Clave'); ?></label> |
| 94 | 97 | </div> |
| 95 | 98 | <?php endif; ?> |
@@ -213,11 +213,14 @@ |
||
| 213 | 213 | <option value="<?php echo $tag->getId(); ?>" <?php echo $tag->isSelected() ? 'selected' : ''; ?>><?php echo $tag->getName(); ?></option> |
| 214 | 214 | <?php endforeach; ?> |
| 215 | 215 | </select> |
| 216 | - <?php else: ?> |
|
| 216 | + <?php else { |
|
| 217 | + : ?> |
|
| 217 | 218 | <?php /** @var \SP\Mvc\View\Components\SelectItem[] $tags */ |
| 218 | 219 | foreach ($tags as $tag): ?> |
| 219 | 220 | <?php if ($tag->isSelected()): ?> |
| 220 | - <span class="tag"><?php echo $tag->getName(); ?></span> |
|
| 221 | + <span class="tag"><?php echo $tag->getName(); |
|
| 222 | +} |
|
| 223 | +?></span> |
|
| 221 | 224 | <?php endif; ?> |
| 222 | 225 | <?php endforeach; ?> |
| 223 | 226 | <?php endif; ?> |
@@ -278,7 +278,7 @@ |
||
| 278 | 278 | } |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | - $this->checkLoggedInSession($this->session, $this->request, function ($redirect) { |
|
| 281 | + $this->checkLoggedInSession($this->session, $this->request, function($redirect) { |
|
| 282 | 282 | $this->router->response() |
| 283 | 283 | ->redirect($redirect) |
| 284 | 284 | ->send(true); |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | */ |
| 128 | 128 | protected function checks() |
| 129 | 129 | { |
| 130 | - $this->checkLoggedInSession($this->session, $this->request, function ($redirect) { |
|
| 130 | + $this->checkLoggedInSession($this->session, $this->request, function($redirect) { |
|
| 131 | 131 | $this->router->response() |
| 132 | 132 | ->redirect($redirect) |
| 133 | 133 | ->send(true); |