Blender-org web-assets v2 upgrade #104116

Merged
Márton Lente merged 56 commits from web-assets-v2-upgrade into main 2024-08-13 17:27:59 +02:00
2 changed files with 32 additions and 0 deletions
Showing only changes of commit 8ec5b44380 - Show all commits

View File

@ -928,4 +928,16 @@ function bwa_map_block_editor_font_sizes() {
// Hook function "bwa_map_block_editor_font_sizes" to enqueue_block_editor_assets // Hook function "bwa_map_block_editor_font_sizes" to enqueue_block_editor_assets
add_action('enqueue_block_editor_assets', 'bwa_map_block_editor_font_sizes'); add_action('enqueue_block_editor_assets', 'bwa_map_block_editor_font_sizes');
// Add custom template rendering for Page Helper BWA v2 Upgrade
function custom_template_redirect() {
$current_path = trim(parse_url(add_query_arg(array()), PHP_URL_PATH), '/');
if ($current_path == 'helper-bwa-v2-upgrade') {
include get_template_directory() . '/page-helper-bwa-v2-upgrade.php';
exit;
}
}
add_action('template_redirect', 'custom_template_redirect');
?> ?>

View File

@ -0,0 +1,20 @@
<?php
$page_width = get_field('page_width');
get_header();
?>
<div class="container">
<div class="row">
<div class="col-12">
<div class="box">
<h1>Page Helper BWA v2 Upgrade</h1>
<?php
get_template_part('part-helper-bwa-wp-search-and-replace');
?>
</div>
</div>
</div>
</div>
<?php
get_footer('sitemap');
get_footer();
?>