From 8e101c93296966af2ad56a31e0bf03771f662776 Mon Sep 17 00:00:00 2001 From: Mostafa Date: Sat, 20 Jan 2018 06:35:34 +0200 Subject: [PATCH] Adding Work ID as paragraph element title in poet badge --- PoetArticlePoster/PoetArticlePoster.php | 1 + .../assets/includes/templates/poet_badge_template.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PoetArticlePoster/PoetArticlePoster.php b/PoetArticlePoster/PoetArticlePoster.php index 6cd4c96..9dc847e 100644 --- a/PoetArticlePoster/PoetArticlePoster.php +++ b/PoetArticlePoster/PoetArticlePoster.php @@ -337,6 +337,7 @@ public function poet_badge_handler() { $post = get_post(); $quill_image_url = plugin_dir_url( $this->plugin ) . 'assets/images/quill.svg'; $post_publication_date = get_the_modified_time( 'F jS Y, H:i', $post ); + $work_id = get_post_meta( $post->ID, 'poet_work_id', true ); ob_start(); include_once dirname(__FILE__) . '/assets/includes/templates/poet_badge_template.php'; diff --git a/PoetArticlePoster/assets/includes/templates/poet_badge_template.php b/PoetArticlePoster/assets/includes/templates/poet_badge_template.php index ccafc49..1eaab3d 100644 --- a/PoetArticlePoster/assets/includes/templates/poet_badge_template.php +++ b/PoetArticlePoster/assets/includes/templates/poet_badge_template.php @@ -4,8 +4,8 @@
-

- Verified on po.et

+

+ Verified on Po.et