__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import {
getPrefixFor,
getOptionFor,
responsiveClassesFor,
watchOptionsWithPrefix,
applyPrefixFor,
} from './helpers'
const prefix = getPrefixFor({
allowed_prefixes: [
'blog',
'search',
'author',
'categories',
'woo_categories',
],
default_prefix: 'blog',
})
const optionPrefix = ['author', 'categories'].includes(prefix) ? 'blog' : prefix
watchOptionsWithPrefix({
getPrefix: () => prefix,
getOptionsForPrefix: () => [
`${optionPrefix}_load_more_label`,
`${optionPrefix}_paginationDivider`,
`${optionPrefix}_numbers_visibility`,
`${optionPrefix}_arrows_visibility`,
],
render: () => {
if (document.querySelector('.ct-load-more')) {
document.querySelector('.ct-load-more').innerHTML = getOptionFor(
'load_more_label',
optionPrefix
)
}
;[...document.querySelectorAll('.ct-pagination')].map((el) => {
el.removeAttribute('data-divider')
;[...el.parentNode.querySelectorAll('nav > a')].map((el) => {
responsiveClassesFor(
getOptionFor('arrows_visibility', optionPrefix),
el
)
})
;[...el.parentNode.querySelectorAll('nav > div')].map((el) => {
responsiveClassesFor(
getOptionFor('numbers_visibility', optionPrefix),
el
)
})
if (
getOptionFor('paginationDivider', optionPrefix).style === 'none'
) {
return
}
if (
getOptionFor('pagination_global_type', optionPrefix) ===
'infinite_scroll'
) {
return
}
el.dataset.divider = ''
})
},
})
export const getPaginationVariables = () => ({
[`${optionPrefix}_paginationSpacing`]: {
selector: applyPrefixFor('.ct-pagination', prefix),
variable: 'spacing',
responsive: true,
unit: '',
},
[`${optionPrefix}_paginationDivider`]: {
selector: applyPrefixFor('.ct-pagination[data-divider]', prefix),
variable: 'pagination-divider',
type: 'border',
skip_none: true,
},
[`${optionPrefix}_pagination_border_radius`]: {
selector: applyPrefixFor('.ct-pagination', prefix),
type: 'spacing',
variable: 'theme-button-border-radius',
emptyValue: 4,
},
[`${optionPrefix}_simplePaginationFontColor`]: [
{
selector: applyPrefixFor(
'[data-pagination="simple"], [data-pagination="next_prev"]',
prefix
),
variable: 'theme-text-color',
type: 'color:default',
},
{
selector: applyPrefixFor(
'.ct-pagination[data-pagination="simple"]',
prefix
),
variable: 'theme-text-active-color',
type: 'color:active',
},
{
selector: applyPrefixFor(
'[data-pagination="simple"], [data-pagination="next_prev"]',
prefix
),
variable: 'theme-link-hover-color',
type: 'color:hover',
},
],
[`${optionPrefix}_paginationButtonText`]: [
{
selector: applyPrefixFor('[data-pagination="load_more"]', prefix),
variable: 'theme-button-text-initial-color',
type: 'color:default',
},
{
selector: applyPrefixFor('[data-pagination="load_more"]', prefix),
variable: 'theme-button-text-hover-color',
type: 'color:hover',
},
],
[`${optionPrefix}_paginationButton`]: [
{
selector: applyPrefixFor('[data-pagination="load_more"]', prefix),
variable: 'theme-button-background-initial-color',
type: 'color:default',
},
{
selector: applyPrefixFor('[data-pagination="load_more"]', prefix),
variable: 'theme-button-background-hover-color',
type: 'color:hover',
},
],
})
| 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 |
|