acf.php
7 years ago
alignment.php
9 years ago
animation.php
4 years ago
beaver_builder.php
8 years ago
cache.php
4 years ago
classes.php
8 years ago
classic-widgets-screen.php
4 years ago
clone.php
4 years ago
columns.php
4 years ago
dates.php
4 years ago
devices.php
9 years ago
disable_widgets.php
4 years ago
elementor.php
8 years ago
fixed.php
4 years ago
import-export.php
8 years ago
links.php
4 years ago
logic.php
9 years ago
move.php
8 years ago
permission.php
4 years ago
roles.php
4 years ago
search.php
9 years ago
shortcodes.php
4 years ago
sidebar-more_plugins.php
4 years ago
sidebar-opt_in.php
4 years ago
sidebar-support_box.php
4 years ago
sidebar-upsell_pro.php
4 years ago
siteorigin.php
9 years ago
sliding.php
4 years ago
state.php
7 years ago
styling.php
4 years ago
taxonomies.php
4 years ago
title.php
9 years ago
urls.php
4 years ago
visibility.php
9 years ago
widget-area.php
8 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&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 |