1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <div class="page-header">
- <h2><?= $title ?></h2>
- </div>
- <p style="margin-bottom:1em;">
- <span style="color:red;font-weight:bold;">*</span><i>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;"><?= t("Missing Templates") ?></h4>
- <p><?= t('The following core notification templates are not available in your plugin. To use them, copy the files from "%s" to "%s".', 'app/Template/notification/', 'plugins/OMITemplateModder/Template/notification/') ?></p>
- <ul style="list-style-type: disc; margin-left: 20px;">
- <?php foreach ($missing_templates as $template): ?><li><?= $template ?>.php</li><?php endforeach ?>
- </ul>
- </div>
- <?php endif ?>
- <?php if (!empty($extra_templates)): ?>
- <div class="alert alert-warning">
- <h4 style="margin-top: 0;"><?= t("Extra Templates") ?></h4>
- <p><?= t('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. They will automatically be registered for use.</i>
- </p>
|