parent
9bdb91a23e
commit
e57de027e1
@ -1,6 +1,7 @@ |
|||||||
{ |
{ |
||||||
"require": { |
"require": { |
||||||
"twig/twig": "^3.0", |
"twig/twig": "^3.0", |
||||||
"liquid/liquid": "^1.4" |
"liquid/liquid": "^1.4", |
||||||
|
"ezyang/htmlpurifier": "^4.18" |
||||||
} |
} |
||||||
} |
} |
||||||
|
|||||||
@ -0,0 +1,32 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Robert Strutts <Bob_586@Yahoo.com> |
||||||
|
* @copyright (c) 2025, Robert Strutts |
||||||
|
* @license MIT |
||||||
|
*/ |
||||||
|
|
||||||
|
?> |
||||||
|
|
||||||
|
<footer style=" |
||||||
|
background-color: #333; |
||||||
|
color: white; |
||||||
|
text-align: center; |
||||||
|
padding: 20px 0; |
||||||
|
position: fixed; |
||||||
|
bottom: 0; |
||||||
|
width: 100%; |
||||||
|
font-family: Arial, sans-serif; |
||||||
|
border-top: 2px solid #444; |
||||||
|
"> |
||||||
|
<div style="max-width: 800px; margin: 0 auto;"> |
||||||
|
<p style="margin: 0; padding: 0;">© <?= date('Y') ?> Your Company Name. All rights reserved.</p>
|
||||||
|
<p style="margin: 10px 0 0 0; padding: 0; font-size: 0.8em;"> |
||||||
|
<a href="/privacy" style="color: #4da6ff; text-decoration: none;">Privacy Policy</a> | |
||||||
|
<a href="/terms" style="color: #4da6ff; text-decoration: none;">Terms of Service</a> | |
||||||
|
<a href="/contact" style="color: #4da6ff; text-decoration: none;">Contact Us</a> |
||||||
|
</p> |
||||||
|
</div> |
||||||
|
</footer> |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Robert Strutts <Bob_586@Yahoo.com> |
||||||
|
* @copyright (c) 2025, Robert Strutts |
||||||
|
* @license MIT |
||||||
|
*/ |
||||||
|
|
||||||
|
use CodeHydrater\bootstrap\configure as Config; |
||||||
|
|
||||||
|
Config::set('html_purifier', [ |
||||||
|
"enable_file_caching" => false |
||||||
|
]); |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Robert Strutts <Bob_586@Yahoo.com> |
||||||
|
* @copyright (c) 2025, Robert Strutts |
||||||
|
* @license MIT |
||||||
|
*/ |
||||||
|
|
||||||
|
use CodeHydrater\bootstrap\configure as Config; |
||||||
|
|
||||||
|
Config::set('liquid', [ |
||||||
|
"enable_file_caching" => false |
||||||
|
]); |
||||||
@ -0,0 +1,20 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Robert Strutts <Bob_586@Yahoo.com> |
||||||
|
* @copyright (c) 2025, Robert Strutts |
||||||
|
* @license MIT |
||||||
|
*/ |
||||||
|
|
||||||
|
use CodeHydrater\bootstrap\registry as Reg; |
||||||
|
use CodeHydrater\bootstrap\configure as Config; |
||||||
|
|
||||||
|
Reg::get('di')->register('html_filter', function() { |
||||||
|
|
||||||
|
$use_file_cache = Config::get('html_purifier', "enable_file_caching") ?? false; |
||||||
|
return new \CodeHydrater\services\html_filter( |
||||||
|
$use_file_cache |
||||||
|
); |
||||||
|
}); |
||||||
@ -1,11 +1,17 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
declare(strict_types=1); |
declare(strict_types=1); |
||||||
|
|
||||||
$route_name_demo = "app/home"; |
$route_name_demo = "app/home"; |
||||||
$method_name_demo = "name_demo"; |
$method_name_demo = "name_demo"; |
||||||
|
|
||||||
|
$route_liquid = "app/home"; |
||||||
|
$method_liquid = "liquid"; |
||||||
|
|
||||||
?> |
?> |
||||||
|
|
||||||
<h2>Welcome...to your M0ck Ups</h2> |
<h2>Welcome...to your M0ck Ups</h2> |
||||||
|
|
||||||
<a href="<?= \CodeHydrater\misc::get_url($route_name_demo, $method_name_demo) ?>">View Name Demo</a> <br/><br/>
|
<a href="<?= \CodeHydrater\misc::get_url($route_name_demo, $method_name_demo) ?>">View Twig Demo</a> <br/><br/>
|
||||||
|
|
||||||
|
<a href="<?= \CodeHydrater\misc::get_url($route_liquid, $method_liquid) ?>">View Liquid Demo</a> <br/><br/>
|
||||||
Loading…
Reference in new issue