add global flash-message
This commit is contained in:
@@ -2,6 +2,18 @@
|
||||
<div class="text-center text-3xl font-bold mb-8 mt-2">
|
||||
<?= phpb_e($tabs[$activeSlug]['title']) ?>
|
||||
</div>
|
||||
<?php
|
||||
if (phpb_flash('message')):
|
||||
?>
|
||||
<div class="hidden alert-success alert-error"></div>
|
||||
<div class="alert alert-<?= phpb_flash('message-type') ?> mb-6">
|
||||
<?= phpb_flash('message-type') === 'success' ? '<i class="text-xl ph-duotone ph-info"></i>' : '' ?>
|
||||
<?= phpb_flash('message-type') === 'error' ? '<i class="text-xl ph-duotone ph-warning-circle"></i>' : '' ?>
|
||||
<span><?= phpb_flash('message') ?></span>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
<div class="">
|
||||
<?php
|
||||
include $tabs[$activeSlug]['include'];
|
||||
|
||||
@@ -11,18 +11,6 @@ $pages = $pageRepository->getAll();
|
||||
|
||||
<div class="main-spacing" >
|
||||
|
||||
<?php
|
||||
if (phpb_flash('message')):
|
||||
?>
|
||||
<div class="hidden alert-success"></div>
|
||||
<div class="alert alert-<?= phpb_flash('message-type') ?> mb-6">
|
||||
<i class="text-xl ph-duotone ph-info"></i>
|
||||
<span><?= phpb_flash('message') ?></span>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div x-data="{menus: <?= phpb_e($menusJson) ?>, pages: <?= phpb_e($menuPagesJson) ?>}" class="flex flex-col gap-12">
|
||||
<template x-for="menu in menus">
|
||||
<div class="">
|
||||
|
||||
@@ -1,15 +1,3 @@
|
||||
|
||||
<?php
|
||||
if (phpb_flash('message')):
|
||||
?>
|
||||
<div class="alert alert-<?= phpb_flash('message-type') ?> mb-6">
|
||||
<i class="text-xl ph-duotone ph-info"></i>
|
||||
<span><?= phpb_flash('message') ?></span>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
|
||||
<table class="table table-zebra w-full">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -7,18 +7,6 @@ $settingIns = phpb_instance('setting');
|
||||
|
||||
<form method="post" action="<?= phpb_url('website_manager', ['route' => 'settings', 'action' => 'update', 'tab' => 'settings']) ?>">
|
||||
|
||||
<div class="max-w-lg mx-auto text-center">
|
||||
<?php
|
||||
if (phpb_flash('message')):
|
||||
?>
|
||||
<div class="alert alert-<?= phpb_flash('message-type') ?> mb-6">
|
||||
<i class="text-xl ph-duotone ph-info"></i>
|
||||
<span><?= phpb_flash('message') ?></span>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div class="w-full mb-6">
|
||||
<div class="label-text text-left"><?= phpb_trans('website-manager.website-languages') ?></div>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user