/** */ public function init_scripts() { parent::init_scripts(); if (!is_admin()) { wp_enqueue_script('jquery-fitvids'); } }
/** * @internal copied from bp-default/functions.php */ public function init_scripts() { parent::init_scripts(); // Bump this when changes are made to bust cache $version = '20120110'; // the global BuddyPress JS - Ajax will not work without it wp_enqueue_script('dtheme-ajax-js', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/global.js', array('jquery'), $version); // Add words that we need to use in JS to the end of the page so they can be translated and still used. $params = array('my_favs' => __('My Favorites', 'buddypress'), 'accepted' => __('Accepted', 'buddypress'), 'rejected' => __('Rejected', 'buddypress'), 'show_all_comments' => __('Show all comments for this thread', 'buddypress'), 'show_all' => __('Show all', 'buddypress'), 'comments' => __('comments', 'buddypress'), 'close' => __('Close', 'buddypress'), 'view' => __('View', 'buddypress'), 'mark_as_fav' => __('Favorite', 'buddypress'), 'remove_fav' => __('Remove Favorite', 'buddypress')); wp_localize_script('dtheme-ajax-js', 'BP_DTheme', $params); }
/** * @internal copied from bp-default/functions.php */ public function init_scripts() { parent::init_scripts(); // Enqueue various scripts wp_enqueue_script('bp-jquery-query'); wp_enqueue_script('bp-jquery-cookie'); // Enqueue scrollTo only on activity pages if (bp_is_activity_component()) { wp_enqueue_script('bp-jquery-scroll-to'); } // Enqueue members widget JS just in case if (is_active_widget(false, false, 'bp_core_members_widget') && !is_admin() && !is_network_admin()) { wp_enqueue_script('bp-widget-members'); } // Bump this when changes are made to bust cache $version = '20120110'; // the global BuddyPress JS - Ajax will not work without it wp_enqueue_script('dtheme-ajax-js', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/global.js', array('jquery'), bp_get_version()); // Add words that we need to use in JS to the end of the page so they can be translated and still used. $params = array('my_favs' => __('My Favorites', 'buddypress'), 'accepted' => __('Accepted', 'buddypress'), 'rejected' => __('Rejected', 'buddypress'), 'show_all_comments' => __('Show all comments for this thread', 'buddypress'), 'show_x_comments' => __('Show all %d comments', 'buddypress'), 'show_all' => __('Show all', 'buddypress'), 'comments' => __('comments', 'buddypress'), 'close' => __('Close', 'buddypress'), 'view' => __('View', 'buddypress'), 'mark_as_fav' => __('Favorite', 'buddypress'), 'remove_fav' => __('Remove Favorite', 'buddypress'), 'unsaved_changes' => __('Your profile has unsaved changes. If you leave the page, the changes will be lost.', 'buddypress')); wp_localize_script('dtheme-ajax-js', 'BP_DTheme', $params); }
/** */ public function init_scripts() { parent::init_scripts(); if (!is_admin()) { wp_enqueue_script('jquery-mobilemenu'); } }
/** */ public function init_scripts() { parent::init_scripts(); // need joyride script wp_enqueue_script('joyride', $this->locate_file_url('assets/jquery.joyride.js')); }