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
$sizes: ('xxl','xl','l','m','s','xs'); | |
.brx-body{ | |
@each $size in $sizes { | |
.text--#{$size} { | |
max-inline-size: var(--text-#{$size}-length); | |
} | |
} | |
} |
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 | |
/* | |
In Bricks Attributes -> Name - insert {echo:mb_data_atts} | |
Don't put anything in the Value field | |
*/ | |
function mb_data_atts(){ | |
$fields = get_post_meta(get_the_ID()); | |
$out = ""; |
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
#adminmenu [id*="menu-posts-"]{ | |
background-color: var(--bricks-color-primary); | |
} | |
#adminmenu [id*=menu-posts-] > a { | |
color: black; | |
} | |
#adminmenu [id*=menu-posts-] > a .wp-menu-image::before{ | |
color: black; | |
} |
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 | |
function get_wsf_submission_by_url_hash(){ | |
static $submission; | |
if(!isset($_GET['hash'])) return 'No Hash URL parameter'; | |
if(!$submission){ $submission = wsf_submit_get_by_hash($_GET['hash']); } | |
return $submission; | |
} | |
function fetch_wsf_submission_field($field_id) { |
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
/*############################### | |
SCSS VARIABLES | |
################################*/ | |
$one-rem-in-px: 10px; | |
$clamp-vp-min: 480px; | |
$clamp-vp-max: 1600px; | |
$use-fluid-size: "on"; | |
$use-fluid-headings: "on"; | |
$use-fluid-text: "on"; |
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
{"content":[{"id":"pqqtzn","name":"section","parent":0,"children":["fdayxr","mixfao"],"settings":{},"label":"Code"},{"id":"fdayxr","name":"code","parent":"pqqtzn","children":[],"settings":{"code":"<script>\n/* Use this script to track status of any scripts\nThis is to ensure we don't ruun multiple times when code\nis run from Bricks Code Elements \nIdeally, all code shoule be moved to a Code Manager. By doing\nso, this control is not needed.\n*/\n((d) => {\n if (undefined === d.bbStatus) {\n let bbStatus = {};\n /* If flag is already set, return false\n Otherwise, set the flag and return true */\n const setStatus = (flag, value) => {\n if (undefined !== bbStatus[flag]) {\n return false;\n } else {\n bbStatus[flag] = value;\n return true;\n }\n }\n const getStatus = flag => {\n return bbStatus[flag];\n }\n const clearStatus = flag => {\n delete bbStatus[ |
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
{"content":[{"id":"rwtoje","name":"section","parent":0,"children":["vryybc","mjxsbw","wwmhrs"],"settings":{"_cssGlobalClasses":["yiubhh","smelsw"]},"label":"Hero 1 (CSS)"},{"id":"vryybc","name":"image","parent":"rwtoje","children":[],"settings":{"tag":"figure","caption":"none","_cssGlobalClasses":["kudcmj","lmmpmw"],"image":{"id":11,"filename":"6a0e467f-803c-32eb-a1bd-986eba296d67.jpg","size":"large","full":"https://bricks-only-live-demos.local/wp-content/uploads/2023/12/6a0e467f-803c-32eb-a1bd-986eba296d67.jpg","url":"https://bricks-only-live-demos.local/wp-content/uploads/2023/12/6a0e467f-803c-32eb-a1bd-986eba296d67-1024x682.jpg"}},"label":"Overlay Image"},{"id":"mjxsbw","name":"block","parent":"rwtoje","children":[],"settings":{"_cssGlobalClasses":["rczaig","swsrem","rwlhym"]},"label":"Overlay Block"},{"id":"wwmhrs","name":"container","parent":"rwtoje","children":["gpzyue"],"settings":{"_cssGlobalClasses":["otowbe"]},"label":"Wrapper"},{"id":"gpzyue","name":"block","parent":"wwmhrs","children":["qhjlra","v |
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('get_footer', function(){ | |
if (!class_exists('Bricks\Capabilities')) { | |
return; | |
} | |
if( !bricks_is_builder() ) return; | |
?> |
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 | |
define("WPE_AUTH_TRACKER_TABLE_NAME", "wpe_ip_tracker"); | |
define("WPE_AUTH_TRACKER_MAX_AGE", 14400); /* 4 hours */ | |
function maybe_create_ip_tracking_table() | |
{ | |
/* ensure called only once per load */ | |
static $initialised; | |
if ($initialised) { |
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 | |
/** | |
* Hide paid shipping methods if free shipping is available. | |
*/ | |
/* | |
$name should be the part before the : separaor | |
*/ | |
function wpe_find_shipping_method($name, $rates){ |
OlderNewer