- Minor adjustment to the shortcodes logic

This commit is contained in:
Vlad
2016-03-20 11:37:59 -04:00
parent 6ec15bec22
commit 42c4139ba5
3 changed files with 6 additions and 6 deletions

View File

@@ -169,6 +169,6 @@ class PostTransformer {
$alignment = (in_array($this->args['titleAlignment'], array('left', 'right', 'center'))) ? $this->args['titleAlignment'] : 'left';
return '<' . $tag . ' class="mailpoet_alc_post" style="text-align: ' . $alignment . '">' . $title . '</' . $tag . '>';
return '<' . $tag . ' data-post-id="' . $post->ID . '" style="text-align: ' . $alignment . '">' . $title . '</' . $tag . '>';
}
}