PluginProbe ʕ •ᴥ•ʔ
PixelYourSite – Your smart PIXEL (TAG) & API Manager / 9.7.2
PixelYourSite – Your smart PIXEL (TAG) & API Manager v9.7.2
11.2.0.6 trunk 1.0 1.01 1.02 1.03 1.04 1.05 1.05.1 10.0.0 10.0.1 10.0.1.1 10.0.1.2 10.0.2 10.0.3 10.0.3.1 10.0.4 10.1.0 10.1.1 10.1.1.1 10.1.1.2 10.1.2.1 10.1.3 10.2.0 10.2.0.1 10.2.0.2 10.2.1 11.0.0 11.0.0.1 11.0.0.2 11.0.0.3 11.0.0.4 11.0.1 11.0.1.1 11.0.1.2 11.0.2 11.1.0 11.1.1 11.1.2 11.1.3 11.1.4 11.1.4.1 11.1.4.2 11.1.5 11.1.5.1 11.1.5.2 11.2.0 11.2.0.1 11.2.0.2 11.2.0.3 11.2.0.4 11.2.0.5 2.0 2.1 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.7 2.8.10 2.8.9 3.0 3.0.1 3.0.2 3.0.3 3.1.0 4.0.0 4.0.1 4.0.2 4.0.3 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5.2 5.0.6 5.0.7 5.0.8 5.0.9 5.1.0 5.2.0 5.2.1 5.3.0 5.3.1 5.3.2 5.3.3 5.3.4 7.0.0 7.0.1 7.0.2 7.0.3 7.0.4 7.0.5 7.1.0 7.1.1 7.1.10 7.1.11 7.1.12 7.1.13 7.1.14 7.1.2 7.1.3 7.1.4 7.1.5 7.1.6 7.1.7 7.1.8 7.1.9 7.2.0 7.2.1 7.2.1.1 7.3.0 8.0.0 8.0.1 8.0.2 8.0.3 8.0.4 8.0.5 8.0.6 8.0.7 8.0.8 8.0.9 8.1.0 8.1.1 8.2.0 8.2.1 8.2.10 8.2.11 8.2.12 8.2.13 8.2.14 8.2.15 8.2.16 8.2.17 8.2.18 8.2.2 8.2.3 8.2.4 8.2.5 8.2.6 8.2.7 8.2.8 9.0.0 9.1.0 9.1.1 9.2.0 9.2.1 9.2.2 9.3.0 9.3.1 9.3.2 9.3.3 9.3.4 9.3.5 9.3.6 9.3.7 9.3.8 9.3.8.1 9.3.9 9.4.0 9.4.0.1 9.4.1 9.4.2 9.4.3 9.4.5 9.4.5.1 9.4.6 9.4.7 9.4.7.1 9.5.0 9.5.0.1 9.5.1 9.5.1.1 9.5.3 9.5.4 9.5.5 9.6.0 9.6.0.1 9.6.1 9.6.1.1 9.6.2 9.7.0 9.7.0.1 9.7.1 9.7.2
pixelyoursite / modules / pinterest / pinterest.php
pixelyoursite / modules / pinterest Last commit date
pinterest.php 1 year ago
pinterest.php
101 lines
1 <?php
2
3 /**
4 * Dummy Pinterest addon used for UI demo
5 */
6
7 namespace PixelYourSite;
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit; // Exit if accessed directly.
11 }
12
13 class Pinterest extends Settings implements Pixel {
14
15 private static $_instance = null;
16
17 public static function instance() {
18
19 if ( is_null( self::$_instance ) ) {
20 self::$_instance = new self();
21 }
22
23 return self::$_instance;
24
25 }
26
27 public function __construct() {
28 add_action( 'pys_admin_pixel_ids', array( $this, 'renderPixelIdField') );
29 }
30
31 public function enabled() {
32 return false;
33 }
34
35 public function configured() {
36 return false;
37 }
38
39 public function getPixelIDs() {
40 return array();
41 }
42
43 public function getPixelOptions() {
44 return array();
45 }
46
47 public function getEventData( $eventType, $args = null ) {
48 return false;
49 }
50
51 public function outputNoScriptEvents() {}
52
53 public function render_switcher_input( $key, $collapse = false, $disabled = false, $default = false) {
54 //@todo: review
55
56 $attr_name = "pys[pinterest][$key]";
57 $attr_id = 'pys_pinterest_' . $key;
58
59 ?>
60
61 <div class="custom-switch disabled">
62 <input type="checkbox" name="<?php esc_attr_e( $attr_name ); ?>" value="1" disabled="disabled"
63 id="<?php esc_attr_e( $attr_id ); ?>" class="custom-switch-input">
64 <label class="custom-switch-btn" for="<?php esc_attr_e( $attr_id ); ?>"></label>
65 </div>
66
67 <?php
68 }
69
70 public function renderCustomEventOptions( $event ) {}
71
72 public function renderAddonNotice() {
73 echo '&nbsp;<a href="https://www.pixelyoursite.com/pinterest-tag?utm_source=pys-free-plugin&utm_medium=pinterest-badge&utm_campaign=requiere-free-add-on" target="_blank" class="badge badge-pill badge-pinterest">Requires paid add-on <i class="fa fa-external-link" aria-hidden="true"></i></a>';
74 }
75
76 public function renderPixelIdField() {
77 ?>
78 <div class="row align-items-center">
79 <div class="col-2 py-4">
80 <img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/pinterest-square-small.png">
81 </div>
82 <div class="col-10">
83 Add the Pinterest tag with our <a href="https://www.pixelyoursite.com/pinterest-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
84 target="_blank">Paid addon</a>.
85 </div>
86 </div>
87 <hr>
88
89 <?php
90 }
91
92 }
93
94 /**
95 * @return Pinterest
96 */
97 function Pinterest() {
98 return Pinterest::instance();
99 }
100
101 Pinterest();