Add new animations for retail, corporate, education, outdoor, live data, healthcare, transit, and fitness sectors

- Extend block attributes to include new animation options in index.php
- Implement animation rendering logic for each sector in oribi_render_platform_row function
- Enqueue new JavaScript file for solutions page animations in enqueue.php
- Create solutions-animator.js to handle live data KPI and transit board animations
This commit is contained in:
Matt Batchelder
2026-03-16 20:29:15 -04:00
parent 9f415320de
commit fa6dce039b
5 changed files with 2144 additions and 8 deletions

View File

@@ -56,6 +56,15 @@ add_action( 'wp_enqueue_scripts', function () {
true
);
// Solutions page animators - live data KPI ticker and transit departure board
wp_enqueue_script(
'oribi-solutions-animator',
ORIBI_URI . '/assets/js/solutions-animator.js',
[],
ORIBI_VERSION . '.' . filemtime( ORIBI_DIR . '/assets/js/solutions-animator.js' ),
true
);
// Localize AJAX endpoint for the contact form
wp_localize_script( 'oribi-main', 'oribiAjax', [
'url' => admin_url( 'admin-ajax.php' ),