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;
}
}
}