Skip to content

Commit

Permalink
Adding Work ID as paragraph element title in poet badge
Browse files Browse the repository at this point in the history
  • Loading branch information
khaterdev committed Jan 20, 2018
1 parent 829b54c commit 8e101c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions PoetArticlePoster/PoetArticlePoster.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<img src="<?php echo $quill_image_url; ?>"
style=" width: 31px; height: 31px; margin-top: 8px; margin-left: 8px; margin-right: 8px; color: #35393E; font-family: Roboto;">
<div>
<p style="padding-top: 10px; line-height: 15px; margin: 0; font-size: 10pt; font-weight: bold; text-align: left;">
Verified on po.et</p>
<p title="<?php echo $work_id; ?>" style="padding-top: 10px; line-height: 15px; margin: 0; font-size: 10pt; font-weight: bold; text-align: left;">
Verified on Po.et</p>
<p style="text-align: left; line-height: 15px; margin: 0; font-size: 10px; padding-top: 1px; font-size: 8px; font-family: Roboto; font-weight: bold; line-height: 13px; color: #707070;">
<?php echo $post_publication_date ?></p>
</div>
Expand Down

0 comments on commit 8e101c9

Please sign in to comment.