123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <style>
- a.smr {font-size:0.8em;}
- </style>
- <div class="page-header">
- <h2><?= $title ?></h2>
- </div>
- <p style="margin-bottom:1em;">
- <i><span style="color:red;font-weight:bold;">*</span> <?= t('Indicates a template that has been modified from the core version.') ?></i>
- </p>
- <?php /* Display notices about missing/extra templates */ ?>
- <?php if (!empty($missing_templates)): ?>
- <div class="alert alert-info">
- <h4 style="margin-top:0;">Missing Templates</h4>
- <p>The following core notification templates are not available in your plugin. You can create them from the core version using the link below.</p>
- <ul style="list-style-type:disc;margin-left:20px;">
- <?php foreach ($missing_templates as $template): ?><li style="margin-bottom:5px;"><?= $template ?>.php <?= $this->url->link(t('Create from Core'), 'TemplateController', 'create', ['plugin' => 'OMITemplateModder', 'template_name' => $template], false, 'btn btn-blue btn-xs smr') ?></li>
- <?php endforeach ?>
- </ul>
- </div>
- <?php endif ?>
- <?php if (!empty($extra_templates)): ?>
- <div class="alert alert-warning">
- <h4 style="margin-top:0;">Extra Templates</h4>
- <p>The following templates exist in your plugin but not in the core application. They will be ignored during the override process.</p>
- <ul style="list-style-type:disc;margin-left:20px;">
-
- <?php foreach ($extra_templates as $template): ?><li><?= $template ?>.php</li>
- <?php endforeach ?>
-
- </ul>
- </div>
- <?php endif ?>
- <ul class="listing">
- <?php foreach ($templates as $index => $template): ?>
- <li>
- <?php
- $templateName = basename($template);
- $isModified = isset($modified_status[$templateName . '.php']);
- ?>
- <?= $this->url->link($template, 'TemplateController', 'edit', ['plugin' => 'OMITemplateModder', 'template_index' => $index]) ?><?php if ($isModified): ?><span style="color:red;font-weight:bold;">*</span><?php endif ?>
-
- </li>
- <?php endforeach ?>
- </ul>
- <p style="margin-top:2em;">
- <i>To add or remove templates, simply copy or delete the corresponding files from this plugin's Templates/notification directory.
- <br>They will automatically be registered for use.
- <br>Alternatively this plugin will show which templates are not listed and give you the option to add them [create from core].</i>
- </p>
|