Skip to content

Commit

Permalink
Merge pull request #2 from bootscore/5.1.0
Browse files Browse the repository at this point in the history
Deny direct access
  • Loading branch information
crftwrk authored Jan 10, 2024
2 parents 34c3cf8 + d420f43 commit d9cc683
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 25 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 The bootScore Contributors
Copyright (c) 2021 - 2024 The Bootscore Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
// silence is golden
// silence is golden
28 changes: 18 additions & 10 deletions main.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
<?php
/*Plugin Name: bS Masonry
/*Plugin Name: bs Masonry
Plugin URI: https://bootscore.me/category/archives/masonry/
Description: This plugin adds masonry.js to WordPress. It is only required if a *-masonry.php in bootScore used and replaces the card columns of Bootstrap 4, which are no longer included in Bootstrap 5.
Version: 5.0.0.1
Author: Bastian Kreiter
Author URI: https://crftwrk.de
Description: This plugin adds masonry.js to WordPress. It's required if a *-masonry.php file in Bootscore used and replaces the card columns of Bootstrap 4, which are no longer included in Bootstrap 5.
Version: 5.1.0
Tested up to: 6.4.2
Requires at least: 5.0
Requires PHP: 7.4
Author: Bootscore
Author URI: https://bootscore.me
License: MIT License
*/


// Exit if accessed directly
defined( 'ABSPATH' ) || exit;

// Register masonry.pkgd.min.js

/**
* Register masonry.pkgd.min.js
*/
function masonry_scripts() {

wp_enqueue_script( 'masonry-js', plugins_url( '/js/masonry.pkgd.min.js' , __FILE__ ), array( 'jquery' ), '1.0', true );
wp_enqueue_script( 'masonry-js', plugins_url( '/js/masonry.pkgd.min.js' , __FILE__ ), array( 'jquery' ), '1.0', true );

}
add_action('wp_enqueue_scripts','masonry_scripts');
}

add_action('wp_enqueue_scripts','masonry_scripts');
30 changes: 17 additions & 13 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
=== bS Masonry ===
=== bs Masonry ===

Contributors: Bastian Kreiter
Contributors: Bootscore

Requires at least: 4.5
Tested up to: 5.8.1
Requires PHP: 5.6
Stable tag: 5.0.0.1
Stable tag: 5.1.0
Tested up to: 6.4.2
Requires at least: 5.0
Requires PHP: 7.4
License: MIT License
License https://github.com/bootscore/bs-masonry/blob/main/LICENSE

This plugin adds masonry.js to WordPress. It is only required if a *-masonry.php in bootScore is used and replaces the card columns of Bootstrap 4, which are no longer included in Bootstrap 5. Copyright 2021 The bootScore Contributors.
This plugin adds masonry.js to WordPress. It's required if a *-masonry.php file in Bootscore is used and replaces the card columns of Bootstrap 4, which are no longer included in Bootstrap 5. Copyright 2021 The Bootscore Contributors.


== License & Credits ==
Expand All @@ -33,10 +33,14 @@ masonry.js by David DeSandro, MIT License https://masonry.desandro.com/#mit-lice

== Changelog ==

= 5.0.0.1 - March 08 2021 =

* [SEO] Load masonry.pkgd.min.js in footer
= 5.1.0 - January 10 2024 =

= 5.0.0 - October 08 2020 =

* Initial release
* [IMPROVEMENT] Deny direct access

= 5.0.1 - March 08 2021 =

* [SEO] Load masonry.pkgd.min.js in footer

= 5.0.0 - October 08 2020 =

* Initial release

0 comments on commit d9cc683

Please sign in to comment.