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

Napoli’s Brings Artisan Pizza to Van Nuys, NoHo, and Beyond

Pizza Van Nuys

Have you been looking for the best pizza in Van Nuys, North Hollywood, Valley Village, and the surrounding area? Are you tired of settling for the same old same old pizza places over and over again? Napoli’s Pizza Kitchen has arrived in the area. That means that there’s now artisan pizza in Van Nuys and […]

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

Food Delivery in Van Nuys and NoHo You Can Trust

Food Delivery in Van Nuys

Do you want food delivery in Van Nuys, NoHo, and the surrounding area that’s a cut above? Are you tired of settling for something less than the very best when it comes to dinner? When it comes to delivery, we don’t believe that you should ever have to compromise. At Napoli’s Pizza Kitchen, we provide […]

Unique Pizza in Van Nuys and NoHo You Won’t Find Anywhere Else

Pizza in Van Nuys

Are you looking to expand your taste in pizza? Do you want to try something different, something that’s unlike what you’ve had before? If you’re like so many, you have your favorites in terms of pizza, sure. But, perhaps you’ve been considering expanding your horizons, giving something new a shot to see if you can […]

Pizza Delivery in Sherman Oaks | Napoli’s Pizza Kitchen

Pizza Delivery in Sherman Oaks | Napoli's

‘We are a small, local pizzeria that uses fresh ingredients that everyone will love. From pizzas to pastas to subs and salads.’ 14831 burbank blvd, Van Nuys, CA 91411, US Pizza Delivery in Sherman Oaks | Napoli’s Pizza Kitchen Remember the Oscars pizza delivery guy? Now hell bring you beer and wine with your pie in […]

Pizza delivery in North Hollywood

Pizza delivery in North Hollywood

Pizza delivery in North Hollywood ‘We are a small, local pizzeria that uses fresh ingredients that everyone will love. From pizzas to pastas to subs and salads.’ 14831 burbank blvd, Van Nuys, CA 91411, US Italian restaurant in Sherman Oaks. Remember the Oscars pizza delivery guy? Now hell bring you beer and wine with your […]

National Pepperoni Pizza Day deals allow customers to get a slice of the pie

Pepperoni Pizza Day

National Pepperoni Pizza Day deals allow customers to get a slice of the pie Napoli’s Pizza Kitchen The Los Angeles-based pizzeria is giving out free small pepperoni pizzas for walk-in customers only. This offer is only valid from noon-4 p.m. Tuesday at the restaurants located on 14831 Burbank Blvd in Sherman Oaks and 13318 Victory […]

Pizza Delivery Sherman Oaks

Pizza Delivery Sherman Oaks

Pizza Delivery Sherman Oaks   Napolis Pizza Kitchen provides door-to-door pizza delivery in Sherman Oaks. When our customers order our pies, they also want to know what drinks can go perfectly with their pizza, especially the Hawaiian option. In this post, let’s talk about the best drink that you can pair perfectly with Hawaiian pizza to […]

Italian restaurant in Sherman Oaks

Italian restaurant in Sherman Oaks ‘We are a small, local pizzeria that uses fresh ingredients that everyone will love. From pizzas to pastas to subs and salads.’ 14831 burbank blvd, Van Nuys, CA 91411, US Italian restaurant in Sherman Oaks. Remember the Oscars pizza delivery guy? Now hell bring you beer and wine with your […]

Best pizza in the Valley

We are a small, local pizzeria that uses fresh ingredients that everyone will love. From pizzas to pastas to subs and salads. Best pizza in the Valley Remember the Oscars pizza delivery guy? Now hell bring you beer and wine with your pie in Sherman Oaks. Do you like having options? If so, we got […]