PluginProbe
Smooth Scrolling / 1.0
Smooth Scrolling v1.0
trunk 1.0 1.0.1 2.0.0
smooth-scrolling / smooth-scrolling.php

smooth-scrolling.php in Smooth Scrolling 1.0, at smooth-scrolling.php

22 lines 803 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Smooth Scrolling
4 * Description: Is a lightweight plugin that introduces a smooth scrolling effect when navigating with a mouse wheel, touchpad, or keyboard arrows.
5 * Version: 1.0
6 * Author: Saeed Piri
7 * Author URI: https://isaeedam.ir/
8 * Requires at least: 6.0
9 * Requires PHP: 7.4
10 * License: GPL-3
11 * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
12 */
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit; // Exit if accessed directly.
16 }
17
18 add_action( 'wp_enqueue_scripts', 'smooth_scrolling_script' );
19 function smooth_scrolling_script(){
20 wp_register_script('smoothscroll', plugin_dir_url(__FILE__) . 'js/SmoothScroll.min.js', array(), time(), array( 'strategy' => 'defer', 'in_footer' => true ) );
21 wp_enqueue_script ('smoothscroll');
22 }