Save
This commit is contained in:
@@ -1 +1 @@
|
||||
.elementor-element.elementor-arrows-position-outside .swiper,.elementor-lightbox.elementor-arrows-position-outside .swiper{width:calc(100% - 160px)}#header-nav ul.elementor-nav-menu li.menu-item a::after{bottom:-5px}/*# sourceMappingURL=custom.css.map */
|
||||
.elementor-element.elementor-arrows-position-outside .swiper,.elementor-lightbox.elementor-arrows-position-outside .swiper{width:calc(100% - 160px)}#header-nav ul.elementor-nav-menu li.menu-item a::after{bottom:-5px}.spot.is-reserved{fill:#f4eba8}.spot.is-sold{fill:#f54040}/*# sourceMappingURL=custom.css.map */
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["custom.scss"],"names":[],"mappings":"AAAA,2HAEC,wBAAA,CAQG,wDACC,WAAA","file":"custom.css"}
|
||||
{"version":3,"sources":["custom.scss"],"names":[],"mappings":"AAAA,2HAEC,wBAAA,CAQG,wDACC,WAAA,CASJ,kBACC,YAAA,CAED,cACC,YAAA","file":"custom.css"}
|
||||
@@ -16,3 +16,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.spot {
|
||||
&.is-reserved {
|
||||
fill: #f4eba8;
|
||||
}
|
||||
&.is-sold {
|
||||
fill: #f54040;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -287,3 +287,24 @@ add_action( 'wp_enqueue_scripts', function() {
|
||||
}
|
||||
|
||||
}, PHP_INT_MAX );
|
||||
|
||||
function he_garage_map_shortcode($atts = [], $content = null, $tag = '') {
|
||||
$atts = shortcode_atts([
|
||||
// 'example' => '',
|
||||
], $atts, $tag);
|
||||
|
||||
$template = locate_template('template-parts/garage-map.php', false, false);
|
||||
|
||||
if (empty($template) || !file_exists($template)) {
|
||||
return '<!-- garage-map.php not found -->';
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
||||
$garage_map_atts = $atts;
|
||||
|
||||
include $template;
|
||||
|
||||
return ob_get_clean();
|
||||
}
|
||||
add_shortcode('garage_map', 'he_garage_map_shortcode');
|
||||
166
wp-content/themes/hello-elementor/template-parts/garage-map.php
Normal file
166
wp-content/themes/hello-elementor/template-parts/garage-map.php
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user