-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Used the view plugin "translate" as function in views.
- Loading branch information
Showing
6 changed files
with
75 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
<?php | ||
$translate = $this->plugin('translate'); | ||
$this->htmlElement('body')->appendAttribute('class', 'users search'); | ||
?> | ||
<?php echo $this->pageTitle($this->translate('Advanced search'), 1, $this->translate('Users')); ?> | ||
<?php echo $this->pageTitle($translate('Advanced search'), 1, $translate('Users')); ?> | ||
<form id="advanced-search" method="get" action="<?php echo $this->escapeHtml($this->url(null, ['action' => 'browse'], true)); ?>"> | ||
<?php echo $this->partial( | ||
'common/advanced-search-users', | ||
['query' => $this->params()->fromQuery(), 'resourceType' => 'user'] | ||
); ?> | ||
<div id="page-actions"> | ||
<input type="submit" name="submit" value="<?php echo $this->escapeHtml($this->translate('Search')); ?>"> | ||
<input type="submit" name="submit" value="<?php echo $this->escapeHtml($translate('Search')); ?>"> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
<?php | ||
$translate = $this->plugin('translate'); | ||
?> | ||
<h3> | ||
<a href="<?php echo $this->escapeHtml($resource->url()); ?>"><?php echo $this->escapeHtml($resource->name()); ?></a> | ||
<?php if (!$resource->isActive()): ?> | ||
<span class="user-inactive"><?php echo $this->translate('(inactive)'); ?></span> | ||
<span class="user-inactive"><?php echo $translate('(inactive)'); ?></span> | ||
<?php endif; ?> | ||
</h3> | ||
|
||
<div class="meta-group"> | ||
<h4><?php echo $this->translate('Items'); ?></h4> | ||
<h4><?php echo $translate('Items'); ?></h4> | ||
<div class="value"><?php echo $this->hyperlink($resource->itemCount(), $this->url('admin/default', ['controller' => 'item', 'action' => 'browse'], ['query' => ['owner_id' => $resource->id()]])); ?></div> | ||
</div> | ||
|
||
<div class="meta-group"> | ||
<h4><?php echo $this->translate('Item sets'); ?></h4> | ||
<h4><?php echo $translate('Item sets'); ?></h4> | ||
<div class="value"><?php echo $this->hyperlink($resource->itemSetCount(), $this->url('admin/default', ['controller' => 'item-set', 'action' => 'browse'], ['query' => ['owner_id' => $resource->id()]])); ?></div> | ||
</div> | ||
<?php $this->trigger('view.details', array('entity' => $resource)); ?> |
Oops, something went wrong.