Skip to content

Commit

Permalink
update statics version and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Sep 12, 2021
1 parent 5662567 commit f249de5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions photographers-galleries.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: Photographers galleries
* Plugin URI: https://wordpress.org/plugins/photographers-galleries/
* Description: Enhance your galleries with HTML5, metadata, dynamic galleries and add a lightweight carousel to display a sequence of pictures without distractions.
* Version: 1.0.4
* Version: 1.0.6
* Author: Aurélien PIERRE
* Author URI: https://photo.aurelienpierre.com
* Text Domain: photographers-galleries
Expand All @@ -30,17 +30,20 @@
/**
* Register CSS
*
* The styles are loaded with a priority of 20 :
* The styles are loaded with a priority of 10 :
* * to override the gallery styles of your theme, ensure your theme loads its own stylesheet with a greater priority (> 20),
* * to have these galleries styles overwritten by your custom stylesheet, either :
* * deregister pg-css (but ensure you redefined all the styles) and register your own CSS sheet instead,
* * load your custom style with a smaller priority (< 20).
* * load your custom style with a larger priority (> 10).
*/

add_action('wp_enqueue_scripts', 'register_pg_styles', 20 );

// scripts are enqueued from shortcodes, that run at priority 20, so they need to be declared before
add_action('wp_enqueue_scripts', 'register_pg_styles', 10 );

function register_pg_styles() {
wp_register_style('pg-css', plugin_dir_url( __FILE__ ).'css/pg-style.min.css', array(), '1.0.4');
wp_register_script('pg-js', plugin_dir_url( __FILE__ ).'js/pg-script.min.js', array(), '1.0.4', true);
wp_register_style('pg-css', plugin_dir_url( __FILE__ ).'css/pg-style.min.css', array(), '1.0.6');
wp_register_script('pg-js', plugin_dir_url( __FILE__ ).'js/pg-script.min.js', array(), '1.0.6', true);
}

// this parses the post content with a regex for clever on-demand loading, so it needs to come very late
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: aurelienpierre
Donate link: https://www.paypal.me/aurelienpierre/
Tags: gallery, html5, carousel, pictures, responsive, jetpack, photo, taxonomy, exif
Requires at least: 3.6
Tested up to: 5.8
Tested up to: 5.8.1
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down

0 comments on commit f249de5

Please sign in to comment.