← Back
Editing: main.php
<?php /** * Admin Notifications template. * * Variables * * @var \Duplicator\Core\Views\TplMng $tplMng */ defined('ABSPATH') || exit; $notifications = $tplMng->getDataValueArrayRequired('notifications'); ?> <div id="dup-notifications"> <div class="dup-notifications-header"> <div class="dup-notifications-bell"> <img src="<?php echo esc_url(DUPLICATOR_PLUGIN_URL . 'assets/img/notification-bell.svg') ?>"/> <span class="wp-ui-notification dup-notifications-circle"></span> </div> <div class="dup-notifications-title"><?php esc_html_e('Notifications', 'duplicator'); ?></div> </div> <div class="dup-notifications-body"> <a class="dismiss" title="<?php esc_attr_e('Dismiss this message', 'duplicator'); ?>"><i class="fa fa-times-circle" aria-hidden="true"></i></a> <?php if (count($notifications) > 1) : ?> <div class="navigation"> <a class="prev"> <span class="screen-reader-text"><?php esc_attr_e('Previous message', 'duplicator'); ?></span> <span aria-hidden="true">‹</span> </a> <a class="next"> <span class="screen-reader-text"><?php esc_attr_e('Next message', 'duplicator'); ?></span> <span aria-hidden="true">›</span> </a> </div> <?php endif; ?> <div class="dup-notifications-messages"> <?php foreach ($notifications as $notification) { $tplMng->render('parts/Notifications/single-message', $notification); } ?> </div> </div> </div>
Save File
Cancel