WP Responsive Menu - Version 3.1.7.2

Version Description

Download this release

Release Info

Developer sagarseth9
Plugin Icon 128x128 WP Responsive Menu
Version 3.1.7.2
Comparing to
See all releases

Code changes from version 3.1.7.1 to 3.1.7.2

inc/assets/js/wprmenu-options.js CHANGED
@@ -297,19 +297,19 @@ jQuery( document ).ready( function($) {
297
  *
298
  ----------------------------------------
299
  **/
300
- var slideOpt = $( '#section-slide_type option:selected' ).val();
301
- if ( slideOpt == 'bodyslide' ) {
302
- $( '#section-position option:eq( 2 ), #section-position option:eq( 3 )' ).css( 'display', 'none' );
303
- }
304
 
305
- $( '#slide_type' ).change( function() {
306
- if ( $( this ).val() == 'bodyslide' ) {
307
- $( '#section-position option:eq( 2 ), #section-position option:eq( 3 )' ).css( 'display', 'none' );
308
- }
309
- else {
310
- $( '#section-position option:eq( 2 ), #section-position option:eq( 3 )' ).css( 'display', 'block' );
311
- }
312
- });
313
 
314
 
315
  /**
@@ -338,6 +338,25 @@ jQuery( document ).ready( function($) {
338
  }
339
  });
340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  $( '#section-menu_icon_type input' ).on( 'change', function() {
342
  var menuIconType = $( 'input[name="wprmenu_options[menu_icon_type]"]:checked', '#section-menu_icon_type' ).val();
343
 
@@ -571,27 +590,6 @@ jQuery( document ).ready( function($) {
571
  $( this ).find( '.wprmenu-content' ).toggleClass( 'image-overlay' );
572
  });
573
 
574
-
575
- //Hide top and bottom options when push menu is activated
576
- var MenuSlideStyle = $( "input[name='wprmenu_options[slide_type]']:checked" ).val();
577
- if( MenuSlideStyle == 'bodyslide' ) {
578
- $( 'label[for="wprmenu_options-position-top"]' ).css( 'display', 'none' );
579
- $( 'label[for="wprmenu_options-position-bottom"]' ).css( 'display', 'none' );
580
- }
581
-
582
- $( '#section-slide_type input' ).on( 'change', function() {
583
- var SlideType = $( 'input[name="wprmenu_options[slide_type]"]:checked' ).val();
584
-
585
- if ( SlideType == 'bodyslide' ) {
586
- $( 'label[for="wprmenu_options-position-top"]' ).css( 'display', 'none' );
587
- $( 'label[for="wprmenu_options-position-bottom"]' ).css( 'display', 'none' );
588
- }
589
- else {
590
- $( 'label[for="wprmenu_options-position-top"]' ).css( 'display', 'block' );
591
- $( 'label[for="wprmenu_options-position-bottom"]' ).css( 'display', 'block' );
592
- }
593
- });
594
-
595
  /**
596
  ----------------------------------------
597
  *
297
  *
298
  ----------------------------------------
299
  **/
300
+ // var slideOpt = $( '#section-slide_type option:selected' ).val();
301
+ // if ( slideOpt == 'bodyslide' ) {
302
+ // $( '#section-position option:eq( 2 ), #section-position option:eq( 3 )' ).css( 'display', 'none' );
303
+ // }
304
 
305
+ // $( '#slide_type' ).change( function() {
306
+ // if ( $( this ).val() == 'bodyslide' ) {
307
+ // $( '#section-position option:eq( 2 ), #section-position option:eq( 3 )' ).css( 'display', 'none' );
308
+ // }
309
+ // else {
310
+ // $( '#section-position option:eq( 2 ), #section-position option:eq( 3 )' ).css( 'display', 'block' );
311
+ // }
312
+ // });
313
 
314
 
315
  /**
338
  }
339
  });
340
 
341
+ //Hide top and bottom options when push menu is activated
342
+ var MenuSlideStyle = $( "input[name='wprmenu_options[slide_type]']:checked" ).val();
343
+ if( MenuSlideStyle == 'bodyslide' ) {
344
+ $( 'label[for="wprmenu_options-position-top"]' ).css( 'display', 'none' );
345
+ $( 'label[for="wprmenu_options-position-bottom"]' ).css( 'display', 'none' );
346
+ }
347
+
348
+ $( '#section-slide_type input' ).on( 'change', function() {
349
+ var SlideType = $( 'input[name="wprmenu_options[slide_type]"]:checked' ).val();
350
+ if ( SlideType == 'bodyslide' ) {
351
+ $( 'label[for="wprmenu_options-position-top"]' ).css( 'display', 'none' );
352
+ $( 'label[for="wprmenu_options-position-bottom"]' ).css( 'display', 'none' );
353
+ }
354
+ else {
355
+ $( 'label[for="wprmenu_options-position-top"]' ).css( 'display', 'block' );
356
+ $( 'label[for="wprmenu_options-position-bottom"]' ).css( 'display', 'block' );
357
+ }
358
+ });
359
+
360
  $( '#section-menu_icon_type input' ).on( 'change', function() {
361
  var menuIconType = $( 'input[name="wprmenu_options[menu_icon_type]"]:checked', '#section-menu_icon_type' ).val();
362
 
590
  $( this ).find( '.wprmenu-content' ).toggleClass( 'image-overlay' );
591
  });
592
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
593
  /**
594
  ----------------------------------------
595
  *
inc/class-wp-responsive-menu.php CHANGED
@@ -261,7 +261,7 @@ class WP_Responsive_Menu {
261
  <?php $this->get_template_part( 'default-menu-bar', $default_menu_bar ); ?>
262
  <?php endif; ?>
263
 
264
- <div class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-<?php echo $open_direction; ?> <?php echo $menu_type; ?> " id="mg-wprm-wrap">
265
  <?php if( $menu_type == 'custom' ): ?>
266
  <?php $this->get_template_part( 'menu-title', $menu_title_args ); ?>
267
  <?php endif; ?>
@@ -313,7 +313,7 @@ class WP_Responsive_Menu {
313
  <style type="text/css">
314
  <?php
315
  echo '/* WPR Custom CSS */' . "\n";
316
- echo $parse_css . "\n";
317
  ?>
318
  </style>
319
  <?php
@@ -330,7 +330,7 @@ class WP_Responsive_Menu {
330
  */
331
  public function wprmenu_import_data() {
332
 
333
- if ( ! wp_verify_nonce( $_POST['nonce'], 'wprmenu-nonce' ) ) {
334
  die ( __( 'Error while verifying your request! Try again.', 'wprmenu' ) );
335
  }
336
 
@@ -361,27 +361,15 @@ class WP_Responsive_Menu {
361
 
362
  $content = $content['body'];
363
  $items = json_decode( $content, true );
 
364
 
365
- if( is_array($items) ) {
366
  $items['menu'] = $menu;
367
  }
368
 
369
- $content = maybe_serialize( $items );
370
-
371
- if( $content ) {
372
  $response = 'success';
373
-
374
- global $wpdb;
375
-
376
- $wpdb->update(
377
- $wpdb->prefix.'options',
378
- array(
379
- 'option_value' => $content,
380
- ),
381
- array(
382
- 'option_name' => 'wprmenu_options',
383
- )
384
- );
385
  }
386
  else {
387
  $response = 'error';
@@ -398,8 +386,7 @@ class WP_Responsive_Menu {
398
  else {
399
  $response = 'error';
400
  }
401
- echo json_encode( array('status' => $response) );
402
- wp_die();
403
  }
404
 
405
 
@@ -432,7 +419,7 @@ class WP_Responsive_Menu {
432
  */
433
  public function wpr_get_transient_from_data() {
434
 
435
- if ( ! wp_verify_nonce( $_POST['nonce'], 'wprmenu-nonce' ) ) {
436
  die ( __( 'Error while verifying your request! Try again.', 'wprmenu' ) );
437
  }
438
 
261
  <?php $this->get_template_part( 'default-menu-bar', $default_menu_bar ); ?>
262
  <?php endif; ?>
263
 
264
+ <div class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-<?php echo esc_attr( $open_direction ); ?> <?php echo esc_attr( $menu_type ); ?> " id="mg-wprm-wrap">
265
  <?php if( $menu_type == 'custom' ): ?>
266
  <?php $this->get_template_part( 'menu-title', $menu_title_args ); ?>
267
  <?php endif; ?>
313
  <style type="text/css">
314
  <?php
315
  echo '/* WPR Custom CSS */' . "\n";
316
+ echo esc_html( $parse_css ) . "\n";
317
  ?>
318
  </style>
319
  <?php
330
  */
331
  public function wprmenu_import_data() {
332
 
333
+ if ( ! wp_verify_nonce( $_POST['nonce'], 'wprmenu-nonce' ) || ! current_user_can( 'administrator' ) ) {
334
  die ( __( 'Error while verifying your request! Try again.', 'wprmenu' ) );
335
  }
336
 
361
 
362
  $content = $content['body'];
363
  $items = json_decode( $content, true );
364
+ $items = wpr_of_sanitize_array( $items );
365
 
366
+ if( is_array( $items ) ) {
367
  $items['menu'] = $menu;
368
  }
369
 
370
+ if( !empty( $content ) ) {
 
 
371
  $response = 'success';
372
+ update_option( 'wprmenu_options', $content );
 
 
 
 
 
 
 
 
 
 
 
373
  }
374
  else {
375
  $response = 'error';
386
  else {
387
  $response = 'error';
388
  }
389
+ wp_send_json( array( 'status' => $response ) );
 
390
  }
391
 
392
 
419
  */
420
  public function wpr_get_transient_from_data() {
421
 
422
+ if ( ! wp_verify_nonce( $_POST['nonce'], 'wprmenu-nonce' ) || ! current_user_can( 'administrator' ) ) {
423
  die ( __( 'Error while verifying your request! Try again.', 'wprmenu' ) );
424
  }
425
 
inc/google-web-fonts.php CHANGED
@@ -7,7 +7,7 @@
7
  */
8
  defined( 'ABSPATH' ) || exit;
9
 
10
- function get_custom_fonts() {
11
  $get_google_fonts = array(
12
  'ABeeZee','Abel','Abhaya+Libre','Abril+Fatface','Aclonica','Acme','Actor','Adamina','Advent+Pro','Aguafina+Script','Akronim','Aladin','Aldrich','Alef','Alegreya','Alegreya+SC','Alegreya+Sans','Alegreya+Sans+SC','Alex+Brush','Alfa+Slab+One','Alice','Alike','Alike+Angular','Allan','Allerta','Allerta+Stencil','Allura','Almendra','Almendra+Display','Almendra+SC','Amarante','Amaranth','Amatic+SC','Amethysta','Amiko','Amiri','Amita','Anaheim','Andada','Andika','Angkor','Annie+Use+Your+Telescope','Anonymous+Pro','Antic','Antic+Didone','Antic+Slab','Anton','Arapey','Arbutus','Arbutus+Slab','Architects+Daughter','Archivo+Black','Archivo+Narrow','Aref+Ruqaa','Arima+Madurai','Arimo','Arizonia','Armata','Artifika','Arvo','Arya','Asap','Asar','Asset','Assistant','Astloch','Asul','Athiti','Atma','Atomic+Age','Aubrey','Audiowide','Autour+One','Average','Average+Sans','Averia+Gruesa+Libre','Averia+Libre','Averia+Sans+Libre','Averia+Serif+Libre','Bad+Script','Baloo','Baloo+Bhai','Baloo+Bhaina','Baloo+Chettan','Baloo+Da','Baloo+Paaji','Baloo+Tamma','Baloo+Thambi','Balthazar','Bangers','Basic','Battambang','Baumans','Bayon','Belgrano','Belleza','BenchNine','Bentham','Berkshire+Swash','Bevan','Bigelow+Rules','Bigshot+One','Bilbo','Bilbo+Swash+Caps','BioRhyme','BioRhyme+Expanded','Biryani','Bitter','Black+Ops+One','Bokor','Bonbon','Boogaloo','Bowlby+One','Bowlby+One+SC','Brawler','Bree+Serif','Bubblegum+Sans','Bubbler+One','Buda','Buenard','Bungee','Bungee+Hairline','Bungee+Inline','Bungee+Outline','Bungee+Shade','Butcherman','Butterfly+Kids','Cabin','Cabin+Condensed','Cabin+Sketch','Caesar+Dressing','Cagliostro','Cairo','Calligraffitti','Cambay','Cambo','Candal','Cantarell','Cantata+One','Capriola','Cardo','Carme','Carrois+Gothic','Carrois+Gothic+SC','Carter+One','Catamaran','Caudex','Caveat','Caveat+Brush','Cedarville+Cursive','Ceviche+One','Changa','Changa+One','Chango','Chathura','Chau+Philomene+One','Chela+One','Chelsea+Market','Chenla','Cherry+Cream+Soda','Cherry+Swash','Chewy','Chicle','Chivo','Chonburi','Cinzel','Cinzel+Decorative','Clicker+Script','Coda','Coda+Caption','Codystar','Coiny','Combo','Comfortaa','Coming+Soon','Concert+One','Condiment','Content','Contrail+One','Convergence','Cookie','Copse','Corben','Cormorant','Cormorant+Garamond','Cormorant+Infant','Cormorant+SC','Cormorant+Unicase','Cormorant+Upright','Courgette','Cousine','Coustard','Covered+By+Your+Grace','Crafty+Girls','Creepster','Crete+Round','Crimson+Text','Croissant+One','Crushed','Cuprum','Cutive','Cutive+Mono','Damion','Dancing+Script','Dangrek','David+Libre','Dawning+of+a+New+Day','Days+One','Dekko','Delius','Delius+Swash+Caps','Delius+Unicase','Della+Respira','Denk+One','Devonshire','Dhurjati','Didact+Gothic','Diplomata','Diplomata+SC','Domine','Donegal+One','Doppio+One','Dorsa','Dosis','Dr+Sugiyama','Droid+Sans','Droid+Sans+Mono','Droid+Serif','Duru+Sans','Dynalight','EB+Garamond','Eagle+Lake','Eater','Economica','Eczar','Ek+Mukta','El+Messiri','Electrolize','Elsie','Elsie+Swash+Caps','Emblema+One','Emilys+Candy','Engagement','Englebert','Enriqueta','Erica+One','Esteban','Euphoria+Script','Ewert','Exo','Exo+2','Expletus+Sans','Fanwood+Text','Farsan','Fascinate','Fascinate+Inline','Faster+One','Fasthand','Fauna+One','Federant','Federo','Felipa','Fenix','Finger+Paint','Fira+Mono','Fira+Sans','Fjalla+One','Fjord+One','Flamenco','Flavors','Fondamento','Fontdiner+Swanky','Forum','Francois+One','Frank+Ruhl+Libre','Freckle+Face','Fredericka+the+Great','Fredoka+One','Freehand','Fresca','Frijole','Fruktur','Fugaz+One','GFS+Didot','GFS+Neohellenic','Gabriela','Gafata','Galada','Galdeano','Galindo','Gentium+Basic','Gentium+Book+Basic','Geo','Geostar','Geostar+Fill','Germania+One','Gidugu','Gilda+Display','Give+You+Glory','Glass+Antiqua','Glegoo','Gloria+Hallelujah','Goblin+One','Gochi+Hand','Gorditas','Goudy+Bookletter+1911','Graduate','Grand+Hotel','Gravitas+One','Great+Vibes','Griffy','Gruppo','Gudea','Gurajada','Habibi','Halant','Hammersmith+One','Hanalei','Hanalei+Fill','Handlee','Hanuman','Happy+Monkey','Harmattan','Headland+One','Heebo','Henny+Penny','Herr+Von+Muellerhoff','Hind','Hind+Guntur','Hind+Madurai','Hind+Siliguri','Hind+Vadodara','Holtwood+One+SC','Homemade+Apple','Homenaje','IM+Fell+DW+Pica','IM+Fell+DW+Pica+SC','IM+Fell+Double+Pica','IM+Fell+Double+Pica+SC','IM+Fell+English','IM+Fell+English+SC','IM+Fell+French+Canon','IM+Fell+French+Canon+SC','IM+Fell+Great+Primer','IM+Fell+Great+Primer+SC','Iceberg','Iceland','Imprima','Inconsolata','Inder','Indie+Flower','Inika','Inknut+Antiqua','Irish+Grover','Istok+Web','Italiana','Italianno','Itim','Jacques+Francois','Jacques+Francois+Shadow','Jaldi','Jim+Nightshade','Jockey+One','Jolly+Lodger','Jomhuria','Josefin+Sans','Josefin+Slab','Joti+One','Judson','Julee','Julius+Sans+One','Junge','Jura','Just+Another+Hand','Just+Me+Again+Down+Here','Kadwa','Kalam','Kameron','Kanit','Kantumruy','Karla','Karma','Katibeh','Kaushan+Script','Kavivanar','Kavoon','Kdam+Thmor','Keania+One','Kelly+Slab','Kenia','Khand','Khmer','Khula','Kite+One','Knewave','Kotta+One','Koulen','Kranky','Kreon','Kristi','Krona+One','Kumar+One','Kumar+One+Outline','Kurale','La+Belle+Aurore','Laila','Lakki+Reddy','Lalezar','Lancelot','Lateef','Lato','League+Script','Leckerli+One','Ledger','Lekton','Lemon','Lemonada','Libre+Baskerville','Libre+Franklin','Life+Savers','Lilita+One','Lily+Script+One','Limelight','Linden+Hill','Lobster','Lobster+Two','Londrina+Outline','Londrina+Shadow','Londrina+Sketch','Londrina+Solid','Lora','Love+Ya+Like+A+Sister','Loved+by+the+King','Lovers+Quarrel','Luckiest+Guy','Lusitana','Lustria','Macondo','Macondo+Swash+Caps','Mada','Magra','Maiden+Orange','Maitree','Mako','Mallanna','Mandali','Marcellus','Marcellus+SC','Marck+Script','Margarine','Marko+One','Marmelad','Martel','Martel+Sans','Marvel','Mate','Mate+SC','Maven+Pro','McLaren','Meddon','MedievalSharp','Medula+One','Meera+Inimai','Megrim','Meie+Script','Merienda','Merienda+One','Merriweather','Merriweather+Sans','Metal','Metal+Mania','Metamorphous','Metrophobic','Michroma','Milonga','Miltonian','Miltonian+Tattoo','Miniver','Miriam+Libre','Mirza','Miss+Fajardose','Mitr','Modak','Modern+Antiqua','Mogra','Molengo','Molle','Monda','Monofett','Monoton','Monsieur+La+Doulaise','Montaga','Montez','Montserrat','Montserrat+Alternates','Montserrat+Subrayada','Moul','Moulpali','Mountains+of+Christmas','Mouse+Memoirs','Mr+Bedfort','Mr+Dafoe','Mr+De+Haviland','Mrs+Saint+Delafield','Mrs+Sheppards','Mukta+Vaani','Muli','Mystery+Quest','NTR','Neucha','Neuton','New+Rocker','News+Cycle','Niconne','Nixie+One','Nobile','Nokora','Norican','Nosifer','Nothing+You+Could+Do','Noticia+Text','Noto+Sans','Noto+Serif','Nova+Cut','Nova+Flat','Nova+Mono','Nova+Oval','Nova+Round','Nova+Script','Nova+Slim','Nova+Square','Numans','Nunito','Nunito+Sans','Odor+Mean+Chey','Offside','Old+Standard+TT','Oldenburg','Oleo+Script','Oleo+Script+Swash+Caps','Open+Sans','Open+Sans+Condensed','Oranienbaum','Orbitron','Oregano','Orienta','Original+Surfer','Oswald','Over+the+Rainbow','Overlock','Overlock+SC','Ovo','Oxygen','Oxygen+Mono','PT+Mono','PT+Sans','PT+Sans+Caption','PT+Sans+Narrow','PT+Serif','PT+Serif+Caption','Pacifico','Palanquin','Palanquin+Dark','Paprika','Parisienne','Passero+One','Passion+One','Pathway+Gothic+One','Patrick+Hand','Patrick+Hand+SC','Pattaya','Patua+One','Pavanam','Paytone+One','Peddana','Peralta','Permanent+Marker','Petit+Formal+Script','Petrona','Philosopher','Piedra','Pinyon+Script','Pirata+One','Plaster','Play','Playball','Playfair+Display','Playfair+Display+SC','Podkova','Poiret+One','Poller+One','Poly','Pompiere','Pontano+Sans','Poppins','Port+Lligat+Sans','Port+Lligat+Slab','Pragati+Narrow','Prata','Preahvihear','Press+Start+2P','Pridi','Princess+Sofia','Prociono','Prompt','Prosto+One','Proza+Libre','Puritan','Purple+Purse','Quando','Quantico','Quattrocento','Quattrocento+Sans','Questrial','Quicksand','Quintessential','Qwigley','Racing+Sans+One','Radley','Rajdhani','Rakkas','Raleway','Raleway+Dots','Ramabhadra','Ramaraja','Rambla','Rammetto+One','Ranchers','Rancho','Ranga','Rasa','Rationale','Ravi+Prakash','Redressed','Reem+Kufi','Reenie+Beanie','Revalia','Rhodium+Libre','Ribeye','Ribeye+Marrow','Righteous','Risque','Roboto','Roboto+Condensed','Roboto+Mono','Roboto+Slab','Rochester','Rock+Salt','Rokkitt','Romanesco','Ropa+Sans','Rosario','Rosarivo','Rouge+Script','Rozha+One','Rubik','Rubik+Mono+One','Rubik+One','Ruda','Rufina','Ruge+Boogie','Ruluko','Rum+Raisin','Ruslan+Display','Russo+One','Ruthie','Rye','Sacramento','Sahitya','Sail','Salsa','Sanchez','Sancreek','Sansita+One','Sarala','Sarina','Sarpanch','Satisfy','Scada','Scheherazade','Schoolbell','Scope+One','Seaweed+Script','Secular+One','Sevillana','Seymour+One','Shadows+Into+Light','Shadows+Into+Light+Two','Shanti','Share','Share+Tech','Share+Tech+Mono','Shojumaru','Short+Stack','Shrikhand','Siemreap','Sigmar+One','Signika','Signika+Negative','Simonetta','Sintony','Sirin+Stencil','Six+Caps','Skranji','Slabo+13px','Slabo+27px','Slackey','Smokum','Smythe','Sniglet','Snippet','Snowburst+One','Sofadi+One','Sofia','Sonsie+One','Sorts+Mill+Goudy','Source+Code+Pro','Source+Sans+Pro','Source+Serif+Pro','Space+Mono','Special+Elite','Spicy+Rice','Spinnaker','Spirax','Squada+One','Sree+Krushnadevaraya','Sriracha','Stalemate','Stalinist+One','Stardos+Stencil','Stint+Ultra+Condensed','Stint+Ultra+Expanded','Stoke','Strait','Sue+Ellen+Francisco','Suez+One','Sumana','Sunshiney','Supermercado+One','Sura','Suranna','Suravaram','Suwannaphum','Swanky+and+Moo+Moo','Syncopate','Tangerine','Taprom','Tauri','Taviraj','Teko','Telex','Tenali+Ramakrishna','Tenor+Sans','Text+Me+One','The+Girl+Next+Door','Tienne','Tillana','Timmana','Tinos','Titan+One','Titillium+Web','Trade+Winds','Trirong','Trocchi','Trochut','Trykker','Tulpen+One','Ubuntu','Ubuntu+Condensed','Ubuntu+Mono','Ultra','Uncial+Antiqua','Underdog','Unica+One','UnifrakturCook','UnifrakturMaguntia','Unkempt','Unlock','Unna','VT323','Vampiro+One','Varela','Varela+Round','Vast+Shadow','Vesper+Libre','Vibur','Vidaloka','Viga','Voces','Volkhov','Vollkorn','Voltaire','Waiting+for+the+Sunrise','Wallpoet','Walter+Turncoat','Warnes','Wellfleet','Wendy+One','Wire+One','Work+Sans','Yanone+Kaffeesatz','Yantramanav','Yatra+One','Yellowtail','Yeseva+One','Yesteryear','Yrsa','Zeyada',
13
  );
7
  */
8
  defined( 'ABSPATH' ) || exit;
9
 
10
+ function wpr_get_custom_fonts() {
11
  $get_google_fonts = array(
12
  'ABeeZee','Abel','Abhaya+Libre','Abril+Fatface','Aclonica','Acme','Actor','Adamina','Advent+Pro','Aguafina+Script','Akronim','Aladin','Aldrich','Alef','Alegreya','Alegreya+SC','Alegreya+Sans','Alegreya+Sans+SC','Alex+Brush','Alfa+Slab+One','Alice','Alike','Alike+Angular','Allan','Allerta','Allerta+Stencil','Allura','Almendra','Almendra+Display','Almendra+SC','Amarante','Amaranth','Amatic+SC','Amethysta','Amiko','Amiri','Amita','Anaheim','Andada','Andika','Angkor','Annie+Use+Your+Telescope','Anonymous+Pro','Antic','Antic+Didone','Antic+Slab','Anton','Arapey','Arbutus','Arbutus+Slab','Architects+Daughter','Archivo+Black','Archivo+Narrow','Aref+Ruqaa','Arima+Madurai','Arimo','Arizonia','Armata','Artifika','Arvo','Arya','Asap','Asar','Asset','Assistant','Astloch','Asul','Athiti','Atma','Atomic+Age','Aubrey','Audiowide','Autour+One','Average','Average+Sans','Averia+Gruesa+Libre','Averia+Libre','Averia+Sans+Libre','Averia+Serif+Libre','Bad+Script','Baloo','Baloo+Bhai','Baloo+Bhaina','Baloo+Chettan','Baloo+Da','Baloo+Paaji','Baloo+Tamma','Baloo+Thambi','Balthazar','Bangers','Basic','Battambang','Baumans','Bayon','Belgrano','Belleza','BenchNine','Bentham','Berkshire+Swash','Bevan','Bigelow+Rules','Bigshot+One','Bilbo','Bilbo+Swash+Caps','BioRhyme','BioRhyme+Expanded','Biryani','Bitter','Black+Ops+One','Bokor','Bonbon','Boogaloo','Bowlby+One','Bowlby+One+SC','Brawler','Bree+Serif','Bubblegum+Sans','Bubbler+One','Buda','Buenard','Bungee','Bungee+Hairline','Bungee+Inline','Bungee+Outline','Bungee+Shade','Butcherman','Butterfly+Kids','Cabin','Cabin+Condensed','Cabin+Sketch','Caesar+Dressing','Cagliostro','Cairo','Calligraffitti','Cambay','Cambo','Candal','Cantarell','Cantata+One','Capriola','Cardo','Carme','Carrois+Gothic','Carrois+Gothic+SC','Carter+One','Catamaran','Caudex','Caveat','Caveat+Brush','Cedarville+Cursive','Ceviche+One','Changa','Changa+One','Chango','Chathura','Chau+Philomene+One','Chela+One','Chelsea+Market','Chenla','Cherry+Cream+Soda','Cherry+Swash','Chewy','Chicle','Chivo','Chonburi','Cinzel','Cinzel+Decorative','Clicker+Script','Coda','Coda+Caption','Codystar','Coiny','Combo','Comfortaa','Coming+Soon','Concert+One','Condiment','Content','Contrail+One','Convergence','Cookie','Copse','Corben','Cormorant','Cormorant+Garamond','Cormorant+Infant','Cormorant+SC','Cormorant+Unicase','Cormorant+Upright','Courgette','Cousine','Coustard','Covered+By+Your+Grace','Crafty+Girls','Creepster','Crete+Round','Crimson+Text','Croissant+One','Crushed','Cuprum','Cutive','Cutive+Mono','Damion','Dancing+Script','Dangrek','David+Libre','Dawning+of+a+New+Day','Days+One','Dekko','Delius','Delius+Swash+Caps','Delius+Unicase','Della+Respira','Denk+One','Devonshire','Dhurjati','Didact+Gothic','Diplomata','Diplomata+SC','Domine','Donegal+One','Doppio+One','Dorsa','Dosis','Dr+Sugiyama','Droid+Sans','Droid+Sans+Mono','Droid+Serif','Duru+Sans','Dynalight','EB+Garamond','Eagle+Lake','Eater','Economica','Eczar','Ek+Mukta','El+Messiri','Electrolize','Elsie','Elsie+Swash+Caps','Emblema+One','Emilys+Candy','Engagement','Englebert','Enriqueta','Erica+One','Esteban','Euphoria+Script','Ewert','Exo','Exo+2','Expletus+Sans','Fanwood+Text','Farsan','Fascinate','Fascinate+Inline','Faster+One','Fasthand','Fauna+One','Federant','Federo','Felipa','Fenix','Finger+Paint','Fira+Mono','Fira+Sans','Fjalla+One','Fjord+One','Flamenco','Flavors','Fondamento','Fontdiner+Swanky','Forum','Francois+One','Frank+Ruhl+Libre','Freckle+Face','Fredericka+the+Great','Fredoka+One','Freehand','Fresca','Frijole','Fruktur','Fugaz+One','GFS+Didot','GFS+Neohellenic','Gabriela','Gafata','Galada','Galdeano','Galindo','Gentium+Basic','Gentium+Book+Basic','Geo','Geostar','Geostar+Fill','Germania+One','Gidugu','Gilda+Display','Give+You+Glory','Glass+Antiqua','Glegoo','Gloria+Hallelujah','Goblin+One','Gochi+Hand','Gorditas','Goudy+Bookletter+1911','Graduate','Grand+Hotel','Gravitas+One','Great+Vibes','Griffy','Gruppo','Gudea','Gurajada','Habibi','Halant','Hammersmith+One','Hanalei','Hanalei+Fill','Handlee','Hanuman','Happy+Monkey','Harmattan','Headland+One','Heebo','Henny+Penny','Herr+Von+Muellerhoff','Hind','Hind+Guntur','Hind+Madurai','Hind+Siliguri','Hind+Vadodara','Holtwood+One+SC','Homemade+Apple','Homenaje','IM+Fell+DW+Pica','IM+Fell+DW+Pica+SC','IM+Fell+Double+Pica','IM+Fell+Double+Pica+SC','IM+Fell+English','IM+Fell+English+SC','IM+Fell+French+Canon','IM+Fell+French+Canon+SC','IM+Fell+Great+Primer','IM+Fell+Great+Primer+SC','Iceberg','Iceland','Imprima','Inconsolata','Inder','Indie+Flower','Inika','Inknut+Antiqua','Irish+Grover','Istok+Web','Italiana','Italianno','Itim','Jacques+Francois','Jacques+Francois+Shadow','Jaldi','Jim+Nightshade','Jockey+One','Jolly+Lodger','Jomhuria','Josefin+Sans','Josefin+Slab','Joti+One','Judson','Julee','Julius+Sans+One','Junge','Jura','Just+Another+Hand','Just+Me+Again+Down+Here','Kadwa','Kalam','Kameron','Kanit','Kantumruy','Karla','Karma','Katibeh','Kaushan+Script','Kavivanar','Kavoon','Kdam+Thmor','Keania+One','Kelly+Slab','Kenia','Khand','Khmer','Khula','Kite+One','Knewave','Kotta+One','Koulen','Kranky','Kreon','Kristi','Krona+One','Kumar+One','Kumar+One+Outline','Kurale','La+Belle+Aurore','Laila','Lakki+Reddy','Lalezar','Lancelot','Lateef','Lato','League+Script','Leckerli+One','Ledger','Lekton','Lemon','Lemonada','Libre+Baskerville','Libre+Franklin','Life+Savers','Lilita+One','Lily+Script+One','Limelight','Linden+Hill','Lobster','Lobster+Two','Londrina+Outline','Londrina+Shadow','Londrina+Sketch','Londrina+Solid','Lora','Love+Ya+Like+A+Sister','Loved+by+the+King','Lovers+Quarrel','Luckiest+Guy','Lusitana','Lustria','Macondo','Macondo+Swash+Caps','Mada','Magra','Maiden+Orange','Maitree','Mako','Mallanna','Mandali','Marcellus','Marcellus+SC','Marck+Script','Margarine','Marko+One','Marmelad','Martel','Martel+Sans','Marvel','Mate','Mate+SC','Maven+Pro','McLaren','Meddon','MedievalSharp','Medula+One','Meera+Inimai','Megrim','Meie+Script','Merienda','Merienda+One','Merriweather','Merriweather+Sans','Metal','Metal+Mania','Metamorphous','Metrophobic','Michroma','Milonga','Miltonian','Miltonian+Tattoo','Miniver','Miriam+Libre','Mirza','Miss+Fajardose','Mitr','Modak','Modern+Antiqua','Mogra','Molengo','Molle','Monda','Monofett','Monoton','Monsieur+La+Doulaise','Montaga','Montez','Montserrat','Montserrat+Alternates','Montserrat+Subrayada','Moul','Moulpali','Mountains+of+Christmas','Mouse+Memoirs','Mr+Bedfort','Mr+Dafoe','Mr+De+Haviland','Mrs+Saint+Delafield','Mrs+Sheppards','Mukta+Vaani','Muli','Mystery+Quest','NTR','Neucha','Neuton','New+Rocker','News+Cycle','Niconne','Nixie+One','Nobile','Nokora','Norican','Nosifer','Nothing+You+Could+Do','Noticia+Text','Noto+Sans','Noto+Serif','Nova+Cut','Nova+Flat','Nova+Mono','Nova+Oval','Nova+Round','Nova+Script','Nova+Slim','Nova+Square','Numans','Nunito','Nunito+Sans','Odor+Mean+Chey','Offside','Old+Standard+TT','Oldenburg','Oleo+Script','Oleo+Script+Swash+Caps','Open+Sans','Open+Sans+Condensed','Oranienbaum','Orbitron','Oregano','Orienta','Original+Surfer','Oswald','Over+the+Rainbow','Overlock','Overlock+SC','Ovo','Oxygen','Oxygen+Mono','PT+Mono','PT+Sans','PT+Sans+Caption','PT+Sans+Narrow','PT+Serif','PT+Serif+Caption','Pacifico','Palanquin','Palanquin+Dark','Paprika','Parisienne','Passero+One','Passion+One','Pathway+Gothic+One','Patrick+Hand','Patrick+Hand+SC','Pattaya','Patua+One','Pavanam','Paytone+One','Peddana','Peralta','Permanent+Marker','Petit+Formal+Script','Petrona','Philosopher','Piedra','Pinyon+Script','Pirata+One','Plaster','Play','Playball','Playfair+Display','Playfair+Display+SC','Podkova','Poiret+One','Poller+One','Poly','Pompiere','Pontano+Sans','Poppins','Port+Lligat+Sans','Port+Lligat+Slab','Pragati+Narrow','Prata','Preahvihear','Press+Start+2P','Pridi','Princess+Sofia','Prociono','Prompt','Prosto+One','Proza+Libre','Puritan','Purple+Purse','Quando','Quantico','Quattrocento','Quattrocento+Sans','Questrial','Quicksand','Quintessential','Qwigley','Racing+Sans+One','Radley','Rajdhani','Rakkas','Raleway','Raleway+Dots','Ramabhadra','Ramaraja','Rambla','Rammetto+One','Ranchers','Rancho','Ranga','Rasa','Rationale','Ravi+Prakash','Redressed','Reem+Kufi','Reenie+Beanie','Revalia','Rhodium+Libre','Ribeye','Ribeye+Marrow','Righteous','Risque','Roboto','Roboto+Condensed','Roboto+Mono','Roboto+Slab','Rochester','Rock+Salt','Rokkitt','Romanesco','Ropa+Sans','Rosario','Rosarivo','Rouge+Script','Rozha+One','Rubik','Rubik+Mono+One','Rubik+One','Ruda','Rufina','Ruge+Boogie','Ruluko','Rum+Raisin','Ruslan+Display','Russo+One','Ruthie','Rye','Sacramento','Sahitya','Sail','Salsa','Sanchez','Sancreek','Sansita+One','Sarala','Sarina','Sarpanch','Satisfy','Scada','Scheherazade','Schoolbell','Scope+One','Seaweed+Script','Secular+One','Sevillana','Seymour+One','Shadows+Into+Light','Shadows+Into+Light+Two','Shanti','Share','Share+Tech','Share+Tech+Mono','Shojumaru','Short+Stack','Shrikhand','Siemreap','Sigmar+One','Signika','Signika+Negative','Simonetta','Sintony','Sirin+Stencil','Six+Caps','Skranji','Slabo+13px','Slabo+27px','Slackey','Smokum','Smythe','Sniglet','Snippet','Snowburst+One','Sofadi+One','Sofia','Sonsie+One','Sorts+Mill+Goudy','Source+Code+Pro','Source+Sans+Pro','Source+Serif+Pro','Space+Mono','Special+Elite','Spicy+Rice','Spinnaker','Spirax','Squada+One','Sree+Krushnadevaraya','Sriracha','Stalemate','Stalinist+One','Stardos+Stencil','Stint+Ultra+Condensed','Stint+Ultra+Expanded','Stoke','Strait','Sue+Ellen+Francisco','Suez+One','Sumana','Sunshiney','Supermercado+One','Sura','Suranna','Suravaram','Suwannaphum','Swanky+and+Moo+Moo','Syncopate','Tangerine','Taprom','Tauri','Taviraj','Teko','Telex','Tenali+Ramakrishna','Tenor+Sans','Text+Me+One','The+Girl+Next+Door','Tienne','Tillana','Timmana','Tinos','Titan+One','Titillium+Web','Trade+Winds','Trirong','Trocchi','Trochut','Trykker','Tulpen+One','Ubuntu','Ubuntu+Condensed','Ubuntu+Mono','Ultra','Uncial+Antiqua','Underdog','Unica+One','UnifrakturCook','UnifrakturMaguntia','Unkempt','Unlock','Unna','VT323','Vampiro+One','Varela','Varela+Round','Vast+Shadow','Vesper+Libre','Vibur','Vidaloka','Viga','Voces','Volkhov','Vollkorn','Voltaire','Waiting+for+the+Sunrise','Wallpoet','Walter+Turncoat','Warnes','Wellfleet','Wendy+One','Wire+One','Work+Sans','Yanone+Kaffeesatz','Yantramanav','Yatra+One','Yellowtail','Yeseva+One','Yesteryear','Yrsa','Zeyada',
13
  );
inc/includes/class-wprmenu-interface.php CHANGED
@@ -4,6 +4,92 @@ defined( 'ABSPATH' ) || exit;
4
 
5
  class WPRMenu_Framework_Interface {
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  /**
8
  * Generates the tabs that are used in the options menu
9
  */
@@ -228,7 +314,7 @@ class WPRMenu_Framework_Interface {
228
  case "checkbox":
229
  $output .= '<div id="' . $option_name . '_' . $value['id'] . '" class="wprmenu_checkbox_container">';
230
  $output .= '<div class="wprmenu_onoff_button"></div>';
231
- $output .= '<input id="' . esc_attr( $value['id'] ) . '" class="checkbox of-input" style="display:none;" type="checkbox" name="' . esc_attr( $option_name . '[' . $value['id'] . ']' ) . '" '. checked( $val, 1, false) .' />';
232
  $output .= '</div>';
233
  break;
234
 
@@ -481,7 +567,7 @@ class WPRMenu_Framework_Interface {
481
  // Editor
482
  case 'editor':
483
 
484
- echo $output;
485
  $textarea_name = esc_attr( $option_name . '[' . $value['id'] . ']' );
486
  $default_editor_settings = array(
487
  'textarea_name' => $textarea_name,
@@ -545,7 +631,7 @@ class WPRMenu_Framework_Interface {
545
  $output .= '</div></div>'."\n";
546
  }
547
 
548
- echo $output;
549
  }
550
 
551
  // Outputs closing div if there tabs
@@ -616,7 +702,7 @@ class WPRMenu_Framework_Interface {
616
  <?php
617
  $output = ob_get_contents();
618
  ob_get_clean();
619
- echo $output;
620
  }
621
 
622
  static function wpr_render_form_button() {
@@ -630,12 +716,12 @@ class WPRMenu_Framework_Interface {
630
  </div>
631
  <?php
632
  $output = ob_get_clean();
633
- echo $output;
634
  }
635
 
636
  static function wprm_fetch_demo_items() {
637
  $site_name = WPRMENU_DEMO_SITE_URL;
638
- $remoteLink = $site_name.'/wp-json/wprmenu-server/v1';
639
 
640
  $data = wp_remote_get($remoteLink);
641
 
@@ -644,7 +730,7 @@ class WPRMenu_Framework_Interface {
644
  if( is_array($data) && isset($data['body']) ) {
645
  $items = $data['body'];
646
  $items = json_decode($items);
647
- set_transient('wprm_api_demo_items_list', $items, 60 * 60 * 24);
648
  }
649
  return $items;
650
  }
4
 
5
  class WPRMenu_Framework_Interface {
6
 
7
+ public function __construct(){
8
+
9
+ add_filter( 'safe_style_css', array( $this, 'safe_css_attributes' ), 10, 1 );
10
+ }
11
+
12
+ public function safe_css_attributes( $styles ){
13
+ $styles[] = 'display';
14
+ $styles[] = 'visibility';
15
+ $styles[] = 'top';
16
+ $styles[] = 'left';
17
+ return $styles;
18
+ }
19
+
20
+ static $allowed_html = array(
21
+ 'div' => array(
22
+ 'class' => true,
23
+ 'id' => true,
24
+ 'data-*' => true,
25
+ 'style' => true,
26
+ 'title' => true,
27
+ 'role' => true
28
+ ),
29
+ 'input' => array(
30
+ 'type' => true,
31
+ 'class' => true,
32
+ 'name' => true,
33
+ 'id' => true,
34
+ 'value' => true,
35
+ 'autocomplete' => true,
36
+ 'checked' => true,
37
+ 'style' => true,
38
+ ),
39
+ 'h3' => array(
40
+ 'class' => true,
41
+ 'id' => true,
42
+ ),
43
+ 'h4' => array(
44
+ 'class' => true,
45
+ 'id' => true,
46
+ ),
47
+ 'a' => array(
48
+ 'href' => true,
49
+ 'id' => true,
50
+ 'class' => true,
51
+ ),
52
+ 'select' => array(
53
+ 'id' => true,
54
+ 'class' => true,
55
+ ),
56
+ 'option' => array(
57
+ 'selected' => true
58
+ ),
59
+ 'label' => array(
60
+ 'id' => true,
61
+ 'class' => true,
62
+ 'for' => true,
63
+ 'style' => true,
64
+ ),
65
+ 'span' => array(
66
+ 'class' => true,
67
+ 'data-*' => true,
68
+ 'title' => true,
69
+ 'aria-*' => true,
70
+ ),
71
+ 'ul' => array(
72
+ 'class' => true,
73
+ 'id' => true,
74
+ ),
75
+ 'li' => array(
76
+ 'class' => true,
77
+ 'id' => true,
78
+ ),
79
+ 'i' => array(
80
+ 'class' => true,
81
+ ),
82
+ 'img' => array(
83
+ 'src' => true,
84
+ 'class' => true,
85
+ ),
86
+ 'textarea' => array(
87
+ 'name' => true,
88
+ 'id' => true,
89
+ 'class' => true,
90
+ ),
91
+ );
92
+
93
  /**
94
  * Generates the tabs that are used in the options menu
95
  */
314
  case "checkbox":
315
  $output .= '<div id="' . $option_name . '_' . $value['id'] . '" class="wprmenu_checkbox_container">';
316
  $output .= '<div class="wprmenu_onoff_button"></div>';
317
+ $output .= '<input id="' . esc_attr( $value['id'] ) . '" class="checkbox of-input hidden" type="checkbox" name="' . esc_attr( $option_name . '[' . $value['id'] . ']' ) . '" '. checked( $val, 1, false) .' />';
318
  $output .= '</div>';
319
  break;
320
 
567
  // Editor
568
  case 'editor':
569
 
570
+ echo wp_kses( $output, WPRMenu_Framework_Interface::$allowed_html );
571
  $textarea_name = esc_attr( $option_name . '[' . $value['id'] . ']' );
572
  $default_editor_settings = array(
573
  'textarea_name' => $textarea_name,
631
  $output .= '</div></div>'."\n";
632
  }
633
 
634
+ echo wp_kses( $output, WPRMenu_Framework_Interface::$allowed_html );
635
  }
636
 
637
  // Outputs closing div if there tabs
702
  <?php
703
  $output = ob_get_contents();
704
  ob_get_clean();
705
+ wp_kses_post( $output );
706
  }
707
 
708
  static function wpr_render_form_button() {
716
  </div>
717
  <?php
718
  $output = ob_get_clean();
719
+ echo wp_kses( $output, WPRMenu_Framework_Interface::$allowed_html );
720
  }
721
 
722
  static function wprm_fetch_demo_items() {
723
  $site_name = WPRMENU_DEMO_SITE_URL;
724
+ $remoteLink = $site_name . '/wp-json/wprmenu-server/v1';
725
 
726
  $data = wp_remote_get($remoteLink);
727
 
730
  if( is_array($data) && isset($data['body']) ) {
731
  $items = $data['body'];
732
  $items = json_decode($items);
733
+ set_transient( 'wprm_api_demo_items_list', $items, 60 * 60 * 24 );
734
  }
735
  return $items;
736
  }
inc/includes/class-wprmenu-sanitization.php CHANGED
@@ -238,6 +238,32 @@ function wpr_of_sanitize_font_face( $value ) {
238
  }
239
  add_filter( 'wpr_of_font_face', 'wpr_of_sanitize_font_face' );
240
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  /**
242
  * Get recognized background repeat settings
243
  *
238
  }
239
  add_filter( 'wpr_of_font_face', 'wpr_of_sanitize_font_face' );
240
 
241
+ /**
242
+ * Sanitizes array items
243
+ *
244
+ *
245
+ * @since 3.1.7.2
246
+ * @param array $array array items
247
+ * @return array sanitized array items
248
+ */
249
+ function wpr_of_sanitize_array( &$array ){
250
+
251
+ foreach ( $array as &$value ){
252
+
253
+ if( !is_array( $value ) ){
254
+ // sanitize if value is not an array
255
+ $value = sanitize_text_field( $value );
256
+ }
257
+ else{
258
+ // go inside this function again
259
+ rpress_sanitize_array($value);
260
+ }
261
+ }
262
+
263
+ return $array;
264
+
265
+ }
266
+
267
  /**
268
  * Get recognized background repeat settings
269
  *
inc/templates/custom-menu-bar.php CHANGED
@@ -10,8 +10,8 @@ $slide_type = isset( $data['slide_type'] ) ? $data['slide_type'] : '';
10
  $position = isset( $data['position'] ) ? $data['position'] : '';
11
  $menu_icon_animation = isset( $data['icon_animation'] ) ? $data['icon_animation'] : '';
12
  ?>
13
- <div class="wprmenu_bar wpr_custom_menu <?php echo $slide_type . ' ' . $position; ?>">
14
- <div id="custom_menu_icon" class="hamburger <?php echo $menu_icon_animation; ?>">
15
  <span class="hamburger-box">
16
  <span class="hamburger-inner"></span>
17
  </span>
10
  $position = isset( $data['position'] ) ? $data['position'] : '';
11
  $menu_icon_animation = isset( $data['icon_animation'] ) ? $data['icon_animation'] : '';
12
  ?>
13
+ <div class="wprmenu_bar wpr_custom_menu <?php echo esc_attr( $slide_type ). ' ' . esc_attr( $position ); ?>">
14
+ <div id="custom_menu_icon" class="hamburger <?php echo esc_attr( $menu_icon_animation ); ?>">
15
  <span class="hamburger-box">
16
  <span class="hamburger-inner"></span>
17
  </span>
inc/templates/search-form.php CHANGED
@@ -8,10 +8,10 @@ defined( 'ABSPATH' ) || exit;
8
 
9
  $search_placeholder = $this->option( 'search_box_text' );
10
  $search_placeholder = function_exists( 'pll__' ) ? pll__( $search_placeholder ) : $search_placeholder;
11
- $unique_id = esc_attr( uniqid( 'search-form-' ) );
12
  ?>
13
  <form role="search" method="get" class="wpr-search-form" action="<?php echo esc_url( home_url( '/' ) ) ?>">
14
- <label for="<?php echo $unique_id; ?>"></label>
15
  <input type="search" class="wpr-search-field" placeholder="<?php echo esc_html( $search_placeholder ); ?>" value="" name="s" title="<?php echo esc_html( $search_placeholder ); ?>">
16
  <button type="submit" class="wpr_submit">
17
  <i class="wpr-icon-search"></i>
8
 
9
  $search_placeholder = $this->option( 'search_box_text' );
10
  $search_placeholder = function_exists( 'pll__' ) ? pll__( $search_placeholder ) : $search_placeholder;
11
+ $unique_id = uniqid( 'search-form-' );
12
  ?>
13
  <form role="search" method="get" class="wpr-search-form" action="<?php echo esc_url( home_url( '/' ) ) ?>">
14
+ <label for="<?php echo esc_attr( $unique_id ); ?>"></label>
15
  <input type="search" class="wpr-search-field" placeholder="<?php echo esc_html( $search_placeholder ); ?>" value="" name="s" title="<?php echo esc_html( $search_placeholder ); ?>">
16
  <button type="submit" class="wpr_submit">
17
  <i class="wpr-icon-search"></i>
inc/wprmenu-loader.php CHANGED
@@ -19,7 +19,7 @@ final class WPR_Menu_Loader {
19
  *
20
  * @var string
21
  */
22
- public $version = '3.1.7.1';
23
 
24
 
25
  /**
19
  *
20
  * @var string
21
  */
22
+ public $version = '3.1.7.2';
23
 
24
 
25
  /**
inc/wprmenu-options.php CHANGED
@@ -57,7 +57,7 @@ function wpr_google_web_fonts() {
57
  $file_path = plugin_dir_path( __FILE__ ) . 'google-web-fonts.php' ;
58
  if ( file_exists( $file_path ) ) {
59
  require_once dirname( __FILE__ ) . '/google-web-fonts.php';
60
- $fonts = get_custom_fonts();
61
  $fonts = json_decode( $fonts );
62
  return $fonts;
63
  }
57
  $file_path = plugin_dir_path( __FILE__ ) . 'google-web-fonts.php' ;
58
  if ( file_exists( $file_path ) ) {
59
  require_once dirname( __FILE__ ) . '/google-web-fonts.php';
60
+ $fonts = wpr_get_custom_fonts();
61
  $fonts = json_decode( $fonts );
62
  return $fonts;
63
  }
inc/wprmenu-styles.php CHANGED
@@ -189,13 +189,14 @@ if ( ! class_exists('WPRMenu_Styles') ) {
189
  }';
190
 
191
  if ( $this->wprmenu_option( 'menu_symbol_pos' ) == 'right' ) :
 
192
  $inlinecss .= '
193
  .wprmenu_bar .hamburger {
194
  float: '.$this->wprmenu_option( 'menu_symbol_pos' ).';
195
  }
196
  .wprmenu_bar #custom_menu_icon.hamburger {
197
- top: '.$this->wprmenu_option( 'custom_menu_top' ).'px;
198
- right: '.$this->wprmenu_option( 'custom_menu_left' ).'px;
199
  float: right;
200
  background-color: '.$this->wprmenu_option( 'custom_menu_bg_color' ).';
201
  }';
189
  }';
190
 
191
  if ( $this->wprmenu_option( 'menu_symbol_pos' ) == 'right' ) :
192
+ $icon_distance = !empty( $this->wprmenu_option( 'custom_menu_left' ) ) ? $this->wprmenu_option( 'custom_menu_left' ) : '0';
193
  $inlinecss .= '
194
  .wprmenu_bar .hamburger {
195
  float: '.$this->wprmenu_option( 'menu_symbol_pos' ).';
196
  }
197
  .wprmenu_bar #custom_menu_icon.hamburger {
198
+ top: ' . $this->wprmenu_option( 'custom_menu_top' ) . 'px;
199
+ right: ' . $icon_distance . 'px;
200
  float: right;
201
  background-color: '.$this->wprmenu_option( 'custom_menu_bg_color' ).';
202
  }';
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: sagarseth9,magnigenie,kshirod-patel
3
  Tags: WordPress Responsive Menu, Genesis responsive menu, Genesis Mobile Menu, Thesis Mobile Menu, Thesis Responsive Menu, Mobile Menu, Responsive Menu Plugin, WP Responsive Menu, WordPress mobile menu
4
  Requires at least: 3.0
5
  Requires PHP: 5.4
6
- Tested up to: 5.9
7
- Stable tag: 3.1.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -86,6 +86,11 @@ If you have any suggestions for a new plugin, feel free to email us at info@mag
86
 
87
  == ChangeLog ==
88
 
 
 
 
 
 
89
  = Version 3.1.7.1 =
90
 
91
  * Security updates
@@ -235,6 +240,6 @@ If you have any suggestions for a new plugin, feel free to email us at info@mag
235
 
236
  == Upgrade Notice ==
237
 
238
- = Version 3.1.7 =
239
 
240
  * New update is available.
3
  Tags: WordPress Responsive Menu, Genesis responsive menu, Genesis Mobile Menu, Thesis Mobile Menu, Thesis Responsive Menu, Mobile Menu, Responsive Menu Plugin, WP Responsive Menu, WordPress mobile menu
4
  Requires at least: 3.0
5
  Requires PHP: 5.4
6
+ Tested up to: 6.0.2
7
+ Stable tag: 3.1.7.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
86
 
87
  == ChangeLog ==
88
 
89
+ = Version 3.1.7.2 =
90
+
91
+ * Fixed security issues
92
+ * Code cleanup
93
+
94
  = Version 3.1.7.1 =
95
 
96
  * Security updates
240
 
241
  == Upgrade Notice ==
242
 
243
+ = Version 3.1.7.2 =
244
 
245
  * New update is available.
wp-responsive-menu.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: WP Responsive Menu is mobile menu plugin that lets you add a highly customizable responsive menu to any WordPress site in no time.
5
  * Plugin URI: http://magnigenie.com/wp-responsive-menu-mobile-menu-plugin-wordpress?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
6
  * Author: MagniGenie
7
- * Version: 3.1.7.1
8
  * Author URI: http://magnigenie.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
9
  * Text Domain: wprmenu
10
  * Domain Path: /languages/
4
  * Description: WP Responsive Menu is mobile menu plugin that lets you add a highly customizable responsive menu to any WordPress site in no time.
5
  * Plugin URI: http://magnigenie.com/wp-responsive-menu-mobile-menu-plugin-wordpress?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
6
  * Author: MagniGenie
7
+ * Version: 3.1.7.2
8
  * Author URI: http://magnigenie.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
9
  * Text Domain: wprmenu
10
  * Domain Path: /languages/