__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import ctEvents from 'ct-events'
import $ from 'jquery'
let deepLinkLocation = null
export const getDeepLinkPanel = () =>
deepLinkLocation ? deepLinkLocation.split(':')[1] : false
export const removeDeepLink = () => (deepLinkLocation = null)
if (wp.customize) {
wp.customize.bind('ready', () => {
wp.customize.previewer.bind('ct-initiate-deep-link', (location) => {
const [section, panel] = location.split(':')
const expanded = Object.values(wp.customize.section._value).find(
(e) => e.expanded()
)
if (!expanded || expanded.id !== section) {
deepLinkLocation = location
wp.customize.section(section).expand()
return
}
ctEvents.trigger('ct-deep-link-start', location)
})
// wp.customize.preview.send('ct-trigger-autosave')
wp.customize.previewer.bind('ct-trigger-autosave', () => {
// https://github.com/WordPress/WordPress/blob/38fdd7bb3afcd59d51bc7bafcaa3d78820e3593b/wp-admin/js/customize-controls.js#L9336
//
// Trigger customizer autosave
wp.customize
.requestChangesetUpdate({}, { autosave: true })
.done(() => {
wp.customize.previewer.send('ct-trigger-autosave-done')
})
})
})
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| components | Folder | 0750 |
|
|
| controls | Folder | 0750 |
|
|
| options | Folder | 0750 |
|
|
| panels-builder | Folder | 0750 |
|
|
| sync | Folder | 0750 |
|
|
| controls.js | File | 5.52 KB | 0640 |
|
| customizer-color-scheme.js | File | 710 B | 0640 |
|
| customizer-variables.js | File | 3.35 KB | 0640 |
|
| experimental-section.js | File | 176 B | 0640 |
|
| initWidgets.js | File | 0 B | 0640 |
|
| panels-builder.js | File | 1.24 KB | 0640 |
|
| preview-events.js | File | 1.14 KB | 0640 |
|
| public-path.js | File | 85 B | 0640 |
|
| reset.js | File | 1.93 KB | 0640 |
|
| sync.js | File | 3.21 KB | 0640 |
|