PluginProbe ʕ •ᴥ•ʔ
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets / 3.9.5
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets v3.9.5
4.2.5 4.2.4 trunk 3.7.10 3.7.11 3.7.12 3.7.13 3.7.14 3.7.2 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8 3.8.1 3.8.10 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.8.8 3.8.9 3.8.9.1 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.5.1 4.0.6 4.0.6.1 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 4.2.0 4.2.1 4.2.2 4.2.3
widget-options / includes / admin / settings / modules / sidebar-opt_in.php
widget-options / includes / admin / settings / modules Last commit date
acf.php 2 years ago alignment.php 2 years ago animation.php 2 years ago beaver_builder.php 2 years ago cache.php 2 years ago classes.php 2 years ago classic-widgets-screen.php 2 years ago clone.php 2 years ago columns.php 2 years ago dates.php 2 years ago devices.php 2 years ago disable_widgets.php 2 years ago elementor.php 2 years ago fixed.php 2 years ago import-export.php 2 years ago links.php 2 years ago logic.php 2 years ago move.php 2 years ago permission.php 2 years ago roles.php 2 years ago search.php 2 years ago shortcodes.php 2 years ago sidebar-more_plugins.php 2 years ago sidebar-opt_in.php 2 years ago sidebar-support_box.php 2 years ago sidebar-upsell_pro.php 2 years ago siteorigin.php 2 years ago sliding.php 2 years ago state.php 2 years ago styling.php 2 years ago taxonomies.php 2 years ago title.php 2 years ago urls.php 2 years ago visibility.php 2 years ago widget-area.php 2 years ago
sidebar-opt_in.php
61 lines
1 <?php
2 /**
3 * Support Sidebar Metabox
4 * Settings > Widget Options
5 *
6 * @copyright Copyright (c) 2016, Jeffrey Carandang
7 * @since 4.0
8 */
9
10 // Exit if accessed directly
11 if ( ! defined( 'ABSPATH' ) ) exit;
12
13 /**
14 * Create Metabox for Support
15 *
16 * @since 4.0
17 * @return void
18 */
19 if( !function_exists( 'widgetopts_settings_sidebar_opt_in' ) ):
20 function widgetopts_settings_sidebar_opt_in(){ ?>
21 <div id="widgetopts-sidebar-widget-optin" class="postbox widgetopts-sidebar-widget">
22 <h3 class="hndle ui-sortable-handle"><span><?php _e( 'Download our Ultimate Guide: Optimizing WordPress Sidebars and Widgets for Better Traffic and Conversions', 'widget-options' );?></span></h3>
23 <div class="inside">
24 <p style="text-align: center;"><img src="<?php echo WIDGETOPTS_PLUGIN_URL . '/assets/images/cover-book.jpg'?>" width="180"></p>
25 <form action="https://phpbits.us12.list-manage.com/subscribe/post?u=5597485458f20da5305e44c55&amp;id=6729a2bb96" method="post" class="validate widgetopts-ebook-form" target="_blank" novalidate>
26 <p>
27 <?php _e( 'Get detailed insights based on our research on 70+ popular websites that will help you optimize your WordPress sidebars and widgets.', 'widget-options' );?>
28 </p>
29 <p>
30 <?php _e( 'Email Address:', 'widget-options' );?><br />
31 <input name="EMAIL" class="required email widefat" placeholder="<?php _e( 'email@domain.com', 'widget-options' );?>" />
32
33 <input type="hidden" name="MMERGE3" value="Freebies" />
34 <input type="hidden" name="MMERGE4" value="Plugin Campaign" />
35 <input type="hidden" name="MMERGE5" value="Introducing Ultimate Guide: Optimizing WordPress Sidebars and Widgets for Better Traffic and Conversions" />
36 </p>
37 <p>
38 <button class="button-secondary"><?php _e( 'Subscribe & Download', 'widget-options' );?></button>
39 </p>
40 </form>
41 </div>
42 </div>
43 <script type="text/javascript">
44 jQuery( document ).ready( function(){
45 jQuery( '.widgetopts-ebook-form' ).on( 'submit', function(e){
46 if( jQuery( this ).find( '.required' ).val() == '' ){
47 jQuery( this ).find( '.required' ).css({ 'border' : '1px solid red' });
48 return false;
49 }else{
50 jQuery( this ).find( '.required' ).removeAttr('style');
51 }
52 } );
53 } );
54 </script>
55
56 <?php
57 }
58 //add_action( 'widgetopts_module_sidebar', 'widgetopts_settings_sidebar_opt_in', 20 );
59 endif;
60 ?>
61