-
Notifications
You must be signed in to change notification settings - Fork 1
/
snap-scroll.php
53 lines (48 loc) · 1.78 KB
/
snap-scroll.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/* Plugin Name: Wicked Snap Scroll
* @package Wicked Snap Scroll
* @author Engage Inc
* @link http://snapscroll.engagefb.com/
* Description: Our Wicked Snap Scroll for Wordpress plugin allows you to define 'anchor points' into which the window snaps when you scroll through a webpage.
* Version: 1.0.0
* Author: Engage Inc
* Author URI: http://en.gg
* Copyright: Engage Inc.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
error_reporting(1);
/*
* TODO:
*
* - replace `class-plugin-name.php` with the name of the plugin's class file
* - replace `class-plugin-admin.php` with the name of the plugin's admin file
*
*/
require_once( plugin_dir_path( __FILE__ ) . 'class-snap-scroll.php' );
require_once( plugin_dir_path( __FILE__ ) . 'class-snap-scroll-admin.php' );
require_once( plugin_dir_path( __FILE__ ) . 'class-settings-api.php' );
require_once( plugin_dir_path( __FILE__ ) . 'views/class-admin-panel.php' );
/*
* Register hooks that are fired when the plugin is activated or deactivated.
* When the plugin is deleted, the uninstall.php file is loaded.
*
* TODO:
*
* - replace Plugin_Name with the name of the class defined in
* `class-plugin-name.php`
*/
register_activation_hook( __FILE__, array( 'Snap_Scroll', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Snap_Scroll', 'deactivate' ) );
/*
* TODO:
*
* - replace Plugin_Name with the name of the class defined in
* `class-plugin-name.php`
* - replace Plugin_Name_Admin with the name of the class defined in
* `class-plugin-name-admin.php`
*/
add_action( 'plugins_loaded', array( 'Snap_Scroll', 'get_instance' ) );
add_action( 'plugins_loaded', array( 'Snap_Scroll_Admin', 'get_instance' ) );