Server IP : 192.64.118.117 / Your IP : 3.147.83.1 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/www/wp-content/plugins/leads/shared/classes/ |
Upload File : |
<?php if ( !class_exists( 'Inbound_Shortcodes_Cookies' ) ) { class Inbound_Shortcodes_Cookies { public function __construct() { self::load_hooks(); } public function load_hooks() { /* Shortcode for using cookie values */ add_shortcode( 'inbound-cookie', array( __CLASS__, 'get_cookie' ), 1 ); } /** * Used by leads-new-lead-notification email template to dispaly form fields the user inputted when converting on a form. * */ public static function get_cookie( $atts ) { $value = ( isset($_COOKIE[ $atts['name'] ]) ) ? $_COOKIE[ $atts['name'] ] : ''; return $value; } /** * Used by wp-notify-post-author email template to show comment author gravitar * * */ public static function generate_gravitar( $atts ) { extract( shortcode_atts( array( 'email' => 'default@gravitar.com', 'size' => '60', 'default' => 'mm' ), $atts ) ); return "//www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size; } } /* Initiate the logging system */ $Inbound_Shortcodes_Cookies = new Inbound_Shortcodes_Cookies(); }