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