How xdianovx/bsi works
This is a WordPress travel-agency theme, not the generic Underscores starter described by the README. Its visible product spans travel content pages and interactive search, booking, and hotel-price features, with SamoTour as an external travel-data integration. The principal browser workflow initializes search and catalog interactions, which call WordPress AJAX endpoints; excerpts do not establish most of those endpoint connections, so they are not drawn. Some capabilities are represented by their exact tree paths, but their internal wiring is unsampled.
Main entry points: main.js Browser initializer · SamoService.php Samo service · hotels-prices.js Hotel price polling · SamoClient.php Samo HTTP client
Components 25
Theme and content
- Theme templates
functions.php - Travel content types
inc/post-types - Country pages
single-country.php - Education programs
inc/post-types/education.php - Events and tours
inc/post-types/custom-post-event.php - Hotel pages
inc/hotel-page/view.php
Browser interactions
- Browser initializer
js/main.js - Travel search
js/modules/gtm-search.js - Country tour filters
js/modules/ajax/country-tours.js - Education filters
js/modules/ajax/education-filter.js - Event tour filters
js/modules/ajax/event-tours.js - Hotel catalog
js/modules/ajax/hotels-api-catalog.js - Hotel price polling
js/modules/ajax/hotels-prices.js
Travel data integration
- Price loading service
inc/services/PriceLoaderService.php - Transient cache
inc/services/CacheService.php - Event-tour data
inc/helpers/crosstour.php - Samo service
inc/samo/SamoService.php - Samo endpoints
inc/samo/SamoEndpoints.php - Samo HTTP client
inc/samo/SamoClient.php
Hotel API
- Hotel API client
inc/hotels-api/HotelsApiClient.php - Hotel search handler
inc/requests/ajax-hotels-api-search.php
Requests and bookings
- Booking forms
js/modules/forms - WordPress request handlers
inc/requests
Other components
- Site visitor
- SamoTour API
Connections 17
- Site visitor → Theme templates: visits
- Browser initializer → Travel search: initializes
js/main.js - Browser initializer → Hotel price polling: initializes
js/main.js - Browser initializer → Country tour filters: initializes
js/main.js - Browser initializer → Event tour filters: initializes
js/main.js - Travel search → Site visitor: presents search
- Hotel price polling → Site visitor: updates prices
- Hotel price polling → WordPress request handlers: requests prices
- Hotel catalog → Hotel search handler: requests catalog
- Price loading service → Transient cache: reads cache
inc/services/PriceLoaderService.php - Price loading service → Samo service: loads prices
inc/services/PriceLoaderService.php - Event-tour data → Transient cache: reads cache
inc/helpers/crosstour.php - Event-tour data → Samo service: requests tour data
inc/helpers/crosstour.php - Samo service → Samo HTTP client: creates client
inc/samo/SamoService.php - Samo service → Samo endpoints: creates endpoints
inc/samo/SamoService.php - Samo endpoints → Samo HTTP client: dispatches requests
inc/samo/SamoEndpoints.php - Samo HTTP client → SamoTour API: sends HTTP request
inc/samo/SamoClient.php