Blender-org web-assets v2 upgrade #104116
@ -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');
|
||||||
?>
|
?>
|
||||||
|
20
themes/bthree/page-helper-bwa-v2-upgrade.php
Normal file
20
themes/bthree/page-helper-bwa-v2-upgrade.php
Normal 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();
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user