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
| /* | |
| Add class .ab-vp-tracker to elements you want to track | |
| [data-track-side="top|center|bottom|ends"] - part of element to track | |
| [data-track-top-offset="px|%"] pixels or % from the top of VP to track | |
| [data-track-bottom-offset="px|%"] pixels or % from the bottom of VP to track | |
| [data-invert] Scrubs outside of the tracked window from vp top and bottom to offsets. | |
| */ | |
| (() => { | |
| const parseOffset = (offset, vh) => | |
| offset?.endsWith('%') ? (parseFloat(offset) / 100) * vh : parseFloat(offset || 0); |
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
| /* | |
| CTRL | CMD + SHIFT + < - toggles the settings panel. | |
| CTRL | CMD + SHIFT + > - toggles the structure panel. | |
| CTRL | CMD + SHIFT + ? - toggles both panels at the same time. | |
| */ | |
| (function () { | |
| if (window.__bricksHotkeyInit) return; | |
| window.__bricksHotkeyInit = true; | |
| function attachHotkeyListener(targetWindow) { |
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
| /* UPDATED 23/10/2025 */ | |
| (() => { | |
| // ==================================== | |
| // Detect if in Bricks Builder Editor | |
| // ==================================== | |
| const isInBricksEditor = () => { | |
| // Check for bricks=run query parameter (most reliable) | |
| const urlParams = new URLSearchParams(window.location.search); |
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 | |
| /** | |
| * WPE Brand bootstrap (users_brand → Brand post → CSS vars) | |
| * | |
| * Rules: | |
| * - Post Type: "Brand" | |
| * - User profile meta: users_brand (int Brand post ID) | |
| * - Brand meta: | |
| * - brand_primary_color -> --brand-primary | |
| * - brand_secondary_color -> --brand-secondary |
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 | |
| /*############################## | |
| BRICKS BUILDER | |
| ###############################*/ | |
| /** | |
| * Bricks: add custom conditions | |
| * Requires Bricks Element Conditions API (Bricks 1.8.4+) | |
| */ |
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
| Please answer the following settings for generating a CSS clamp() value. I will not proceed until you provide all the values (or confirm the defaults): | |
| Clamp() Generation Settings | |
| 1. What is the base rem size? (default: 10px) | |
| 2. What is the min viewport width? (default: 380px) | |
| 3. What is the min size in pixels? (default: 15px) | |
| 4. What is the max viewport width? (default: 1600px) | |
| 5. What is the max size in pixels? (default: 18px) | |
| ________________________________________ | |
| 📐 Choose a spacing scale ratio (case-insensitive) | |
| Options: |
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
| (() => { | |
| const parseOffset = (offset, vh) => | |
| offset?.endsWith('%') ? (parseFloat(offset) / 100) * vh : parseFloat(offset || 0); | |
| const getTargetPoint = (rect, side) => { | |
| switch (side) { | |
| case 'top': return rect.top; | |
| case 'center': return rect.top + rect.height / 2; | |
| case 'bottom': return rect.bottom; | |
| default: return rect.top; |
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_filter('gform_field_validation', 'check_disposable_email_gf', 10, 4); | |
| function check_disposable_email_gf($result, $value, $form, $field) { | |
| if ($field->get_input_type() !== 'email' || empty($value)) { | |
| return $result; | |
| } | |
| // Exact domain blocklist | |
| $blocked_domains = [ |
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_filter("bricks/code/echo_function_names", function () { | |
| return [ | |
| "wpe_date_is_eq_now", | |
| "wpe_date_is_gt_now", | |
| "wpe_date_is_gte_now", | |
| "wpe_date_is_lt_now", | |
| "wpe_date_is_lte_now", | |
| "wpe_output_date_stats", |
NewerOlder