mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-20 08:55:43 +03:00
Refactor forms to be able to reuse inputs in multiple contexts
This commit is contained in:
parent
213531ca08
commit
9199e44c66
13 changed files with 231 additions and 185 deletions
|
@ -28,3 +28,39 @@ function load() {
|
|||
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/';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue