PluginProbe ʕ •ᴥ•ʔ
Download Manager / trunk
Download Manager vtrunk
3.3.62 3.3.61 3.3.60 3.3.59 3.3.58 3.3.57 3.3.56 trunk 2.1.3 2.3.0 2.5.96 2.5.97 2.6.2 2.6.96 2.8.3 2.9.99 3.0.4 3.1.05 3.1.07 3.1.08 3.1.11 3.1.12 3.1.14 3.1.17 3.1.18 3.1.22 3.1.23 3.1.24 3.1.25 3.1.26 3.1.27 3.1.28 3.2.04 3.2.13 3.2.14 3.2.16 3.2.18 3.2.19 3.2.21 3.2.22 3.2.23 3.2.24 3.2.25 3.2.27 3.2.28 3.2.29 3.2.30 3.2.31 3.2.32 3.2.33 3.2.34 3.2.35 3.2.37 3.2.38 3.2.39 3.2.40 3.2.41 3.2.42 3.2.43 3.2.44 3.2.45 3.2.46 3.2.47 3.2.48 3.2.49 3.2.50 3.2.51 3.2.52 3.2.53 3.2.54 3.2.55 3.2.56 3.2.57 3.2.58 3.2.59 3.2.60 3.2.61 3.2.63 3.2.64 3.2.65 3.2.66 3.2.67 3.2.68 3.2.69 3.2.70 3.2.71 3.2.72 3.2.73 3.2.74 3.2.75 3.2.76 3.2.77 3.2.78 3.2.79 3.2.80 3.2.81 3.2.82 3.2.83 3.2.84 3.2.85 3.2.86 3.2.87 3.2.88 3.2.89 3.2.90 3.2.91 3.2.92 3.2.93 3.2.94 3.2.95 3.2.96 3.2.97 3.2.98 3.2.99 3.3.00 3.3.01 3.3.02 3.3.03 3.3.04 3.3.05 3.3.06 3.3.07 3.3.08 3.3.09 3.3.10 3.3.11 3.3.12 3.3.13 3.3.14 3.3.15 3.3.16 3.3.17 3.3.18 3.3.19 3.3.20 3.3.21 3.3.22 3.3.23 3.3.24 3.3.25 3.3.26 3.3.27 3.3.28 3.3.29 3.3.30 3.3.31 3.3.32 3.3.33 3.3.34 3.3.35 3.3.36 3.3.37 3.3.38 3.3.39 3.3.40 3.3.41 3.3.42 3.3.43 3.3.44 3.3.45 3.3.46 3.3.47 3.3.48 3.3.49 3.3.50 3.3.51 3.3.52 3.3.53 3.3.54 3.3.55
download-manager / src / Package / views / shortcode-iframe.php
download-manager / src / Package / views Last commit date
link-templates 5 months ago lock-options 6 months ago page-templates 4 months ago all-packages-shortcode.php 1 week ago category-shortcode-toolbar.php 1 year ago file-list.php 5 years ago lock-options-iframe.php 5 months ago packages-shortcode-toolbar.php 1 year ago packages-shortcode.php 2 years ago search-result.php 5 years ago shortcode-iframe.php 5 months ago
shortcode-iframe.php
237 lines
1 <?php
2 if (!defined('ABSPATH')) die();
3 /**
4 * User: shahnuralam
5 * Date: 1/16/18
6 * Time: 12:33 AM
7 */
8 error_reporting(0);
9
10 $pid = wpdm_query_var('__wpdmxp', 'int');
11 //setup_postdata($post);
12 //$pack = new \WPDM\Package();
13 //$pack->Prepare(get_the_ID());
14
15 ?>
16 <!DOCTYPE html>
17 <html style="background: transparent">
18 <head>
19 <title>Download <?php the_title(); ?></title>
20 <script>
21 var wpdm_url = <?= json_encode(WPDM()->wpdm_urls) ?>;
22 </script>
23 <link rel="stylesheet" href="<?php echo WPDM_BASE_URL; ?>assets/bootstrap/css/bootstrap.css" />
24 <link rel="stylesheet" href="<?php echo WPDM_BASE_URL; ?>assets/css/front.css" />
25 <?php $color_scheme = get_option('__wpdm_color_scheme', 'system'); if ($color_scheme !== 'light') { ?>
26 <link rel="stylesheet" href="<?php echo WPDM_BASE_URL; ?>assets/css/front-dark.css" />
27 <?php } ?>
28 <link rel="stylesheet" href="<?php echo WPDM_ASSET_URL; ?>fontawesome/css/fontawesome.min.css" />
29 <script src="<?php echo includes_url(); ?>/js/jquery/jquery.js"></script>
30 <script src="<?php echo includes_url(); ?>/js/jquery/jquery.form.min.js"></script>
31 <script src="<?php echo WPDM_BASE_URL; ?>assets/bootstrap/js/bootstrap.min.js"></script>
32 <script src="<?php echo WPDM_BASE_URL; ?>assets/js/front.js"></script>
33 <?php if((isset($pack->packageData['form_lock']) && $pack->packageData['form_lock'] == 1) || $pack->packageData['base_price'] > 0) wp_head(); ?>
34 <style>
35 html, body{
36 overflow: visible;
37 height: 100%;
38 width: 100%;
39 padding: 0;
40 margin: 0;
41 font-family: 'Josefin Sans', sans-serif;
42 font-weight: 300;
43 font-size: 10pt;
44 }
45 h4.modal-title{
46 font-family: 'Josefin Sans', sans-serif;
47 font-weight: 800;
48 text-transform: uppercase;
49 letter-spacing: 1px;
50 color: #555555;
51 font-size: 11pt;
52 display: inline-block;
53 }
54
55 .w3eden label{
56 font-weight: 400;
57 }
58 img{
59 max-width: 100%;
60 }
61 .modal-backdrop{
62 background: rgba(0,0,0,0.5);
63 }
64
65
66 .modal.fade{
67 opacity:1;
68 }
69 .modal.fade .modal-dialog {
70 -webkit-transform: translate(0);
71 -moz-transform: translate(0);
72 transform: translate(0);
73 }
74
75 .modal {
76 text-align: center;
77 padding: 0!important;
78 }
79
80 .wpdm-social-lock.btn {
81 display: block;
82 width: 100%;
83 }
84
85 @media (min-width: 768px) {
86 .modal:before {
87 content: '';
88 display: inline-block;
89 height: 100%;
90 vertical-align: middle;
91 margin-right: -4px;
92 }
93
94 .modal-dialog {
95 display: inline-block;
96 text-align: left;
97 vertical-align: middle;
98 }
99
100 .wpdm-social-lock.btn {
101 display: inline-block;
102 width: 47%;
103 }
104 }
105
106 @-moz-keyframes spin {
107 from { -moz-transform: rotate(0deg); }
108 to { -moz-transform: rotate(360deg); }
109 }
110 @-webkit-keyframes spin {
111 from { -webkit-transform: rotate(0deg); }
112 to { -webkit-transform: rotate(360deg); }
113 }
114 @keyframes spin {
115 from {transform:rotate(0deg);}
116 to {transform:rotate(360deg);}
117 }
118 .spin{
119 -webkit-animation-name: spin;
120 -webkit-animation-duration: 2000ms;
121 -webkit-animation-iteration-count: infinite;
122 -webkit-animation-timing-function: linear;
123 -moz-animation-name: spin;
124 -moz-animation-duration: 2000ms;
125 -moz-animation-iteration-count: infinite;
126 -moz-animation-timing-function: linear;
127 -ms-animation-name: spin;
128 -ms-animation-duration: 2000ms;
129 -ms-animation-iteration-count: infinite;
130 -ms-animation-timing-function: linear;
131
132 animation-name: spin;
133 animation-duration: 2000ms;
134 animation-iteration-count: infinite;
135 animation-timing-function: linear;
136 display: inline-block;
137 }
138
139
140 .w3eden .card-default {
141 border-radius: 3px;
142 margin-top: 10px !important;
143 }
144 .w3eden .card-default:last-child{
145 margin-bottom: 0 !important;
146 }
147 .w3eden .card-default .card-header{
148 letter-spacing: 0.5px;
149 font-weight: 600;
150 background-color: #f6f8f9;
151 }
152
153 .w3eden .card-default .card-footer{
154 background-color: #fafafa;
155 }
156
157 .btn{
158 outline: none !important;
159 }
160 .w3eden .card{
161 margin-bottom: 0;
162 }
163 .w3eden .modal-header{
164 border: 0;
165 }
166 .w3eden .modal-content{
167 box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
168 border: 0;
169 border-radius: 6px;
170 background: rgb(255,255,255);
171 background: -moz-linear-gradient(-45deg, rgba(255,255,255,1) 0%, rgba(243,243,243,1) 50%, rgba(237,237,237,1) 51%, rgba(255,255,255,1) 100%);
172 background: -webkit-linear-gradient(-45deg, rgba(255,255,255,1) 0%,rgba(243,243,243,1) 50%,rgba(237,237,237,1) 51%,rgba(255,255,255,1) 100%);
173 background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgba(243,243,243,1) 50%,rgba(237,237,237,1) 51%,rgba(255,255,255,1) 100%);
174 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=1 );
175 overflow: hidden;
176 max-width: 100%;
177 }
178 .w3eden .modal-body{
179 max-height: calc(100vh - 210px);
180 overflow-y: auto;
181 padding-top: 0 !important;
182 }
183
184
185 .w3eden .input-group-lg .input-group-btn .btn{
186 border-top-right-radius: 4px !important;
187 border-bottom-right-radius: 4px !important;
188 }
189 .w3eden .wpforms-field-medium{
190 max-width: 100% !important;
191 width: 100% !important;
192 }
193
194 .w3eden .input-group.input-group-lg .input-group-btn .btn {
195 font-size: 11pt !important;
196 }
197
198
199
200 </style>
201 <?php do_action("wpdm_shortcode_iframe_head"); ?>
202 </head>
203 <body class="w3eden" style="background: transparent">
204
205 <?php
206 echo do_shortcode("[wpdm_package id='{$pid}']");
207 ?>
208
209 <script>
210
211 jQuery(function ($) {
212
213 $('a').each(function () {
214 $(this).attr('target', '_blank');
215 });
216
217 $('body').on('click','a', function () {
218 $(this).attr('target', '_blank');
219 });
220
221
222
223
224 });
225
226 function showModal() {
227 jQuery('#wpdm-locks').modal('show');
228 }
229 showModal();
230 </script>
231 <div style="display: none">
232 <?php if((isset($pack->packageData['form_lock']) && $pack->packageData['form_lock'] == 1) || $pack->packageData['base_price'] > 0) wp_footer(); ?>
233 <?php do_action("wpdm_shortcode_iframe_footer"); ?>
234 </div>
235 </body>
236 </html>
237