Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Localize Theme Options
- */
- add_action( 'wp_enqueue_scripts', 'arts_inline_theme_components', 60 );
- function arts_inline_theme_components() {
- wp_localize_script(
- 'asli-app',
- 'asli_theme_components', // this will go to app.assets.asli_theme_components
- array(
- 'Preloader' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Preloader.js' ),
- ),
- 'Header' => array(
- 'dependencies' => array( 'arts-header' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Header.js' ),
- ),
- 'MenuOverlay' => array(
- 'dependencies' => array( 'arts-infinite-list' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/MenuOverlay.js' ),
- ),
- 'MenuClassic' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/MenuClassic.js' ),
- ),
- 'SliderFullpageBackgroundsMask' => array(
- 'dependencies' => array( 'arts-fullpage-slider' ),
- 'files' => array(
- array(
- 'type' => 'script',
- 'src' => esc_url( ARTS_THEME_URL . '/js/components/SliderFullpageBase.js' ),
- 'id' => 'slider-fullpage-base-js',
- ),
- ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/SliderFullpageBackgroundsMask.js' ),
- ),
- 'SliderFullpageBackgroundsSlide' => array(
- 'dependencies' => array( 'arts-fullpage-slider' ),
- 'files' => array(
- array(
- 'type' => 'script',
- 'src' => esc_url( ARTS_THEME_URL . '/js/components/SliderFullpageBase.js' ),
- 'id' => 'slider-fullpage-base-js',
- ),
- ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/SliderFullpageBackgroundsSlide.js' ),
- ),
- 'SliderTestimonials' => array(
- 'dependencies' => array( 'arts-fullpage-slider' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/SliderTestimonials.js' ),
- ),
- 'InfiniteList' => array(
- 'dependencies' => array( 'arts-infinite-list' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/InfiniteList.js' ),
- ),
- 'CurtainsBase' => array(
- 'dependencies' => array( 'curtains' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/CurtainsBase.js' ),
- ),
- 'SplitCounter' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/SplitCounter.js' ),
- ),
- 'MarqueeHeader' => array(
- 'dependencies' => array( 'arts-infinite-list' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/MarqueeHeader.js' ),
- ),
- 'MarqueeHeadingsHover' => array(
- 'dependencies' => array( 'arts-infinite-list' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/MarqueeHeadingsHover.js' ),
- ),
- 'ScreensWall' => array(
- 'dependencies' => array( 'arts-infinite-list' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/ScreensWall.js' ),
- ),
- 'RotatingButton' => array(
- 'dependencies' => array( 'circle-type' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/RotatingButton.js' ),
- ),
- 'ArcImages' => array(
- 'dependencies' => array( 'arts-infinite-list' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/ArcImages.js' ),
- ),
- 'Scroll' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Scroll.js' ),
- ),
- 'AJAX' => array(
- 'dependencies' => array( 'barba' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/AJAX.js' ),
- ),
- 'Masthead' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Masthead.js' ),
- ),
- 'Content' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Content.js' ),
- ),
- 'Parallax' => array(
- 'dependencies' => array( 'arts-parallax' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Parallax.js' ),
- ),
- 'HorizontalScroll' => array(
- 'dependencies' => array( 'arts-horizontal-scroll' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/HorizontalScroll.js' ),
- ),
- 'CursorFollower' => array(
- 'dependencies' => array( 'arts-cursor-follower' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/CursorFollower.js' ),
- ),
- 'PSWP' => array(
- 'dependencies' => array( 'photoswipe' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/PSWP.js' ),
- ),
- 'GMap' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Gmap.js' ),
- ),
- 'FormAJAX' => array(
- 'dependencies' => array( 'pristine', 'bootstrap-modal' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/FormAJAX.js' ),
- ),
- 'Grid' => array(
- 'dependencies' => array( 'isotope' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Grid.js' ),
- ),
- 'AutoScrollNext' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/AutoScrollNext.js' ),
- ),
- 'FixedHeader' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/FixedHeader.js' ),
- ),
- 'FixedWall' => array(
- 'dependencies' => array( 'arts-infinite-list' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/FixedWall.js' ),
- ),
- 'CounterUp' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/CounterUp.js' ),
- ),
- 'SliderImages' => array(
- 'dependencies' => array( 'arts-infinite-list' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/SliderImages.js' ),
- ),
- 'ClickAndHold' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/ClickAndHold.js' ),
- ),
- 'Mask' => array(
- 'dependencies' => array(),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Mask.js' ),
- ),
- 'Gui' => array(
- 'dependencies' => array( 'dat-gui', 'barba' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Gui.js' ),
- ),
- 'Comments' => array(
- 'dependencies' => array( 'pristine' ),
- 'file' => esc_url( ARTS_THEME_URL . '/js/components/Comments.js' ),
- ),
- )
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement