Plugin Directory

Changeset 2254252


Ignore:
Timestamp:
03/04/2020 02:20:16 PM (6 years ago)
Author:
woofx
Message:

Initial commit from woofx

Location:
easy-slider
Files:
51 added
2 edited

Legend:

Unmodified
Added
Removed
  • easy-slider/trunk/easy-slider

    • Property svn:ignore set to
      .git/
  • easy-slider/trunk/easy-slider/easy-slider.php

    r403110 r2254252  
    11<?php
    2 /*
    3 Plugin Name: Easy Slider
    4 Author: XhtmlWeaver.com
    5 Author URI: http://www.xhtmlweaver.com
    6 Plugin URI: http://www.xhtmlweaver.com
    7 Description:
    8 Version: 1.0
    9 */
    10 define('WPES_VERSION', '1.0');
    11 require_once(dirname(__FILE__).'/function.php');
    12 ?>
     2
     3/**
     4 * Easy Slider
     5 *
     6 * Add custom carousels to your site using Gutenberg Editor.
     7 *
     8 * @link              http://woofx.kaizenflow.xyz
     9 * @since             1.0.0
     10 * @package           Easy_Slider
     11 *
     12 * @wordpress-plugin
     13 * Plugin Name:       Easy Slider
     14 * Plugin URI:        https://github.com/woofx/easy-slider
     15 * Description:       An easy to use carousel block for Gutenberg editor.
     16 * Version:           1.0.0
     17 * Author:            WooFx
     18 * Author URI:        http://woofx.kaizenflow.xyz
     19 * License:           GPL-2.0+
     20 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
     21 * Text Domain:       easy-slider
     22 * Domain Path:       /languages
     23 */
     24
     25// If this file is called directly, abort.
     26if ( ! defined( 'WPINC' ) ) {
     27    die;
     28}
     29
     30/**
     31 * Currently plugin version.
     32 * Start at version 1.0.0 and use SemVer - https://semver.org
     33 * Rename this for your plugin and update it as you release new versions.
     34 */
     35define( 'EASY_SLIDER_VERSION', '1.0.0' );
     36
     37/**
     38 * The code that runs during plugin activation.
     39 * This action is documented in includes/class-easy-slider-activator.php
     40 */
     41function activate_easy_slider() {
     42    require_once plugin_dir_path( __FILE__ ) . 'includes/class-easy-slider-activator.php';
     43    Easy_Slider_Activator::activate();
     44}
     45
     46/**
     47 * The code that runs during plugin deactivation.
     48 * This action is documented in includes/class-easy-slider-deactivator.php
     49 */
     50function deactivate_easy_slider() {
     51    require_once plugin_dir_path( __FILE__ ) . 'includes/class-easy-slider-deactivator.php';
     52    Easy_Slider_Deactivator::deactivate();
     53}
     54
     55register_activation_hook( __FILE__, 'activate_easy_slider' );
     56register_deactivation_hook( __FILE__, 'deactivate_easy_slider' );
     57
     58/**
     59 * The core plugin class that is used to define internationalization,
     60 * admin-specific hooks, and public-facing site hooks.
     61 */
     62require plugin_dir_path( __FILE__ ) . 'includes/class-easy-slider.php';
     63
     64/**
     65 * Begins execution of the plugin.
     66 *
     67 * Since everything within the plugin is registered via hooks,
     68 * then kicking off the plugin from this point in the file does
     69 * not affect the page life cycle.
     70 *
     71 * @since    1.0.0
     72 */
     73function run_easy_slider() {
     74
     75    $plugin = new Easy_Slider();
     76    $plugin->run();
     77
     78}
     79run_easy_slider();
Note: See TracChangeset for help on using the changeset viewer.