PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
metricool / views / admin / share-post / meta-box.php

meta-box.php in Metricool – Social media and site statistics 2.1.1, at views/admin/share-post/meta-box.php

26 lines 733 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>
26