This repository was archived by the owner on May 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy pathindex.phtml
More file actions
60 lines (58 loc) · 3.13 KB
/
index.phtml
File metadata and controls
60 lines (58 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php $this->headTitle(sprintf('Browse %d modules for Zend Framework 2', $this->totalModules())); ?>
<?php $this->headLink()->appendStylesheet($this->basePath('css/jquery.livesearch.css')); ?>
<?php $this->inlineScript()->appendFile($this->basePath('js/jquery.livesearch.js')); ?>
<?php $this->inlineScript()->appendScript('$(\'#live-search input[name="query"]\').liveSearch({url: "' . $this->url('live-search', [], ['query' => ['query' => '']]) . '"});'); ?>
<?php $this->layout()->withLargeHeader = true; ?>
<div class="col-xs-12 col-md-8">
<div class="well well-sm">
<form id="live-search">
<div class="form-group">
<label>Search Modules</label>
<input type="text" name="query" class="form-control" placeholder="Type to start searching...">
</div>
</form>
</div>
<?php if (count($this->repositories) >= 1): ?>
<?php foreach ($this->repositories as $module): ?>
<?php /* @var ZfModule\Entity\Module $module */ ?>
<div class="module-row">
<div class="module-info">
<div class="row">
<div class="hidden-xs col-sm-2">
<img src="<?php echo $this->escapeHtmlAttr($module->getPhotoUrl()) ?>" alt="<?php echo $this->escapeHtmlAttr($module->getOwner()) ?>" class="thumbnail img-responsive">
</div>
<div class="col-xs-7 col-sm-6">
<p>
<a href="<?php echo $this->url('view-module', ['vendor' => $this->escapeUrl($module->getOwner()), 'module' => $this->escapeUrl($module->getName())]) ?>">
<strong><?php echo $this->escapeHtml($module->getIdentifier()); ?></strong>
</a>
</p>
<p><span class="zf-green">Created:</span> <?php echo $this->dateFormat($module->getCreatedAt(), IntlDateFormatter::SHORT, IntlDateFormatter::SHORT); ?></p>
</div>
<div class="col-xs-4">
<a target="_blank" href="<?php echo $this->escapeHtmlAttr($module->getUrl()) ?>">Show module on GitHub</a>
</div>
</div>
</div>
<div class="module-description">
<p><?php echo $this->escapeHtml($module->getDescription()) ?></p>
</div>
</div>
<?php endforeach; ?>
<?php echo $this->paginationControl($this->repositories, 'Sliding', 'application/index/pagination', ['query' => $this->query]) ?>
<?php endif; ?>
</div>
<div class="hidden-xs hidden-sm col-md-4">
<div class="sidebar">
<div class="block">
<h4><strong>Hosting by</strong></h4>
<hr>
<div class="row">
<div class="col-md-12">
<a target="_blank" href="https://roave.com"><img class="img-responsive" src="/img/roave-logo-tiny.svg"></a>
</div>
</div>
</div>
<?php #echo $this->newUsers(); ?>
</div>
</div>