| @@ -3,10 +3,10 @@ | ||
| 3 | 3 | * Main Page |
| 4 | 4 | * |
| 5 | 5 | * @package Wow_Plugin |
| 6 | 6 | * @subpackage Wow-Company/Main |
| 7 | - * @author Wow-Company <givememony1982@gmail.com> | |
| 8 | - * @copyright 2019 Wow-Company (Wow-Company) | |
| 7 | + * @author Dmytro Lobov <givememony1982@gmail.com> | |
| 8 | + * @copyright 2019 Dmytro Lobov (Wow-Company) | |
| 9 | 9 | * @license GNU Public License |
| 10 | 10 | * @version 0.1 |
| 11 | 11 | */ |
| 12 | 12 | |
| @@ -14,66 +14,119 @@ | ||
| 14 | 14 | exit; |
| 15 | 15 | } |
| 16 | 16 | $logo = plugin_dir_url( __FILE__ ) . 'image/icon.png'; |
| 17 | 17 | ?> |
| 18 | +<style> | |
| 19 | + .about-wrap .wow-badge { | |
| 20 | + position: absolute; | |
| 21 | + top: 0; | |
| 22 | + right: 0; | |
| 23 | + } | |
| 18 | 24 | |
| 19 | -<div class="wrap full-width-layout wow-page"> | |
| 20 | - <div class="about-wrap"> | |
| 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 | + } | |
| 21 | 40 | |
| 22 | - <h1>Welcome</h1> | |
| 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 | + } | |
| 23 | 50 | |
| 24 | - <p class="about-text"> | |
| 25 | - Congratulations! You are about to use one of our plugins. </p> | |
| 51 | + .wow-subscribe::before { | |
| 52 | + font-family: dashicons; | |
| 53 | + font-size: 12px; | |
| 54 | + line-height: 14px; | |
| 55 | + } | |
| 26 | 56 | |
| 27 | - <div class="wow-badge" style="display: none;"> | |
| 28 | - <img src="<?php echo esc_url( $logo ); ?>"> | |
| 29 | - </div> | |
| 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 | + } | |
| 30 | 79 | |
| 31 | - </div> | |
| 80 | + .button-pro:hover { | |
| 81 | + background: #303030; | |
| 82 | + } | |
| 32 | 83 | |
| 33 | - <div class="about-wrap"> | |
| 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> | |
| 34 | 95 | |
| 35 | - <p>Since June 2016, we write <strong>plugins</strong> for websites running on the <strong>WordPress</strong> | |
| 36 | - platform.</p> | |
| 37 | 96 | |
| 38 | - <p>In the beginning, Wow-Company was more like a hobby, uniting friends. The more time and efforts were invested | |
| 39 | - in cooperation – the more obvious it became to us an opting for full focus on the project. When we finished | |
| 40 | - the first plugin for <strong>WordPress sites,</strong> received satisfaction from a well-done job and | |
| 41 | - positive customer reviews confirmed our intention to continue the work.</p> | |
| 97 | +<div class="wrap full-width-layout"> | |
| 98 | +<div class="about-wrap"> | |
| 42 | 99 | |
| 43 | - <h3>Principles and attitude to work.</h3> | |
| 44 | - <p>We constantly come up with new concepts, prototype them, and test them. We launch the development of three | |
| 45 | - types of projects:</p> | |
| 46 | 100 | |
| 47 | - <ul> | |
| 48 | - <li>have obvious practical benefits;</li> | |
| 49 | - <li>offer a unique experience for the site visitor;</li> | |
| 50 | - <li>contain a unique set of tools for webmasters.</li> | |
| 51 | - </ul> | |
| 101 | + <h1><?php esc_attr_e( 'Welcome', $this->plugin['text'] ); ?> </h1> | |
| 52 | 102 | |
| 53 | - <p><strong>Creating a plugin for WordPress</strong> requires a lot of time and effort. The plugin is not issued | |
| 54 | - unless the verification of its work correctness has been done. After the release, we constantly interact | |
| 55 | - with the user community and provide free technical and informational support for customers, who have | |
| 56 | - purchased the plugin’s full version. If anyone has a problem – everything possible is done to solve it | |
| 57 | - quickly. Our products are kept updated and adjusted to the new versions of the WordPress platform.</p> | |
| 103 | + <p class="about-text"> | |
| 104 | + <?php esc_attr_e( 'Congratulations! You are about to use one of the plugins from Wow-Company.', $this->plugin['text'] ); ?> </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->plugin['text'] ), | |
| 58 | 115 | |
| 59 | - <h3>The benefits of the Wow-Company solutions.</h3> | |
| 116 | + ); | |
| 60 | 117 | |
| 61 | - <p>The main feature of our plugins – is the simplicity of their capabilities mutual alignment and embedding into | |
| 62 | - systems that use other developers’ plugins.</p> | |
| 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>'; | |
| 63 | 125 | |
| 64 | - <p>To install and configure <strong>the Wow-Company WordPress plugins</strong> a minimum of skills is needed. We | |
| 65 | - create an intuitive interface with an informative description of the available options – they are simple to | |
| 66 | - navigate and configure the plugins work as required.</p> | |
| 67 | - | |
| 68 | - <p>Download Wow-Company’s<strong> WordPress plugins</strong> and evaluate their usability by yourself.</p> | |
| 69 | - | |
| 70 | - | |
| 71 | - </div> | |
| 72 | - | |
| 73 | - <div class="wow-page-content"> | |
| 74 | - <?php include( 'wow-plugins.php' ); ?> | |
| 75 | - </div> | |
| 76 | - | |
| 126 | + echo '<div class="stem-content">'; | |
| 127 | + include( $current . '.php' ); | |
| 128 | + echo '</div>'; | |
| 129 | + ?> | |
| 77 | 130 | </div> |
| 78 | 131 | |
| 79 | 132 | |