Changeset 3837748
- Timestamp:
- 12/01/2026 01:30:04 PM (35 hours ago)
- Location:
- wogo-chat-flutuante/trunk
- Files:
-
- 3 edited
-
includes/admin-settings.php (modified) (11 diffs)
-
readme.txt (modified) (2 diffs)
-
wogo-chat-flutuante.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wogo-chat-flutuante/trunk/includes/admin-settings.php
r3710177 r3837748 22 22 return; 23 23 } 24 wp_enqueue_script( 'wogo-wpp-admin-tabs', WOGO_WPP_URL . 'assets/js/admin-tabs.js', array(), WOGO_WPP_VERSION, true ); 24 wp_enqueue_script( 'wogo-wpp-admin-tabs', WOGO_WPP_URL . 'assets/js/admin-tabs.js', array(), WOGO_WPP_VERSION, array( 'in_footer' => true ) ); 25 26 wp_register_style( 'wogo-wpp-admin', false, array(), WOGO_WPP_VERSION ); 27 wp_enqueue_style( 'wogo-wpp-admin' ); 28 wp_add_inline_style( 29 'wogo-wpp-admin', 30 '.wogo-wpp-popup-only{display:inline-block;margin-top:6px;padding:2px 8px;border-radius:3px;background:#fcf0e3;border:1px solid #f0c28c;color:#8a4b00;font-size:12px;font-weight:400;line-height:1.6;}' 31 . '.wogo-wpp-popup-only .dashicons{font-size:14px;width:14px;height:14px;vertical-align:-2px;margin-right:3px;}' 32 ); 25 33 } 26 34 ); … … 29 37 add_action( 'admin_init', 'wogo_wpp_register_settings' ); 30 38 function wogo_wpp_register_settings() { 31 register_setting( 'wogo_wpp_settings_group', WOGO_WPP_OPTION, 'wogo_wpp_sanitize_options' ); 39 register_setting( 40 'wogo_wpp_settings_group', 41 WOGO_WPP_OPTION, 42 array( 43 'type' => 'object', 44 'sanitize_callback' => 'wogo_wpp_sanitize_options', 45 'show_in_rest' => false, 46 ) 47 ); 32 48 } 33 49 … … 130 146 } 131 147 148 /** 149 * Aviso exibido nos campos que só têm efeito quando a ação ao clicar 150 * estiver como "Abrir formulário (popup)". 151 */ 152 function wogo_wpp_popup_only_badge() { 153 echo '<br /><span class="wogo-wpp-popup-only" title="Este campo só tem efeito quando "Ação ao clicar no botão" estiver como "Abrir formulário (popup)"."><span class="dashicons dashicons-info-outline" aria-hidden="true"></span>Somente no modo Popup</span>'; 154 } 155 132 156 function wogo_wpp_render_font_select( $field_id, $field_name, $current_value, $custom_field_name ) { 133 157 $is_custom = $current_value && ! in_array( $current_value, wogo_wpp_get_google_fonts_list(), true ); … … 167 191 <?php endif; ?> 168 192 169 < h2 class="nav-tab-wrapper">193 <nav class="nav-tab-wrapper" aria-label="Seções das configurações"> 170 194 <a href="#" data-wogo-tab="general" class="nav-tab <?php echo ( 'general' === $active_tab ) ? 'nav-tab-active' : ''; ?>">Geral</a> 171 195 <a href="#" data-wogo-tab="appearance" class="nav-tab <?php echo ( 'appearance' === $active_tab ) ? 'nav-tab-active' : ''; ?>">Aparência e Fontes</a> 172 196 <a href="#" data-wogo-tab="about" class="nav-tab <?php echo ( 'about' === $active_tab ) ? 'nav-tab-active' : ''; ?>">Sobre</a> 173 </ h2>197 </nav> 174 198 175 199 <form method="post" action="options.php"> … … 203 227 </tr> 204 228 <tr> 205 <th scope="row"><label for="wogo_wpp_destination_email">E-mail de destino</label>< /th>206 <td> 207 <input type="email" id="wogo_wpp_destination_email" name="<?php echo esc_attr( WOGO_WPP_OPTION ); ?>[destination_email]" value="<?php echo esc_attr( $options['destination_email'] ); ?>" class="regular-text" required />208 <p class="description">E-mail que receberá os dados preenchidos no formulário (usado somente no modo "Popup").</p>209 </td> 210 </tr> 211 <tr> 212 <th scope="row"><label for="wogo_wpp_email_subject">Assunto do e-mail</label>< /th>229 <th scope="row"><label for="wogo_wpp_destination_email">E-mail de destino</label><?php wogo_wpp_popup_only_badge(); ?></th> 230 <td> 231 <input type="email" id="wogo_wpp_destination_email" name="<?php echo esc_attr( WOGO_WPP_OPTION ); ?>[destination_email]" value="<?php echo esc_attr( $options['destination_email'] ); ?>" class="regular-text" required /> 232 <p class="description">E-mail que receberá os dados preenchidos no formulário.</p> 233 </td> 234 </tr> 235 <tr> 236 <th scope="row"><label for="wogo_wpp_email_subject">Assunto do e-mail</label><?php wogo_wpp_popup_only_badge(); ?></th> 213 237 <td> 214 238 <input type="text" id="wogo_wpp_email_subject" name="<?php echo esc_attr( WOGO_WPP_OPTION ); ?>[email_subject]" value="<?php echo esc_attr( $options['email_subject'] ); ?>" class="regular-text" /> … … 223 247 </tr> 224 248 <tr> 225 <th scope="row"><label for="wogo_wpp_form_title">Título do formulário</label>< /th>249 <th scope="row"><label for="wogo_wpp_form_title">Título do formulário</label><?php wogo_wpp_popup_only_badge(); ?></th> 226 250 <td> 227 251 <input type="text" id="wogo_wpp_form_title" name="<?php echo esc_attr( WOGO_WPP_OPTION ); ?>[form_title]" value="<?php echo esc_attr( $options['form_title'] ); ?>" class="regular-text" /> … … 229 253 </tr> 230 254 <tr> 231 <th scope="row"><label for="wogo_wpp_message_template">Mensagem enviada ao WhatsApp</label>< /th>255 <th scope="row"><label for="wogo_wpp_message_template">Mensagem enviada ao WhatsApp</label><?php wogo_wpp_popup_only_badge(); ?></th> 232 256 <td> 233 257 <textarea id="wogo_wpp_message_template" name="<?php echo esc_attr( WOGO_WPP_OPTION ); ?>[message_template]" rows="5" class="large-text"><?php echo esc_textarea( $options['message_template'] ); ?></textarea> … … 294 318 </tr> 295 319 <tr> 296 <th scope="row"><label for="wogo_wpp_title_size">Tamanho do título do popup</label>< /th>320 <th scope="row"><label for="wogo_wpp_title_size">Tamanho do título do popup</label><?php wogo_wpp_popup_only_badge(); ?></th> 297 321 <td> 298 322 <input type="number" id="wogo_wpp_title_size" name="<?php echo esc_attr( WOGO_WPP_OPTION ); ?>[title_size]" value="<?php echo esc_attr( $options['title_size'] ); ?>" min="14" max="36" step="1" class="small-text" /> px … … 310 334 </tr> 311 335 <tr> 312 <th scope="row">Botão de enviar< /th>336 <th scope="row">Botão de enviar<?php wogo_wpp_popup_only_badge(); ?></th> 313 337 <td> 314 338 <label> … … 319 343 </tr> 320 344 <tr> 321 <th scope="row"><label for="wogo_wpp_title_font">Fonte do título</label>< /th>345 <th scope="row"><label for="wogo_wpp_title_font">Fonte do título</label><?php wogo_wpp_popup_only_badge(); ?></th> 322 346 <td> 323 347 <?php wogo_wpp_render_font_select( 'wogo_wpp_title_font', WOGO_WPP_OPTION . '[title_font]', $options['title_font'], WOGO_WPP_OPTION . '[title_font_custom]' ); ?> … … 347 371 <th scope="row">Cache do site</th> 348 372 <td> 373 <?php // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only flag, only shows a confirmation message. ?> 349 374 <?php if ( isset( $_GET['wogo_wpp_cache_purged'] ) ) : ?> 350 375 <p style="color:#2271b1;">Cache limpo com sucesso.</p> -
wogo-chat-flutuante/trunk/readme.txt
r3710177 r3837748 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 73 73 == Changelog == 74 74 75 = 1.2.2 = 76 * Settings fields that only apply to the popup form are now flagged with a "Somente no modo Popup" badge. 77 * Compatibility updates for the latest WordPress (settings registration, script loading, plugin header). 78 75 79 = 1.2.1 = 76 80 * Removed the conversion tracking tab added in 1.2.0. -
wogo-chat-flutuante/trunk/wogo-chat-flutuante.php
r3710177 r3837748 3 3 * Plugin Name: WOGO Chat Flutuante 4 4 * Description: Botão flutuante do WhatsApp com formulário de contato (nome, e-mail, telefone e mensagem). Ao enviar, os dados são encaminhados por e-mail e o visitante é redirecionado para o WhatsApp. 5 * Version: 1.2.1 5 * Version: 1.2.2 6 * Requires at least: 6.0 7 * Requires PHP: 7.4 6 8 * Author: WOGO 7 9 * Author URI: https://wogo.com.br 8 10 * License: GPLv2 or later 11 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 9 12 * Text Domain: wogo-chat-flutuante 10 13 */ … … 14 17 } 15 18 16 define( 'WOGO_WPP_VERSION', '1.2. 1' );19 define( 'WOGO_WPP_VERSION', '1.2.2' ); 17 20 define( 'WOGO_WPP_DIR', plugin_dir_path( __FILE__ ) ); 18 21 define( 'WOGO_WPP_URL', plugin_dir_url( __FILE__ ) );
Note:
See TracChangeset
for help on using the changeset viewer.