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 exl_display_block_pattern_by_id($pattern_id) { | |
$pattern_id = intval($pattern_id); // Ensure the input is an integer. | |
if($pattern_id <= 0) return false; | |
$pattern_html = get_post_field('post_content', $pattern_id); | |
if($pattern_html) echo $pattern_html; | |
else{ | |
echo '<p>Pattern not found with ID: ' . esc_html($pattern_id) . '</p>'; | |
return 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
.bg-gray{background:#efefef;} | |
.full-bg{box-shadow:0 0 0 100vmax #efefef; clip-path: inset(0 -100vmax);} |
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
npm create vite@latest |
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
//Popover | |
const popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')); | |
const popoverList = popoverTriggerList.map(function (popoverTriggerEl) { | |
return new Popover(popoverTriggerEl); | |
}) | |
//Tooltip | |
const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) | |
const tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { | |
return new Tooltip(tooltipTriggerEl); | |
}); |
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
//TEMP REMOVE GO LIVE | |
function redirect_if_user_not_logged_in() { | |
global $post; | |
$show_live_pages = [3,46]; | |
if(in_array($post->ID, $show_live_pages)) return; | |
if(is_admin()) return; | |
if (!is_user_logged_in() && !is_front_page()) { | |
wp_redirect( 'https://northernfeedandbean.com'); | |
exit; | |
} |
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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^franchise\.seniorshelpingseniors\.com [NC] | |
RewriteCond %{REQUEST_URI} !^/$ [NC] | |
RewriteRule ^.*$ http://seniorshelpingseniorsfranchise.com/ [L] |
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
$args = array( | |
'post_type' => 'resources', | |
'posts_per_page' => -1, | |
'meta_query' => array( | |
array( | |
'key' => '_thumbnail_id', | |
'compare' => 'EXISTS' | |
), | |
) | |
); |
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
.video-left #content-right{ | |
-ms-overflow-style: none; /* for Internet Explorer, Edge */ | |
scrollbar-width: none; /* for Firefox */ | |
overflow-y: scroll; | |
} | |
.content-scroller::-webkit-scrollbar { | |
display: none; /* for Chrome, Safari, and Opera */ | |
} |
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
.v-aligner{display: flex; align-items: center; justify-content: center;} | |
.v-aligner-item-top{align-self: flex-start;} | |
.v-aligner-item-bottom{align-self: flex-end;} |
NewerOlder