mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 11:03:43 +03:00
67 lines
1.2 KiB
PHP
Executable file
67 lines
1.2 KiB
PHP
Executable file
<?php
|
|
/**
|
|
* Plugin Name: Five For The Future
|
|
* Plugin URI: https://wordpress.org/five-for-the-future/
|
|
* Description:
|
|
* Author: WordPress.org
|
|
* Author URI: https://wordpress.org
|
|
* Version: 1.0.0
|
|
*/
|
|
|
|
namespace WordPressDotOrg\FiveForTheFuture;
|
|
|
|
defined( 'WPINC' ) || die();
|
|
|
|
define( __NAMESPACE__ . '\PATH', plugin_dir_path( __FILE__ ) );
|
|
define( __NAMESPACE__ . '\URL', plugin_dir_url( __FILE__ ) );
|
|
|
|
const PREFIX = '5ftf';
|
|
|
|
add_action( 'plugins_loaded', __NAMESPACE__ . '\load' );
|
|
|
|
/**
|
|
*
|
|
*/
|
|
function load() {
|
|
require_once PATH . 'includes/pledge.php';
|
|
require_once PATH . 'includes/pledge-meta.php';
|
|
require_once PATH . 'includes/pledge-form.php';
|
|
require_once PATH . 'includes/shortcodes.php';
|
|
}
|
|
|
|
/**
|
|
* Shortcut to the assets directory.
|
|
*
|
|
* @return string
|
|
*/
|
|
function get_assets_path() {
|
|
return PATH . 'assets/';
|
|
}
|
|
|
|
/**
|
|
* Shortcut to the assets URL.
|
|
*
|
|
* @return string
|
|
*/
|
|
function get_assets_url() {
|
|
return URL . 'assets/';
|
|
}
|
|
|
|
/**
|
|
* Shortcut to the includes directory.
|
|
*
|
|
* @return string
|
|
*/
|
|
function get_includes_path() {
|
|
return PATH . 'includes/';
|
|
}
|
|
|
|
/**
|
|
* Shortcut to the views directory.
|
|
*
|
|
* @return string
|
|
*/
|
|
function get_views_path() {
|
|
return PATH . 'views/';
|
|
}
|