403Webshell
Server IP : 192.64.118.117  /  Your IP : 18.216.130.198
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/www/wp-content/themes/TESSERACT/importer/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/www/wp-content/themes/TESSERACT/importer/js/beaver-builder.js
jQuery(function ( $ ) {
	// Create a "Content Blocks" button in the header of the Page Builder
	$( '.fl-builder-bar-actions .fl-builder-tools-button' ).after(
		'<span class="fl-builder-tesseract-blocks-button fl-builder-button">Content Blocks</span>'
	);
	if(FLBuilderConfig) FLBuilderConfig.upgradeUrl = 'https://www.wpbeaverbuilder.com/pricing/?fla=50&campaign=tesseracttheme';
	// Set up the popup/modal using Beaver Builder's UI
	var contentBlocksLightbox = new FLLightbox({
		className: 'fl-builder-tesseract-blocks-lightbox'
	});

	// When the user clicks the "Content Blocks" button...
	$( document ).on( 'click', '.fl-builder-tesseract-blocks-button', function() {
		// Open the modal
		contentBlocksLightbox.open( $( '#tesseract-content-blocks-wrapper' ).html() );

		// Hook the cancel button to close the modal
		$( document ).on( 'click', '.fl-builder-tesseract-blocks-lightbox .fl-builder-cancel-button', function ( e ) {
			e.preventDefault();
			contentBlocksLightbox.close();
		} );

		// Hook the content appending buttons up
		$( document ).one( 'click', '.fl-builder-tesseract-blocks-lightbox .append-content-button', function ( e ) {
			e.preventDefault();

			contentBlocksLightbox.close();
			FLBuilder._applyTemplate( $( this ).data( 'template-id' ), true, 'user' );
		} );
	} );

	// check for content blocks updates
	$( document ).on( 'click', '.fl-builder-blocks-update', function() {
		var $icon = $( this ).find( '.fa.fa-refresh' );
		var data = {
			action: 'tesseract_content_blocks_update'
		};

		$icon.addClass( 'fa-spin' ).css( 'animation-duration', '1s' );

		$.post( ajaxurl, data, function() {
			$icon.removeClass( 'fa-spin' );

			$.post( ajaxurl, {action: 'tesseract_add_button_to_page_builder'}, function( blocksHtml ) {
				$( '.fl-lightbox-content' ).html( $( blocksHtml ).html() );
			});
		});
	});

	if($(".fl-builder-modules-cta a").length){ 
		stronclick = $(".fl-builder-modules-cta a").attr("onclick");		
		if(typeof stronclick != "undefined" && stronclick.toLowerCase().indexOf("wpbeaverbuilder.com") >= 0){
			$(".fl-builder-modules-cta a").prop('onclick', null) .off('click');		 
		}
	};		
   $(document.body).on("click",".fl-builder-upgrade-button,.fl-builder-modules-cta a",function(e){
		strhref = $(this).attr("href");
		if(typeof strhref != "undefined" && strhref.toLowerCase().indexOf("wpbeaverbuilder.com") >= 0){
			$(this).attr("href","https://www.wpbeaverbuilder.com/pricing/?fla=50&campaign=tesseracttheme");			 
		}else{		
			stronclick = $(this).attr("onclick");			
			if(typeof stronclick != "undefined" && stronclick.toLowerCase().indexOf("wpbeaverbuilder.com") >= 0){
				e.preventDefault();e.stopPropagation();
				window.open('https://www.wpbeaverbuilder.com/pricing/?fla=50&campaign=tesseracttheme');				 
			}
		}
	});	
});

Youez - 2016 - github.com/yon3zu
LinuXploit