PluginProbe
Maps Plugin using Google Maps for WordPress – WP Google Map / trunk
Maps Plugin using Google Maps for WordPress – WP Google Map vtrunk
1.9.7 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.2 1.5.3 All 96 releases
gmap-embed / includes / traits / ActionLinks.php

ActionLinks.php in Maps Plugin using Google Maps for WordPress – WP Google Map trunk, at includes/traits/ActionLinks.php

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