| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Sight – Image Gallery & Portfolio |
| 4 |
* Description: Beautiful responsive galleries and portfolio of your work. |
| 5 |
* Version: 1.0.1 |
| 6 |
* Author: Code Supply Co. |
| 7 |
* Author URI: https://codesupply.co |
| 8 |
* License: GPL-2.0+ |
| 9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 10 |
* Text Domain: sight |
| 11 |
* Domain Path: /languages |
| 12 |
* |
| 13 |
* @link https://codesupply.co |
| 14 |
* @package Sight |
| 15 |
*/ |
| 16 |
|
| 17 |
// If this file is called directly, abort. |
| 18 |
if ( ! defined( 'WPINC' ) ) { |
| 19 |
die; |
| 20 |
} |
| 21 |
|
| 22 |
/** |
| 23 |
* Variables |
| 24 |
*/ |
| 25 |
define( 'SIGHT_URL', plugin_dir_url( __FILE__ ) ); |
| 26 |
define( 'SIGHT_PATH', plugin_dir_path( __FILE__ ) ); |
| 27 |
|
| 28 |
/** |
| 29 |
* Currently plugin version. |
| 30 |
* Start at version 1.0.0 and use SemVer - https://semver.org |
| 31 |
* Rename this for your plugin and update it as you release new versions. |
| 32 |
*/ |
| 33 |
define( 'SIGHT_VERSION', '1.0.0' ); |
| 34 |
|
| 35 |
/** |
| 36 |
* The code that runs during plugin activation. |
| 37 |
* This action is documented in includes/class-sight-activator.php |
| 38 |
*/ |
| 39 |
function sight_activate() { |
| 40 |
do_action( 'sight_plugin_activation' ); |
| 41 |
} |
| 42 |
register_activation_hook( __FILE__, 'sight_activate' ); |
| 43 |
|
| 44 |
/** |
| 45 |
* The code that runs during plugin deactivation. |
| 46 |
* This action is documented in includes/class-sight-deactivator.php |
| 47 |
*/ |
| 48 |
function sight_deactivate() { |
| 49 |
do_action( 'sight_plugin_deactivation' ); |
| 50 |
} |
| 51 |
register_deactivation_hook( __FILE__, 'sight_deactivate' ); |
| 52 |
|
| 53 |
/** |
| 54 |
* Language |
| 55 |
*/ |
| 56 |
load_plugin_textdomain( 'sight', false, plugin_basename( SIGHT_PATH ) . '/languages' ); |
| 57 |
|
| 58 |
/** |
| 59 |
* The core plugin class that is used to define internationalization, |
| 60 |
* admin-specific hooks, and public-facing site hooks. |
| 61 |
*/ |
| 62 |
require plugin_dir_path( __FILE__ ) . 'core/class-sight.php'; |
| 63 |
|