Sfoglia il codice sorgente

Update jetpack.php

Aurorum 4 anni fa
parent
commit
705ef4c781
1 ha cambiato i file con 2 aggiunte e 12 eliminazioni
  1. 2 12
      apostrophe-2/inc/jetpack.php

+ 2 - 12
apostrophe-2/inc/jetpack.php

@@ -61,23 +61,13 @@ function apostrophe_2_has_post_thumbnail( $post = null ) {
 }
 
 /**
- * Return early if Social Menu is not available and check if it should be displayed on mobile.
+ * Return early if Social Menu is not available.
  */
 function apostrophe_2_social_menu() {
 	if ( ! function_exists( 'jetpack_social_menu' ) ) {
 		return;
-	} 
-	
-	if ( function_exists( 'jetpack_social_menu' ) && ( get_theme_mod( 'apostrophe_2_mobile_social' ) == 0 )) {
+	} else {
 		jetpack_social_menu();
-	} 
-	
-	if ( function_exists( 'jetpack_social_menu' ) && ( get_theme_mod( 'apostrophe_2_mobile_social' ) == 1 ) ) {
-	?>
-		<div class="social-mobile-menu">
-			<?php jetpack_social_menu(); ?>
-		</div>
-	<?php
 	}
 }