__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
class Blocksy_WP_Block_Parser extends WP_Block_Parser {
function parse($document) {
$result = parent::parse($document);
$current_index = 0;
$current_heading_index = 0;
foreach ($result as $index => $first_level_block) {
$result[$index]['firstLevelBlock'] = true;
if (
! empty(trim($first_level_block['innerHTML']))
&&
isset($first_level_block['blockName'])
&&
$first_level_block['blockName']
) {
$result[$index]['firstLevelBlockIndex'] = $current_index++;
if (
strpos($first_level_block['blockName'], 'heading') !== false
||
strpos($first_level_block['blockName'], 'headline') !== false
||
in_array(
substr(trim($first_level_block['innerHTML']), 0, 3),
[
'<h1', '<h2', '<h3',
'<h4', '<h5', '<h6'
]
)
) {
$result[$index]['firstLevelHeadingIndex'] = $current_heading_index++;
}
}
}
return $result;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| db-versioning | Folder | 0750 |
|
|
| StringHelpers.php | File | 1.54 KB | 0640 |
|
| archive-title-renderer.php | File | 1.11 KB | 0640 |
|
| autoload.php | File | 6.7 KB | 0640 |
|
| blocksy-blocks-parser.php | File | 941 B | 0640 |
|
| blocksy-walker-page.php | File | 1.06 KB | 0640 |
|
| class-ct-attributes-parser.php | File | 6.67 KB | 0640 |
|
| class-ct-css-injector.php | File | 7.06 KB | 0640 |
|
| class-ct-group-title.php | File | 1.12 KB | 0640 |
|
| colors.php | File | 2.28 KB | 0640 |
|
| database.php | File | 584 B | 0640 |
|
| entity-id-picker.php | File | 6.39 KB | 0640 |
|
| hooks-manager.php | File | 3.63 KB | 0640 |
|
| print.php | File | 5.19 KB | 0640 |
|
| raii.php | File | 255 B | 0640 |
|
| screen-manager.php | File | 14.04 KB | 0640 |
|
| theme-db-versioning.php | File | 36.14 KB | 0640 |
|
| trait-wordpress-actions-manager.php | File | 2.01 KB | 0640 |
|
| translations-manager.php | File | 8.9 KB | 0640 |
|
| woo-import-export.php | File | 7.61 KB | 0640 |
|
| woo-variation-images-import-export.php | File | 2.44 KB | 0640 |
|