| 1 |
<?php |
| 2 |
|
| 3 |
namespace WGMSRM\Traits; |
| 4 |
|
| 5 |
if (!defined('ABSPATH')) { |
| 6 |
exit; |
| 7 |
} |
| 8 |
|
| 9 |
/** |
| 10 |
* Trait ActionLinks: for plugins list action links viewing |
| 11 |
*/ |
| 12 |
trait ActionLinks |
| 13 |
{ |
| 14 |
|
| 15 |
/** |
| 16 |
* Adding Upgrade to pro, rate us and support link |
| 17 |
* |
| 18 |
* @param $actions |
| 19 |
* @return mixed |
| 20 |
*/ |
| 21 |
public function gmap_srm_settings_link($actions) |
| 22 |
{ |
| 23 |
$links = array(); |
| 24 |
if (!_wgm_is_premium()) { |
| 25 |
$links['upgrade-to-pro'] = '<a target="_blank" style="color: #11967A;font-weight:bold;" href="' . esc_url('https://wpgooglemap.com/pricing?utm_source=gmap-embed&utm_medium=wordpress-plugin&utm_campaign=upgrade-to-pro&utm_content=plugin-action-link') . '">' . esc_html__('Upgrade To Pro ($19 only)', 'gmap-embed') . '</a>'; |
| 26 |
} |
| 27 |
$links['rate-us'] = '<a target="_blank" href="' . esc_url('https://wordpress.org/support/plugin/gmap-embed/reviews/#new-post') . '">' . esc_html__('Rate Us', 'gmap-embed') . '</a>'; |
| 28 |
$links['support'] = '<a target="_blank" href="' . esc_url('https://wordpress.org/support/plugin/gmap-embed/#new-topic-0') . '">' . esc_html__('Support', 'gmap-embed') . '</a>'; |
| 29 |
$links['settings'] = '<a href="' . |
| 30 |
esc_url(admin_url('admin.php?page=wpgmapembed-settings')) . |
| 31 |
'">' . esc_html__('Settings', 'gmap-embed') . '</a>'; |
| 32 |
return array_merge($links, $actions); |
| 33 |
} |
| 34 |
} |
| 35 |
|