PHP Classes

File: biggidroid-gallery-for-wp.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Biggidroid Wordpress Gallery Plugin   biggidroid-gallery-for-wp.php   Download  
File: biggidroid-gallery-for-wp.php
Role: Example script
Content type: text/plain
Description: Plugin setup script
Class: Biggidroid Wordpress Gallery Plugin
Display an image gallery on WordPress post pages
Author: By
Last change:
Date: 2 months ago
Size: 1,052 bytes
 

Contents

Class file image Download
<?php

/**
 * Plugin Name: BiggiDroid Gallery for WP
 * Plugin URI: https://biggidroid.com/biggidroid-gallery-for-wp
 * Author: BiggiDroid
 * Author URI: https://biggidroid.com
 * Description: A simple gallery plugin for WordPress.
 * Version: 0.1.0
 * License: GPL-2.0+
 * License URL: http://www.gnu.org/licenses/gpl-2.0.txt
 * text-domain: biggidroid-gallery-for-wp
 */

//check if file is access directly
if (!defined('WPINC')) {
    exit(
"Do not access this file directly.");
}

//define plugin constants
define("BIGGIDROID_GALLERY_FOR_WP_VERSION", time());
//plugin file
define("BIGGIDROID_GALLERY_FOR_WP_FILE", __FILE__);
//plugin directory
define("BIGGIDROID_GALLERY_FOR_WP_DIR", dirname(BIGGIDROID_GALLERY_FOR_WP_FILE));
//plugin url
define("BIGGIDROID_GALLERY_FOR_WP_URL", plugins_url('', BIGGIDROID_GALLERY_FOR_WP_FILE));

//check if class exists
if (!class_exists('BiggiDroid_Gallery_For_WP')) {
   
//include the class file
   
include_once BIGGIDROID_GALLERY_FOR_WP_DIR . '/includes/class-biggidroid-gallery-for-wp.php';
}