Skip to content

Commit

Permalink
remove is_mobile, because don't working with plugin cache
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriosouza committed Sep 30, 2015
1 parent 5cc3e35 commit c72d861
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,9 @@ li.service.share-whatsapp span:before {
background-image:image-set(url("../images/rectangle-zh-hant.png") 1x, url("../images/[email protected]") 2x);
background-image:-webkit-image-set(url("../images/rectangle-zh-hant.png") 1x, url("../images/[email protected]") 2x);
background-size: 68px 20px;
}
}
@media screen and (min-width: 800px) {
a.share-whatsapp.sd-button.share-icon{
display: none!important;
}
}
6 changes: 3 additions & 3 deletions includes/class.whatsapp-source.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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() {
Expand Down

0 comments on commit c72d861

Please sign in to comment.