[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.227.26.84: ~ $
/**
 * Activate a plugin
 *
 * @return void
 */
function kadence_starter_activatePlugin() {
	var data = new FormData();
	data.append( 'action', 'kadence_install_starter' );
	data.append( 'security', kadenceDashboardParams.ajax_nonce );
	data.append( 'status', kadenceDashboardParams.status );
	jQuery.ajax({
		method:      'POST',
		url:         kadenceDashboardParams.ajax_url,
		data:        data,
		contentType: false,
		processData: false,
	})
	.done( function( response, status, stately ) {
		if ( response.success ) {
			location.replace( kadenceDashboardParams.starterURL );
		}
	})
	.fail( function( error ) {
		console.log( error );
	});
}
/**
 * WordPress dependencies
 */
import { __ } from '@wordpress/i18n';
import { useState, useEffect, Fragment } from '@wordpress/element';
const { withFilters, TabPanel, Panel, PanelBody, PanelRow, Button, Spinner } = wp.components;
export const StarterTab = () => {
	const [ working, setWorking ] = useState( null );
	const handleClick = () => {
		setWorking( true );
		kadence_starter_activatePlugin();
	};
	return (
		<Fragment>
			<div className="kadence-desk-starter-inner" style={{ margin: '20px auto', textAlign:'center' }}>
				<h2>{ __( 'Starter Templates', 'kadence' ) }</h2>
				<p>{ __( 'Create and customize professionally designed websites in minutes. Simply choose your template, choose your colors, and import. Done!', 'kadence' ) }</p>
				<div className="image-container">
					<img width="772" height="250" alt={ __( 'Starter Templates', 'kadence' ) } src={ kadenceDashboardParams.starterImage } />
				</div>
				{ kadenceDashboardParams.starterTemplates && (
					<a
						className="kt-action-starter kadence-desk-button"
						href={ kadenceDashboardParams.starterURL }
					>
						{ kadenceDashboardParams.starterLabel }
					</a>
				) }
				{ ! kadenceDashboardParams.starterTemplates && (
					<Button 
						className="kt-action-starter kadence-desk-button"
						onClick={ () => handleClick() }
					>
						{ kadenceDashboardParams.starterLabel }
						{ working && (
							<Spinner />
						) }
					</Button>

				) }
			</div>
		</Fragment>
	);
};

export default withFilters( 'kadence_theme_starters' )( StarterTab );

Filemanager

Name Type Size Permission Actions
changelog-item.js File 958 B 0644
changelog.js File 2.29 KB 0644
customizer.js File 2.21 KB 0644
dash-controls.scss File 5.78 KB 0644
help.js File 1.15 KB 0644
index.js File 3.23 KB 0644
notices.js File 508 B 0644
pro-extension.js File 3.11 KB 0644
recomended.js File 290 B 0644
sidebar.js File 1.22 KB 0644
starter.js File 2.15 KB 0644