enrich
3 weeks ago
event-definitions
4 months ago
events
1 week ago
formEvents
1 year ago
logger
4 months ago
views
1 week ago
class-consent.php
6 months ago
class-custom-event-factory.php
1 year ago
class-custom-event.php
3 weeks ago
class-event-definitions.php
4 months ago
class-event-id-generator.php
5 years ago
class-events-manager-ajax_hook.php
3 weeks ago
class-events-manager.php
3 weeks ago
class-fixed-notices.php
1 year ago
class-optin-notices.php
1 year ago
class-pixel.php
7 years ago
class-plugin-updater.php
9 months ago
class-plugin.php
7 years ago
class-pys.php
1 week ago
class-settings.php
4 months ago
functions-admin.php
3 weeks ago
functions-buttons.php
1 year ago
functions-common.php
3 weeks ago
functions-custom-event.php
1 week ago
functions-edd.php
2 years ago
functions-gdpr.php
11 months ago
functions-license.php
3 weeks ago
functions-migrate.php
9 months ago
functions-promo-notices.php
1 year ago
functions-system-report.php
7 years ago
functions-update-plugin.php
6 years ago
functions-woo.php
3 weeks ago
options_defaults.json
3 weeks ago
options_fields.json
3 weeks ago
functions-buttons.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | namespace PixelYourSite; |
| 4 | |
| 5 | if ( !defined( 'ABSPATH' ) ) { |
| 6 | exit; // Exit if accessed directly. |
| 7 | } |
| 8 | |
| 9 | function renderBlackButton( $text, $url ) { |
| 10 | ?> |
| 11 | <a href="<?php echo esc_url( $url ); ?>" target="_blank" class="black-button"><?php echo esc_html( $text ); ?></a> |
| 12 | <?php |
| 13 | } |
| 14 | |
| 15 | function renderPopoverButton( $id, $position = 'right' ) { |
| 16 | ?> |
| 17 | <button type="button" class="btn btn-popover" role="button" data-toggle="pys-popover" |
| 18 | data-tippy-trigger="click" data-tippy-placement="<?php echo esc_attr( $position ); ?>" |
| 19 | data-popover_id="<?php echo esc_attr( $id ); ?>" data-original-title="" title=""> |
| 20 | <img src="<?php echo PYS_FREE_URL . '/dist/images/info.svg'; ?>"> |
| 21 | </button> |
| 22 | <?php |
| 23 | } |
| 24 | |
| 25 | function renderAddCustomParameterButton( $pixel ) { |
| 26 | ?> |
| 27 | <button class="btn btn-primary btn-primary-type2 add-<?php echo esc_attr( $pixel ); ?>-parameter" |
| 28 | type="button">Add Custom Parameter |
| 29 | </button> |
| 30 | <?php |
| 31 | } |