| @@ -1,0 +1,25 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +if (!defined('ABSPATH')) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * Variables that should be passed to the view | |
| 9 | + * @var string $actionableUrl | |
| 10 | + * @var string $label | |
| 11 | + * @var bool $published | |
| 12 | + * @var string $unpublishedText | |
| 13 | + */ | |
| 14 | +?> | |
| 15 | + | |
| 16 | +<div class="metricool-share-meta-box"> | |
| 17 | + <?php if ($published): ?> | |
| 18 | + <a href="<?php echo esc_url($actionableUrl) ?>" class="button button-primary button-large" target="_blank" style="width: 100%; text-align: center;"> | |
| 19 | + <span class="dashicons dashicons-megaphone" style="margin-right: 5px; line-height: 100%; vertical-align: middle"></span> | |
| 20 | + <?php echo esc_html($label); ?> | |
| 21 | + </a> | |
| 22 | + <?php else: ?> | |
| 23 | + <i><?php echo esc_html($unpublishedText); ?></i> | |
| 24 | + <?php endif; ?> | |
| 25 | +</div> | |