Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Modified to use a more generic handle name for prettyPhoto to avoid multiple loading and collision with other plugins using PrettyPhoto
- */
- function buddystream_style()
- {
- wp_register_style(
- 'buddystream_css',
- WP_PLUGIN_URL . '/buddystream/css/buddystream.css'
- );
- wp_enqueue_style('buddystream_css');
- wp_register_style(
- 'buddystream_twitter_css',
- WP_PLUGIN_URL . '/buddystream/css/twitter.css'
- );
- wp_enqueue_style('buddystream_twitter_css');
- wp_register_style(
- 'buddystream_facebook_css',
- WP_PLUGIN_URL . '/buddystream/css/facebook.css'
- );
- wp_enqueue_style('buddystream_facebook_css');
- wp_register_style(
- 'buddystream_youtube_css',
- WP_PLUGIN_URL . '/buddystream/css/youtube.css'
- );
- wp_enqueue_style('buddystream_youtube_css');
- /*register as prettyphoto_css to allow other plugins use it, without collision*/
- wp_register_style(
- 'prettyphoto_css',
- WP_PLUGIN_URL . '/buddystream/js/prettyphoto/css/prettyPhoto.css'
- );
- wp_enqueue_style('prettyphoto_css');
- wp_enqueue_script('buddystream', WP_PLUGIN_URL . '/buddystream/js/main.js');
- if (!get_site_option("buddystream_server_cron")) {
- wp_enqueue_script('buddystream_import', WP_PLUGIN_URL . '/buddystream/js/import.js');
- }
- //use a generic handle for PrettyPhoto to avoid collision
- wp_enqueue_script('prettyphoto', WP_PLUGIN_URL . '/buddystream/js/prettyphoto/jquery.prettyPhoto.js');
- }
Add Comment
Please, Sign In to add comment