Skip to content

Commit

Permalink
Alpine.js markup for dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
nextgenthemes committed Feb 18, 2024
1 parent eb46fa3 commit 245c0a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions php/Admin/functions-shortcode-creator.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function create_shortcode_dialog(): void {
}

wp_enqueue_script('arve-shortcode-dialog');
wp_enqueue_script('alpinejs');

$options = ARVE\options();
$settings = ARVE\shortcode_settings();
Expand All @@ -49,13 +50,12 @@ function create_shortcode_dialog(): void {
}

$data = wp_json_encode( $data );

?>
<dialog class="arve-sc-dialog" x-data="arvedialog" x-ref="arvedialog" x-init="$watch( 'options', () => { updateShortcode() } )">
<dialog class="arve-sc-dialog ngt" x-data="arvedialog" x-ref="arvedialog" x-init="$watch( 'options', () => { updateShortcode() } )">

<button class="arve-sc-dialog__close-btn" autofocus @click="$refs.arvedialog.close()">&times;</button>

<div>
<div class="grid">
<?php
print_settings_blocks(
$settings,
Expand Down

0 comments on commit 245c0a6

Please sign in to comment.