| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; |
| 2 |
/** |
| 3 |
* Main Page |
| 4 |
* |
| 5 |
* @package Lead_Generation |
| 6 |
* @subpackage |
| 7 |
* @copyright Copyright (c) 2018, Dmytro Lobov |
| 8 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 |
* @since 1.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
$logo = plugin_dir_url( __FILE__ ).'image/icon.png.'; |
| 13 |
?> |
| 14 |
<style> |
| 15 |
.about-wrap .wow-badge { |
| 16 |
position: absolute; |
| 17 |
top: 0; |
| 18 |
right: 0; |
| 19 |
} |
| 20 |
.wow-badge { |
| 21 |
background: url(<?php echo esc_url( $logo );?>) center 15px no-repeat #1f9ef8; |
| 22 |
background-size: 100px 100px; |
| 23 |
color: #ffffff; |
| 24 |
font-size: 14px; |
| 25 |
text-align: center; |
| 26 |
font-weight: 600; |
| 27 |
margin: 5px 0 0; |
| 28 |
padding-top: 120px; |
| 29 |
height: 40px; |
| 30 |
display: inline-block; |
| 31 |
width: 140px; |
| 32 |
text-rendering: optimizeLegibility; |
| 33 |
box-shadow: 0 1px 3px rgba(0,0,0,.2); |
| 34 |
} |
| 35 |
.wow-subscribe { |
| 36 |
padding: 5px 7px; |
| 37 |
border-radius: 5px; |
| 38 |
border: 1px solid #ccc; |
| 39 |
text-decoration: none; |
| 40 |
font-size: 14px; |
| 41 |
line-height: 14px; |
| 42 |
color: #999; |
| 43 |
} |
| 44 |
.wow-subscribe::before { |
| 45 |
font-family: dashicons; |
| 46 |
font-size: 12px; |
| 47 |
line-height: 14px; |
| 48 |
} |
| 49 |
.button-pro { |
| 50 |
vertical-align: top; |
| 51 |
display: inline-block; |
| 52 |
text-decoration: none; |
| 53 |
font-size: 13px; |
| 54 |
line-height: 26px; |
| 55 |
height: 28px; |
| 56 |
margin: 0; |
| 57 |
padding: 0 10px 1px; |
| 58 |
cursor: pointer; |
| 59 |
border-width: 0px; |
| 60 |
border-style: solid; |
| 61 |
-webkit-appearance: none; |
| 62 |
-webkit-border-radius: 3px; |
| 63 |
border-radius: 3px; |
| 64 |
white-space: nowrap; |
| 65 |
-webkit-box-sizing: border-box; |
| 66 |
-moz-box-sizing: border-box; |
| 67 |
box-sizing: border-box; |
| 68 |
color: #fff !important; |
| 69 |
background: #37c781; |
| 70 |
} |
| 71 |
.button-pro:hover { |
| 72 |
background: #303030; |
| 73 |
} |
| 74 |
.button-pro:active { |
| 75 |
background: #303030; |
| 76 |
} |
| 77 |
</style> |
| 78 |
|
| 79 |
|
| 80 |
<div class="wrap about-wrap full-width-layout"> |
| 81 |
|
| 82 |
<h1><?php esc_attr_e( 'Welcome', 'wpcoder' ); ?> </h1> |
| 83 |
|
| 84 |
<p class="about-text"> |
| 85 |
<?php esc_attr_e( 'Congratulations! You are about to use one of the plugins from Wow-Company.', 'wpcoder' ); ?> </p> |
| 86 |
<p> |
| 87 |
<a href="https://www.facebook.com/wowaffect/" class="wow-subscribe" target="_blank">Stay in touch <span class="dashicons dashicons-facebook-alt"></span></a> |
| 88 |
</p> |
| 89 |
<span class="wow-badge">Wow-Company</span> |
| 90 |
|
| 91 |
<?php |
| 92 |
$current = ( isset( $_GET['tab'] ) ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'wow-plugins'; |
| 93 |
$tabs = array( |
| 94 |
'wow-plugins' => __( 'Plugins', 'wpcoder' ), |
| 95 |
); |
| 96 |
|
| 97 |
echo '<h2 class="nav-tab-wrapper wp-clearfix">'; |
| 98 |
foreach ( $tabs as $tab => $name ) { |
| 99 |
$class = ( $tab === $current ) ? ' nav-tab-active' : ''; |
| 100 |
echo '<a class="nav-tab' .esc_attr( $class ) . '" href="?page=wow-company&tab=' . esc_attr( $tab ) . '">' . esc_attr( $name ) . '</a>'; |
| 101 |
} |
| 102 |
echo '</h2>'; |
| 103 |
|
| 104 |
echo '<div class="stem-content">'; |
| 105 |
include ( $current.'.php' ); |
| 106 |
echo '</div>'; |
| 107 |
?> |
| 108 |
</div> |
| 109 |
|
| 110 |
|
| 111 |
|