five-for-the-future/plugins/wporg-5ftf/index.php
Corey McKrill dbdcf26bd9 Theme: Single pledge view (#43)
* Theme: Create template part for single pledge

* Plugin: Add functions for handling xprofile data

* Plugin: Add helper function for getting contributor user objects

* Theme: Display aggregated contributor data on single pledge view

* Theme: Add functions, markup, and styles to show team badges

* Theme: Add badge for Test team

* Theme: Add tentative URL for report a pledge link

* Theme: Add support for post thumbnails

* Theme: Add org logo to single pledge view

* Theme: Update `$content_width` to 960

This matches the width of the content in the global header and
the About page.

* Move pledge template to a file used by the template heirarchy

* Clean up some PHPCS errors

* Move pledge structure out to just the list items

* Create file for single pledge styles

* style badge grid into a grid.

* Add a custom image size for the logo

* Update styles

* Un-hide pledges with no confirmed contributors

* Fix content width
2019-10-28 13:38:49 -04:00

70 lines
1.4 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' );
/**
* Include the rest of the plugin.
*/
function load() {
require_once get_includes_path() . 'contributor.php';
require_once get_includes_path() . 'email.php';
require_once get_includes_path() . 'pledge.php';
require_once get_includes_path() . 'pledge-meta.php';
require_once get_includes_path() . 'pledge-form.php';
require_once get_includes_path() . 'directory.php';
require_once get_includes_path() . 'xprofile.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/';
}