Skip to content

Commit

Permalink
wordpress plugin guideline
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelRod committed Mar 19, 2018
1 parent 8397fac commit a24e328
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 18,713 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Lightweight plugin to integrate Social Share Icons into your Wordpress project.

## Extras
- Activation / Deactivation of Social Networks
- Sort of Social Networks Icons
- Drag and Drop Sorting of Social Networks Icons
- 3 sizes to choose (Small / Medium / Large)
- Colour Picker for Icons
- Choose where to Display them (Posts / Pages / CPTs)
Expand Down
4 changes: 1 addition & 3 deletions admin/class-admin-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ public function enqueue_scripts_styles() {
$page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_SPECIAL_CHARS );

if ( 'social-share' !== ( $page && $page ) ) {

wp_enqueue_script( 'jQueryUI', plugin_dir_url( __FILE__ ) . 'js/jquery-ui.js', [ 'jquery' ], 1.0, true );
wp_register_script( 'social-share', plugin_dir_url( __FILE__ ) . 'js//social-share.min.js', [ 'jquery' ] );
wp_register_script( 'social-share', plugin_dir_url( __FILE__ ) . 'js/social-share.min.js', [ 'jquery', 'jquery-ui-sortable' ] );
wp_localize_script(
'social-share', 'ajax',
[
Expand Down
Loading

0 comments on commit a24e328

Please sign in to comment.