wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-builder-data-manager.php
/**
	 * Display admin notices when builder should be updated
	 * to support static content
	 */
Display admin notices when builder should be updated
to support static content
Display admin notices when builder should be updated to support static content
public static function static_content_notices() {
		if ( 'yes' === get_option( 'themify_builder_static_content_done' ) ) {
			return;
		} elseif ( ! self::has_existing_builder_data() ) {
			$_key='themify_builder_static_content_done';
			delete_option($_key);
			add_option($_key,'yes', '', false );
			return;
		}
		if ( self::$static_content_process->is_updating() || empty( $_GET['do_update_themify_builder_static_content'] ) ):
		$settings_page = themify_is_themify_theme() ? 'themify' : 'themify-builder';
		?>
		<div class="tb_builder_data_updater_notice notice notice-warning is-dismissible">
			<?php if ( self::$static_content_process->is_updating() ): ?>
				<p><strong><?php _e( 'Themify Builder data updater', 'themify' ); ?></strong> &#8211; <?php _e( 'Builder static content is being updated in the background.', 'themify' ); ?></p>
			<?php else: ?>
				<p><strong><?php _e( 'Themify Builder data updater', 'themify' ); ?></strong> &#8211; <?php _e( 'Run updater to convert your existing posts and pages to support Builder static content (<a href="https://themify.me/docs/builder#static-content" target="_blank">learn more</a>).', 'themify' ); ?></p>
				<p class="submit"><a href="<?php echo esc_url( add_query_arg( 'do_update_themify_builder_static_content', 'true', admin_url( 'admin.php?page=' . $settings_page ) ) ); ?>" class="tb_static_update_now button-primary"><?php _e( 'Run the updater', 'themify' ); ?></a></p>
			<?php endif; ?>
		</div>
		<script type="text/javascript">
			jQuery( '.tb_static_update_now' ).on( 'click', function() {
				return window.confirm( '<?php echo esc_js( __( 'It is strongly recommended that you backup your database before proceeding. Are you sure you wish to run the updater now?', 'themify' ) ); ?>' );
			});
			jQuery(document).on('click', '.tb_builder_data_updater_notice .notice-dismiss', function(event){
				jQuery.ajax({
					type: 'POST',
					url: ajaxurl,
					data: {
						action: 'tb_dismiss_data_updater_notice'
					}
				});
			});
		</script>
		<?php else: ?> 
			<div class="notice notice-success">
				<p><?php _e( 'Themify Builder static content update complete.', 'themify' ); ?></p>
			</div>
		<?php
		endif;
	}
public static function static_content_notices ( ) { if ( 'yes' === get_option ( 'themify_builder_static_content_done' ) ) { return ; } elseif ( ! self :: has_existing_builder_data ( ) ) { $ _key = 'themify_builder_static_content_done' ; delete_option ( $ _key ) ; add_option ( $ _key , 'yes' , '' , false ) ; return ; } if ( self :: $ static_content_process -> is_updating ( ) || empty ( $ _GET [ 'do_update_themify_builder_static_content' ] ) ) : $ settings_page = themify_is_themify_theme ( ) ? 'themify' : 'themify-builder' ; ?> <div class="tb_builder_data_updater_notice notice notice-warning is-dismissible">
			 <?php if ( self :: $ static_content_process -> is_updating ( ) ) : ?> <p><strong> <?php _e ( 'Themify Builder data updater' , 'themify' ) ; ?> </strong> &#8211;  <?php _e ( 'Builder static content is being updated in the background.' , 'themify' ) ; ?> </p>
			 <?php else : ?> <p><strong> <?php _e ( 'Themify Builder data updater' , 'themify' ) ; ?> </strong> &#8211;  <?php _e ( 'Run updater to convert your existing posts and pages to support Builder static content (<a href="https://themify.me/docs/builder#static-content" target="_blank">learn more</a>).' , 'themify' ) ; ?> </p>
				<p class="submit"><a href=" <?php echo esc_url ( add_query_arg ( 'do_update_themify_builder_static_content' , 'true' , admin_url ( 'admin.php?page=' . $ settings_page ) ) ) ; ?> " class="tb_static_update_now button-primary"> <?php _e ( 'Run the updater' , 'themify' ) ; ?> </a></p>
			 <?php endif ; ?> </div>
		<script type="text/javascript">
			jQuery( '.tb_static_update_now' ).on( 'click', function() {
				return window.confirm( ' <?php echo esc_js ( __ ( 'It is strongly recommended that you backup your database before proceeding. Are you sure you wish to run the updater now?' , 'themify' ) ) ; ?> ' );
			});
			jQuery(document).on('click', '.tb_builder_data_updater_notice .notice-dismiss', function(event){
				jQuery.ajax({
					type: 'POST',
					url: ajaxurl,
					data: {
						action: 'tb_dismiss_data_updater_notice'
					}
				});
			});
		</script>

		 <?php else : ?> <div class="notice notice-success">
				<p> <?php _e ( 'Themify Builder static content update complete.' , 'themify' ) ; ?> </p>
			</div>
		 <?php endif ; }
Display admin notices when builder should be updated
 to support static content
Display admin notices when builder should be updated to support static content