Add feature animations and update styles for kiosks and about pages
- Introduced `featuresAnim` option in editor and index files to enable feature ticker animations. - Updated rendering logic to include feature animations in the about section. - Added new JavaScript files for handling animations on the about page and kiosks page. - Adjusted CSS classes to accommodate new animations and ensure proper visual representation. - Changed primary color in theme defaults for a more cohesive design.
This commit is contained in:
@@ -74,6 +74,24 @@ add_action( 'wp_enqueue_scripts', function () {
|
||||
true
|
||||
);
|
||||
|
||||
// About page animator - feature ticker cycling highlight
|
||||
wp_enqueue_script(
|
||||
'oribi-about-animator',
|
||||
ORIBI_URI . '/assets/js/about-animator.js',
|
||||
[],
|
||||
ORIBI_VERSION . '.' . filemtime( ORIBI_DIR . '/assets/js/about-animator.js' ),
|
||||
true
|
||||
);
|
||||
|
||||
// Kiosks page animators - self check-in scenario cycling and product catalogue kiosk
|
||||
wp_enqueue_script(
|
||||
'oribi-kiosks-animator',
|
||||
ORIBI_URI . '/assets/js/kiosks-animator.js',
|
||||
[],
|
||||
ORIBI_VERSION . '.' . filemtime( ORIBI_DIR . '/assets/js/kiosks-animator.js' ),
|
||||
true
|
||||
);
|
||||
|
||||
// Localize AJAX endpoint for the contact form
|
||||
wp_localize_script( 'oribi-main', 'oribiAjax', [
|
||||
'url' => admin_url( 'admin-ajax.php' ),
|
||||
|
||||
@@ -39,7 +39,7 @@ function oribi_get_theme_defaults() {
|
||||
'color_bg_alt' => '#F5F5F5',
|
||||
|
||||
/* ── Dark-mode colour palette ───────────────────────── */
|
||||
'dark_primary' => '#FF6B3D',
|
||||
'dark_primary' => '#D83302',
|
||||
'dark_primary_dk' => '#D83302',
|
||||
'dark_primary_lt' => 'rgba(216,51,2,0.15)',
|
||||
'dark_accent' => '#66BB6A',
|
||||
|
||||
Reference in New Issue
Block a user