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

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

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

This Is What Makes Us the Best Pizza in Studio City

It may be self-proclaimed, but we wear the title of the best pizza in Studio City with pride. After all, we know our customers agree because they keep coming back for more. If you’re wondering why we feel confident in that title, here’s how we make sure that we offer the best pizza in this […]

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

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

Stay In and Order Drinks and the Best Pizza in Van Nuys

It’s always nice to be able to stay in and enjoy a delicious meal, particularly when you don’t have to make the meal yourself. Isn’t the appeal of getting take out or ordering delivery? Especially now with all that’s going on, it’s preferable to just stay in and enjoy food without having to worry about […]

The Extensive Menu of Our Pizza Delivery in Van Nuys CA

In the heart of Van Nuys, you will be able to find Napolis Pizza Kitchen, a local favorite of the area. We pride ourselves on being the best pizza delivery in Van Nuys CA, which is why we have crafted everything on our menu with our audience in mind. We know you want a wonderful […]

Pizza in Van Nuys for Literally Everyone

“Anyone who says that money can’t buy happiness clearly has never spent their money on pizza.” This quote is attributed to rock star Andrew W.K. (of “Party Hard” fame) but millions around the world have said something similar. There’s a good reason for that: pizza’s fantastic. Pizza can make a bad day better and take […]