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

Build Your Pizza in Sherman Oaks, CA

Pizza in Sherman Oaks Ca

Are you tired of the usual pizza toppings and sauces when you order a pizza in an Italian restaurant? If you are, then try to build your pizza in Sherman Oaks. The pie that you build will still be made of fresh ingredients.  Pizza in Sherman Oaks, CA for Vegetarian  The build your own pizza concept […]

Best Pizza in Studio City Serving Healthy Dishes for Your Tinder Date

best pizza Studio City

Have you found a match on Tinder? If you have, that’s good. But where would you go on your first in-person date? Clue: take that person to the best pizza in Studio City. What if that person is super health-conscious? Don’t worry because the best pizza in the city serves healthy dishes. And yes, healthy pizza […]

Best Pizza in Studio City to Visit After a Workout

best pizza in Studio City

The best pizza in Studio City offers healthy pie options. But you would argue that a slice of pizza can have more than 500 calories. Can you still eat a slice if you’re watching your diet? Authentic Italian pizza, like the one being offered at Napoli’s Pizza Kitchen, is a healthy option. In fact, it is […]

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

Is the Best Pizza in Studio City Offering Delivery or Takeout?

best pizza in Studio City

In these trying times, the best pizza in Studio City wants to satisfy the pizza cravings of our customers. If you’re afraid to go out and order your pizza, you can call today or order online and we will deliver it to your doorstep. On the other hand, you can visit our pizza kitchen and opt […]

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

Order the Best Pizza in Studio City to Get the Authentic Italian Pizza

best pizza in Studio City

Italian pizza is way better than American-style pizza. Hence, if you’re craving authentic pizza, then make sure to order it from the best pizza in Studio City. There are many differences between American pizza and Italian pizza. And one of them is that Italian pies are not served as a slice. Instead, they are commonly served […]

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

Is Pizza Healthy? The Best Pizza in Studio City Has the Answer

best pizza in Studio City

The pizza at the best pizza in Studio City is healthy. But is it always like that? Is pizza even a healthy food? Well, it depends on who you ask and what toppings you add. For many, however, pizza is categorized as junk food. That’s probably because of the ingredients used.  Best Pizza in Studio City […]