PluginProbe
WP Coder – Insert & Manage Code Snippets / 2.5.3
WP Coder – Insert & Manage Code Snippets v2.5.3
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / admin / partials / items.php

items.php in WP Coder – Insert & Manage Code Snippets 2.5.3, at admin/partials/items.php

102 lines 2.5 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/items/';
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: 320px;
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
72 <h3>Have any idea about CSS and JS item? Write us now on email support@wow-company.com or via Support page.</h3>
73
74 <div class="theme-browser">
75 <div class="themes">
76 <?php
77 $image = 'https://wow-estore.com/a-plugins/items/img/';
78 foreach ( $items as $key => $value ) { ?>
79
80 <div class="theme">
81 <div class="height_screen">
82 <a target="_blank" href="<?php echo esc_url( $value[3] ); ?>" target="_blank"><img
83 src="<?php echo esc_url( $image . $value[2] ); ?>"/>
84 <span><?php echo esc_attr( $value[1] ); ?></span>
85 </a>
86 </div>
87 <div class="theme-author"></div>
88 <div class="theme-id-container">
89 <h2 class="theme-name">
90 <span><?php echo esc_attr( $value[0] ); ?></span>
91 </h2>
92 <div class="theme-actions">
93 <?php if ( ! empty( $value[3] ) ) : ?>
94 <a class="button activate" href="<?php echo esc_url( $value[3] ); ?>">Get Now</a>
95 <?php endif; ?>
96
97 </div>
98 </div>
99 </div>
100 <?php } ?>
101 </div>
102 </div>