File: D:/HostingSpaces/jwitte/rednails.studio/wwwroot/wp-content/plugins/text-slider/text-slider.php
<?php
/**
* The WordPress Plugin Boilerplate.
*
* A foundation off of which to build well-documented WordPress plugins that
* also follow WordPress Coding Standards and PHP best practices.
*
* @package Text Slider
* @author George Steadman
* @license GPL-2.0+
* @link http://example.com
* @copyright 2014 Enigma Web
*
* @wordpress-plugin
* Plugin Name: Text Slider
* Plugin URI: www.enigmaweb.com
* Description: A text sliding plugin
* Version: 1.0.0
* Author: George Steadman
* Author URI: www.enigmaweb.com
* Text Domain: text-slider-locale
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/*----------------------------------------------------------------------------*
* Public-Facing Functionality
*----------------------------------------------------------------------------*/
/*
* @TODO:
*
* - replace `class-plugin-name.php` with the name of the plugin's class file
*
*/
require_once( plugin_dir_path( __FILE__ ) . 'public/class-text-slider.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( 'Text_Slider', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Text_Slider', 'deactivate' ) );
/*
* @TODO:
*
* - replace Plugin_Name with the name of the class defined in
* `class-plugin-name.php`
*/
add_action( 'plugins_loaded', array( 'Text_Slider', 'get_instance' ) );
/*----------------------------------------------------------------------------*
* Dashboard and Administrative Functionality
*----------------------------------------------------------------------------*/
/*
* @TODO:
*
* - replace `class-plugin-name-admin.php` with the name of the plugin's admin file
* - replace Plugin_Name_Admin with the name of the class defined in
* `class-plugin-name-admin.php`
*
* If you want to include Ajax within the dashboard, change the following
* conditional to:
*
* if ( is_admin() ) {
* ...
* }
*
* The code below is intended to to give the lightest footprint possible.
*/
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-text-slider-admin.php' );
add_action( 'plugins_loaded', array( 'Text_Slider_Admin', 'get_instance' ) );
}