setprops(); $phno = $call->waphone; $text = $call->watext;// chat message without woocommerce wp_register_style( 'whatsappshortlogo', WAIO_URL_PATH . 'assets/fontawesome/css/font-awesome.min.css', array(), '7.1' ); wp_enqueue_style( 'whatsappshortlogo' ); wp_register_style( 'whatsapphelpcss', WAIO_URL_PATH . 'assets/washare.css', array(), '7.1' ); wp_enqueue_style( 'whatsapphelpcss' ); $waiosharebutclass = 'sharebutcss'; $waiosharebutclass = 'sharebut'; $wbutton = '
' . esc_html( $textbuthelp ) . '
'; return $wbutton; } } } if ( ! class_exists( 'Waiowhatsappsupport' ) ) { class Waiowhatsappsupport { // initiates the whatsapp floating support icon. public static function wabutton() { $cell = new Waiowhatsapphelp(); $cell->setprops(); $cello = $cell->waphone; $texts = $cell->watext;// this is the chat message text without woocommerce $backcol = $cell->background; $icon = $cell->iconcol; wp_register_style( 'whatsappsupportcss', WAIO_URL_PATH . 'assets/wat.css', array(), '7.1' ); wp_enqueue_style( 'whatsappsupportcss' ); wp_register_style( 'whatsappiconcss', WAIO_URL_PATH . 'assets/fontawesome/css/font-awesome.min.css', array(), '7.1' ); wp_enqueue_style( 'whatsappiconcss' ); echo ' '; } } } if ( ! class_exists( 'Waiowhatsappsharebutton' ) ) { class Waiowhatsappsharebutton { // initiates the property of whatsapp share button. public static function washarebut() { $sharemysite = new Washare(); $sharemysite->setsharetext(); $butcaption = $sharemysite->sharebutcap; $sharetexts = $sharemysite->sharetext; // the code below checks if the server is ssl or not and then generates the link to be shared global $wp; $myurl = home_url( add_query_arg( array(), $wp->request ) ); wp_register_style( 'woocomwhatsapplogo', WAIO_URL_PATH . 'assets/fontawesome/css/font-awesome.min.css', array(), '6.66' ); wp_enqueue_style( 'woocomwhatsapplogo' ); wp_register_style( 'sharecss', WAIO_URL_PATH . 'assets/washare.css', array(), '6.66' ); // register the sylesheet for share button wp_enqueue_style( 'sharecss' ); // enque the stylesheet for share button $waiosharebutclass = 'sharebut'; $sharebut = '' . esc_html( $butcaption ) . ''; // c if ( checked( '1', get_option( 'waiosharebutmobile' ), false ) ) { if ( wp_is_mobile() ) { echo $sharebut; } else { return null; } } echo $sharebut; } } } if ( ! class_exists( 'waiowoocomwhatsapp' ) ) { class waiowoocomwhatsapp { public static function wooappbutton() { $call = new waiowhatsapphelp(); $call->setprops(); $phno = $call->waphone; $woocombabe = new mywoocombaby(); $woocombabe->setprodtext(); $woomsgz = $woocombabe->samanwalatext; $prodesc = $woocombabe->shortdesc; $buttextset = new woocomwhatsappaio(); $buttextset->setbuttext(); $myonlytext = $buttextset->predefwoowhatsapp; $butshow = $buttextset->woobuttext; $thewhatsappmsg = "$myonlytext $woomsgz"; wp_register_style( 'woocomwhatsappcss', WAIO_URL_PATH . 'assets/washare.css' ); wp_register_style( 'woocomwhatsapplogo', WAIO_URL_PATH . 'assets/fontawesome/css/font-awesome.min.css' ); wp_enqueue_style( 'woocomwhatsapplogo' ); wp_enqueue_style( 'woocomwhatsappcss' ); $waiosharebutclass = 'sharebutcss'; if ( 1 == get_option( 'woocomwhatsappbutlook' ) ) { $waiosharebutclass = 'bluesharewhatsapp'; } if ( 2 == get_option( 'woocomwhatsappbutlook' ) ) { $waiosharebutclass = 'sharebut'; } if ( 3 == get_option( 'woocomwhatsappbutlook' ) ) { $waiosharebutclass = 'waiothirdbutton'; } if ( 1 == get_option( 'mobilewoowhatsapp' ) ) { if ( wp_is_mobile() ) { $Wbutton = '' . $prodesc . '
' . $butshow . '
'; } else { $Wbutton = $prodesc; } } else { $Wbutton = '' . $prodesc . '
' . $butshow . '
'; } return $Wbutton; } } } if ( ! class_exists( 'waiowoowhatsappshortbutton' ) ) { class waiowooowhatsappshortbutton { public static function woowhatsappshort() { $woocombabe = new mywoocombaby(); $woocombabe->setprodtext(); $woomsgz = $woocombabe->samanwalatext; $cell = new waiowhatsapphelp(); $cell->setprops(); $cello = $cell->waphone; $buttextset = new woocomwhatsappaio(); $buttextset->setbuttext(); $myonlytext = $buttextset->predefwoowhatsapp; $butshow = $buttextset->woobuttext; $thewhatsappmsg = "$myonlytext $woomsgz"; wp_register_style( 'woocomwhatsappcss', WAIO_URL_PATH . 'assets/washare.css' ); wp_register_style( 'woocomwhatsapplogo', WAIO_URL_PATH . 'assets/fontawesome/css/font-awesome.min.css' ); wp_enqueue_style( 'woocomwhatsapplogo' ); wp_enqueue_style( 'woocomwhatsappcss' ); $waiosharebutclass = 'sharebutcss'; if ( 1 == get_option( 'woocomwhatsappbutlook' ) ) { $waiosharebutclass = 'bluesharewhatsapp'; } if ( 2 == get_option( 'woocomwhatsappbutlook' ) ) { $waiosharebutclass = 'sharebut'; } if ( 3 == get_option( 'woocomwhatsappbutlook' ) ) { $waiosharebutclass = 'waiothirdbutton'; } $Wbutton = '
' . $butshow . '
'; return $Wbutton; } } }