Apply coding standards.

This commit is contained in:
Ian Dunn 2019-10-24 07:55:45 -07:00
parent 33d8ed54b1
commit f888fd85c8
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
11 changed files with 57 additions and 42 deletions

View file

@ -13,6 +13,9 @@ use WordPressDotOrg\FiveForTheFuture\Pledge;
defined( 'WPINC' ) || die();
/**
* Enqueue scripts and styles.
*/
function enqueue_scripts() {
global $post;
@ -36,8 +39,12 @@ function enqueue_scripts() {
}
$params = array(
// explain 100 is just sanity limit to keep page size performant. might need to lazy-load more in the future
// maybe order by donated_employees, or rand, to ensure the top companies are always displayed first, or to make sure treta everyone equal
/*
* todo explain 100 is just sanity limit to keep page size performant. might need to lazy-load more in the
* future.
* maybe order by donated_employees, or rand, to ensure the top companies are always displayed first, or
* to make sure treat everyone equal.
*/
'post_type' => Pledge\CPT_ID,
'post_status' => 'publish',
'posts_per_page' => 100,
@ -72,7 +79,7 @@ function enqueue_scripts() {
add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\enqueue_scripts' );
/**
* todo
* Todo.
*
* @return string
*/
@ -87,9 +94,12 @@ function render_shortcode() {
add_shortcode( 'five_for_the_future_companies', __NAMESPACE__ . '\render_shortcode' );
// shortcode for pledge form
// form handler for pledge form
// todo shortcode for pledge form.
// todo form handler for pledge form.
/**
* Todo.
*/
function register() {
//register_block_type();
}