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 x-data="faqs"> | |
<div class="flex flex-wrap md:flex-nowrap justify-between my-4"> | |
<div class="col md:w-1/4 w-full bg-gray-100 p-4 text-lg"> | |
<input x-model="search" type="text" placeholder="Search..." class="w-full p-4 rounded-3xl border border-gray-500 focus:outline-none focus-visible:border-pink-600"> | |
<div class=""> | |
<button class="cursor-pointer p-4 my-2 rounded-3xl bg-gray-200 text-center transition hover:bg-gray-300" @click="selectCategory(0)">All</button> | |
{% for category in module.categories %} | |
<button class="cursor-pointer p-4 my-2 rounded-3xl bg-gray-200 text-center transition hover:bg-gray-300" @click="selectCategory({{ loop.index }})">{{ category }}</button> | |
{% endfor %} | |
</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
<?php | |
add_action( 'init', function() { | |
add_action( 'forminator_custom_form_submit_before_set_fields', function( $entry, $form_id, $field_data_array ) { | |
// add the ID of the Forminator form. This needs to be an `int` to | |
// pass the below if statement | |
$on24_forminator_form_id = 1234; | |
// if we're not submitting the above form, don't schedule the action |
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
$('body').html($('body').html().replace(/~\[(.*?)\]~/g, "<div class=\"js-gist\" data-src=\"$1\">$1</div>")); | |
$('.js-gist[data-src]').each(function(){ | |
// we need to store $this for the callback | |
var $this = $(this); | |
// load gist as json instead with a jsonp request | |
// NOTE: currently this only works for single files, if you want the whole gist, use this | |
// $.getJSON( $this.attr('data-src') + '?callback=?', function( data ) { |
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 namespace Your\Namespace\Components; | |
use Cms\Classes\ComponentBase; | |
use Config; | |
class StructuredData extends ComponentBase | |
{ | |
/** | |
* set the component's details |
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
location = /url/to/redirect { | |
rewrite ^ https://www.domain.com/catalogue redirect; | |
} |