/* 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;

An Italian Restaurant in Van Nuys and North Hollywood That Comes to You

Italian Restaurant in Van Nuys

Do you want the entire Italian restaurant experience without having to go to an actual Italian restaurant? Do you want the absolute finest in Italian cuisine? That’s exactly what you’ll find here at Napoli’s Pizza Kitchen. With our organic, top-quality ingredients, our professionals know how to make both the Italian classics you love as well […]

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 […]

Italian Restaurant in Van Nuys to Eat the Most Iconic Food in Italy

Italian restaurant in Van Nuys

Have you traveled to Italy? Or did you live in the said European country for several years? Leaving Italy could be difficult. It’s especially true if you fancy Italian cuisine. But don’t worry. An Italian restaurant in Van Nuys can fill your appetite. Unfortunately, there are plenty of Italian restaurants in the US. But only a […]

Italian Restaurant in Van Nuys: Savor a Taste of Italy

Italian restaurant in Van Nuys

If you live in California for so long, there are times when you wish there was a classic, authentic Italian restaurant that serves a real deal. Enter our Italian restaurant in Van Nuys.  Napoli’s Pizza Kitchen Italian Restaurant in Van Nuys  When you visit Napoli’s Pizza Kitchen, you’ll experience the flavors of garlic, herbs, and […]

Napoli Pizza Delivery to Finally Eat Your Favorite Toppings

Napoli pizza delivery

But before you use our Napoli pizza delivery service, make sure you have decided what toppings you want for your pie. So, what’s your favorite pizza toppings?  Napoli Pizza Delivery to Order Authentic Pizza  What makes Pizza Kitchen unique is that we only use fresh high-quality ingredients. It has become a tradition to us to only […]

Italian Restaurant in Van Nuys Delivering to Your Doorstep

Italian restaurant in Van Nuys

The pandemic is nearly over. Thanks to the availability of vaccines. However, we still need to follow social distancing. And if you’re craving Italian food, then our Italian restaurant in Van Nuys got you covered. No time to shop because of your work from the home setup? Just tell us what you want to eat and […]

The Best Reward for Social Distancing? Pizza, of course!

Quarantine life is probably something you’d like to put behind you by now, just as we would love to move on to reopening and having our lovely customers come back for dine-in service. Unfortunately, COVID-19 still poses a big risk to the health of the Los Angeles community, so Napoli’s Pizza Kitchen will still be […]

An Italian Restaurant in Van Nuys with Pizza and More

There’s more to a great Italian restaurant than just great food. Obviously, the food is the most important thing, but it’s not the only thing. The food has to be made the right way, with the right ingredients. Beyond that, the Italian restaurant has to have the right atmosphere, too. Great restaurants make you want […]