| @@ -1,117 +1,115 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * WordPress plugin from Wow-Company | |
| 4 | - * | |
| 5 | - * @package Wow_Plugin | |
| 6 | - * @subpackage Wow-Company/Plugins | |
| 7 | - * @author Wow-Company <helper@wow-company.com> | |
| 8 | - * @copyright 2019 Wow-Company | |
| 9 | - * @license GNU P | |
| 10 | - */ | |
| 11 | - | |
| 12 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 13 | - exit; | |
| 14 | -} | |
| 15 | - | |
| 16 | -$items = get_transient( 'wow_items_code' ); | |
| 17 | -$items = false; | |
| 18 | - | |
| 19 | -if ( $items == false ) { | |
| 20 | - $url = 'https://wow-estore.com/a-plugins/'; | |
| 21 | - $request_args = array( | |
| 22 | - 'method' => 'POST', | |
| 23 | - 'timeout' => 20, | |
| 24 | - 'redirection' => 5, | |
| 25 | - 'httpversion' => '1.0', | |
| 26 | - 'blocking' => true, | |
| 27 | - 'headers' => array( | |
| 28 | - 'content-type' => 'application/json' | |
| 29 | - ), | |
| 30 | - 'body' => '', | |
| 31 | - ); | |
| 32 | - $request = wp_remote_post( $url, $request_args ); | |
| 33 | - $items = unserialize( $request['body'] ); | |
| 34 | - set_transient( 'wow_items_code', $items, 604800 ); | |
| 35 | -} | |
| 36 | -?> | |
| 37 | -<style> | |
| 38 | - .height_screen { | |
| 39 | - height: 270px; | |
| 40 | - background: #fff; | |
| 41 | - } | |
| 42 | - | |
| 43 | - .height_screen img { | |
| 44 | - max-width: 100%; | |
| 45 | - } | |
| 46 | - | |
| 47 | - .height_screen span { | |
| 48 | - padding: 10px; | |
| 49 | - font-size: 16px; | |
| 50 | - font-weight: 500; | |
| 51 | - display: block; | |
| 52 | - } | |
| 53 | - | |
| 54 | - .height_screen a { | |
| 55 | - color: #000; | |
| 56 | - text-decoration: none; | |
| 57 | - } | |
| 58 | - | |
| 59 | - .themes { | |
| 60 | - overflow: hidden; | |
| 61 | - } | |
| 62 | - | |
| 63 | - .theme-actions { | |
| 64 | - background: rgba(244, 244, 244, 1) !important; | |
| 65 | - } | |
| 66 | - | |
| 67 | - .theme-name { | |
| 68 | - text-align: left !important; | |
| 69 | - } | |
| 70 | - | |
| 71 | - .install { | |
| 72 | - float: right; | |
| 73 | - } | |
| 74 | -</style><h3>Several plugins below has free and pro versions you can install it and hopefully useful. Enjoy it.</h3> | |
| 75 | - | |
| 76 | -<div class="theme-browser"> | |
| 77 | - <div class="themes"> | |
| 78 | - <?php | |
| 79 | - $image = 'https://wow-estore.com/a-plugins/img/'; | |
| 80 | - foreach ( $items as $key => $value ) { ?> | |
| 81 | - | |
| 82 | - <div class="theme"> | |
| 83 | - <div class="height_screen"> | |
| 84 | - <a target="_blank" href="<?php echo esc_url( $value[3] ); ?>" target="_blank"><img | |
| 85 | - src="<?php echo esc_url( $image . $value[2] ); ?>"/> | |
| 86 | - <span><?php echo esc_attr( $value[1] ); ?></span> | |
| 87 | - </a> | |
| 88 | - </div> | |
| 89 | - <div class="theme-author"></div> | |
| 90 | - <div class="theme-id-container"> | |
| 91 | - <h2 class="theme-name"> | |
| 92 | - <span><?php echo esc_attr( $value[0] ); ?></span> | |
| 93 | - <?php if ( ! empty( $value[5] ) ) : ?> | |
| 94 | - <span class="install"><?php echo esc_attr( $value[5] ); ?>+ <?php _e( 'Active Installs' ); ?></span> | |
| 95 | - <?php endif; ?> | |
| 96 | - </h2> | |
| 97 | - <div class="theme-actions"> | |
| 98 | - <?php if ( ! empty( $value[3] ) ) : ?> | |
| 99 | - <a class="button activate" href="<?php echo esc_url( $value[3] ); ?>">Try FREE</a> | |
| 100 | - <?php endif; ?> | |
| 101 | - <?php if ( ! empty( $value[4] ) ) : ?> | |
| 102 | - <a class="button button-primary" href="<?php echo esc_url( $value[4] ); ?>" target="_blank">Get | |
| 103 | - PRO</a> | |
| 104 | - <?php endif; ?> | |
| 105 | - </div> | |
| 106 | - </div> | |
| 107 | - </div> | |
| 108 | - <?php } ?> | |
| 109 | - </div> | |
| 110 | -</div> | |
| 111 | - | |
| 112 | -<p class="wow-thank-you"> | |
| 113 | - <span class="thank-line">= = = = = = =</span><br/> | |
| 114 | - Thank you for choosing 'Wow Plugin'<br/> | |
| 115 | - Dmyto Lobov<br/> | |
| 116 | - <a href="https://wow-estore.com" target="_blank">Wow-Estore.com</a> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * WordPress plugin from Wow-Company | |
| 4 | + * | |
| 5 | + * @package Wow_Plugin | |
| 6 | + * @subpackage Wow-Company/Plugins | |
| 7 | + * @author Dmytro Lobov <i@wpbiker.com> | |
| 8 | + * @copyright 2019 Wow-Company | |
| 9 | + * @license GNU P | |
| 10 | + */ | |
| 11 | + | |
| 12 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 13 | + exit; | |
| 14 | +} | |
| 15 | + | |
| 16 | +$items = get_transient( 'wow_items_code' ); | |
| 17 | +$items = false; | |
| 18 | + | |
| 19 | +if ( $items == false ) { | |
| 20 | + $url = 'https://wow-estore.com/a-plugins/'; | |
| 21 | + $request_args = array( | |
| 22 | + 'method' => 'POST', | |
| 23 | + 'timeout' => 20, | |
| 24 | + 'redirection' => 5, | |
| 25 | + 'httpversion' => '1.0', | |
| 26 | + 'blocking' => true, | |
| 27 | + 'headers' => array( | |
| 28 | + 'content-type' => 'application/json' | |
| 29 | + ), | |
| 30 | + 'body' => '', | |
| 31 | + ); | |
| 32 | + $request = wp_remote_post( $url, $request_args ); | |
| 33 | + $items = unserialize( $request['body'] ); | |
| 34 | + set_transient( 'wow_items_code', $items, 604800 ); | |
| 35 | +} | |
| 36 | +?> | |
| 37 | +<style> | |
| 38 | + .height_screen { | |
| 39 | + height: 270px; | |
| 40 | + background: #fff; | |
| 41 | + } | |
| 42 | + | |
| 43 | + .height_screen img { | |
| 44 | + max-width: 100%; | |
| 45 | + } | |
| 46 | + | |
| 47 | + .height_screen span { | |
| 48 | + padding: 10px; | |
| 49 | + font-size: 16px; | |
| 50 | + font-weight: 500; | |
| 51 | + display: block; | |
| 52 | + } | |
| 53 | + | |
| 54 | + .height_screen a { | |
| 55 | + color: #000; | |
| 56 | + text-decoration: none; | |
| 57 | + } | |
| 58 | + | |
| 59 | + .themes { | |
| 60 | + overflow: hidden; | |
| 61 | + } | |
| 62 | + | |
| 63 | + .theme-actions { | |
| 64 | + background: rgba(244, 244, 244, 1) !important; | |
| 65 | + } | |
| 66 | + .theme-name { | |
| 67 | + text-align: left !important; | |
| 68 | + } | |
| 69 | + .install { | |
| 70 | + float: right; | |
| 71 | + } | |
| 72 | +</style> | |
| 73 | +<h3>Several plugins below has free and pro versions you can install it and hopefully useful. Enjoy it.</h3> | |
| 74 | + | |
| 75 | +<div class="theme-browser"> | |
| 76 | + <div class="themes"> | |
| 77 | + <?php | |
| 78 | + $image = 'https://wow-estore.com/a-plugins/img/'; | |
| 79 | + foreach ( $items as $key => $value ) { ?> | |
| 80 | + | |
| 81 | + <div class="theme"> | |
| 82 | + <div class="height_screen"> | |
| 83 | + <a target="_blank" href="<?php echo esc_url( $value[3] ); ?>" target="_blank"><img | |
| 84 | + src="<?php echo esc_url( $image . $value[2] ); ?>"/> | |
| 85 | + <span><?php echo esc_attr( $value[1] ); ?></span> | |
| 86 | + </a> | |
| 87 | + </div> | |
| 88 | + <div class="theme-author"></div> | |
| 89 | + <div class="theme-id-container"> | |
| 90 | + <h2 class="theme-name"> | |
| 91 | + <span><?php echo esc_attr( $value[0] ); ?></span> | |
| 92 | + <?php if ( ! empty( $value[5] ) ) : ?> | |
| 93 | + <span class="install"><?php echo esc_attr( $value[5] ); ?>+ <?php _e( 'Active Installs' ); ?></span> | |
| 94 | + <?php endif; ?> | |
| 95 | + </h2> | |
| 96 | + <div class="theme-actions"> | |
| 97 | + <?php if ( ! empty( $value[3] ) ) : ?> | |
| 98 | + <a class="button activate" href="<?php echo esc_url( $value[3] ); ?>">Try FREE</a> | |
| 99 | + <?php endif; ?> | |
| 100 | + <?php if ( ! empty( $value[4] ) ) : ?> | |
| 101 | + <a class="button button-primary" href="<?php echo esc_url( $value[4] ); ?>" target="_blank">Get PRO</a> | |
| 102 | + <?php endif; ?> | |
| 103 | + </div> | |
| 104 | + </div> | |
| 105 | + </div> | |
| 106 | + <?php } ?> | |
| 107 | + </div> | |
| 108 | +</div> | |
| 109 | + | |
| 110 | +<p class="wow-thank-you"> | |
| 111 | + <span class="thank-line">= = = = = = =</span><br/> | |
| 112 | + Thank you for choosing 'Wow Plugin'<br/> | |
| 113 | + Dmyto Lobov<br/> | |
| 114 | + <a href="https://wow-estore.com" target="_blank">Wow-Estore.com</a> | |
| 117 | 115 | </p> |