feat(display): region landing page with city grid

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 15:23:40 +03:30
parent 8b70ae9104
commit f6153376f9
3 changed files with 83 additions and 1 deletions

View File

@@ -532,6 +532,10 @@ class VC_Display {
}
public static function taxonomy_template( $template ) {
if ( is_tax( 'viator_destination' ) && get_term_meta( get_queried_object_id(), '_vc_region', true ) ) {
$path = get_stylesheet_directory() . '/viator-collector/region.php';
return file_exists( $path ) ? $path : VC_PLUGIN_DIR . 'templates/region.php';
}
if ( is_tax( array( 'viator_destination', 'viator_tag', 'viator_category' ) ) ) {
$path = get_stylesheet_directory() . '/viator-collector/taxonomy-viator.php';
if ( file_exists( $path ) ) {