diff --git a/themes/wporg-5ftf/css/components/_pledge-single.scss b/themes/wporg-5ftf/css/components/_pledge-single.scss index 223a6ca..833bf46 100644 --- a/themes/wporg-5ftf/css/components/_pledge-single.scss +++ b/themes/wporg-5ftf/css/components/_pledge-single.scss @@ -31,6 +31,15 @@ body.single.single-5ftf_pledge { margin-top: ms(2); } } + + .pledge-status { + display: inline-block; + padding: 4px 12px; + font-size: ms(-1); + text-transform: uppercase; + background-color: $color-error-red; + color: white; + } } .entry-title { diff --git a/themes/wporg-5ftf/single-5ftf_pledge.php b/themes/wporg-5ftf/single-5ftf_pledge.php index bca4e80..36864f8 100644 --- a/themes/wporg-5ftf/single-5ftf_pledge.php +++ b/themes/wporg-5ftf/single-5ftf_pledge.php @@ -6,6 +6,7 @@ use WordPressDotOrg\FiveForTheFuture\XProfile; use WP_Post; use const WordPressDotOrg\FiveForTheFuture\PledgeMeta\META_PREFIX; +use const WordPressDotOrg\FiveForTheFuture\Pledge\DEACTIVE_STATUS; $contribution_data = XProfile\get_aggregate_contributor_data_for_pledge( get_the_ID() ); @@ -30,6 +31,9 @@ get_header();
>
+ + + ', '' ); ?>