Skip to content

Commit

Permalink
Format update
Browse files Browse the repository at this point in the history
  • Loading branch information
deanoakley committed May 26, 2016
1 parent bb8f0b6 commit e1c32b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions photoswipe-masonry.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,17 +303,17 @@ function photoswipe_scripts_method() {
wp_enqueue_script('jquery');

//Core JS file
wp_enqueue_script( 'photoswipe', $photoswipe_wp_plugin_path . '/photoswipe-dist/photoswipe.min.js');
wp_enqueue_script( 'photoswipe', $photoswipe_wp_plugin_path . '/photoswipe-dist/photoswipe.min.js');

wp_enqueue_script( 'photoswipe-masonry-js', $photoswipe_wp_plugin_path . '/photoswipe-masonry.js');
wp_enqueue_script( 'photoswipe-masonry-js', $photoswipe_wp_plugin_path . '/photoswipe-masonry.js');

//UI JS file
wp_enqueue_script( 'photoswipe-ui-default', $photoswipe_wp_plugin_path . '/photoswipe-dist/photoswipe-ui-default.min.js');
wp_enqueue_script( 'photoswipe-ui-default', $photoswipe_wp_plugin_path . '/photoswipe-dist/photoswipe-ui-default.min.js');

//Masonry - re-named to move to header
wp_enqueue_script( 'photoswipe-masonry', $photoswipe_wp_plugin_path . '/masonry.pkgd.min.js','','',false);
wp_enqueue_script( 'photoswipe-masonry', $photoswipe_wp_plugin_path . '/masonry.pkgd.min.js','','',false);
//imagesloaded
wp_enqueue_script( 'imagesloaded', $photoswipe_wp_plugin_path . '/imagesloaded.pkgd.min.js','','',false);
wp_enqueue_script( 'imagesloaded', $photoswipe_wp_plugin_path . '/imagesloaded.pkgd.min.js','','',false);

}
add_action('wp_enqueue_scripts', 'photoswipe_scripts_method');
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Some other features include:

See a [demo here](http://thriveweb.com.au/the-lab/PhotoSwipe/ "PhotoSwipeWP")


== Installation ==

1. Upload `/photoSwipe-masonry/` to the `/wp-content/plugins/` directory
Expand Down

0 comments on commit e1c32b0

Please sign in to comment.