PluginProbe
Button Generator – Easily Create Custom Buttons with Icons and Analytics / 2.1
Button Generator – Easily Create Custom Buttons with Icons and Analytics v2.1
trunk 1.1.1 2.0 2.1 2.2 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.2 3.1.3 3.2 3.2.1 3.2.2 3.2.3 All 28 releases
button-generation / admin / partials / items.php

items.php in Button Generator – Easily Create Custom Buttons with Icons and Analytics 2.1, at admin/partials/items.php

106 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Items
4 *
5 * @package Wow_Plugin
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 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 .install {
68 float: right;
69 }
70 </style>
71 <h3>Several plugins below has free and pro versions you can install it and hopefully useful. Enjoy it.</h3>
72
73 <div class="theme-browser">
74 <div class="themes">
75 <?php
76 $image = 'https://wow-estore.com/a-plugins/img/';
77 foreach ( $items as $key => $value ) { ?>
78
79 <div class="theme">
80 <div class="height_screen">
81 <a target="_blank" href="<?php echo esc_url( $value[3] ); ?>" target="_blank"><img
82 src="<?php echo esc_url( $image . $value[2] ); ?>"/>
83 <span><?php echo esc_attr( $value[1] ); ?></span>
84 </a>
85 </div>
86 <div class="theme-author"></div>
87 <div class="theme-id-container">
88 <h2 class="theme-name">
89 <span><?php echo esc_attr( $value[0] ); ?></span>
90 <?php if ( ! empty( $value[5] ) ) : ?>
91 <span class="install"><?php echo esc_attr( $value[5] ); ?>+ <?php _e( 'Active Installs' ); ?></span>
92 <?php endif; ?>
93 </h2>
94 <div class="theme-actions">
95 <?php if ( ! empty( $value[3] ) ) : ?>
96 <a class="button activate" href="<?php echo esc_url( $value[3] ); ?>">Try FREE</a>
97 <?php endif; ?>
98 <?php if ( ! empty( $value[4] ) ) : ?>
99 <a class="button button-primary" href="<?php echo esc_url( $value[4] ); ?>" target="_blank">Get PRO</a>
100 <?php endif; ?>
101 </div>
102 </div>
103 </div>
104 <?php } ?>
105 </div>
106 </div>