Compare commits
4
Commits
4e7333493a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e97af7a1da | ||
|
|
150e068550 | ||
|
|
a71ab197ce | ||
|
|
ccd105907a |
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -45,7 +45,7 @@ final class CustomHtmlGroupChoiceProvider implements
|
||||
'SELECT g.`id_ws_customhtml_group`, gl.`title`, g.`default_block_class`
|
||||
FROM `' . _DB_PREFIX_ . 'ws_customhtml_group` g
|
||||
LEFT JOIN `' . _DB_PREFIX_ . 'ws_customhtml_group_lang` gl
|
||||
ON gl.`id_ws_customhtml_group` = g.`id_ws_customhtml_group` AND gl.`id_lang` = ' . $idLang . '
|
||||
ON gl.`id_ws_customhtml_group` = g.`id_ws_customhtml_group` AND gl.`id_lang` = ' . (int) $idLang . '
|
||||
ORDER BY gl.`title` ASC'
|
||||
);
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -135,7 +135,7 @@ final class CustomHtmlBlockDataHandler implements FormDataHandlerInterface
|
||||
{
|
||||
$maxOrdering = Db::getInstance()->getValue(
|
||||
'SELECT MAX(`ordering`) FROM `' . _DB_PREFIX_ . 'ws_customhtml`
|
||||
WHERE `id_ws_customhtml_group` = ' . $idGroup
|
||||
WHERE `id_ws_customhtml_group` = ' . (int) $idGroup
|
||||
);
|
||||
|
||||
return $maxOrdering === false || $maxOrdering === null ? 0 : ((int) $maxOrdering + 1);
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -1,10 +0,0 @@
|
||||
{if !empty($block.link)}<a href="{$block.link|escape:'html':'UTF-8'}">{/if}
|
||||
<p class="h1 usp__name text-center">
|
||||
<span>{$block.title|escape:'html':'UTF-8'}</span>
|
||||
</p>
|
||||
{if !empty($block.description)}
|
||||
<p class="usp__description text-center">
|
||||
{$block.description|escape:'html':'UTF-8'|nl2br}
|
||||
</p>
|
||||
{/if}
|
||||
{if !empty($block.link)}</a>{/if}
|
||||
@@ -1,11 +0,0 @@
|
||||
{if !empty($block.link)}<a href="{$block.link|escape:'html':'UTF-8'}">{/if}
|
||||
<small class="uppercase-mono-red">/{$iteration|string_format:"%02d"}</small>
|
||||
<p class="h3 font-default usp__name mt2 mt-lg-3">
|
||||
<span>{$block.title|escape:'html':'UTF-8'}</span>
|
||||
</p>
|
||||
{if !empty($block.description)}
|
||||
<p class="usp__description">
|
||||
{$block.description|escape:'html':'UTF-8'|nl2br}
|
||||
</p>
|
||||
{/if}
|
||||
{if !empty($block.link)}</a>{/if}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,257 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
|
||||
<file original="Modules.Wscustomhtml.Admin.xlf" source-language="en" target-language="nl" datatype="plaintext">
|
||||
<body>
|
||||
<trans-unit id="512923e3b931df3400cc06287e7541cc" approved="yes">
|
||||
<source>Custom HTML</source>
|
||||
<target state="final">Aangepaste HTML</target>
|
||||
<note>File: ws_customhtml.php [Line: 39]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="7831af914461a744912d0579b8bb9d1a" approved="yes">
|
||||
<source>Create and manage custom HTML blocks for frontend hooks.</source>
|
||||
<target state="final">Aangepaste HTML-blokken maken en beheren voor frontend hooks.</target>
|
||||
<note>File: ws_customhtml.php [Line: 40]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="b78a3223503896721cca1303f776159b" approved="yes">
|
||||
<source>Title</source>
|
||||
<target state="final">Titel</target>
|
||||
<note>File: src/Form/Type/CustomHtmlGroupType.php [Line: 28]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="26f548bcbdeea5047396db341a10a2bf" approved="yes">
|
||||
<source>Hook name</source>
|
||||
<target state="final">Hooknaam</target>
|
||||
<note>File: src/Form/Type/CustomHtmlGroupType.php [Line: 33]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="843575e3d0942a474aed722856631ec1" approved="yes">
|
||||
<source>Custom group classes</source>
|
||||
<target state="final">Aangepaste groepsklassen</target>
|
||||
<note>File: src/Form/Type/CustomHtmlGroupType.php [Line: 37]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="c9339c0b1a199af41f690392077119af" approved="yes">
|
||||
<source>Default block class</source>
|
||||
<target state="final">Standaard blokklasse</target>
|
||||
<note>File: src/Form/Type/CustomHtmlGroupType.php [Line: 42]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="dee82074a8fdd944350a8ed6ef7000ba" approved="yes">
|
||||
<source>Applied to every block in this group automatically, in addition to that block's own custom classes. Useful when several blocks need the same column layout.</source>
|
||||
<target state="final">Wordt automatisch toegepast op elk blok in deze groep, naast de eigen aangepaste klassen van dat blok. Handig wanneer meerdere blokken dezelfde kolomindeling nodig hebben.</target>
|
||||
<note>File: src/Form/Type/CustomHtmlGroupType.php [Line: 45]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="4d3d769b812b6faa6b76e1a8abaece2d" approved="yes">
|
||||
<source>Active</source>
|
||||
<target state="final">Actief</target>
|
||||
<note>File: src/Form/Type/CustomHtmlGroupType.php [Line: 48]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="3c889850381b0603721d568824ecfd18" approved="yes">
|
||||
<source>Custom HTML Groups</source>
|
||||
<target state="final">Aangepaste HTML-groepen</target>
|
||||
<note>File: src/Grid/Definition/Factory/CustomHtmlGroupGridDefinitionFactory.php [Line: 40]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="b9b371458ab7c314f88b81c553f6ce51" approved="yes">
|
||||
<source>Hook</source>
|
||||
<target state="final">Hook</target>
|
||||
<note>File: src/Grid/Definition/Factory/CustomHtmlGroupGridDefinitionFactory.php [Line: 73]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="04c4f9f595c4f21d1de65eb07056c15a" approved="yes">
|
||||
<source>Blocks</source>
|
||||
<target state="final">Blokken</target>
|
||||
<note>File: src/Grid/Definition/Factory/CustomHtmlGroupGridDefinitionFactory.php [Line: 78]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="195a8106bcb998b48a86acb2fee032c5" approved="yes">
|
||||
<source>View blocks</source>
|
||||
<target state="final">Blokken bekijken</target>
|
||||
<note>File: src/Grid/Definition/Factory/CustomHtmlGroupGridDefinitionFactory.php [Line: 156]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="2ff8071bcd15a31f9a743f1b06d0d00f" approved="yes">
|
||||
<source>Add block</source>
|
||||
<target state="final">Blok toevoegen</target>
|
||||
<note>File: src/Grid/Definition/Factory/CustomHtmlGroupGridDefinitionFactory.php [Line: 166]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="93ee75bea0afaff1edf1444b1f8d4757" approved="yes">
|
||||
<source>Custom HTML Blocks</source>
|
||||
<target state="final">Aangepaste HTML-blokken</target>
|
||||
<note>File: src/Grid/Definition/Factory/CustomHtmlBlockGridDefinitionFactory.php [Line: 41]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="03937134cedab9078be39a77ee3a48a0" approved="yes">
|
||||
<source>Group</source>
|
||||
<target state="final">Groep</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 41]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="a1fa27779242b4902f7ae3bdd5c6d508" approved="yes">
|
||||
<source>Type</source>
|
||||
<target state="final">Type</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 47]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="52f5e0bc3859bc5f5e25130b6c7e8881" approved="yes">
|
||||
<source>Position</source>
|
||||
<target state="final">Positie</target>
|
||||
<note>File: src/Grid/Definition/Factory/CustomHtmlBlockGridDefinitionFactory.php [Line: 89]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="7c060faccd05262f4901c16573f645a9" approved="yes">
|
||||
<source>Unable to find the group.</source>
|
||||
<target state="final">Kan de groep niet vinden.</target>
|
||||
<note>File: src/Controller/CustomHtmlGroupController.php [Line: 98]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="d738152dd177b4600836d2db542e8845" approved="yes">
|
||||
<source>Unable to find the block.</source>
|
||||
<target state="final">Kan het blok niet vinden.</target>
|
||||
<note>File: src/Controller/CustomHtmlBlockController.php [Line: 125]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="b5a812dff3c33b63cf77f0ce007da42e" approved="yes">
|
||||
<source>Block type</source>
|
||||
<target state="final">Bloktype</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 47]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="507b7246f245b8935c5aafd81e80c4ee" approved="yes">
|
||||
<source>Show title</source>
|
||||
<target state="final">Titel tonen</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 59]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="f15c1cae7882448b3fb0404682e17e61" approved="yes">
|
||||
<source>Content</source>
|
||||
<target state="final">Inhoud</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 65]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="be53a0541a6d36f6ecb879fa2c584b08" approved="yes">
|
||||
<source>Image</source>
|
||||
<target state="final">Afbeelding</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 71]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="d60bc7c265eb450473afbd22ececda09" approved="yes">
|
||||
<source>Slider mode</source>
|
||||
<target state="final">Slidermodus</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 92]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="9e2352975b97b9b49e97dcd80788ed88" approved="yes">
|
||||
<source>"Mobile only": slider only on mobile, a static grid shows instead from tablet up.</source>
|
||||
<target state="final">"Alleen mobiel": slider alleen op mobiel, vanaf tablet wordt in plaats daarvan een statisch raster getoond.</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 95]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="0cffdd608d41a4c9c7bac7cf621ca5b9" approved="yes">
|
||||
<source>Slides visible on mobile</source>
|
||||
<target state="final">Zichtbare slides op mobiel</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 99]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="35bf3a5e2797e56b2d06b18acaae41f9" approved="yes">
|
||||
<source>Slides visible on tablet</source>
|
||||
<target state="final">Zichtbare slides op tablet</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 106]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="40d77e75964dd04ea925f34300dd8b48" approved="yes">
|
||||
<source>Slides visible on desktop</source>
|
||||
<target state="final">Zichtbare slides op desktop</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 113]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="06b9281e396db002010bde1de57262eb" approved="yes">
|
||||
<source>Auto</source>
|
||||
<target state="final">Automatisch</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 116]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="921048c199ee33279927fc77d2dc213a" approved="yes">
|
||||
<source>In "Mobile only" mode this is rounded to the nearest whole number of columns. Leave empty for an equal-width column.</source>
|
||||
<target state="final">In de modus "Alleen mobiel" wordt dit afgerond naar het dichtstbijzijnde hele aantal kolommen. Laat leeg voor een kolom met gelijke breedte.</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 117]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="db03b62817b3b2f4657b679c13bb5b28" approved="yes">
|
||||
<source>Autoplay delay (seconds)</source>
|
||||
<target state="final">Vertraging automatisch afspelen (seconden)</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 121]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="ae8c3292c47fef302c93202badd63109" approved="yes">
|
||||
<source>0 means the slider never auto-advances; visitors can still swipe or use the arrows.</source>
|
||||
<target state="final">0 betekent dat de slider nooit automatisch doorschuift; bezoekers kunnen nog wel swipen of de pijlen gebruiken.</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 124]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="d479cd75faccc438f93b8b6414a2a329" approved="yes">
|
||||
<source>Alert style</source>
|
||||
<target state="final">Waarschuwingsstijl</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 128]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="4527eae2e84aed7a238504cbbf509272" approved="yes">
|
||||
<source>Auto-dismiss after (seconds)</source>
|
||||
<target state="final">Automatisch sluiten na (seconden)</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 134]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="e59eb2e617eb720ae30bbf71010a7a97" approved="yes">
|
||||
<source>0 means the alert never auto-dismisses; visitors can still close it manually.</source>
|
||||
<target state="final">0 betekent dat de melding nooit automatisch sluit; bezoekers kunnen deze nog wel handmatig sluiten.</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 137]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="b5a7adde1af5c87d7fd797b6245c2a39" approved="yes">
|
||||
<source>Description</source>
|
||||
<target state="final">Beschrijving</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 142]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="7cc0fd746c5cec9842dd8d5251ee2352" approved="yes">
|
||||
<source>Extra description</source>
|
||||
<target state="final">Extra beschrijving</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 149]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="5e4e1bd6f922fed062b62c446ca34f84" approved="yes">
|
||||
<source>Link URL</source>
|
||||
<target state="final">Link-URL</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 156]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="63a11faa3a692d4e00fa8e03bbe8a0d6" approved="yes">
|
||||
<source>Link text</source>
|
||||
<target state="final">Linktekst</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 163]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="c15a6ec85c9e2dfc65fde2c60b592564" approved="yes">
|
||||
<source>Custom classes</source>
|
||||
<target state="final">Aangepaste klassen</target>
|
||||
<note>File: src/Form/Type/CustomHtmlBlockType.php [Line: 171]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="a97ea56b0e00b2379736ae60869ff66a" approved="yes">
|
||||
<source>Question</source>
|
||||
<target state="final">Vraag</target>
|
||||
<note>File: src/Form/Type/CustomHtmlFaqType.php [Line: 24]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="3751695c17afed4055a7a5ad5d46f6f5" approved="yes">
|
||||
<source>Answer</source>
|
||||
<target state="final">Antwoord</target>
|
||||
<note>File: src/Form/Type/CustomHtmlFaqType.php [Line: 28]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="c28fc5d6c4a0a5ee47e06d56bab36dec" approved="yes">
|
||||
<source>Custom HTML Block</source>
|
||||
<target state="final">Aangepast HTML-blok</target>
|
||||
<note>File: views/templates/admin/form/blocks/block_form.html.twig [Line: 26]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="73be1b885def51a0ff0d8905365b3eeb" approved="yes">
|
||||
<source>Current image</source>
|
||||
<target state="final">Huidige afbeelding</target>
|
||||
<note>File: views/templates/admin/form/blocks/block_form.html.twig [Line: 42]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="4dfb7691cbfd8ee3a0f42018bcb2db65" approved="yes">
|
||||
<source>FAQ items</source>
|
||||
<target state="final">FAQ-items</target>
|
||||
<note>File: views/templates/admin/form/blocks/block_form.html.twig [Line: 50]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="a4156d4998aa5183e106a57342f7315a" approved="yes">
|
||||
<source>Add FAQ item</source>
|
||||
<target state="final">FAQ-item toevoegen</target>
|
||||
<note>File: views/templates/admin/form/blocks/block_form.html.twig [Line: 70]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="a8d90ed8f17c347c8d46e0ef22c85ecb" approved="yes">
|
||||
<source>Slides</source>
|
||||
<target state="final">Slides</target>
|
||||
<note>File: views/templates/admin/form/blocks/block_form.html.twig [Line: 76]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="056f53405bf3cf4bde3731c26d725365" approved="yes">
|
||||
<source>Add slide</source>
|
||||
<target state="final">Slide toevoegen</target>
|
||||
<note>File: views/templates/admin/form/blocks/block_form.html.twig [Line: 96]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="5ff997cff41cb8eeb86e6e484233a8af" approved="yes">
|
||||
<source>The group that this block belongs to applies the classes "%s%" to every block. Edit the group to change this - it is stored under the "Default block class" input.</source>
|
||||
<target state="final">De groep waartoe dit blok behoort past de klassen "%s%" toe op elk blok. Bewerk de groep om dit te wijzigen - dit wordt opgeslagen onder het veld "Standaard blokklasse".</target>
|
||||
<note>File: views/templates/admin/form/blocks/block_form.html.twig [Line: 118]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="5973aee626e71dba35de5485ccde9481" approved="yes">
|
||||
<source>Custom HTML Group</source>
|
||||
<target state="final">Aangepaste HTML-groep</target>
|
||||
<note>File: views/templates/admin/form/blocks/group_form.html.twig [Line: 9]</note>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
|
||||
<file original="Modules.Wscustomhtml.Shop.xlf" source-language="en" target-language="nl" datatype="plaintext">
|
||||
<body>
|
||||
<trans-unit id="d59048f21fd887ad520398ce677be586" approved="yes">
|
||||
<source>Learn more</source>
|
||||
<target state="final">Meer informatie</target>
|
||||
<note>File: views/templates/hook/_alert.tpl [Line: 20]</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="d3d2e617335f08df83599665eef8a418" approved="yes">
|
||||
<source>Close</source>
|
||||
<target state="final">Sluiten</target>
|
||||
<note>File: views/templates/hook/_alert.tpl [Line: 23]</note>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_10_0($module)
|
||||
{
|
||||
$columnsToAdd = [
|
||||
'alert_type' => 'VARCHAR(16) NOT NULL DEFAULT \'info\'',
|
||||
'timeout' => 'INT(11) NOT NULL DEFAULT 0',
|
||||
];
|
||||
|
||||
foreach ($columnsToAdd as $column => $definition) {
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'' . $column . '\''
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml` ADD COLUMN `' . $column . '` ' . $definition
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_11_0($module)
|
||||
{
|
||||
$groups = Db::getInstance()->executeS(
|
||||
'SELECT `id_ws_customhtml_group` FROM `' . _DB_PREFIX_ . 'ws_customhtml_group` ORDER BY `id_ws_customhtml_group` ASC'
|
||||
);
|
||||
|
||||
foreach ($groups as $index => $group) {
|
||||
if (!Db::getInstance()->update(
|
||||
'ws_customhtml_group',
|
||||
['ordering' => (int) $index],
|
||||
'`id_ws_customhtml_group` = ' . (int) $group['id_ws_customhtml_group']
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_13_0($module)
|
||||
{
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml_group` LIKE \'custom_class\''
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml_group`
|
||||
ADD COLUMN `custom_class` VARCHAR(128) NOT NULL DEFAULT \'\' AFTER `title`'
|
||||
);
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_15_0($module)
|
||||
{
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'link_text\''
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml`
|
||||
ADD COLUMN `link_text` VARCHAR(128) NOT NULL DEFAULT \'\' AFTER `link`'
|
||||
);
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_16_0($module)
|
||||
{
|
||||
$columnsToAdd = [
|
||||
'slides_per_view_mobile' => 'DECIMAL(4,2) NOT NULL DEFAULT 1',
|
||||
'slides_per_view_tablet' => 'DECIMAL(4,2) NOT NULL DEFAULT 2',
|
||||
'slides_per_view_desktop' => 'DECIMAL(4,2) NOT NULL DEFAULT 3',
|
||||
'autoplay_delay' => 'INT(11) NOT NULL DEFAULT 0',
|
||||
];
|
||||
|
||||
foreach ($columnsToAdd as $column => $definition) {
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'' . $column . '\''
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml` ADD COLUMN `' . $column . '` ' . $definition
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'ws_customhtml_slide` (
|
||||
`id_ws_customhtml_slide` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
`id_ws_customhtml` INT(11) NOT NULL,
|
||||
`title` VARCHAR(256) NOT NULL DEFAULT \'\',
|
||||
`description` TEXT,
|
||||
`extra_description` TEXT,
|
||||
`link` VARCHAR(512) NOT NULL DEFAULT \'\',
|
||||
`link_text` VARCHAR(128) NOT NULL DEFAULT \'\',
|
||||
`image` VARCHAR(255) NOT NULL DEFAULT \'\',
|
||||
`ordering` INT(11) NOT NULL DEFAULT 0,
|
||||
`date_add` DATETIME NOT NULL,
|
||||
`date_upd` DATETIME NOT NULL,
|
||||
KEY `id_ws_customhtml` (`id_ws_customhtml`)
|
||||
)'
|
||||
);
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_17_0($module)
|
||||
{
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'slider_mode\''
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml`
|
||||
ADD COLUMN `slider_mode` VARCHAR(16) NOT NULL DEFAULT \'always\' AFTER `timeout`'
|
||||
);
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_19_0($module)
|
||||
{
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml_group` LIKE \'default_block_class\''
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml_group`
|
||||
ADD COLUMN `default_block_class` VARCHAR(128) NOT NULL DEFAULT \'\' AFTER `custom_class`'
|
||||
);
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_2_0($module)
|
||||
{
|
||||
$columns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'type\''
|
||||
);
|
||||
|
||||
if (empty($columns)) {
|
||||
if (!Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml`
|
||||
ADD COLUMN `type` VARCHAR(32) NOT NULL DEFAULT \'html\' AFTER `title`'
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!Db::getInstance()->execute(
|
||||
'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'ws_customhtml_faq` (
|
||||
`id_ws_customhtml_faq` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
`id_ws_customhtml` INT(11) NOT NULL,
|
||||
`question` VARCHAR(512) NOT NULL DEFAULT \'\',
|
||||
`answer` TEXT,
|
||||
`ordering` INT(11) NOT NULL DEFAULT 0,
|
||||
`date_add` DATETIME NOT NULL,
|
||||
`date_upd` DATETIME NOT NULL,
|
||||
KEY `id_ws_customhtml` (`id_ws_customhtml`)
|
||||
)'
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $module->registerHook('actionCustomhtmlblockGridDataModifier');
|
||||
}
|
||||
@@ -1,88 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_20_0($module)
|
||||
{
|
||||
if (!createGroupLangTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!migrateGroupTitlesToLangTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return dropGroupTitleColumn();
|
||||
}
|
||||
|
||||
function createGroupLangTable(): bool
|
||||
{
|
||||
return Db::getInstance()->execute(
|
||||
'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'ws_customhtml_group_lang` (
|
||||
`id_ws_customhtml_group` INT(11) NOT NULL,
|
||||
`id_lang` INT(11) NOT NULL,
|
||||
`title` VARCHAR(256) NOT NULL DEFAULT \'\',
|
||||
PRIMARY KEY (`id_ws_customhtml_group`, `id_lang`)
|
||||
);'
|
||||
);
|
||||
}
|
||||
|
||||
function migrateGroupTitlesToLangTable(): bool
|
||||
{
|
||||
$groupColumns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml_group` LIKE \'title\''
|
||||
);
|
||||
|
||||
if (empty($groupColumns)) {
|
||||
// Already migrated in a previous run of this upgrade.
|
||||
return true;
|
||||
}
|
||||
|
||||
$groups = Db::getInstance()->executeS(
|
||||
'SELECT `id_ws_customhtml_group`, `title` FROM `' . _DB_PREFIX_ . 'ws_customhtml_group`'
|
||||
);
|
||||
$languages = Language::getLanguages(false);
|
||||
|
||||
foreach ($groups as $group) {
|
||||
foreach ($languages as $language) {
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SELECT 1 FROM `' . _DB_PREFIX_ . 'ws_customhtml_group_lang`
|
||||
WHERE `id_ws_customhtml_group` = ' . (int) $group['id_ws_customhtml_group'] . '
|
||||
AND `id_lang` = ' . (int) $language['id_lang']
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$result = Db::getInstance()->insert('ws_customhtml_group_lang', [
|
||||
'id_ws_customhtml_group' => (int) $group['id_ws_customhtml_group'],
|
||||
'id_lang' => (int) $language['id_lang'],
|
||||
'title' => pSQL($group['title']),
|
||||
]);
|
||||
|
||||
if (!$result) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function dropGroupTitleColumn(): bool
|
||||
{
|
||||
$groupColumns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml_group` LIKE \'title\''
|
||||
);
|
||||
|
||||
if (empty($groupColumns)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml_group` DROP COLUMN `title`'
|
||||
);
|
||||
}
|
||||
@@ -1,102 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_21_0($module)
|
||||
{
|
||||
if (!createBlockLangTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!migrateBlockFieldsToLangTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return dropBlockLangColumns();
|
||||
}
|
||||
|
||||
function createBlockLangTable(): bool
|
||||
{
|
||||
return Db::getInstance()->execute(
|
||||
'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'ws_customhtml_lang` (
|
||||
`id_ws_customhtml` INT(11) NOT NULL,
|
||||
`id_lang` INT(11) NOT NULL,
|
||||
`title` VARCHAR(256) NOT NULL DEFAULT \'\',
|
||||
`content` LONGTEXT,
|
||||
`description` TEXT,
|
||||
`extra_description` TEXT,
|
||||
`link_text` VARCHAR(128) NOT NULL DEFAULT \'\',
|
||||
PRIMARY KEY (`id_ws_customhtml`, `id_lang`)
|
||||
);'
|
||||
);
|
||||
}
|
||||
|
||||
function migrateBlockFieldsToLangTable(): bool
|
||||
{
|
||||
$columns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'title\''
|
||||
);
|
||||
|
||||
if (empty($columns)) {
|
||||
// Already migrated in a previous run of this upgrade.
|
||||
return true;
|
||||
}
|
||||
|
||||
$blocks = Db::getInstance()->executeS(
|
||||
'SELECT `id_ws_customhtml`, `title`, `content`, `description`, `extra_description`, `link_text`
|
||||
FROM `' . _DB_PREFIX_ . 'ws_customhtml`'
|
||||
);
|
||||
$languages = Language::getLanguages(false);
|
||||
|
||||
foreach ($blocks as $block) {
|
||||
foreach ($languages as $language) {
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SELECT 1 FROM `' . _DB_PREFIX_ . 'ws_customhtml_lang`
|
||||
WHERE `id_ws_customhtml` = ' . (int) $block['id_ws_customhtml'] . '
|
||||
AND `id_lang` = ' . (int) $language['id_lang']
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$result = Db::getInstance()->insert('ws_customhtml_lang', [
|
||||
'id_ws_customhtml' => (int) $block['id_ws_customhtml'],
|
||||
'id_lang' => (int) $language['id_lang'],
|
||||
'title' => pSQL($block['title']),
|
||||
'content' => pSQL($block['content'], true),
|
||||
'description' => pSQL($block['description']),
|
||||
'extra_description' => pSQL($block['extra_description']),
|
||||
'link_text' => pSQL($block['link_text']),
|
||||
]);
|
||||
|
||||
if (!$result) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function dropBlockLangColumns(): bool
|
||||
{
|
||||
$columns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'title\''
|
||||
);
|
||||
|
||||
if (empty($columns)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml`
|
||||
DROP COLUMN `title`,
|
||||
DROP COLUMN `content`,
|
||||
DROP COLUMN `description`,
|
||||
DROP COLUMN `extra_description`,
|
||||
DROP COLUMN `link_text`'
|
||||
);
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_22_0($module)
|
||||
{
|
||||
if (!addLinkColumnToLangTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!migrateBlockLinkToLangTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return dropBlockLinkColumn();
|
||||
}
|
||||
|
||||
function addLinkColumnToLangTable(): bool
|
||||
{
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml_lang` LIKE \'link\''
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml_lang`
|
||||
ADD COLUMN `link` VARCHAR(512) NOT NULL DEFAULT \'\' AFTER `extra_description`'
|
||||
);
|
||||
}
|
||||
|
||||
function migrateBlockLinkToLangTable(): bool
|
||||
{
|
||||
$columns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'link\''
|
||||
);
|
||||
|
||||
if (empty($columns)) {
|
||||
// Already migrated in a previous run of this upgrade.
|
||||
return true;
|
||||
}
|
||||
|
||||
$blocks = Db::getInstance()->executeS(
|
||||
'SELECT `id_ws_customhtml`, `link` FROM `' . _DB_PREFIX_ . 'ws_customhtml`'
|
||||
);
|
||||
|
||||
foreach ($blocks as $block) {
|
||||
$result = Db::getInstance()->update(
|
||||
'ws_customhtml_lang',
|
||||
['link' => pSQL($block['link'])],
|
||||
'`id_ws_customhtml` = ' . (int) $block['id_ws_customhtml']
|
||||
);
|
||||
|
||||
if (!$result) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function dropBlockLinkColumn(): bool
|
||||
{
|
||||
$columns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'link\''
|
||||
);
|
||||
|
||||
if (empty($columns)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml` DROP COLUMN `link`'
|
||||
);
|
||||
}
|
||||
@@ -1,102 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_23_0($module)
|
||||
{
|
||||
if (!createSlideLangTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!migrateSlideFieldsToLangTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return dropSlideLangColumns();
|
||||
}
|
||||
|
||||
function createSlideLangTable(): bool
|
||||
{
|
||||
return Db::getInstance()->execute(
|
||||
'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'ws_customhtml_slide_lang` (
|
||||
`id_ws_customhtml_slide` INT(11) NOT NULL,
|
||||
`id_lang` INT(11) NOT NULL,
|
||||
`title` VARCHAR(256) NOT NULL DEFAULT \'\',
|
||||
`description` TEXT,
|
||||
`extra_description` TEXT,
|
||||
`link` VARCHAR(512) NOT NULL DEFAULT \'\',
|
||||
`link_text` VARCHAR(128) NOT NULL DEFAULT \'\',
|
||||
PRIMARY KEY (`id_ws_customhtml_slide`, `id_lang`)
|
||||
);'
|
||||
);
|
||||
}
|
||||
|
||||
function migrateSlideFieldsToLangTable(): bool
|
||||
{
|
||||
$columns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml_slide` LIKE \'title\''
|
||||
);
|
||||
|
||||
if (empty($columns)) {
|
||||
// Already migrated in a previous run of this upgrade.
|
||||
return true;
|
||||
}
|
||||
|
||||
$slides = Db::getInstance()->executeS(
|
||||
'SELECT `id_ws_customhtml_slide`, `title`, `description`, `extra_description`, `link`, `link_text`
|
||||
FROM `' . _DB_PREFIX_ . 'ws_customhtml_slide`'
|
||||
);
|
||||
$languages = Language::getLanguages(false);
|
||||
|
||||
foreach ($slides as $slide) {
|
||||
foreach ($languages as $language) {
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SELECT 1 FROM `' . _DB_PREFIX_ . 'ws_customhtml_slide_lang`
|
||||
WHERE `id_ws_customhtml_slide` = ' . (int) $slide['id_ws_customhtml_slide'] . '
|
||||
AND `id_lang` = ' . (int) $language['id_lang']
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$result = Db::getInstance()->insert('ws_customhtml_slide_lang', [
|
||||
'id_ws_customhtml_slide' => (int) $slide['id_ws_customhtml_slide'],
|
||||
'id_lang' => (int) $language['id_lang'],
|
||||
'title' => pSQL($slide['title']),
|
||||
'description' => pSQL($slide['description']),
|
||||
'extra_description' => pSQL($slide['extra_description']),
|
||||
'link' => pSQL($slide['link']),
|
||||
'link_text' => pSQL($slide['link_text']),
|
||||
]);
|
||||
|
||||
if (!$result) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function dropSlideLangColumns(): bool
|
||||
{
|
||||
$columns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml_slide` LIKE \'title\''
|
||||
);
|
||||
|
||||
if (empty($columns)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml_slide`
|
||||
DROP COLUMN `title`,
|
||||
DROP COLUMN `description`,
|
||||
DROP COLUMN `extra_description`,
|
||||
DROP COLUMN `link`,
|
||||
DROP COLUMN `link_text`'
|
||||
);
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_24_0($module)
|
||||
{
|
||||
if (!createFaqLangTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!migrateFaqFieldsToLangTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return dropFaqLangColumns();
|
||||
}
|
||||
|
||||
function createFaqLangTable(): bool
|
||||
{
|
||||
return Db::getInstance()->execute(
|
||||
'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'ws_customhtml_faq_lang` (
|
||||
`id_ws_customhtml_faq` INT(11) NOT NULL,
|
||||
`id_lang` INT(11) NOT NULL,
|
||||
`question` VARCHAR(512) NOT NULL DEFAULT \'\',
|
||||
`answer` TEXT,
|
||||
PRIMARY KEY (`id_ws_customhtml_faq`, `id_lang`)
|
||||
);'
|
||||
);
|
||||
}
|
||||
|
||||
function migrateFaqFieldsToLangTable(): bool
|
||||
{
|
||||
$columns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml_faq` LIKE \'question\''
|
||||
);
|
||||
|
||||
if (empty($columns)) {
|
||||
// Already migrated in a previous run of this upgrade.
|
||||
return true;
|
||||
}
|
||||
|
||||
$faqs = Db::getInstance()->executeS(
|
||||
'SELECT `id_ws_customhtml_faq`, `question`, `answer`
|
||||
FROM `' . _DB_PREFIX_ . 'ws_customhtml_faq`'
|
||||
);
|
||||
$languages = Language::getLanguages(false);
|
||||
|
||||
foreach ($faqs as $faq) {
|
||||
foreach ($languages as $language) {
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SELECT 1 FROM `' . _DB_PREFIX_ . 'ws_customhtml_faq_lang`
|
||||
WHERE `id_ws_customhtml_faq` = ' . (int) $faq['id_ws_customhtml_faq'] . '
|
||||
AND `id_lang` = ' . (int) $language['id_lang']
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$result = Db::getInstance()->insert('ws_customhtml_faq_lang', [
|
||||
'id_ws_customhtml_faq' => (int) $faq['id_ws_customhtml_faq'],
|
||||
'id_lang' => (int) $language['id_lang'],
|
||||
'question' => pSQL($faq['question']),
|
||||
'answer' => pSQL($faq['answer'], true),
|
||||
]);
|
||||
|
||||
if (!$result) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function dropFaqLangColumns(): bool
|
||||
{
|
||||
$columns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml_faq` LIKE \'question\''
|
||||
);
|
||||
|
||||
if (empty($columns)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml_faq`
|
||||
DROP COLUMN `question`,
|
||||
DROP COLUMN `answer`'
|
||||
);
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_3_0($module)
|
||||
{
|
||||
$columns = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'column_class\''
|
||||
);
|
||||
|
||||
if (empty($columns)) {
|
||||
if (!Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml`
|
||||
ADD COLUMN `column_class` VARCHAR(128) NOT NULL DEFAULT \'col-12\' AFTER `content`'
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_4_0($module)
|
||||
{
|
||||
if (!Hook::isModuleRegisteredOnHook($module, 'actionFrontControllerSetMedia', (int) Context::getContext()->shop->id)) {
|
||||
return $module->registerHook('actionFrontControllerSetMedia');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_5_0($module)
|
||||
{
|
||||
$newColumn = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'custom_class\''
|
||||
);
|
||||
|
||||
if (!empty($newColumn)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$oldColumn = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'column_class\''
|
||||
);
|
||||
|
||||
if (!empty($oldColumn)) {
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml`
|
||||
CHANGE `column_class` `custom_class` VARCHAR(128) NOT NULL DEFAULT \'\''
|
||||
);
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml`
|
||||
ADD COLUMN `custom_class` VARCHAR(128) NOT NULL DEFAULT \'\' AFTER `content`'
|
||||
);
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_6_0($module)
|
||||
{
|
||||
$columnsToAdd = [
|
||||
'description' => 'TEXT',
|
||||
'extra_description' => 'TEXT',
|
||||
'link' => 'VARCHAR(512) NOT NULL DEFAULT \'\'',
|
||||
'template' => 'VARCHAR(32) NOT NULL DEFAULT \'image_left\'',
|
||||
'image' => 'VARCHAR(255) NOT NULL DEFAULT \'\'',
|
||||
];
|
||||
|
||||
foreach ($columnsToAdd as $column => $definition) {
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'' . $column . '\''
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml` ADD COLUMN `' . $column . '` ' . $definition
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_7_0($module)
|
||||
{
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'template\''
|
||||
);
|
||||
|
||||
if (empty($existing)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml` DROP COLUMN `template`'
|
||||
);
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_8_0($module)
|
||||
{
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'template_key\''
|
||||
);
|
||||
|
||||
if (!empty($existing)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml` ADD COLUMN `template_key` VARCHAR(64) NOT NULL DEFAULT \'\''
|
||||
);
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_9_0($module)
|
||||
{
|
||||
$existing = Db::getInstance()->executeS(
|
||||
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'template_key\''
|
||||
);
|
||||
|
||||
if (empty($existing)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Db::getInstance()->execute(
|
||||
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml` DROP COLUMN `template_key`'
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -12,5 +12,6 @@
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
<script src="{{ asset('themes/default/js/bundle/pagination.js') }}"></script>
|
||||
<script src="{{ asset('../modules/ws_customhtml/views/js/admin/customhtmlblock_grid.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -12,5 +12,6 @@
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
<script src="{{ asset('themes/default/js/bundle/pagination.js') }}"></script>
|
||||
<script src="{{ asset('../modules/ws_customhtml/views/js/admin/customhtmlgroup_grid.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
Reference in New Issue
Block a user