From 0ea187169e92e708873ea12a230f6ff198968e09 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Tue, 10 Dec 2019 13:17:08 -0500 Subject: [PATCH] Add a label for "deactivated" pledges --- themes/wporg-5ftf/css/components/_pledge-single.scss | 9 +++++++++ themes/wporg-5ftf/single-5ftf_pledge.php | 4 ++++ 2 files changed, 13 insertions(+) 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();
>
+ + + ', '' ); ?>