# metricool/2.1.1/views/admin/share-post/meta-box.php

Metricool – Social media and site statistics, version 2.1.1. 26 lines.

- Page: https://pluginprobe.com/plugins/metricool/2.1.1/code/views/admin/share-post/meta-box.php
- Raw: https://pluginprobe.com/plugins/metricool/2.1.1/raw/views/admin/share-post/meta-box.php
- Modified: 2026-08-20T14:08:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/metricool/2.1.1/code/views/admin/share-post/meta-box.php#L10-L20`.

```php
<?php

if (!defined('ABSPATH')) {
    exit;
}

/**
 * Variables that should be passed to the view
 * @var string $actionableUrl
 * @var string $label
 * @var bool $published
 * @var string $unpublishedText
 */
?>

<div class="metricool-share-meta-box">
    <?php if ($published): ?>
        <a href="<?php echo esc_url($actionableUrl) ?>" class="button button-primary button-large" target="_blank" style="width: 100%; text-align: center;">
            <span class="dashicons dashicons-megaphone" style="margin-right: 5px; line-height: 100%; vertical-align: middle"></span>
            <?php echo esc_html($label); ?>
        </a>
    <?php else: ?>
        <i><?php echo esc_html($unpublishedText); ?></i>
    <?php endif; ?>
</div>

```
