This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Passle Import Controller | |
* | |
* Transform Passle API queries to a format that can be imported with Feed Me. | |
* | |
* @link https://hallmark-design.co.uk | |
* @copyright Copyright (c) 2025 Mark Croxton | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.matrixblock[data-type="sectionBlock"] > .titlebar > .blocktype { | |
color: var(--text-color); | |
font-weight: 600; | |
} | |
.matrixblock[data-type="sectionBlock"] ~ .matrixblock:not([data-type="sectionBlock"]) { | |
margin-left: 15px; | |
} | |
.matrixblock + .matrixblock[data-type="sectionBlock"] { | |
margin-top: 30px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.matrixblock[data-type="sectionBlock"] ~ .matrixblock:not([data-type="sectionBlock"]) { | |
margin-left: 14px; | |
} | |
.matrixblock + .matrixblock[data-type="sectionBlock"] { | |
margin-top: 30px; | |
} | |
.matrixblock[data-type="sectionBlock"] ~ .matrixblock:not([data-type="sectionBlock"])::before { | |
background: #DFE5EA; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* htmx components extension | |
* | |
* @author Mark Croxton, Hallmark Design | |
* | |
* How to use: | |
* | |
* 1. Include this script in your page, after htmx.js | |
* <script src="/path/to/ext/components.js" defer></script> | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exclude UK Highland and Islands Regex: | |
^ # Start of line | |
(?! # Exclude the following | |
IV([1-9]|[1-4][0-9]|5[0-6])[\s]*([\d][A-Za-z]{2}) # Inverness IV1 - IV56 | |
| # or | |
BT[0-9]{1,2}[\s]*([\d][A-Za-z]{2}) # Belfast BT | |
| | |
GY[0-9]{1,2}[\s]*([\d][A-Za-z]{2}) # Guernsey GY | |
| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Settings | |
*/ | |
$sal-animation-duration: 0.5s !default; | |
$sal-animation-delay: 0s !default; | |
$sal-animation-easing: ease !default; | |
$sal-slide-offset: 20% !default; | |
$sal-zoom-in-scale: 0.9 !default; | |
$sal-zoom-out-scale: 1.1 !default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
// on click of sidebar entry type | |
document.addEventListener('click', function (event) { | |
if (event.target.parentNode && event.target.parentNode.matches('a[data-entry-type].sel')) { | |
setTimeout(function () { | |
manageNewEntryButton(event.target.parentNode); | |
}, 10); | |
} | |
}, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="my-unique-id" hx-history-preserve> | |
<p>Markup here wil be returned to it's original state on history restore.</p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//=========================================== | |
// Create a new history entry for the request | |
//=========================================== | |
var pushUrl = getClosestAttributeValue(elt, "hx-push-url"); | |
var elementIsBoosted = getInternalData(elt).boosted; | |
if (pushUrl || elementIsBoosted) { | |
// If hx-push-url is explicitly defined (and not "true" or "false"), | |
// we already know what the final URL should be. |
NewerOlder