plugins.tpl 3.93 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
{include file='header.tpl'}
Naomi Guyer's avatar
Naomi Guyer committed
2
3
4
5
6
7
8
9
10
11
12
<p class="lead">{str tag='pluginexplainaddremove'} {str tag='pluginexplainartefactblocktypes'}</p>

<div class="panel-items js-masonry" data-masonry-options='{ "itemSelector": ".panel" }'>
{foreach from=$plugins key='plugintype' item='plugins'}
    <div class="panel panel-default">
        <h2 class="panel-heading">{str tag='plugintype'}: {$plugintype}</h2>
        {assign var="installed" value=$plugins.installed}
        {assign var="notinstalled" value=$plugins.notinstalled}

        {if $notinstalled}
            <ul class="notinstalled list-group" id="{$plugintype}.notinstalled">
13
                <li class="list-group-item list-group-item-heading mb0 list-group-item-warning">
Naomi Guyer's avatar
Naomi Guyer committed
14
15
16
17
18
19
20
21
22
23
24
                    <h3 class="list-group-item-heading h4">{str tag='notinstalledplugins'}</h3>
                </li>

                {foreach from=$notinstalled key='plugin' item='data'}
                    <li class="list-group-item list-group-item-danger" id="{$plugintype}.{$plugin}">{$plugin}
                        {if $data.notinstallable}
                            {str tag='notinstallable'}: {$data.notinstallable}
                        {else}
                            <span id="{$plugintype}.{$plugin}.install">(<a href="" onClick="{$installlink}('{$plugintype}.{$plugin}'); return false;">{str tag='install' section='admin'} <span class="accessible-hidden sr-only">{$plugintype} {$plugin}</span></a>)</span>
                        {/if}
                        <span id="{$plugintype}.{$plugin}.message"></span>
25
                    </li>
Naomi Guyer's avatar
Naomi Guyer committed
26
27
28
                {/foreach}
            </ul>
        {/if}
Naomi Guyer's avatar
Naomi Guyer committed
29

30

Naomi Guyer's avatar
Naomi Guyer committed
31
32
33
34
35
36
37
38
        <ul class="list-group" id="{$plugintype}.installed">
            <li class="list-group-item list-group-item-heading mb0">
                <h3 class="list-group-item-heading h4">{str tag='installedplugins'}</h3>
            </li>
            {foreach from=$installed key='plugin' item='data'}
                <li class="list-group-item{if !$data.active} list-group-item-warning{/if}" id="{$plugintype}.{$plugin}">
                    <div class="list-group-item-heading">
                        {$plugin}
39
                        <div class="btn-group btn-group-top">
Naomi Guyer's avatar
Naomi Guyer committed
40
                        {if $data.config}
41
                            <a class="btn btn-default pull-left" title="{str tag='configfor'} {$plugintype} {$plugin}" href="pluginconfig.php?plugintype={$plugintype}&amp;pluginname={$plugin}">
Naomi Guyer's avatar
Naomi Guyer committed
42
43
44
45
                                 <span class="icon icon-cog icon-lg"></span>
                                 <span class="accessible-hidden sr-only ">{str tag='configfor'} {$plugintype} {$plugin}</span>
                            </a>
                        {/if}
46
47
                        {if $data.activateform}
                            {$data.activateform|safe}
Naomi Guyer's avatar
Naomi Guyer committed
48
                        {/if}
49
                        </div>
Naomi Guyer's avatar
Naomi Guyer committed
50
                    </div>
51

Naomi Guyer's avatar
Naomi Guyer committed
52
                    {if $data.types}
53

Naomi Guyer's avatar
Naomi Guyer committed
54
55
                        <ul>
                        {foreach from=$data.types key='type' item='config'}
56
                            <li>
Naomi Guyer's avatar
Naomi Guyer committed
57
                            {$type}
58
59
60
61
                            {if $config}
                            <!-- <div class="btn-group btn-group-top"> -->
                                <a class="btn btn-default btn-xs btn-group" title="{str tag='configfor'} {$plugintype} {$plugin}" href="pluginconfig.php?plugintype={$plugintype}&amp;pluginname={$plugin}&amp;type={$type}">
                                    <span class="icon icon-cog icon-lg"></span>
Naomi Guyer's avatar
Naomi Guyer committed
62
                                    <span class="accessible-hidden sr-only">{str tag='configfor'} {$plugintype} {$plugin}</span>
63
64
                                </a>
                            <!-- </div> -->
65
                            {/if}
Naomi Guyer's avatar
Naomi Guyer committed
66
                            </li>
67
68
                        {/foreach}
                        </ul>
Naomi Guyer's avatar
Naomi Guyer committed
69
70
71
72

                    {/if}
                </li>
            {/foreach}
73
74
        </ul>
    </div>
Naomi Guyer's avatar
Naomi Guyer committed
75
{/foreach}
Naomi Guyer's avatar
Naomi Guyer committed
76
</div>
Naomi Guyer's avatar
Naomi Guyer committed
77
78


Naomi Guyer's avatar
Naomi Guyer committed
79
{include file='footer.tpl'}