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

Experience Authentic Italian Pizza at Home with Food Delivery

Food Delivery in Van Nuys

Van Nuys is a bustling neighborhood in LA. It also has a diverse culinary scene. Hence, it is just easy to find food and order it online. However, if you want authentic Italian pizza, you can go to an Italian restaurant to order one. But with food delivery in Van Nuys, you do not need […]

Craft Beer and Pizza Delight in Van Nuys: the Best Couple

Beer and Pizza Delight in Van Nuys

What do you always drink when you eat pizza? Wine? Soda? Beer? All options are great. It really depends on your taste. But what goes best with pizza? Beer. And this is the reason Beer And Pizza in Van Nuys won the “best couple” every year.   Why Beer and Pizza in Van Nuys are Best […]

What is the Best Restaurant in Van Nuys That Serves Authentic Italian Food?

Best Restaurant in Van Nuys

Italian cuisine is known for its rich and savory flavors, which are often created using simple, fresh ingredients. The use of fresh herbs, olive oil, garlic, and tomatoes gives Italian food a distinctive flavor profile that is both satisfying and comforting. And if you’re in Van Nuys, the best restaurant you must visit that serves […]

Does Margherita Pizza in Sherman Oaks Taste Good?

pizza in Sherman Oaks

Yes, it does. Margherita pizza in Sherman Oaks makes your bad day feel better. And if you can’t come to Napoli’s Pizza Kitchen for some reason, you can order a perfect box of Margherita pizza online and we’ll deliver it to your doorstep.  The Simple Pizza in Sherman Oaks Margherita is a simple pizza from […]

Do Italian Restaurants in Sherman Oaks Serve Famous Foods and Drinks of Italy?

Italian restaurants in Sherman Oaks

Italy has a stellar reputation when it comes to food and drinks. You can ask your friends to name their favorite dishes. They’ll likely say pizza or pasta. The country is home to iconic dishes loved around the world. And if you are craving pizza, pasta and gelato, visit authentic Italian restaurants in Sherman Oaks […]

Why Should You Avoid Frozen Pizza and Choose Napoli Pizza Instead?

Napoli pizza delivery

Children and adults love frozen pizza. You can’t blame them as it is easy to make with enough varieties to satisfy their cravings. If you wish to stock up on frozen pizza, make sure to buy it from a reliable brand. Or just choose Napoli Pizza delivery to satisfy your cravings for fresh, authentic pizza.  […]

How is Italian Pizza Compared to Pizza Hut?

pizza kitchen near me

Pizza Hut is one of the brands that sell pizza. But its pizza is the American version. Both Italian pizza and American pizza use dough, cheese, and sauce. But they are different in various ways. And generally, Italian pizza is better than the American version. As it is the original version. If you don’t believe […]

Are You Craving a Basic Margarita Pizza in Burbank?

pizza in Burbank

Margarita pizza in Burbank is one of the popular Italian food options. It’s an Italian recipe that features an easy dough with traditional ingredients, like tomato sauce.  Pizza Burbank Offers Authentic Pizza  One of the things people love about Italian cuisine is its simplicity. And when it comes to pizza, the fewer ingredients, the better. […]

How Good is Italian Pizza That You Need to Use Pizza Delivery?

pizza delivery in Sherman Oaks

Italian pizza is so good that many people in Sherman Oaks want it delivered to their doorstep. Thankfully, it is easy to order online. Just call our pizza delivery in Sherman Oaks, and our Italian pizza will be at your doorstep in no time.  Pizza Delivery in Sherman Oaks for People Craving Italian Dishes  You […]