many updates 😁

This commit is contained in:
Paul Spenke
2023-07-02 21:30:29 +08:00
parent 788a6b323c
commit a529852fd8
29 changed files with 353 additions and 204 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ return [
|
*/
'general' => [
'base_url' => 'http://localhost:63000',
// 'base_url' => 'http://localhost:63000',
'base_url' => 'https://pagebuilder.dev.onlineer.de',
'language' => 'de',
'assets_url' => '/plugi-core/dist',
'uploads_url' => '/uploads'
-31
View File
@@ -1,31 +0,0 @@
{
"name": "deepDiverPaul/plugi-core",
"description": "A drag and drop pagebuilder to manage pages in any PHP project.",
"keywords": [
"pagebuilder"
],
"homepage": "https://github.com/deepDiverPaul/plugi-core",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Paul Spenke",
"email": "info@onlineer.de"
},
{
"name": "Hans Schouten",
"email": "hans@falcosolutions.nl"
}
],
"require": {
"php": ">=8.2"
},
"autoload": {
"psr-4": {
"Plugi\\": "src/"
},
"files": [
"src/Core/helpers.php"
]
}
}
+1 -1
View File
@@ -437,7 +437,7 @@ window.switchLanguage = function(t, e) {
language: t
},
success: function(n) {
n = JSON.parse(n), window.pageBlocks[t] = n.dynamicBlocks ? n.dynamicBlocks : {}, e();
n = JSON.parse(n), window.pageBlocks[t] = n.dynamicBlocks ? n.dynamicBlocks : {}, e(), window.setWaiting(!1);
},
error: function(n) {
e(), console.log(n);
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+29
View File
@@ -297,6 +297,9 @@ if (! function_exists('phpb_current_language')) {
return $languageCode;
}
}
if ('/'.explode('?', $urlComponents[0])[0] === phpb_config('website_manager.url')) {
return phpb_config('general.language');
}
}
$languageCode = phpb_config('general.language');
if (in_array($languageCode, array_keys(phpb_active_languages()))) {
@@ -324,6 +327,32 @@ if (! function_exists('phpb_in_module')) {
}
}
if (! function_exists('phpb_themes')) {
/**
* Return all theme configs.
*
* @return array
*/
function phpb_themes()
{
$themes = [];
if (file_exists('themes') && is_dir('themes')) {
$themesDirectory = new DirectoryIterator('themes');
foreach ($themesDirectory as $entry) {
$themeFolder = $entry->getFilename();
$configFile = 'themes/' . $themeFolder . '/config.php';
if ($entry->isDir() && !$entry->isDot() && file_exists($configFile)) {
$themeConfig = include($configFile);
$themes[$themeFolder] = $themeConfig;
}
}
}
return $themes;
}
}
if (! function_exists('phpb_on_url')) {
/**
* Return whether we are currently on the given URL.
@@ -12,6 +12,7 @@ use Exception;
* @version 0.6.2
* @package Plugi\Modules\GrapesJS\Upload
*/
#[\AllowDynamicProperties]
class Uploader {
/**
@@ -60,6 +60,7 @@
response = JSON.parse(response);
window.pageBlocks[newLanguage] = response.dynamicBlocks ? response.dynamicBlocks : {};
callback();
window.setWaiting(false);
},
error: function(error) {
callback();
@@ -43,6 +43,7 @@ return [
'label' => phpb_trans('pagebuilder.selector-manager.label'),
'statesLabel' => phpb_trans('pagebuilder.selector-manager.states-label'),
'selectedLabel' => phpb_trans('pagebuilder.selector-manager.selected-label'),
'states' => [
['name' => 'hover', 'label' => phpb_trans('pagebuilder.selector-manager.state-hover')],
['name' => 'active', 'label' => phpb_trans('pagebuilder.selector-manager.state-active')],
@@ -97,15 +98,14 @@ return [
'startupFocus' => true,
'allowedContent' => true,
//'forcePasteAsPlainText' => false, // when true does not copy UL, random JS errors while pasting
//'extraAllowedContent' => '*(*);*[*];ul ol li span', // allows classes, inline styles and certain elements
'extraAllowedContent' => '*(*);*[*];ul ol li span', // allows classes, inline styles and certain elements
//'enterMode' => 'CKEDITOR.ENTER_BR', // issues on pasting in Chromes
'extraPlugins' => 'sourcedialog',
'toolbar' => [
['Bold', 'Italic', 'Underline', 'Strike', 'Undo', 'Redo'],
['Link', 'Unlink'],
['NumberedList', 'BulletedList'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
['FontSize', 'TextColor'],
['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'Link', 'Unlink', '-', 'Outdent', 'Indent', '-', 'Blockquote'],
'/',
['NumberedList', 'BulletedList', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
// ['FontSize', 'TextColor'],
['Sourcedialog']
],
]
@@ -20,6 +20,9 @@
<script src="<?= phpb_asset('pagebuilder/bootstrap-select-v1.13.12.min.js') ?>"></script>
<script src="<?= phpb_asset('pagebuilder/toastr-v2.1.3.min.js') ?>"></script>
<script src="<?= phpb_asset('pagebuilder/beautify-html-v1.10.2.min.js') ?>"></script>
<link href="<?= phpb_asset('icons/duotone/style.css') ?>" rel="stylesheet">
<link href="<?= phpb_asset('icons/regular/style.css') ?>" rel="stylesheet">
<link href="<?= phpb_asset('icons/bold/style.css') ?>" rel="stylesheet">
<?= $pageBuilder->customScripts('head'); ?>
</head>
@@ -53,6 +53,7 @@ window.renderLanguageVariantUrl = '<?= phpb_url('pagebuilder', ['action' => 'ren
$config = require __DIR__ . '/grapesjs/config.php';
?>
let config = <?= json_encode($config) ?>;
config.selectorManager.escapeName = name => `${name}`.trim().replace(/([^a-z0-9\w-\:\/]+)/gi, '-')
if (window.customConfig !== undefined) {
config = $.extend(true, {}, window.customConfig, config);
}
@@ -6,7 +6,17 @@ $settingIns = phpb_instance('setting');
?>
<form method="post" action="<?= phpb_url('website_manager', ['route' => 'settings', 'action' => 'update', 'tab' => 'settings']) ?>">
<div class="" x-data="{activeTab: 0, tabs: ['Website','Language','Theme','Extensions']}">
<div class="tabs mb-6">
<div class="border-b border-base-300 grow"></div>
<template x-for="(tab, index) in tabs">
<a class="tab tab-lifted" x-text="tab" @click="activeTab = index" :class="activeTab === index ? 'tab-active' : ''"></a>
</template>
<div class="border-b border-base-300 grow"></div>
</div>
<div class="" x-show="activeTab === 0">
</div>
<div class="" x-show="activeTab === 1">
<div class="w-full mb-6">
<div class="label-text text-left"><?= phpb_trans('website-manager.website-languages') ?></div>
<?php
@@ -22,39 +32,40 @@ $settingIns = phpb_instance('setting');
endforeach;
?>
</div>
<div class="form-control w-full mb-6">
<label for="admin_language" class="label">
<span class="label-text"><?= phpb_trans('website-manager.admin-language') ?></span>
<span class="label-text"><?= phpb_trans('website-manager.admin-language') ?> <strong><?= phpb_current_language() ?></strong></span>
</label>
<select class="select select-bordered w-full" id="admin_language" name="admin_language" title="<?= phpb_trans('website-manager.languages-selector-placeholder') ?>" required>
<?php
$beLanguages = ['de', 'en', 'es', 'nl'];
foreach ($beLanguages as $locale):
?>
<option value="<?= phpb_e($locale) ?>" <?= phpb_e($settingIns::has('admin_language', $locale)) ? 'selected' : '' ?>><?= phpb_e(phpb_trans('languages.'.$locale)) ?></option>
<option value="<?= phpb_e($locale) ?>" <?= phpb_e(phpb_config('general.language') === $locale ? 'selected' : '') ?>><?= phpb_e(phpb_trans('languages.'.$locale)) ?></option>
<?php
endforeach;
?>
</select>
</div>
</div>
<div class="" x-show="activeTab === 2">
<div class="form-control w-full mb-6">
<label for="selected_theme" class="label">
<span class="label-text"><?= phpb_trans('website-manager.selected-theme') ?></span>
</label>
<select class="select select-bordered w-full" id="selected_theme" name="selected_theme" title="<?= phpb_trans('website-manager.languages-selector-placeholder') ?>" required>
<?php
$themes = ['theme-one'];
foreach ($themes as $theme):
$themes = phpb_themes();
foreach ($themes as $theme => $themeConfig):
?>
<option value="<?= phpb_e($theme) ?>" <?= phpb_e($settingIns::has('selected_theme', $theme)) ? 'selected' : '' ?>><?= phpb_e($theme) ?></option>
<option value="<?= phpb_e($theme) ?>" <?= phpb_e(phpb_config('theme.active_theme') === $theme ? 'selected' : '') ?>><?= phpb_e($themeConfig['title']) ?></option>
<?php
endforeach;
?>
</select>
</div>
</div>
<div class="" x-show="activeTab === 3">
<div class="flex flex-col gap-6">
<?php
foreach (Extensions::getConfigs() as $extKey => $config):
@@ -104,10 +115,18 @@ $settingIns = phpb_instance('setting');
endforeach;
?>
</div>
<button class="btn btn-primary mt-8">
</div>
<div class="text-center mt-8">
<button class="btn btn-primary ">
<?= phpb_trans('website-manager.save-settings'); ?>
</button>
</div>
</div>
<!-- <div class="mt-8">-->
<!-- --><?php //= phpb_trans('website-manager.pagebuilder-block-images') ?>
+10 -1
View File
@@ -174,6 +174,7 @@ class Plugi
{
global $phpb_config;
$phpb_config = $config;
}
/**
@@ -184,7 +185,12 @@ class Plugi
public function setDatabaseConnection(array $config)
{
global $phpb_db;
global $phpb_config;
$phpb_db = new DB($config);
$theme = Setting::get('selected_theme');
if ($theme) $phpb_config['theme']['active_theme'] = $theme;
$language = Setting::get('admin_language');
if ($language) $phpb_config['general']['language'] = $language;
}
/**
@@ -337,7 +343,10 @@ class Plugi
return true;
}
header("HTTP/1.1 404 Not Found");
die('Plugi page not found. Check your URL: <b>' . phpb_e(phpb_full_url(phpb_current_relative_url())) . '</b>');
$message = 'Plugi page not found. Check your URL: <b>' . phpb_e(phpb_full_url(phpb_current_relative_url())) . '</b>';
$errorPage = __DIR__ . '/../..' . phpb_config('theme.folder_url') . '/' . phpb_config('theme.active_theme') . '/pages/404.php';
if (file_exists($errorPage)) $message = include $errorPage;
die($message);
}
/**
@@ -90,7 +90,12 @@ class BaseRepository
}
$values = array_values($data);
if(is_array($instance) && $instance['id']) {
$values[] = $instance['id'];
} else {
$values[] = $instance->id ?? $instance->getId();
}
return $this->db->query(
"UPDATE {$this->table} SET {$set} WHERE id=?",
@@ -21,19 +21,27 @@ class SettingRepository extends BaseRepository implements SettingRepositoryContr
*/
public function updateSettings(array $data)
{
$this->destroyAll();
foreach ($data as $key => $value) {
$isArray = is_array($value) ? 1 : 0;
if ($isArray) {
$value = implode(',', $value);
}
$ins = $this->findWhere('setting', $key);
if (empty($ins)) {
$this->create([
'setting' => $key,
'value' => $value,
'is_array' => $isArray,
]);
} else {
$this->update($ins[0], [
'setting' => $key,
'value' => $value,
'is_array' => $isArray,
]);
}
}
return true;
+25
View File
@@ -0,0 +1,25 @@
<?php
return [
'title' => 'Button',
'category' => 'Layout',
'hidden' => true,
'icon' => 'fa fa-hand-peace-o',
'settings' => [
"order" => [
"type" => "select",
"label" => "Image Position",
"value" => "md:flex-row",
"options" => [
[
"id" => "md:flex-row",
"name" => "Right"
],
[
"id" => "md:flex-row-reverse",
"name" => "Left"
]
]
],
]
];
+3
View File
@@ -0,0 +1,3 @@
<a class="p-4 rounded bg-primary-300" href="#">
button
</a>
+1 -1
View File
@@ -2,6 +2,6 @@
return [
'title' => 'image',
'category' => 'General',
'hidden' => true,
'icon' => 'fa fa-hand-peace-o'
];
@@ -3,5 +3,6 @@
return [
'title' => 'Paragraph',
'category' => 'Layout',
'hidden' => true,
'icon' => 'fa fa-hand-peace-o',
];
+3 -3
View File
@@ -1,3 +1,3 @@
<p class="">
Paragraph
</p>
<div class="" phpb-editable>
Dolore cillum et tempor. Nulla mollit quis sunt duis aliqua ad consectetur minim Lorem irure non duis. Et est elit cillum magna non. Culpa nisi aute occaecat aliqua eiusmod. Sunt tempor eu dolore duis ad mollit enim elit commodo labore aute quis dolor. Consequat consectetur elit officia non anim cillum reprehenderit nulla duis deserunt ex id. Veniam ex in reprehenderit in ut id tempor occaecat. Nisi ea velit adipisicing minim voluptate.
</div>
@@ -0,0 +1,49 @@
<?php
return [
'title' => 'Text + Image',
'category' => 'General',
'icon' => 'ph ph-square-half',
'settings' => [
"order" => [
"type" => "select",
"label" => "Image Position",
"value" => "md:flex-row",
"options" => [
[
"id" => "md:flex-row",
"name" => "Right"
],
[
"id" => "md:flex-row-reverse",
"name" => "Left"
]
]
],
"width" => [
"type" => "select",
"label" => "Image Width",
"value" => "md:w-6/12",
"options" => [
[
"id" => "md:w-4/12",
"name" => "1/3"
],
[
"id" => "md:w-6/12",
"name" => "1/2"
],
[
"id" => "md:w-full",
"name" => "2/3"
],
]
],
'headline' => [
'label'=> 'Headline',
'type' => 'text',
'placeholder' =>'Headline',
'value' => 'Lorem Ipsum dolor'
],
]
];
@@ -0,0 +1,18 @@
<section class="">
<div class="container container-md mx-auto p-4 flex flex-row gap-4 flex-col-reverse <?= phpb_e($block->setting('order')) ?>">
<div class="md:w-6/12 grow">
<?php if (strlen($block->setting('headline')) > 0) : ?>
<div class=" text-2xl">
<?= phpb_e($block->setting('headline')) ?>
</div>
<?php endif; ?>
[block slug="paragraph"]
<br>
<br>
[block slug="button"]
</div>
<div class="<?= phpb_e($block->setting('width')) ?>">
[block slug="image"]
</div>
</div>
</section>
+22
View File
@@ -0,0 +1,22 @@
<?php
return [
'title' => 'Theme One',
'author' => 'Paul Spenke',
'licence' => 'MIT',
'version' => '1.0.0',
'settings' => [
[
'name' => 'email',
'label' => 'Email',
'default' => 'admin@example.com',
'type' => 'text',
],
[
'name' => 'emailEnabled',
'label' => 'Email is Enabled',
'default' => 'true',
'type' => 'toggle',
]
],
];
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -39
View File
@@ -19,23 +19,8 @@ use Plugi\Repositories\MenuRepository;
<body>
<header>
<nav class="bg-white border-gray-200 px-4 lg:px-6 py-2.5 dark:bg-gray-800">
<div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl">
<a href="/" class="flex items-center">
<img src="https://flowbite.com/docs/images/logo.svg" class="mr-3 h-6 sm:h-9" alt="Flowbite Logo" />
<span class="self-center text-xl font-semibold whitespace-nowrap dark:text-white">Flowbite</span>
</a>
<div class="flex items-center lg:order-2">
<a href="#" class="text-gray-800 dark:text-white hover:bg-gray-50 focus:ring-4 focus:ring-gray-300 font-medium rounded-lg text-sm px-4 lg:px-5 py-2 lg:py-2.5 mr-2 dark:hover:bg-gray-700 focus:outline-none dark:focus:ring-gray-800">Log in</a>
<a href="#" class="text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:ring-primary-300 font-medium rounded-lg text-sm px-4 lg:px-5 py-2 lg:py-2.5 mr-2 dark:bg-primary-600 dark:hover:bg-primary-700 focus:outline-none dark:focus:ring-primary-800">Get started</a>
<button data-collapse-toggle="mobile-menu-2" type="button" class="inline-flex items-center p-2 ml-1 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600" aria-controls="mobile-menu-2" aria-expanded="false">
<span class="sr-only">Open main menu</span>
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clip-rule="evenodd"></path></svg>
<svg class="hidden w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>
</button>
</div>
<div class="hidden justify-between items-center w-full lg:flex lg:w-auto lg:order-1" id="mobile-menu-2">
<ul class="flex flex-col mt-4 font-medium lg:flex-row lg:space-x-8 lg:mt-0">
<nav class="">
<ul class="flex flex-col">
<?php
@@ -49,8 +34,6 @@ use Plugi\Repositories\MenuRepository;
endforeach;
?>
</ul>
</div>
</div>
</nav>
</header>
@@ -58,26 +41,8 @@ use Plugi\Repositories\MenuRepository;
<?= $body ?>
</main>
<footer class="p-4 bg-white md:p-8 lg:p-10 dark:bg-gray-800">
<footer class="">
<div class="mx-auto max-w-screen-xl text-center">
<a href="#" class="flex justify-center items-center text-2xl font-semibold text-gray-900 dark:text-white">
<svg class="mr-2 h-8" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M25.2696 13.126C25.1955 13.6364 24.8589 14.3299 24.4728 14.9328C23.9856 15.6936 23.2125 16.2264 22.3276 16.4114L18.43 17.2265C17.8035 17.3575 17.2355 17.6853 16.8089 18.1621L14.2533 21.0188C13.773 21.5556 13.4373 21.4276 13.4373 20.7075C13.4315 20.7342 12.1689 23.9903 15.5149 25.9202C16.8005 26.6618 18.6511 26.3953 19.9367 25.6538L26.7486 21.7247C29.2961 20.2553 31.0948 17.7695 31.6926 14.892C31.7163 14.7781 31.7345 14.6639 31.7542 14.5498L25.2696 13.126Z" fill="url(#paint0_linear_11430_22515)"/><path d="M23.5028 9.20133C24.7884 9.94288 25.3137 11.0469 25.3137 12.53C25.3137 12.7313 25.2979 12.9302 25.2694 13.1261L28.0141 14.3051L31.754 14.5499C32.2329 11.7784 31.2944 8.92561 29.612 6.65804C28.3459 4.9516 26.7167 3.47073 24.7581 2.34097C23.167 1.42325 21.5136 0.818599 19.8525 0.486816L17.9861 2.90382L17.3965 5.67918L23.5028 9.20133Z" fill="url(#paint1_linear_11430_22515)"/><path d="M1.5336 11.2352C1.5329 11.2373 1.53483 11.238 1.53556 11.2358C1.67958 10.8038 1.86018 10.3219 2.08564 9.80704C3.26334 7.11765 5.53286 5.32397 8.32492 4.40943C11.117 3.49491 14.1655 3.81547 16.7101 5.28323L17.3965 5.67913L19.8525 0.486761C12.041 -1.07341 4.05728 3.51588 1.54353 11.2051C1.54233 11.2087 1.53796 11.2216 1.5336 11.2352Z" fill="url(#paint2_linear_11430_22515)"/><path d="M19.6699 25.6538C18.3843 26.3953 16.8003 26.3953 15.5147 25.6538C15.3402 25.5531 15.1757 25.4399 15.0201 25.3174L12.7591 26.8719L10.8103 30.0209C12.9733 31.821 15.7821 32.3997 18.589 32.0779C20.7013 31.8357 22.7995 31.1665 24.7582 30.0368C26.3492 29.1191 27.7 27.9909 28.8182 26.7195L27.6563 23.8962L25.7762 22.1316L19.6699 25.6538Z" fill="url(#paint3_linear_11430_22515)"/><path d="M15.0201 25.3175C14.0296 24.5373 13.4371 23.3406 13.4371 22.0588V21.931V11.2558C13.4371 10.6521 13.615 10.5494 14.1384 10.8513C13.3323 10.3864 11.4703 8.79036 9.17118 10.1165C7.88557 10.858 6.8269 12.4949 6.8269 13.978V21.8362C6.8269 24.775 8.34906 27.8406 10.5445 29.7966C10.6313 29.874 10.7212 29.9469 10.8103 30.0211L15.0201 25.3175Z" fill="url(#paint4_linear_11430_22515)"/><path d="M28.6604 5.49565C28.6589 5.49395 28.6573 5.49532 28.6589 5.49703C28.9613 5.83763 29.2888 6.23485 29.6223 6.68734C31.3648 9.05099 32.0158 12.0447 31.4126 14.9176C30.8093 17.7906 29.0071 20.2679 26.4625 21.7357L25.7761 22.1316L28.8181 26.7195C34.0764 20.741 34.09 11.5388 28.6815 5.51929C28.6789 5.51641 28.67 5.50622 28.6604 5.49565Z" fill="url(#paint5_linear_11430_22515)"/><path d="M7.09355 13.978C7.09354 12.4949 7.88551 11.1244 9.17113 10.3829C9.34564 10.2822 9.52601 10.1965 9.71002 10.1231L9.49304 7.38962L7.96861 4.26221C5.32671 5.23364 3.1897 7.24125 2.06528 9.83067C1.2191 11.7793 0.75001 13.9294 0.75 16.1888C0.75 18.0243 1.05255 19.7571 1.59553 21.3603L4.62391 21.7666L7.09355 21.0223V13.978Z" fill="url(#paint6_linear_11430_22515)"/><path d="M9.71016 10.1231C10.8817 9.65623 12.2153 9.74199 13.3264 10.3829L13.4372 10.4468L22.3326 15.5777C22.9566 15.9376 22.8999 16.2918 22.1946 16.4392L22.7078 16.332C23.383 16.1908 23.9999 15.8457 24.4717 15.3428C25.2828 14.4782 25.5806 13.4351 25.5806 12.5299C25.5806 11.0468 24.7886 9.67634 23.503 8.93479L16.6911 5.00568C14.1436 3.53627 11.0895 3.22294 8.29622 4.14442C8.18572 4.18087 8.07756 4.2222 7.96875 4.26221L9.71016 10.1231Z" fill="url(#paint7_linear_11430_22515)"/><path d="M20.0721 31.8357C20.0744 31.8352 20.0739 31.8332 20.0717 31.8337C19.6252 31.925 19.1172 32.0097 18.5581 32.0721C15.638 32.3978 12.7174 31.4643 10.5286 29.5059C8.33986 27.5474 7.09347 24.7495 7.09348 21.814L7.09347 21.0222L1.59546 21.3602C4.1488 28.8989 12.1189 33.5118 20.0411 31.8421C20.0449 31.8413 20.0582 31.8387 20.0721 31.8357Z" fill="url(#paint8_linear_11430_22515)"/>
<defs>
<linearGradient id="paint0_linear_11430_22515" x1="20.8102" y1="23.9532" x2="23.9577" y2="12.9901" gradientUnits="userSpaceOnUse"><stop stop-color="#1724C9"/><stop offset="1" stop-color="#1C64F2"/></linearGradient>
<linearGradient id="paint1_linear_11430_22515" x1="28.0593" y1="10.5837" x2="19.7797" y2="2.33321" gradientUnits="userSpaceOnUse"><stop stop-color="#1C64F2"/><stop offset="1" stop-color="#0092FF"/></linearGradient>
<linearGradient id="paint2_linear_11430_22515" x1="16.9145" y1="5.2045" x2="4.42432" y2="5.99375" gradientUnits="userSpaceOnUse"><stop stop-color="#0092FF"/><stop offset="1" stop-color="#45B2FF"/></linearGradient>
<linearGradient id="paint3_linear_11430_22515" x1="16.0698" y1="28.846" x2="27.2866" y2="25.8192" gradientUnits="userSpaceOnUse"><stop stop-color="#1C64F2"/><stop offset="1" stop-color="#0092FF"/></linearGradient>
<linearGradient id="paint4_linear_11430_22515" x1="8.01881" y1="15.8661" x2="15.9825" y2="24.1181" gradientUnits="userSpaceOnUse"><stop stop-color="#1724C9"/><stop offset="1" stop-color="#1C64F2"/></linearGradient>
<linearGradient id="paint5_linear_11430_22515" x1="26.2004" y1="21.8189" x2="31.7569" y2="10.6178" gradientUnits="userSpaceOnUse"><stop stop-color="#0092FF"/><stop offset="1" stop-color="#45B2FF"/></linearGradient>
<linearGradient id="paint6_linear_11430_22515" x1="6.11387" y1="9.31427" x2="3.14054" y2="20.4898" gradientUnits="userSpaceOnUse"><stop stop-color="#1C64F2"/><stop offset="1" stop-color="#0092FF"/></linearGradient>
<linearGradient id="paint7_linear_11430_22515" x1="21.2932" y1="8.78271" x2="10.4278" y2="11.488" gradientUnits="userSpaceOnUse"><stop stop-color="#1724C9"/><stop offset="1" stop-color="#1C64F2"/></linearGradient>
<linearGradient id="paint8_linear_11430_22515" x1="7.15667" y1="21.5399" x2="14.0824" y2="31.9579" gradientUnits="userSpaceOnUse"><stop stop-color="#0092FF"/><stop offset="1" stop-color="#45B2FF"/></linearGradient>
</defs>
</svg>
Flowbite
</a>
<p class="my-6 text-gray-500 dark:text-gray-400">Open-source library of over 400+ web components and interactive elements built for better web.</p>
<ul class="flex flex-wrap justify-center items-center mb-6 text-gray-900 dark:text-white">
<?php
@@ -89,7 +54,7 @@ use Plugi\Repositories\MenuRepository;
endforeach;
?>
</ul>
<span class="text-sm text-gray-500 sm:text-center dark:text-gray-400">© 2021-<?= phpb_e(date("Y"))?> <a href="/" class="hover:underline">Flowbite™</a>. All Rights Reserved.</span>
<span class="text-sm text-gray-500 sm:text-center dark:text-gray-400">© <?= phpb_e(date("Y"))?></span>
</div>
</footer>
+2 -1
View File
@@ -12,7 +12,8 @@
"patterns": [
"src",
"blocks",
"layouts"
"layouts",
"pages"
],
"extensions": "ts,html,php",
"quiet": false
+18
View File
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Not Found</title>
<link href="<?= phpb_theme_asset('dist/style.css') ?>" rel="stylesheet">
</head>
<body>
<div class="flex justify-center mt-8">
<div class=" p-4 border rounded shadow">
Da ist was schief gegangen 🙈
</div>
</div>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

+1
View File
@@ -1,6 +1,7 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{html,ts,php}",
"./src/**/*.{html,ts,php}",
"./blocks/**/*.{html,ts,php}",
"./layouts/**/*.{html,ts,php}",