From c72d8618e3e916eb5a4647a1bb5b13459c91e35b Mon Sep 17 00:00:00 2001 From: Valerio Souza Date: Wed, 30 Sep 2015 13:54:05 -0300 Subject: [PATCH] remove is_mobile, because don't working with plugin cache --- assets/css/style.css | 7 ++++++- includes/class.whatsapp-source.php | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index fcc7b5f..46882f5 100755 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -81,4 +81,9 @@ li.service.share-whatsapp span:before { background-image:image-set(url("../images/rectangle-zh-hant.png") 1x, url("../images/rectangle-zh-hant@2x.png") 2x); background-image:-webkit-image-set(url("../images/rectangle-zh-hant.png") 1x, url("../images/rectangle-zh-hant@2x.png") 2x); background-size: 68px 20px; -} \ No newline at end of file +} +@media screen and (min-width: 800px) { + a.share-whatsapp.sd-button.share-icon{ + display: none!important; + } +} diff --git a/includes/class.whatsapp-source.php b/includes/class.whatsapp-source.php index bdae64f..8a8cf85 100755 --- a/includes/class.whatsapp-source.php +++ b/includes/class.whatsapp-source.php @@ -35,9 +35,9 @@ private function guess_locale_from_lang( $lang ) { } function get_display( $post ) { - include_once jetwhats__PLUGIN_DIR . 'includes/class.mobile.php'; + /*include_once jetwhats__PLUGIN_DIR . 'includes/class.mobile.php';*/ $locale = $this->guess_locale_from_lang( get_locale() ); - if ( wp_is_mobile()) { + /*if ( wp_is_mobile()) {*/ //if ($iOS || $Android ) { if( $this->smart ) return sprintf( @@ -51,7 +51,7 @@ function get_display( $post ) { else return $this->get_link( get_permalink( $post->ID ), _x( 'WhatsApp', 'share to', 'jetpack-whatsapp' ), __( 'Click to share on WhatsApp', 'jetpack-whatsapp' ), 'share=whatsapp' ); //} - } + /*}*/ } function display_header() {