PATH:
home
/
letacommog
/
pymreception1
/
wp-content
/
plugins
/
creame-whatsapp-me
/
public
<?php /** * The public-facing functionality of the plugin. * * Defines the plugin name, version, and two examples hooks for how to * enqueue the public-facing stylesheet and JavaScript. * * @package WhatsAppMe * @subpackage WhatsAppMe/public * @author Creame <hola@crea.me> */ class WhatsAppMe_Public { /** * The ID of this plugin. * * @since 1.0.0 * @access private * @var string $plugin_name The ID of this plugin. */ private $plugin_name; /** * The version of this plugin. * * @since 1.0.0 * @access private * @var string $version The current version of this plugin. */ private $version; /** * The setings of this plugin. * * @since 1.0.0 * @access private * @var array $settings The current settings of this plugin. */ private $settings; /** * Initialize the class and set its properties. * * @since 1.0.0 * @since 2.0.0 Added visibility setting * @since 2.1.0 Added message_badge * @param string $plugin_name The name of the plugin. * @param string $version The version of this plugin. */ public function __construct( $plugin_name, $version ) { $this->plugin_name = $plugin_name; $this->version = $version; $this->settings = array( 'show' => false, 'telephone' => '', 'message_text' => '', 'message_delay' => 10000, 'message_badge' => 'no', 'message_send' => '', 'mobile_only' => false, 'position' => 'right', 'visibility' => array( 'all' => 'yes' ), ); } /** * Get global settings and current post settings and prepare * * @since 1.0.0 * @since 2.0.0 Check visibility * @since 2.2.0 Post settings can also change "telephone". Added 'whastapp_web' setting * @return void */ public function get_settings() { global $post; $global_settings = get_option( 'whatsappme' ); if ( is_array( $global_settings ) ) { // Clean unused saved settings $settings = array_intersect_key( $global_settings, $this->settings ); // Merge defaults with saved settings $settings = array_merge( $this->settings, $settings ); // Post custom settings $post_settings = is_object( $post ) ? get_post_meta( $post->ID, '_whatsappme', true ) : ''; // Move old 'hide' to new 'view' field if ( isset( $post_settings['hide'] ) ) { $post_settings['view'] = 'no'; unset( $post_settings['hide'] ); } if ( isset( $post_settings['telephone'] ) ) { $settings['telephone'] = $post_settings['telephone']; } if ( isset( $post_settings['message_text'] ) ) { $settings['message_text'] = $post_settings['message_text']; } if ( isset( $post_settings['message_send'] ) ) { $settings['message_send'] = $post_settings['message_send']; } // Prepare settings $settings['telephone'] = preg_replace( '/^0+|\D/', '', $settings['telephone'] ); $settings['position'] = $settings['position'] != 'left' ? 'right' : 'left'; $settings['mobile_only'] = $settings['mobile_only'] == 'yes'; $settings['message_badge'] = $settings['message_text'] && $settings['message_badge'] == 'yes'; $settings['message_send'] = $this->formated_message_send( $settings['message_send'] ); $settings['show'] = $settings['telephone'] != ''; if ( $settings['show'] ) { $settings['show'] = isset( $post_settings['view'] ) ? $post_settings['view'] == 'yes' : $this->check_visibility( $settings['visibility'] ); } // Set true to link http://web.whatsapp.com instead http://api.whatsapp.com $settings['whastapp_web'] = apply_filters( 'whatsappme_whastapp_web', false ); $this->settings = $settings; } // Apply filter to settings $this->settings = apply_filters( 'whatsappme_get_settings', $this->settings, $post ); // Ensure not show if not phone if ( ! $this->settings['telephone'] ) { $this->settings['show'] = false; } } /** * Register the stylesheets for the public-facing side of the site. * * @since 1.0.0 * @since 2.2.2 minified */ public function enqueue_styles() { if ( $this->settings['show'] ) { $styles = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? 'whatsappme.css' : 'whatsappme.min.css'; wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/' . $styles, array(), $this->version, 'all' ); } } /** * Register the JavaScript for the public-facing side of the site. * * @since 1.0.0 * @since 2.2.2 minified */ public function enqueue_scripts() { if ( $this->settings['show'] ) { $script = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? 'whatsappme.js' : 'whatsappme.min.js'; wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/' . $script, array( 'jquery' ), $this->version, true ); } } /** * Outputs WhatsApp button html and his settings on footer * * @since 1.0.0 */ public function footer_html() { // Clean unnecessary settings on front $data = array_diff_key( $this->settings, array_flip( array( 'show', 'visibility', 'position' ) ) ); $copy = apply_filters( 'whatsappme_copy', __( 'Powered by', 'creame-whatsapp-me' ) ); if ( $this->settings['show'] ) { ?> <div class="whatsappme whatsappme--<?php echo $this->settings['position']; ?>" data-settings="<?php echo esc_attr( json_encode( $data ) ); ?>"> <div class="whatsappme__button"> <svg width="24" height="24" viewBox="0 0 24 24"> <path id="wa_ico" fill="#fff" d="M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.817 11.817 0 0 1 8.413 3.488 11.824 11.824 0 0 1 3.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"/> <path id="send_ico" fill="#fff" d="M1.101 21.757L23.8 12.028 1.101 2.3l.011 7.912 13.623 1.816-13.623 1.817-.011 7.912z"/> </svg> <?php if ($this->settings['message_badge']): ?><div class="whatsappme__badge">1</div><?php endif; ?> </div> <?php if ($this->settings['message_text']): ?> <div class="whatsappme__box"> <header class="whatsappme__header"> <svg width="120" height="28" viewBox="0 0 120 28"><path fill="#fff" fill-rule="evenodd" d="M117.2 17c0 .4-.2.7-.4 1-.1.3-.4.5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4.9-.6 1.6-.6.6 0 1 .2 1.3.6.3.4.4 1 .4 1.8v5.5h2.7v-6c0-.6 0-1.2-.2-1.6 0-.5-.3-1-.5-1.3zm-14 4.7l-2.3-9.2h-2.8l-2.3 9-2.2-9h-3l3.6 13.4h3l2.2-9.2 2.3 9.2h3l3.6-13.4h-3l-2.1 9.2zm-24.5.2L18 15.6c-.3-.1-.6-.2-.8.2A20 20 0 0 1 16 17c-.2.2-.4.3-.7.1-.4-.2-1.5-.5-2.8-1.7-1-1-1.7-2-2-2.4-.1-.4 0-.5.2-.7l.5-.6.4-.6v-.6L10.4 8c-.3-.6-.6-.5-.8-.6H9c-.2 0-.6.1-.9.5C7.8 8.2 7 9 7 10.7c0 1.7 1.3 3.4 1.4 3.6.2.3 2.5 3.7 6 5.2l1.9.8c.8.2 1.6.2 2.2.1.6-.1 2-.8 2.3-1.6.3-.9.3-1.5.2-1.7l-.7-.4zM14 25.3c-2 0-4-.5-5.8-1.6l-.4-.2-4.4 1.1 1.2-4.2-.3-.5A11.5 11.5 0 0 1 22.1 5.7 11.5 11.5 0 0 1 14 25.3zM14 0A13.8 13.8 0 0 0 2 20.7L0 28l7.3-2A13.8 13.8 0 1 0 14 0z"/></svg> <div class="whatsappme__close"><svg width="24" height="24" viewBox="0 0 24 24"><path fill="#fff" d="M24 2.4L21.6 0 12 9.6 2.4 0 0 2.4 9.6 12 0 21.6 2.4 24l9.6-9.6 9.6 9.6 2.4-2.4-9.6-9.6L24 2.4z"/></svg></div> </header> <div class="whatsappme__message"><?php echo $this->formated_message(); ?></div> <?php if ($copy): ?><div class="whatsappme__copy"><?php echo $copy; ?> <a href="https://wame.chat" rel="noopener" target="_blank"><svg width="72" height="17" viewBox="0 0 72 17"><path fill="#fff" fill-rule="evenodd" d="M25.371 10.429l2.122-6.239h.045l2.054 6.239h-4.22zm32.2 2.397c-.439.495-.88.953-1.325 1.375-.797.755-1.332 1.232-1.604 1.43-.622.438-1.156.706-1.604.805-.447.1-.787.13-1.02.09a3.561 3.561 0 0 1-.7-.239c-.66-.318-1.02-.864-1.079-1.64-.058-.774.03-1.619.263-2.533.35-1.987 1.108-4.133 2.274-6.438a73.481 73.481 0 0 0-2.8 3.04c-.816.954-1.7 2.096-2.653 3.428a44.068 44.068 0 0 0-2.77 4.441c-.738 0-1.341-.159-1.808-.477-.427-.278-.748-.695-.962-1.252-.214-.556-.165-1.41.146-2.563l.204-.626c.097-.298.204-.606.32-.924.117-.318.234-.626.35-.924.117-.298.195-.507.234-.626v.06c.272-.756.603-1.56.991-2.415a56.92 56.92 0 0 1 1.4-2.832 62.832 62.832 0 0 0-3.266 3.875 61.101 61.101 0 0 0-2.945 3.995 57.072 57.072 0 0 0-2.886 4.71c-.387 0-.736-.044-1.048-.131l.195.545h-3.72l-1.23-3.786h-6.093L23.158 17h-3.605l6.16-17h3.674l4.357 12.16c.389-1.35.97-2.736 1.74-4.16a41.336 41.336 0 0 0 2.013-4.232.465.465 0 0 0 .058-.18c0-.039.02-.098.058-.178.04-.08.078-.199.117-.358.039-.159.097-.337.175-.536.039-.12.078-.219.117-.298a.465.465 0 0 0 .058-.18c.078-.277.175-.575.292-.893.116-.318.194-.597.233-.835V.25c-.039-.04-.039-.08 0-.119l.233-.12c.117-.039.292.02.525.18.156.08.292.179.408.298.272.199.564.427.875.685.311.259.583.557.816.895a2.9 2.9 0 0 1 .467 1.043c.078.358.039.735-.117 1.133a8.127 8.127 0 0 1-.35.775c0 .08-.038.159-.116.238a2.93 2.93 0 0 1-.175.298 7.05 7.05 0 0 0-.35.656c-.039.04-.058.07-.058.09 0 .02-.02.05-.059.089a61.988 61.988 0 0 1-1.633 2.385c-.544.755-.913 1.35-1.108 1.788a79.39 79.39 0 0 1 3.5-4.233 101.59 101.59 0 0 1 3.12-3.398C45.651 1.82 46.612.986 47.468.43c.739.278 1.341.596 1.808.954.428.318.768.676 1.02 1.073.253.398.244.835-.029 1.312l-1.4 2.325a36.928 36.928 0 0 0-1.749 3.279 53.748 53.748 0 0 1 1.633-1.848 46.815 46.815 0 0 1 4.024-3.875c.7-.597 1.38-1.113 2.041-1.55.739.278 1.341.596 1.808.953.428.318.768.676 1.02 1.073.253.398.243.835-.029 1.312-.155.318-.408.795-.758 1.43a152.853 152.853 0 0 0-2.04 3.846 97.87 97.87 0 0 0-.467.924c-.35.835-.632 1.55-.846 2.146-.214.597-.282.934-.204 1.014a.63.63 0 0 0 .291-.06c.234-.119.564-.348.992-.685.428-.338.875-.736 1.341-1.193.467-.457.914-.914 1.341-1.37.217-.232.409-.45.575-.657a15.4 15.4 0 0 1 .957-2.514c.34-.696.708-1.333 1.108-1.91.399-.576.778-1.044 1.137-1.402a19.553 19.553 0 0 1 1.796-1.7 32.727 32.727 0 0 1 1.497-1.164 8.821 8.821 0 0 1 1.317-.835C66.292.989 66.83.83 67.269.83c.32 0 .649.11.988.328.34.22.649.478.928.776.28.299.519.607.718.925.2.318.3.557.3.716.04.597-.06 1.253-.3 1.97a7.14 7.14 0 0 1-1.107 2.058 8.534 8.534 0 0 1-1.826 1.76 6.522 6.522 0 0 1-2.395 1.074c-.2.08-.36.06-.48-.06a.644.644 0 0 1-.179-.477c0-.358.14-.616.42-.776.837-.318 1.536-.735 2.095-1.253.559-.517.998-1.034 1.317-1.551.4-.597.699-1.213.898-1.85 0-.199-.09-.308-.27-.328a4.173 4.173 0 0 0-.448-.03 4.83 4.83 0 0 0-1.318.597c-.399.239-.848.577-1.347 1.014-.499.438-1.028 1.015-1.586 1.73-.918 1.154-1.587 2.298-2.006 3.432-.42 1.134-.629 1.979-.629 2.536 0 .915.19 1.482.569 1.7.38.22.728.329 1.048.329.638 0 1.347-.15 2.125-.448a16.248 16.248 0 0 0 2.305-1.104 30.05 30.05 0 0 0 2.126-1.342 27.256 27.256 0 0 0 1.646-1.224c.08-.04.18-.1.3-.179l.24-.12a.54.54 0 0 1 .239-.059c.08 0 .16.02.24.06.08.04.119.16.119.358 0 .239-.08.457-.24.656a19.115 19.115 0 0 1-2.245 1.82 35.445 35.445 0 0 1-2.185 1.403c-.759.437-1.497.855-2.215 1.253a8.461 8.461 0 0 1-1.647.387c-.499.06-.968.09-1.407.09-.998 0-1.796-.16-2.395-.477-.599-.319-1.048-.706-1.347-1.164a4.113 4.113 0 0 1-.599-1.372c-.1-.457-.15-.843-.15-1.161zm-42.354-1.111L17.887 0h3.514L17.02 17h-3.56L10.7 5.428h-.046L7.94 17H4.312L0 0h3.582L6.16 11.571h.045L9.035 0h3.354l2.783 11.715h.045z"/></svg></a></div><?php endif; ?> </div> <?php endif; ?> </div> <?php } } /** * Format raw message text for html output. * Also apply styles transformations like WhatsApp app. * * @since 1.3.0 * @return string message formated string */ public function formated_message() { $replacements = apply_filters( 'whatsappme_message_replacements', array( '/_(\S[^_]*\S)_/mu' => '<em>$1</em>', '/\*(\S[^\*]*\S)\*/mu' => '<strong>$1</strong>', '/~(\S[^~]*\S)~/mu' => '<del>$1</del>', ) ); $replacements_keys = array_keys( $replacements ); // Split text into lines and apply replacements line by line $lines = explode( "\n", $this->settings['message_text'] ); foreach ($lines as $key => $line) { $lines[$key] = preg_replace( $replacements_keys, $replacements, esc_html( $line ) ); } return implode( '<br>', $lines ); } /** * Format message send, replace vars. * * @since 1.4.0 * @return string message formated string */ public function formated_message_send( $string ) { global $wp; $replacements = apply_filters( 'whatsappme_message_send_replacements', array( '/\{SITE\}/i' => get_bloginfo( 'name' ), '/\{URL\}/i' => home_url( $wp->request ), '/\{TITLE\}/i'=> $this->get_title(), ) ); return preg_replace( array_keys( $replacements ), $replacements, $string ); } /** * Get current page title * * @since 1.4.0 * @return string message formated string */ public function get_title() { if ( is_home() || is_singular() ) { $title = single_post_title( '', false ); } elseif ( is_tax() ) { $title = single_term_title( '', false ); } elseif ( function_exists( 'wp_get_document_title' ) ) { $title = wp_get_document_title(); // Try to remove sitename from $title for cleaner title $sep = apply_filters( 'document_title_separator', '-' ); $site = get_bloginfo( 'name', 'display' ); $title = str_replace( esc_html( convert_chars( wptexturize( " $sep " . $site ) ) ), '', $title); } else { $title = get_bloginfo( 'name' ); } return apply_filters( 'whatsappme_get_title', $title ); } /** * Check visibility on current page * * @since 2.0.0 * @param array $options array of visibility settings * @return boolean is visible or not on current page */ public function check_visibility($options) { $global = isset( $options['all'] ) ? $options['all'] == 'yes' : true; // Check front page if ( is_front_page() ) { return isset( $options['front_page'] ) ? $options['front_page'] == 'yes' : $global; } // Check blog page if ( is_home() ) { return isset( $options['blog_page'] ) ? $options['blog_page'] == 'yes' : $global; } // Check 404 page if ( is_404() ) { return isset( $options['404_page'] ) ? $options['404_page'] == 'yes' : $global; } // Check WooCommerce if ( class_exists( 'WooCommerce' ) ) { $woo = isset( $options['woocommerce'] ) ? $options['woocommerce'] == 'yes' : $global; // Product page if ( is_product() ) { return isset( $options['product'] ) ? $options['product'] == 'yes' : $woo; } // Cart page if ( is_cart() ) { return isset( $options['cart'] ) ? $options['cart'] == 'yes' : $woo; } // Checkout page if ( is_checkout() ) { return isset( $options['checkout'] ) ? $options['checkout'] == 'yes' : $woo; } // Customer account pages if ( is_account_page() ) { return isset( $options['account_page'] ) ? $options['account_page'] == 'yes': $woo; } if ( is_woocommerce() ) { return $woo; } } // Check Custom Post Types if ( is_array( $options ) ) { foreach ( $options as $cpt => $view ) { if ( substr( $cpt, 0, 4 ) == 'cpt_' ) { $cpt = substr( $cpt, 4 ); if ( is_singular( $cpt ) || is_post_type_archive( $cpt ) ) { return $view == 'yes'; } } } } // Search results if ( is_search() ) { return isset( $options['search'] ) ? $options['search'] == 'yes' : $global; } // Check archives if ( is_archive() ) { // Date archive if ( isset( $options['date'] ) && is_date() ) { return $options['date'] == 'yes'; } // Author archive if ( isset( $options['author'] ) && is_author() ) { return $options['author'] == 'yes'; } return isset( $options['archive'] ) ? $options['archive'] == 'yes' : $global; } // Check singular if ( is_singular() ) { // Page if ( isset( $options['page'] ) && is_page() ) { return $options['page'] == 'yes'; } // Post (or other custom posts) if ( isset( $options['post'] ) && is_single() ) { return $options['post'] == 'yes'; } return isset( $options['singular'] ) ? $options['singular'] == 'yes' : $global; } return $global; } /** * Hide on Elementor preview mode. * Set 'show' false when is editing on Elementor * * @since 2.2.3 * @param object /Elementor/Preview instance */ public function elementor_preview_disable($elementor_preview) { $this->settings['show'] = apply_filters( 'whatsappme_elementor_preview_show', false ); } }
[+]
..
[+]
images
[+]
js
[+]
css
[-] class-whatsappme-public.php
[edit]
[-] index.php
[edit]