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 |