/* 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 You the Best Food Delivery in Van Nuys

Ordering food for delivery used to be quite a hassle. Getting everyone on the same page, taking everyone’s orders, trying to communicate every tiny detail about the order on the phone. Thanks to delivery apps and online ordering, however, it’s become a lot easier. Especially now, six months into quarantine, we’re all probably experts by […]

Dinner and Drinks at Napoli’s Pizza Kitchen and Wine Bar in Van Nuys

You might have been having trouble making things feel special lately. Everyone’s having that problem. The best solution, we’ve found, is to order some nice food, have some dinner, and enjoy a nice evening in. Here’s how Napoli’s Pizza Kitchen and wine bar in Van Nuys can help you tonight. So What Will You Have […]

The Case for Napoli’s Pizza Kitchen as the Best Sherman Oaks Pizza

How does some pizza sound right now? Probably really good, right? Pizza always sounds great. If you feel like getting some pizza, then you are probably looking for the best Sherman Oaks pizza. Why settle for less, right? Well, a lot of places claim to be the best pizza in their neighborhood but trust us […]

Are You Craving the Best Pizza in Sherman Oaks?

Pizza is almost always good no matter what. Both getting a slice on your way to work and going to a nice Italian restaurant have the same outcome: you got pizza. That’s good enough for most of us! However, sometimes you might want something better than just that. Sometimes you just want to get the […]

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

Wine Bar in Van Nuys Delivers Your Favorite Drinks

None of us love to admit it, but alcohol feels kind of like an essential during these strange times. Of course, it should always be used in moderation, even when we’re living in a very stressful time. Usually, after a long day, most adults like to have a glass of wine or beer with dinner. […]

What Makes Our Pizza the Best Artisan Pizza in Van Nuys?

Most people will rarely say no to pizza. Whether it’s a dollar slice on the go or an artisan pie in a sit-down restaurant, most people will be down upon being offered. However, we understand that sometimes you can get tired of greasier, almost mass-produced pizza. Well, don’t worry, because we at Napoli’s Pizza Kitchen […]

Delivering the Best Italian Food in Sherman Oaks to Your Doorstep

Right now, almost everyone is having to figure out good eating habits. On one hand, getting groceries is proving to be inconvenient, whether it is because of long lines, close contact with others, or low stock. On the other hand, finding good delivery and takeout that’s still exciting is also not easy. Well, don’t worry. […]

Beer and Pizza in Van Nuys Makes for the Perfect Night In

Are you planning to spend a quiet night in? Well, we all are. Most of us are currently having to make due with what we’ve got, finding ways to enjoy spending so much time at home without going crazy. It’s hard, we know, but there are a few ways in which you can try to […]

Ordering Good and Healthy Salads in Sherman Oaks for Delivery

Are you stuck at home with nothing to eat? Are you getting tired of the usual deliverables such as pizza and fast food? Don’t worry, we at Napoli’s Pizza Kitchen have the ideal salads in Sherman Oaks for you to enjoy in the comfort of your own home. You might think that as a pizza […]