/* global FusionApp, fusionAppConfig */ var FusionPageBuilder = FusionPageBuilder || {}; FusionPageBuilder.options = FusionPageBuilder.options || {}; FusionPageBuilder.options.fusionExport = { optionExport: function( $element ) { var self = this, $export, $exportMode, $fileDownload, $copyButton, $saveButton; $element = 'undefined' !== typeof $element && $element.length ? $element : this.$el; $export = $element.find( '.fusion-builder-option.export' ); if ( $export.length ) { $exportMode = $export.find( '#fusion-export-mode' ); $fileDownload = $export.find( '#fusion-export-file' ); $copyButton = $export.find( '#fusion-export-copy' ); $saveButton = $export.find( '#fusion-page-options-save' ); $exportMode.on( 'change', function( event ) { event.preventDefault(); $export.find( '.fusion-export-options > div' ).hide(); $export.find( '.fusion-export-options > div[data-id="' + jQuery( event.target ).val() + '"]' ).show(); } ); $copyButton.on( 'click', function( event ) { event.preventDefault(); jQuery( event.target ).prev( 'textarea' )[ 0 ].select(); document.execCommand( 'copy' ); } ); $fileDownload.on( 'click', function( event ) { event.preventDefault(); self.exportOptions( event ); } ); $saveButton.on( 'click', function( event ) { if ( event ) { event.preventDefault(); } if ( '' !== jQuery( '#fusion-new-page-options-name' ).val() ) { $export.addClass( 'partial-refresh-active' ); self.ajaxPOSave( $export ); } } ); } }, updateExportCode: function() { var $textArea = this.$el.find( '.fusion-builder-option.export #export-code-value' ), context = $textArea.attr( 'data-context' ), data = 'TO' === context ? JSON.stringify( FusionApp.settings ) : JSON.stringify( this.getFusionMeta() ); $textArea.val( data ); }, exportOptions: function( event ) { var dataStr, dlAnchorElem, context = jQuery( event.target ).attr( 'data-context' ), data, today = new Date(), date = today.getFullYear() + '-' + ( today.getMonth() + 1 ) + '-' + today.getDate(), fileName = 'fusion-theme-options-' + date; if ( 'TO' === context || 'FBE' === context ) { data = FusionApp.settings; // So import on back-end works. data.fusionredux_import_export = ''; data[ 'fusionredux-backup' ] = 1; } else { data = this.getFusionMeta(); fileName = 'avada-page-options-' + date; } dataStr = 'data:text/json;charset=utf-8,' + encodeURIComponent( JSON.stringify( data ) ); dlAnchorElem = document.createElement( 'a' ); dlAnchorElem.setAttribute( 'href', dataStr ); dlAnchorElem.setAttribute( 'download', fileName + '.json' ); dlAnchorElem.click(); dlAnchorElem.remove(); }, ajaxPOSave: function( $export ) { var data = { action: 'fusion_page_options_save', fusion_po_nonce: jQuery( '#fusion-page-options-nonce' ).val(), post_id: FusionApp.data.postDetails.post_id, custom_fields: this.getFusionMeta(), options_title: jQuery( '#fusion-new-page-options-name' ).val() }; jQuery.get( { url: fusionAppConfig.ajaxurl, data: data, dataType: 'json' } ) .done( function( response ) { jQuery( '.fusion-select-options' ).append( '' ); jQuery( '#fusion-new-page-options-name' ).val( '' ); $export.removeClass( 'partial-refresh-active' ); // This is temp ID, not used anywhere really. FusionApp.data.savedPageOptions[ response.saved_po_dataset_id ] = { id: response.saved_po_dataset_id, title: response.saved_po_dataset_title, data: response.saved_po_data }; } ) .fail( function() { $export.removeClass( 'partial-refresh-active' ); } ); }, getFusionMeta: function() { return { _fusion: FusionApp.data.postMeta._fusion }; }, setFusionMeta: function( newMeta ) { jQuery.each( newMeta, function( key, value ) { FusionApp.data.postMeta[ key ] = value; } ); } }; import FormControl from '@elementor/ui/FormControl'; import Button from '@elementor/ui/Button'; import Typography from '@elementor/ui/Typography'; import { __ } from '@wordpress/i18n'; import useStorage from '../hooks/use-storage'; import { WORDPRESS_REVIEW_LINK } from '../constants'; const ReviewForm = ( { close } ) => { const { save, get } = useStorage(); const handleSubmit = async () => { await save( { image_optimizer_review_data: { ...get.data.image_optimizer_review_data, repo_review_clicked: true, }, } ); close(); window.open( WORDPRESS_REVIEW_LINK, '_blank' ); }; return ( { __( 'It would mean a lot if you left us a quick review, so others can discover it too.', 'image-optimization' ) } ); }; export default ReviewForm;

Things to Remember When Eating at an Italian Restaurant

Italian restaurant Sherman Oaks

An Italian restaurant in Sherman Oaks serves different dishes that are worth ordering. That is if you drop by Napolis Pizza Kitchen. It’s a well-known Italian restaurant in Sherman Oaks that offers the best pizza and other Italian cuisines. If you’re looking for seriously tasty Italian classics, then this is the best place to go […]

Choosing the Best Italian Restaurant Delivering Pizza to Your Doorstep

Italian restaurants in Sherman Oaks CA

Many Italian restaurants in Sherman Oaks, CA are now open for business. They also deliver different Italian dishes, including pizza. However, if you are craving pizza, it’s best to opt for an authentic Italian restaurant so you can be sure that you’re getting authentic Italian pizza.  What Italian Restaurants in Sherman Oaks, CA Deliver Authentic […]

Buying Alcohol to Go: Is It Legal?

Best restaurants in Van Nuys

The best restaurants in Van Nuys are serving alcohol. However, they closed their operations when the pandemic started. Thankfully, these days, they’re slowly opening their doors to their customers. And if you’re wondering whether you can order alcohol to go, you’ll find that out here.    Can the Best Restaurants in Van Nuys Serve Alcohol […]

Is Vegetarian Pizza in Burbank Good for You?

pizza Burbank

You can eat a nice, delicious vegetarian pizza in Burbank without sacrificing taste. Yes, you can if you just visit Napoli’s Pizza Kitchen. The pizza here is healthy. After all, it’s authentic Italian pizza. In that case, if you’re on a diet, you won’t actually ruin it. However, you will wreck your weight loss program […]

Don’t Cook Brussel Sprouts — Order Them Here

Napoli pizza delivery

Our Napoli pizza delivery service is known for, well, delivering our popular, mouth-watering pizza options in Burbank. Our loyal customers know that our pizza kitchen doesn’t just serve and make the tastiest pizza in the world but we also serve some of the healthiest vegetable meals, like Brussel sprouts.  Brussel sprouts, per se, aren’t a […]

Identifying Good Pizza: Does the Crust Matter?

best pizza Sherman Oaks

You can score the best pizza Sherman Oaks when you visit or call Napoli’s Pizza Kitchen. We treat pizza as an art form that can be healthy.  The Great Ingredients in the Best Pizza in Sherman Oaks  The secret to our best pizza is the great ingredients we use. The sauces, cheeses, and toppings are […]

You Must Try These Italian Dishes When Visiting Napoli’s Pizza Kitchen

best Italian food Sherman Oaks

Napoli’s Pizza is known for serving the best Italian food Sherman Oaks. But you can’t only find pizza in our restaurant. Instead, you can find a variety of Italian dishes that will surely satisfy your cravings.  Best Italian Food in Sherman Oaks Offers Specialty Pies  If you are craving authentic pizza, then look no further. […]

Beer and Pizza: The Best Pair, like Ice Cream and Chocolate Sauce?

beer and pizza Van Nuys

When you’re in Van Nuys, you might look for some food that will satisfy your cravings. Are you looking for the beer and pizza Van Nuys? You might think that they are not a good combo, like ice cream and chocolate sauce or peanut butter and jelly. However, combining beer and pizza can give your stomach […]

An Italian Restaurant that Serves True Italian Ingredients and Dishes

best Italian restaurants Sherman Oaks

The best Italian restaurants in Sherman Oaks offer true Italian dishes. Napoli’s Pizza Kitchen is a good stop if you want to experience the Italian way of life. Italian dishes are revered worldwide because they are some of the best. They are exquisite and too irresistible, just like the dishes offered here at Napoli’s Pizza Kitchen.  […]

Does Napoli’s Pizza Kitchen Offer True Italian Pizza in Burbank?

pizza Burbank

Napoli’s Pizza Kitchen is a well-known Italian restaurant in Burbank. That said, you can be sure that you’re getting a traditional, authentic Italian pizza in Burbank, rather than an American pizza version.  What is a Real Italian Pizza in Burbank?  Indeed, pizza has been reinvented. It has done so to fit the tastes of every […]