-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
www
/
wp-content
/
plugins
/
templates-patterns-collection
/
assets
/
src
/
utils
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
.htaccess
0.231KB
Edit File
Delete File
Rename
common.js
1.614KB
Edit File
Delete File
Rename
rest.js
0.712KB
Edit File
Delete File
Rename
site-import.js
1.095KB
Edit File
Delete File
Rename
import { __ } from '@wordpress/i18n'; const addUrlHash = (hash) => { window.location.hash = hash; }; const getTabHash = ( tabs ) => { let hash = window.location.hash; if ('string' !== typeof window.location.hash) { return null; } hash = hash.substring(1); if (!Object.keys(tabs).includes(hash)) { return null; } return hash; }; const untrailingSlashIt = ( str ) => str.replace( /\/$/, '' ); const trailingSlashIt = ( str ) => untrailingSlashIt( str ) + '/'; const TAGS = [ __( 'Business', 'templates-patterns-collection' ), __( 'Ecommerce', 'templates-patterns-collection' ), __( 'Fashion', 'templates-patterns-collection' ), __( 'Blogging', 'templates-patterns-collection' ), __( 'Photography', 'templates-patterns-collection' ), ]; const CATEGORIES = { all: __( 'All Categories' ), free: __( 'Free' ), business: __( 'Business' ), portfolio: __( 'Portfolio' ), woocommerce: __( 'WooCommerce' ), blog: __( 'Blog' ), personal: __( 'Personal' ), other: __( 'Other' ), }; const EDITOR_MAP = { gutenberg: { icon: 'gutenberg.jpg', niceName: 'Gutenberg', }, elementor: { icon: 'elementor.jpg', niceName: 'Elementor', }, 'beaver builder': { icon: 'beaver.jpg', niceName: ( <> Beaver <span className="long-name">Builder</span> </> ), }, brizy: { icon: 'brizy.jpg', niceName: 'Brizy', }, 'divi builder': { icon: 'divi.jpg', niceName: 'Divi', }, 'thrive architect': { icon: 'thrive.jpg', niceName: ( <> Thrive <span className="long-name">Architect</span> </> ), }, }; export { addUrlHash, getTabHash, trailingSlashIt, untrailingSlashIt, CATEGORIES, EDITOR_MAP, TAGS };
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat