blob: 93d3ad9cb68e874defd2aaa338fdabb8f8fa6e00 (
plain)
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
|
<? if ($plugin->getDescriptionMode() === 'replace_all') : ?>
<?= formatReady($plugin->getPluginDescription()) ?>
<? else : ?>
<div class="contentmodule_info">
<div class="main_part">
<div class="header">
<div class="image">
<? if ($metadata['icon']): ?>
<?= $metadata['icon']->copyWithRole(Icon::ROLE_INFO)->asImg(100) ?>
<? endif; ?>
</div>
<div class="text">
<h1><?= htmlReady($metadata['displayname'] ?? $plugin->getPluginName()) ?></h1>
<? if (!empty($metadata['summary'])): ?>
<strong>
<?= htmlReady($metadata['summary']) ?>
</strong>
<? endif; ?>
</div>
</div>
<div class="content-modules-controls-vue-app" is="ContentModulesControl" module_id="<?= htmlReady($plugin->getPluginId()) ?>"></div>
<? $keywords = preg_split( "/;/", $metadata['keywords'] ?? '', -1, PREG_SPLIT_NO_EMPTY) ?>
<? if (count($keywords) > 0) : ?>
<ul class="keywords">
<? foreach ($keywords as $keyword) : ?>
<li>
<?= htmlReady($keyword) ?>
</li>
<? endforeach ?>
</ul>
<? endif ?>
<div class="description">
<?= formatReady($plugin->getPluginDescription()) ?>
</div>
</div>
<? if (isset($screenshots) && count($screenshots)) : ?>
<ul class="screenshots clean">
<? foreach ($screenshots as $screenshot) : ?>
<li>
<a href="<?= htmlReady($screenshot['source']) ?>"
data-lightbox="<?= htmlReady($metadata['displayname'] ?? $plugin->getPluginName()) ?>"
data-title="<?= htmlReady($screenshot['title']) ?>">
<img src="<?= htmlReady($screenshot['source']) ?>" alt="">
<?= htmlReady($screenshot['title']) ?>
</a>
</li>
<? endforeach ?>
</ul>
<? endif ?>
</div>
<? endif ?>
|