/* 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 Pizza Kitchen: Top-rated Among Italian Restaurants in Sherman Oaks

Italian Restaurants in Sherman Oaks

In the heart of Sherman Oaks, Napoli’s Pizza Kitchen stands as a local culinary gem, delivering an authentic Italian dining experience. From delectable pizzas to savory pasta, subs, and fresh salads, our small pizzeria takes pride in using only the finest and freshest ingredients. In this article, we’ll delve into why Napoli’s Pizza Kitchen has […]

Italian Restaurants in Sherman Oaks with Impressive Authentic Dishes

italian restaurants sherman oaks

When it comes to experiencing the rich flavors of Italy right in the heart of Sherman Oaks, there’s no better place to indulge your taste buds than Napoli’s Pizza Kitchen. Our artisan pizzeria and authentic Italian food haven has been serving the community for years, delighting locals and visitors alike with our impressive array of […]

The Perfect Date Night: Romantic Italian Restaurants in Sherman Oaks

Restaurants in Sherman Oaks

Planning a romantic evening in Sherman Oaks? Look no further than the enchanting Italian restaurants that grace this neighborhood. Sherman Oaks is home to a delightful selection of intimate and charming establishments that offer a perfect ambiance for a memorable date night. Among them, Napoli’s Pizza Kitchen stands out as a haven for couples seeking […]

A Culinary Journey: Exploring the Italian Restaurants in Sherman Oaks

Italian Restaurants in Sherman Oaks

Welcome to Napoli’s Pizza Kitchen, where we invite you to embark on a delectable culinary journey through the Italian restaurants in Sherman Oaks. Nestled in the heart of this vibrant neighborhood, Napoli’s Pizza Kitchen stands as a beacon of authentic Italian flavors, offering an experience that is sure to tantalize your taste buds. Join us […]

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

Where to Find Italian Restaurants Offering Gluten-Free Pizza?

Italian restaurants Sherman Oaks

The gluten-free pizza crust is difficult to find, though. Most Italian restaurants in Sherman Oaks don’t have gluten-free pizza. Thus, if you have Celiac disease, it can be difficult for you to eat pizza without experiencing diarrhea afterward. Thankfully, there are a few restaurants that serve authentic Italian pizza with a gluten-free crust.  Italian Restaurants […]

Italian Restaurants on Your First Date: Is It a Good Idea?

Italian restaurants in Sherman Oaks

Italian restaurants in Sherman Oaks may be the last place you want to go to for your first date. But if you don’t consider them, then you’re missing out a lot. Remember that your first date has to be memorable. You don’t need to take your date to a fancy restaurant where you can order […]