attach-file
7 months ago
additional-preview-images.php
4 years ago
attach-file.php
6 months ago
changelog.php
6 months ago
icons.php
2 weeks ago
lock-options.php
2 weeks ago
package-settings.php
2 weeks ago
package-settings.php
1174 lines
| 1 | <?php if(get_post_meta($post->ID,'__wpdm_legacy_id',true)){ ?> |
| 2 | <input type="hidden" name="file[legacy_id]" value="<?php echo get_post_meta($post->ID,'__wpdm_legacy_id',true); ?>" /> |
| 3 | <?php } ?> |
| 4 | <div class="w3eden" id="all-package-settings"> |
| 5 | <div class="wpdm-tabs"> |
| 6 | <div class="wpdm-tabs__nav"> |
| 7 | <button type="button" class="wpdm-tabs__btn active" data-tab="package-settings"> |
| 8 | <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg> |
| 9 | <?php _e('Package Settings', 'download-manager'); ?> |
| 10 | </button> |
| 11 | <button type="button" class="wpdm-tabs__btn" data-tab="lock-options"> |
| 12 | <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg> |
| 13 | <?php _e('Lock Options', 'download-manager'); ?> |
| 14 | </button> |
| 15 | <button type="button" class="wpdm-tabs__btn" data-tab="package-icons"> |
| 16 | <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg> |
| 17 | <?php _e('Icons', 'download-manager'); ?> |
| 18 | </button> |
| 19 | <?php |
| 20 | $etabs = apply_filters('wpdm_package_settings_tabs', array()); |
| 21 | foreach($etabs as $id => $tab){ |
| 22 | $icon = isset($tab['icon']) ? $tab['icon'] : '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>'; |
| 23 | echo '<button type="button" class="wpdm-tabs__btn" data-tab="' . esc_attr($id) . '">' . $icon . esc_html($tab['name']) . '</button>'; |
| 24 | } ?> |
| 25 | </div> |
| 26 | <div class="wpdm-tabs__content"> |
| 27 | <div class="wpdm-tabs__panel active" data-panel="package-settings"> |
| 28 | <div class="wpdm-settings-panel"> |
| 29 | <!-- Basic Info Section --> |
| 30 | <div class="panel panel-default"> |
| 31 | <div class="panel-heading"> |
| 32 | <svg class="wpdm-settings-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 20h9"/><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"/></svg> |
| 33 | <span><?php _e('Basic Information', 'download-manager'); ?></span> |
| 34 | </div> |
| 35 | <div class="panel-body"><div class="row"> |
| 36 | <div class="col-md-3" id="version_row"> |
| 37 | <label class="wpdm-settings-label"><?php _e('Version', 'download-manager'); ?></label> |
| 38 | <input type="text" class="form-control" value="<?php echo esc_attr(get_post_meta($post->ID,'__wpdm_version',true)); ?>" name="file[version]" placeholder="1.0.0" /> |
| 39 | </div> |
| 40 | <div class="col-md-5" id="link_label_row"> |
| 41 | <label class="wpdm-settings-label"><?php _e('Link Label', 'download-manager'); ?></label> |
| 42 | <input type="text" class="form-control" value="<?php echo esc_attr(get_post_meta($post->ID,'__wpdm_link_label',true)); ?>" name="file[link_label]" placeholder="Download Now" /> |
| 43 | </div> |
| 44 | <div class="col-md-4" id="package_size_row"> |
| 45 | <label class="wpdm-settings-label"><?php _e('Package Size', 'download-manager'); ?></label> |
| 46 | <input type="text" class="form-control" name="file[package_size]" value="<?php echo esc_attr(get_post_meta($post->ID,'__wpdm_package_size',true)); ?>" placeholder="10 MB" /> |
| 47 | <span class="wpdm-settings-hint"><?php _e('Size of included file', 'download-manager'); ?></span> |
| 48 | </div> |
| 49 | </div></div> |
| 50 | </div> |
| 51 | |
| 52 | <!-- Limits & Quotas Section --> |
| 53 | <div class="panel panel-default"> |
| 54 | <div class="panel-heading"> |
| 55 | <svg class="wpdm-settings-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg> |
| 56 | <span><?php _e('Limits & Quotas', 'download-manager'); ?></span> |
| 57 | </div> |
| 58 | <div class="panel-body"><div class="row"> |
| 59 | <div class="col-md-6" id="stock_row"> |
| 60 | <label class="wpdm-settings-label"><?php _e('Stock Limit', 'download-manager'); ?></label> |
| 61 | <input type="number" class="form-control" name="file[quota]" value="<?php echo esc_attr(get_post_meta($post->ID,'__wpdm_quota',true)); ?>" min="0" placeholder="∞" /> |
| 62 | <span class="wpdm-settings-hint"><?php _e('Leave empty for unlimited', 'download-manager'); ?></span> |
| 63 | </div> |
| 64 | |
| 65 | <div class="col-md-6" id="download_limit_row"> |
| 66 | |
| 67 | <div style="display: flex; padding: 10px; gap: 10px; background: linear-gradient(135deg, #fefefe 0%, #f7fafc 100%); border: 2px dashed #e2e8f0; border-radius: 8px; text-align: left;"> |
| 68 | <div style="width: 48px; height: 48px; background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center;"> |
| 69 | <i class="fas fa-cloud-download-alt" style="font-size: 20px; color: #a0aec0;"></i> |
| 70 | </div> |
| 71 | <div> |
| 72 | <div style="font-size: 14px; margin-top: 4px; color: #718096; font-weight: 500;">Per user download limit</div> |
| 73 | <span style="font-size: 11px; color: #a0aec0; margin-top: 4px;">Available with pro only</span> |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div></div> |
| 78 | </div> |
| 79 | |
| 80 | <!-- Statistics Section --> |
| 81 | <div class="panel panel-default"> |
| 82 | <div class="panel-heading"> |
| 83 | <svg class="wpdm-settings-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 20V10"/><path d="M12 20V4"/><path d="M6 20v-6"/></svg> |
| 84 | <span><?php _e('Statistics', 'download-manager'); ?></span> |
| 85 | </div> |
| 86 | <div class="panel-body"><div class="row"> |
| 87 | <div class="col-md-6" id="view_count_row"> |
| 88 | <label class="wpdm-settings-label"><?php _e('View Count', 'download-manager'); ?></label> |
| 89 | <input type="number" class="form-control" name="file[view_count]" value="<?php echo esc_attr(get_post_meta($post->ID,'__wpdm_view_count',true)); ?>" min="0" /> |
| 90 | </div> |
| 91 | <div class="col-md-6" id="download_count_row"> |
| 92 | <label class="wpdm-settings-label"><?php _e('Download Count', 'download-manager'); ?></label> |
| 93 | <input type="number" class="form-control" name="file[download_count]" value="<?php echo esc_attr(get_post_meta($post->ID,'__wpdm_download_count',true)); ?>" min="0" /> |
| 94 | </div> |
| 95 | </div></div> |
| 96 | </div> |
| 97 | |
| 98 | <!-- Access Control Section --> |
| 99 | <div class="panel panel-default"> |
| 100 | <div class="panel-heading"> |
| 101 | <svg class="wpdm-settings-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg> |
| 102 | <span><?php _e('Access Control', 'download-manager'); ?></span> |
| 103 | </div> |
| 104 | <div class="panel-body"> |
| 105 | <div class="row"> |
| 106 | <div class="col-md-12" id="access_row"> |
| 107 | <label class="wpdm-settings-label"><?php _e('Allow Access', 'download-manager'); ?></label> |
| 108 | <div> |
| 109 | <?php |
| 110 | global $wp_roles; |
| 111 | $roles = array_reverse($wp_roles->role_names); |
| 112 | $currentAccess = get_post_meta($post->ID, '__wpdm_access', true); |
| 113 | $currentAccess = maybe_unserialize($currentAccess); |
| 114 | ?> |
| 115 | <select name="file[access][]" data-placeholder="<?php _e('Select who can download...', 'download-manager'); ?>" class="chzn-select role wpdm-select" multiple="multiple" id="access"> |
| 116 | <?php |
| 117 | $selz = ''; |
| 118 | if(is_array($currentAccess)) $selz = (in_array('guest',$currentAccess))?'selected=selected':''; |
| 119 | if(!isset($_GET['post']) && !$currentAccess) $selz = 'selected=selected'; |
| 120 | ?> |
| 121 | <option value="guest" <?php echo $selz ?>><?php _e('All Visitors', 'download-manager'); ?></option> |
| 122 | <?php foreach($roles as $role => $name): ?> |
| 123 | <?php $sel = (is_array($currentAccess) && in_array($role,$currentAccess)) ? 'selected=selected' : ''; ?> |
| 124 | <option value="<?php echo $role; ?>" <?php echo $sel ?>><?php echo $name; ?></option> |
| 125 | <?php endforeach; ?> |
| 126 | </select> |
| 127 | </div> |
| 128 | </div> |
| 129 | </div> |
| 130 | <?php do_action('wpdm_access_control_settings', $post->ID); ?> |
| 131 | </div> |
| 132 | </div> |
| 133 | |
| 134 | |
| 135 | |
| 136 | <!-- Templates Section --> |
| 137 | <div class="panel panel-default"> |
| 138 | <div class="panel-heading"> |
| 139 | <svg class="wpdm-settings-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="9" y1="21" x2="9" y2="9"/></svg> |
| 140 | <span><?php _e('Templates', 'download-manager'); ?></span> |
| 141 | </div> |
| 142 | <div class="panel-body"><div class="row"> |
| 143 | <div class="col-md-6" id="page_template_row"> |
| 144 | <label class="wpdm-settings-label"><?php _e('Page Template', 'download-manager'); ?></label> |
| 145 | <?php echo WPDM()->packageTemplate->dropdown(array('type'=>'page','name' => 'file[page_template]', 'id'=>'pge_tpl', 'selected' => get_post_meta($post->ID,'__wpdm_page_template',true), 'class' => 'form-control'), true); ?> |
| 146 | </div> |
| 147 | </div></div> |
| 148 | </div> |
| 149 | |
| 150 | <?php if(isset($_GET['post']) && $_GET['post'] != ''): ?> |
| 151 | <!-- Master Key Section --> |
| 152 | <div class="panel panel-default"> |
| 153 | <div class="panel-heading"> |
| 154 | <svg class="wpdm-settings-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"/></svg> |
| 155 | <span><?php _e('Master Key', 'download-manager'); ?></span> |
| 156 | </div> |
| 157 | <div class="panel-body"><div class="row"> |
| 158 | <div class="col-md-12"> |
| 159 | <label class="wpdm-settings-label"><?php _e('Direct Download Key', 'download-manager'); ?></label> |
| 160 | <div class="wpdm-master-key-field"> |
| 161 | <input type="text" class="form-control" style="font-family: monospace; flex: 1;" readonly="readonly" value="<?php echo get_post_meta($post->ID, '__wpdm_masterkey', true); ?>" /> |
| 162 | <button type="button" class="btn btn-light wpdm-btn-copy" onclick="navigator.clipboard.writeText(this.previousElementSibling.value)" title="<?php _e('Copy to clipboard', 'download-manager'); ?>"> |
| 163 | <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg> |
| 164 | </button> |
| 165 | </div> |
| 166 | <label class="wpdm-checkbox-label"> |
| 167 | <input type="checkbox" value="1" name="reset_key" /> |
| 168 | <span><?php _e('Regenerate master key', 'download-manager'); ?></span> |
| 169 | </label> |
| 170 | <span class="wpdm-settings-hint"><?php _e('This key can be used for direct download without authentication', 'download-manager'); ?></span> |
| 171 | </div> |
| 172 | </div></div> |
| 173 | </div> |
| 174 | <?php endif; ?> |
| 175 | |
| 176 | <?php do_action("wpdm_package_settings_panel", $post->ID); ?> |
| 177 | </div> |
| 178 | </div> |
| 179 | |
| 180 | <div class="wpdm-tabs__panel" data-panel="lock-options"> |
| 181 | <?php include wpdm_admin_tpl_path("metaboxes/lock-options.php"); ?> |
| 182 | </div> |
| 183 | |
| 184 | <div class="wpdm-tabs__panel" data-panel="package-icons"> |
| 185 | <?php include wpdm_admin_tpl_path("metaboxes/icons.php"); ?> |
| 186 | </div> |
| 187 | |
| 188 | <?php foreach($etabs as $id => $tab){ |
| 189 | echo "<div class='wpdm-tabs__panel' data-panel='" . esc_attr($id) . "'>"; |
| 190 | call_user_func($tab['callback']); |
| 191 | echo "</div>"; |
| 192 | } ?> |
| 193 | </div> |
| 194 | </div> |
| 195 | <?php if(!file_exists(dirname(WPDM_BASE_DIR).'/wpdm-premium-packages/wpdm-premium-packages.php')){ ?> |
| 196 | <div class="w3eden" id="wpdm-activate-shop"><br/> |
| 197 | <div class="alert alert-warning" id="wpdm-activate-shop-info" style="background-image: none !important;border-radius:0 !important;margin:0;background:#d7b75d33;border:0;text-align:center;"> |
| 198 | |
| 199 | Planning to sell your digital products? <a style="font-weight: 900" href="#" id="wpdm-activate-shop-link">Activate Digital Store Option</a> |
| 200 | |
| 201 | </div> |
| 202 | |
| 203 | <script> |
| 204 | jQuery(function(){ |
| 205 | jQuery('#wpdm-activate-shop-link').on('click', function(){ |
| 206 | jQuery(this).html('Activating...') |
| 207 | jQuery.post(ajaxurl,{action:'wpdm-activate-shop', wpdmappnonce: '<?php echo wp_create_nonce(WPDM_PRI_NONCE) ?>'}, function(res){ |
| 208 | jQuery('#wpdm-activate-shop-info').html(res); |
| 209 | }); |
| 210 | return false; |
| 211 | }); |
| 212 | }); |
| 213 | </script> |
| 214 | |
| 215 | </div> |
| 216 | <?php } ?> |
| 217 | |
| 218 | </div> |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 | <!-- all js ------> |
| 228 | |
| 229 | <script type="text/javascript"> |
| 230 | |
| 231 | jQuery(function($) { |
| 232 | |
| 233 | // WPDM Tabs - Custom Tab System |
| 234 | (function() { |
| 235 | var $tabs = $('#all-package-settings .wpdm-tabs'); |
| 236 | if (!$tabs.length) return; |
| 237 | |
| 238 | var $buttons = $tabs.find('.wpdm-tabs__btn'); |
| 239 | var $panels = $tabs.find('.wpdm-tabs__panel'); |
| 240 | |
| 241 | $buttons.on('click', function(e) { |
| 242 | e.preventDefault(); |
| 243 | var $btn = $(this); |
| 244 | var tabId = $btn.data('tab'); |
| 245 | |
| 246 | // Update button states |
| 247 | $buttons.removeClass('active'); |
| 248 | $btn.addClass('active'); |
| 249 | |
| 250 | // Update panel states |
| 251 | $panels.removeClass('active'); |
| 252 | $panels.filter('[data-panel="' + tabId + '"]').addClass('active'); |
| 253 | |
| 254 | // Store in localStorage for persistence |
| 255 | try { |
| 256 | localStorage.setItem('wpdm_active_tab', tabId); |
| 257 | } catch(e) {} |
| 258 | }); |
| 259 | |
| 260 | // Restore last active tab |
| 261 | try { |
| 262 | var savedTab = localStorage.getItem('wpdm_active_tab'); |
| 263 | if (savedTab && $buttons.filter('[data-tab="' + savedTab + '"]').length) { |
| 264 | $buttons.filter('[data-tab="' + savedTab + '"]').trigger('click'); |
| 265 | } |
| 266 | } catch(e) {} |
| 267 | })(); |
| 268 | |
| 269 | // Radio button toggle - fallback for browsers without :has() support |
| 270 | function updateRadioStates() { |
| 271 | $('.wpdm-radio-option').removeClass('active'); |
| 272 | $('.wpdm-radio-option input[type="radio"]:checked').closest('.wpdm-radio-option').addClass('active'); |
| 273 | } |
| 274 | updateRadioStates(); |
| 275 | $(document).on('change', '.wpdm-radio-option input[type="radio"]', updateRadioStates); |
| 276 | |
| 277 | // Uploading files |
| 278 | var file_frame; |
| 279 | |
| 280 | |
| 281 | |
| 282 | jQuery('body').on('click','#img', function( event ){ |
| 283 | |
| 284 | event.preventDefault(); |
| 285 | |
| 286 | // If the media frame already exists, reopen it. |
| 287 | if ( file_frame ) { |
| 288 | file_frame.open(); |
| 289 | return; |
| 290 | } |
| 291 | |
| 292 | // Create the media frame. |
| 293 | file_frame = wp.media.frames.file_frame = wp.media({ |
| 294 | title: jQuery( this ).data( 'uploader_title' ), |
| 295 | button: { |
| 296 | text: jQuery( this ).data( 'uploader_button_text' ), |
| 297 | }, |
| 298 | multiple: false // Set to true to allow multiple files to be selected |
| 299 | }); |
| 300 | |
| 301 | // When an image is selected, run a callback. |
| 302 | file_frame.on( 'select', function() { |
| 303 | // We set multiple to false so only get one image from the uploader |
| 304 | attachment = file_frame.state().get('selection').first().toJSON(); |
| 305 | jQuery('#fpvw').val(attachment.url); |
| 306 | jQuery('#rmvp').remove(); |
| 307 | jQuery('#img').html("<img src='"+attachment.url+"' style='max-width:100%'/><input type='hidden' name='file[preview]' value='"+attachment.url+"' >"); |
| 308 | jQuery('#img').after('<a href="#" id="rmvp"> <img style="width:16px;height:16px" align="left" src="<?php echo plugins_url('/download-manager/images/delete.svg'); ?>" /> Remove Preview Image</a>'); |
| 309 | file_frame.close(); |
| 310 | // Do something with attachment.id and/or attachment.url here |
| 311 | }); |
| 312 | |
| 313 | // Finally, open the modal |
| 314 | file_frame.open(); |
| 315 | }); |
| 316 | |
| 317 | |
| 318 | /*jQuery('body').on('click', ".cb-enable",function(){ |
| 319 | var parent = jQuery(this).parents('.switch'); |
| 320 | jQuery('.cb-disable',parent).removeClass('selected'); |
| 321 | jQuery(this).addClass('selected'); |
| 322 | jQuery('.checkbox',parent).attr('checked', true); |
| 323 | }); |
| 324 | jQuery('body').on('click', ".cb-disable",function(){ |
| 325 | var parent = jQuery(this).parents('.switch'); |
| 326 | jQuery('.cb-enable',parent).removeClass('selected'); |
| 327 | jQuery(this).addClass('selected'); |
| 328 | jQuery('.checkbox',parent).attr('checked', false); |
| 329 | });*/ |
| 330 | |
| 331 | var n = 0; |
| 332 | |
| 333 | /*jQuery('body').on('click', '.wpdm-label',function(){ |
| 334 | if(jQuery(this).hasClass('wpdm-checked')) jQuery(this).addClass('wpdm-unchecked').removeClass('wpdm-checked'); |
| 335 | else jQuery(this).addClass('wpdm-checked').removeClass('wpdm-unchecked'); |
| 336 | |
| 337 | });*/ |
| 338 | |
| 339 | |
| 340 | |
| 341 | jQuery("#wpdm-settings select").select2({no_results_text: "", width: "100%", minimumResultsForSearch: 6}); |
| 342 | |
| 343 | jQuery('.handlediv').click(function(){ |
| 344 | jQuery(this).parent().find('.inside').slideToggle(); |
| 345 | }); |
| 346 | |
| 347 | |
| 348 | |
| 349 | |
| 350 | jQuery('.nopro').click(function(){ |
| 351 | if(this.checked) jQuery('.wpdmlock').removeAttr('checked'); |
| 352 | }); |
| 353 | |
| 354 | jQuery('.wpdmlock').click(function(){ |
| 355 | if(this.checked) { |
| 356 | jQuery('#'+jQuery(this).attr('rel')).slideDown(); |
| 357 | jQuery('.nopro').removeAttr('checked'); |
| 358 | } else { |
| 359 | jQuery('#'+jQuery(this).attr('rel')).slideUp(); |
| 360 | } |
| 361 | }); |
| 362 | |
| 363 | jQuery('.w3eden .info.fa-solid').tooltip({html:true, placement: 'top'}); |
| 364 | |
| 365 | /*$('body').on('click', '#all-package-settings .nav-tabs a', function (e) { |
| 366 | e.preventDefault(); |
| 367 | $('#all-package-settings .nav-tabs li').removeClass('active'); |
| 368 | $(this).parent('li').addClass('active'); |
| 369 | $('#all-package-settings .tab-pane').removeClass('active in'); |
| 370 | $($(this).attr('href')).addClass('active in'); |
| 371 | });*/ |
| 372 | |
| 373 | |
| 374 | |
| 375 | }); |
| 376 | |
| 377 | |
| 378 | function generatepass(id){ |
| 379 | wpdm_pass_target = '#'+id; |
| 380 | var tpl = document.getElementById('generatepass-tpl'); |
| 381 | if (typeof WPDM !== 'undefined' && WPDM.dialog && tpl) { |
| 382 | WPDM.dialog.show({ |
| 383 | title: '<?php echo esc_js(__("Generate Password", "download-manager")); ?>', |
| 384 | content: tpl.innerHTML, |
| 385 | size: 'md', |
| 386 | icon: false, |
| 387 | backdrop: 'static' |
| 388 | }); |
| 389 | } else { |
| 390 | jQuery('#generatepass').modal('show'); |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | function wpdm_view_package(){ |
| 395 | |
| 396 | } |
| 397 | |
| 398 | |
| 399 | |
| 400 | |
| 401 | <?php /* if(is_array($file)&&get_post_meta($file['id'],'__wpdm_lock',true)!='') { ?> |
| 402 | jQuery('#<?php echo get_post_meta($file['id'],'__wpdm_lock',true); ?>').show(); |
| 403 | <?php } */ ?> |
| 404 | </script> |
| 405 | |
| 406 | <style> |
| 407 | /* ======================================== |
| 408 | WPDM Settings Panel - Synced with admin-styles.css |
| 409 | Uses CSS variables from base.css |
| 410 | ======================================== */ |
| 411 | |
| 412 | .wpdm-tabs { |
| 413 | display: flex; |
| 414 | gap: 0; |
| 415 | background: #fff; |
| 416 | border-radius: 8px; |
| 417 | overflow: hidden; |
| 418 | } |
| 419 | |
| 420 | /* Tab Navigation */ |
| 421 | .wpdm-tabs__nav { |
| 422 | flex: 0 0 200px; |
| 423 | background: linear-gradient(180deg, #f8f9fb 0%, #f3f4f7 100%); |
| 424 | min-width: 220px; |
| 425 | border-right: 1px solid #e1e5eb; |
| 426 | padding: 8px; |
| 427 | display: flex; |
| 428 | flex-direction: column; |
| 429 | gap: 2px; |
| 430 | } |
| 431 | |
| 432 | .wpdm-tabs__btn { |
| 433 | display: flex; |
| 434 | align-items: center; |
| 435 | gap: 10px; |
| 436 | width: 100%; |
| 437 | padding: 11px 14px; |
| 438 | border: none; |
| 439 | background: transparent; |
| 440 | color: #5a6270; |
| 441 | font-size: 13px; |
| 442 | font-weight: 500; |
| 443 | text-align: left; |
| 444 | cursor: pointer; |
| 445 | border-radius: 6px; |
| 446 | transition: all 0.15s ease; |
| 447 | position: relative; |
| 448 | white-space: nowrap; |
| 449 | } |
| 450 | |
| 451 | .wpdm-tabs__btn svg { |
| 452 | width: 18px; |
| 453 | height: 18px; |
| 454 | flex-shrink: 0; |
| 455 | opacity: 0.7; |
| 456 | } |
| 457 | |
| 458 | .wpdm-tabs__btn:hover { |
| 459 | background: rgba(255, 255, 255, 0.8); |
| 460 | color: #1e2533; |
| 461 | } |
| 462 | |
| 463 | .wpdm-tabs__btn:hover svg { |
| 464 | opacity: 1; |
| 465 | } |
| 466 | |
| 467 | .wpdm-tabs__btn.active { |
| 468 | background: #fff; |
| 469 | color: var(--admin-color, #3b74d5); |
| 470 | font-weight: 600; |
| 471 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06); |
| 472 | } |
| 473 | |
| 474 | .wpdm-tabs__btn.active svg { |
| 475 | opacity: 1; |
| 476 | color: var(--admin-color, #3b74d5); |
| 477 | } |
| 478 | |
| 479 | .wpdm-tabs__btn.active::before { |
| 480 | content: ''; |
| 481 | position: absolute; |
| 482 | left: 0; |
| 483 | top: 50%; |
| 484 | transform: translateY(-50%); |
| 485 | width: 3px; |
| 486 | height: 20px; |
| 487 | background: var(--admin-color, #3b74d5); |
| 488 | border-radius: 0 2px 2px 0; |
| 489 | } |
| 490 | |
| 491 | /* Tab Content */ |
| 492 | .wpdm-tabs__content { |
| 493 | flex: 1; |
| 494 | padding: 20px; |
| 495 | min-height: 400px; |
| 496 | background: #fff; |
| 497 | } |
| 498 | |
| 499 | .wpdm-tabs__panel { |
| 500 | display: none; |
| 501 | } |
| 502 | |
| 503 | .wpdm-tabs__panel.active { |
| 504 | display: block; |
| 505 | animation: wpdmTabFadeIn 0.2s ease; |
| 506 | } |
| 507 | |
| 508 | @keyframes wpdmTabFadeIn { |
| 509 | from { opacity: 0; transform: translateY(4px); } |
| 510 | to { opacity: 1; transform: translateY(0); } |
| 511 | } |
| 512 | |
| 513 | /* Panel Enhancements */ |
| 514 | .wpdm-settings-panel .panel { |
| 515 | margin-bottom: 12px; |
| 516 | } |
| 517 | |
| 518 | .wpdm-settings-panel .panel:last-child { |
| 519 | margin-bottom: 0; |
| 520 | } |
| 521 | |
| 522 | .wpdm-settings-panel .panel-heading { |
| 523 | display: flex; |
| 524 | align-items: center; |
| 525 | gap: 10px; |
| 526 | } |
| 527 | |
| 528 | .wpdm-settings-icon { |
| 529 | width: 16px; |
| 530 | height: 16px; |
| 531 | color: var(--admin-color, #3b74d5); |
| 532 | flex-shrink: 0; |
| 533 | opacity: 0.8; |
| 534 | } |
| 535 | |
| 536 | /* Labels */ |
| 537 | .wpdm-settings-label { |
| 538 | font-size: 10pt; |
| 539 | font-weight: 600; |
| 540 | color: #333; |
| 541 | display: inline-block; |
| 542 | } |
| 543 | |
| 544 | /* Hint Text */ |
| 545 | .wpdm-settings-hint { |
| 546 | font-size: 11px; |
| 547 | color: #888; |
| 548 | line-height: 1.4; |
| 549 | } |
| 550 | |
| 551 | /* Form Control Enhancements */ |
| 552 | .w3eden .form-control { |
| 553 | padding: 7px 10px; |
| 554 | font-size: 13px; |
| 555 | line-height: 1.5; |
| 556 | color: #333; |
| 557 | background: #ffffff; |
| 558 | border: 1px solid var(--border-color, #dde6ee); |
| 559 | border-radius: 3px; |
| 560 | transition: border-color 200ms ease, box-shadow 200ms ease; |
| 561 | outline: none; |
| 562 | height: auto; |
| 563 | } |
| 564 | |
| 565 | .w3eden .form-control:hover { |
| 566 | border-color: #b0c4d8; |
| 567 | } |
| 568 | |
| 569 | .w3eden .form-control:focus { |
| 570 | border-color: var(--admin-color, #3b74d5); |
| 571 | box-shadow: 0 0 0 2px rgba(59, 116, 213, 0.15); |
| 572 | } |
| 573 | |
| 574 | .wpdm-settings-panel .form-control::placeholder { |
| 575 | color: #aaa; |
| 576 | } |
| 577 | |
| 578 | /* Radio Group - Pill style */ |
| 579 | .wpdm-radio-group { |
| 580 | display: flex; |
| 581 | flex-wrap: wrap; |
| 582 | gap: 5px; |
| 583 | } |
| 584 | |
| 585 | .wpdm-radio-option { |
| 586 | display: inline-flex; |
| 587 | align-items: center; |
| 588 | gap: 8px; |
| 589 | padding: 6px 12px; |
| 590 | background: var(--bg-lighter, #fbfdff); |
| 591 | border: 1px solid var(--border-color, #dde6ee); |
| 592 | border-radius: 3px; |
| 593 | cursor: pointer; |
| 594 | transition: all 200ms ease; |
| 595 | margin: 0 !important; |
| 596 | position: relative; |
| 597 | } |
| 598 | |
| 599 | .wpdm-radio-option:hover { |
| 600 | background: var(--bg-light, #f7fafd); |
| 601 | border-color: #b0c4d8; |
| 602 | } |
| 603 | |
| 604 | .wpdm-radio-option input[type="radio"] { |
| 605 | position: absolute; |
| 606 | opacity: 0; |
| 607 | pointer-events: none; |
| 608 | width: 0; |
| 609 | height: 0; |
| 610 | } |
| 611 | |
| 612 | .wpdm-radio-btn { |
| 613 | width: 16px; |
| 614 | height: 16px; |
| 615 | border: 2px solid #c0c8d0; |
| 616 | border-radius: 50%; |
| 617 | position: relative; |
| 618 | transition: all 200ms ease; |
| 619 | flex-shrink: 0; |
| 620 | background: #fff; |
| 621 | left: 6px; |
| 622 | position: absolute; |
| 623 | margin-top: 1px; |
| 624 | } |
| 625 | |
| 626 | .wpdm-radio-btn::after { |
| 627 | content: ''; |
| 628 | position: absolute; |
| 629 | top: 50%; |
| 630 | left: 50%; |
| 631 | transform: translate(-50%, -50%) scale(0); |
| 632 | width: 8px; |
| 633 | height: 8px; |
| 634 | background: var(--admin-color, #3b74d5); |
| 635 | border-radius: 50%; |
| 636 | transition: transform 200ms ease; |
| 637 | } |
| 638 | |
| 639 | .wpdm-radio-text { |
| 640 | font-size: 12px; |
| 641 | color: #555; |
| 642 | transition: color 200ms ease; |
| 643 | } |
| 644 | |
| 645 | /* Checked state */ |
| 646 | .wpdm-radio-option.active .wpdm-radio-btn, |
| 647 | .wpdm-radio-option:has(input[type="radio"]:checked) .wpdm-radio-btn { |
| 648 | border-color: var(--admin-color, #3b74d5); |
| 649 | } |
| 650 | |
| 651 | .wpdm-radio-option.active .wpdm-radio-btn::after, |
| 652 | .wpdm-radio-option:has(input[type="radio"]:checked) .wpdm-radio-btn::after { |
| 653 | transform: translate(-50%, -50%) scale(1); |
| 654 | } |
| 655 | |
| 656 | .wpdm-radio-option.active .wpdm-radio-text, |
| 657 | .wpdm-radio-option:has(input[type="radio"]:checked) .wpdm-radio-text { |
| 658 | color: var(--admin-color, #3b74d5); |
| 659 | font-weight: 600; |
| 660 | } |
| 661 | |
| 662 | .wpdm-radio-option.active, |
| 663 | .wpdm-radio-option:has(input[type="radio"]:checked) { |
| 664 | background: rgba(59, 116, 213, 0.08); |
| 665 | border-color: var(--admin-color, #3b74d5); |
| 666 | } |
| 667 | |
| 668 | /* Checkbox Styling - Custom style separate from toggle */ |
| 669 | .wpdm-checkbox-label { |
| 670 | display: inline-flex; |
| 671 | align-items: center; |
| 672 | gap: 6px; |
| 673 | cursor: pointer; |
| 674 | font-size: 12px; |
| 675 | color: #555; |
| 676 | margin: 0 !important; |
| 677 | } |
| 678 | |
| 679 | .wpdm-checkbox-label .wpdm-checkbox { |
| 680 | -webkit-appearance: checkbox !important; |
| 681 | appearance: checkbox !important; |
| 682 | width: 14px !important; |
| 683 | height: 14px !important; |
| 684 | margin: 0 !important; |
| 685 | cursor: pointer; |
| 686 | } |
| 687 | |
| 688 | .wpdm-checkbox-label .wpdm-checkbox:after, |
| 689 | .wpdm-checkbox-label .wpdm-checkbox:before { |
| 690 | display: none !important; |
| 691 | } |
| 692 | |
| 693 | /* Master Key Field */ |
| 694 | .wpdm-master-key-field { |
| 695 | display: flex; |
| 696 | gap: 6px; |
| 697 | align-items: stretch; |
| 698 | } |
| 699 | |
| 700 | .wpdm-btn-copy { |
| 701 | display: inline-flex; |
| 702 | align-items: center; |
| 703 | justify-content: center; |
| 704 | padding: 7px 10px; |
| 705 | background: var(--bg-light, #f7fafd); |
| 706 | border: 1px solid var(--border-color, #dde6ee); |
| 707 | border-radius: 3px; |
| 708 | cursor: pointer; |
| 709 | transition: all 200ms ease; |
| 710 | color: #666; |
| 711 | } |
| 712 | |
| 713 | .wpdm-btn-copy:hover { |
| 714 | background: #e8f0f8; |
| 715 | border-color: var(--admin-color, #3b74d5); |
| 716 | color: var(--admin-color, #3b74d5); |
| 717 | } |
| 718 | .w3eden input[type=checkbox]{ margin-top: 2px; } |
| 719 | |
| 720 | /* Responsive */ |
| 721 | @media (max-width: 782px) { |
| 722 | .wpdm-radio-group { |
| 723 | flex-direction: column; |
| 724 | } |
| 725 | } |
| 726 | |
| 727 | /* Legacy overrides */ |
| 728 | .w3eden .tooltip-inner{ border-radius: 4px !important; padding: 16px !important; text-align: left; font-size: 12px; max-width: 250px; } |
| 729 | .w3eden input[type=radio]{ margin-top: 0; } |
| 730 | .form-control.input-sm{ display: inline; } |
| 731 | |
| 732 | .ui-tabs .ui-tabs-nav li a{ |
| 733 | font-size: 10pt !important; |
| 734 | outline: none !important; |
| 735 | |
| 736 | } |
| 737 | .ui-tabs .ui-tabs-nav li{ |
| 738 | margin-bottom: 0 !important; |
| 739 | border-bottom: 1px solid #dddddd !important; |
| 740 | } |
| 741 | |
| 742 | .ui-tabs .ui-tabs-nav li.ui-state-active{ |
| 743 | border-bottom: 1px solid #ffffff !important; |
| 744 | } |
| 745 | .wdmiconfile{ |
| 746 | -webkit-border-radius: 6px; |
| 747 | -moz-border-radius: 6px; |
| 748 | border-radius: 6px; |
| 749 | } |
| 750 | |
| 751 | |
| 752 | /* .w3eden input[type=radio], .w3eden label{ margin: 0 !important;}*/ |
| 753 | |
| 754 | #wpdm-files_length{ |
| 755 | display: none; |
| 756 | } |
| 757 | #wpdm-files_filter{ |
| 758 | margin-bottom:10px !important; |
| 759 | } |
| 760 | .adp-ui-state-highlight{ |
| 761 | width:50px; |
| 762 | height:50px; |
| 763 | background: #fff; |
| 764 | float:left; |
| 765 | padding: 4px; |
| 766 | border:1px solid #aaa; |
| 767 | } |
| 768 | #wpdm-files tbody .ui-sortable-helper{ |
| 769 | background: transparent; |
| 770 | |
| 771 | } |
| 772 | #wpdm-files tbody .ui-sortable-helper td{ |
| 773 | vertical-align: middle; |
| 774 | background: #eeeeee; |
| 775 | } |
| 776 | input[type=text]{ |
| 777 | padding: 4px 7px; |
| 778 | border-radius: 3px; |
| 779 | } |
| 780 | |
| 781 | |
| 782 | .dfile{background: #ffdfdf;} |
| 783 | .cfile{ |
| 784 | cursor: move; |
| 785 | } |
| 786 | .cfile img, .dfile img{cursor: pointer;} |
| 787 | |
| 788 | #editorcontainer textarea{border:0px;width:99.9%;} |
| 789 | #icon_uploadUploader,#file_uploadUploader {background: transparent url('<?php echo plugins_url(); ?>/download-manager/images/browse.png') left top no-repeat; } |
| 790 | #icon_uploadUploader:hover,#file_uploadUploader:hover {background-position: left bottom; } |
| 791 | .frm td{line-height: 30px; border-bottom: 1px solid #EEEEEE; padding:5px; font-size:9pt;font-family: Tahoma;} |
| 792 | |
| 793 | .fwpdmlock td{ |
| 794 | border:0px !important; |
| 795 | vertical-align: middle !important; |
| 796 | } |
| 797 | #filelist { |
| 798 | margin-top: 10px; |
| 799 | } |
| 800 | #filelist .file{ |
| 801 | margin-top: 5px; |
| 802 | padding: 0px 10px; |
| 803 | color:#444; |
| 804 | display: block; |
| 805 | margin-bottom: 5px; |
| 806 | font-weight: normal; |
| 807 | } |
| 808 | |
| 809 | table.widefat{ |
| 810 | border-bottom:0px; |
| 811 | } |
| 812 | |
| 813 | .genpass{ |
| 814 | cursor: pointer; |
| 815 | } |
| 816 | |
| 817 | h3, |
| 818 | h3.handle{ |
| 819 | cursor: default !important; |
| 820 | } |
| 821 | |
| 822 | |
| 823 | @-webkit-keyframes progress-bar-stripes { |
| 824 | from { |
| 825 | background-position: 40px 0; |
| 826 | } |
| 827 | to { |
| 828 | background-position: 0 0; |
| 829 | } |
| 830 | } |
| 831 | |
| 832 | @-moz-keyframes progress-bar-stripes { |
| 833 | from { |
| 834 | background-position: 40px 0; |
| 835 | } |
| 836 | to { |
| 837 | background-position: 0 0; |
| 838 | } |
| 839 | } |
| 840 | |
| 841 | @-ms-keyframes progress-bar-stripes { |
| 842 | from { |
| 843 | background-position: 40px 0; |
| 844 | } |
| 845 | to { |
| 846 | background-position: 0 0; |
| 847 | } |
| 848 | } |
| 849 | |
| 850 | @-o-keyframes progress-bar-stripes { |
| 851 | from { |
| 852 | background-position: 0 0; |
| 853 | } |
| 854 | to { |
| 855 | background-position: 40px 0; |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | @keyframes progress-bar-stripes { |
| 860 | from { |
| 861 | background-position: 40px 0; |
| 862 | } |
| 863 | to { |
| 864 | background-position: 0 0; |
| 865 | } |
| 866 | } |
| 867 | |
| 868 | .progress { |
| 869 | height: 15px; |
| 870 | margin-bottom: 10px; |
| 871 | overflow: hidden; |
| 872 | background-color: #f7f7f7; |
| 873 | background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9); |
| 874 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9)); |
| 875 | background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9); |
| 876 | background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9); |
| 877 | background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9); |
| 878 | background-repeat: repeat-x; |
| 879 | -webkit-border-radius: 4px; |
| 880 | -moz-border-radius: 4px; |
| 881 | border-radius: 4px; |
| 882 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0); |
| 883 | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); |
| 884 | -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); |
| 885 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); |
| 886 | } |
| 887 | |
| 888 | .progress .bar { |
| 889 | float: left; |
| 890 | width: 0; |
| 891 | height: 100%; |
| 892 | font-size: 12px; |
| 893 | color: #ffffff; |
| 894 | text-align: center; |
| 895 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); |
| 896 | background-color: #0e90d2; |
| 897 | background-image: -moz-linear-gradient(top, #149bdf, #0480be); |
| 898 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be)); |
| 899 | background-image: -webkit-linear-gradient(top, #149bdf, #0480be); |
| 900 | background-image: -o-linear-gradient(top, #149bdf, #0480be); |
| 901 | background-image: linear-gradient(to bottom, #149bdf, #0480be); |
| 902 | background-repeat: repeat-x; |
| 903 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0); |
| 904 | -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); |
| 905 | -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); |
| 906 | box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); |
| 907 | -webkit-box-sizing: border-box; |
| 908 | -moz-box-sizing: border-box; |
| 909 | box-sizing: border-box; |
| 910 | -webkit-transition: width 0.6s ease; |
| 911 | -moz-transition: width 0.6s ease; |
| 912 | -o-transition: width 0.6s ease; |
| 913 | transition: width 0.6s ease; |
| 914 | } |
| 915 | |
| 916 | .progress .bar + .bar { |
| 917 | -webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); |
| 918 | -moz-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); |
| 919 | box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); |
| 920 | } |
| 921 | |
| 922 | .progress-striped .bar { |
| 923 | background-color: #149bdf; |
| 924 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); |
| 925 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 926 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 927 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 928 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 929 | -webkit-background-size: 40px 40px; |
| 930 | -moz-background-size: 40px 40px; |
| 931 | -o-background-size: 40px 40px; |
| 932 | background-size: 40px 40px; |
| 933 | } |
| 934 | |
| 935 | .progress.active .bar { |
| 936 | -webkit-animation: progress-bar-stripes 2s linear infinite; |
| 937 | -moz-animation: progress-bar-stripes 2s linear infinite; |
| 938 | -ms-animation: progress-bar-stripes 2s linear infinite; |
| 939 | -o-animation: progress-bar-stripes 2s linear infinite; |
| 940 | animation: progress-bar-stripes 2s linear infinite; |
| 941 | } |
| 942 | |
| 943 | .progress-danger .bar, |
| 944 | .progress .bar-danger { |
| 945 | background-color: #dd514c; |
| 946 | background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35); |
| 947 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35)); |
| 948 | background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35); |
| 949 | background-image: -o-linear-gradient(top, #ee5f5b, #c43c35); |
| 950 | background-image: linear-gradient(to bottom, #ee5f5b, #c43c35); |
| 951 | background-repeat: repeat-x; |
| 952 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0); |
| 953 | } |
| 954 | |
| 955 | .progress-danger.progress-striped .bar, |
| 956 | .progress-striped .bar-danger { |
| 957 | background-color: #ee5f5b; |
| 958 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); |
| 959 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 960 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 961 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 962 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 963 | } |
| 964 | |
| 965 | .progress-success .bar, |
| 966 | .progress .bar-success { |
| 967 | background-color: #5eb95e; |
| 968 | background-image: -moz-linear-gradient(top, #62c462, #57a957); |
| 969 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957)); |
| 970 | background-image: -webkit-linear-gradient(top, #62c462, #57a957); |
| 971 | background-image: -o-linear-gradient(top, #62c462, #57a957); |
| 972 | background-image: linear-gradient(to bottom, #62c462, #57a957); |
| 973 | background-repeat: repeat-x; |
| 974 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0); |
| 975 | } |
| 976 | |
| 977 | .progress-success.progress-striped .bar, |
| 978 | .progress-striped .bar-success { |
| 979 | background-color: #62c462; |
| 980 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); |
| 981 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 982 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 983 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 984 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 985 | } |
| 986 | |
| 987 | .progress-info .bar, |
| 988 | .progress .bar-info { |
| 989 | background-color: #4bb1cf; |
| 990 | background-image: -moz-linear-gradient(top, #5bc0de, #339bb9); |
| 991 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9)); |
| 992 | background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9); |
| 993 | background-image: -o-linear-gradient(top, #5bc0de, #339bb9); |
| 994 | background-image: linear-gradient(to bottom, #5bc0de, #339bb9); |
| 995 | background-repeat: repeat-x; |
| 996 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0); |
| 997 | } |
| 998 | |
| 999 | .progress-info.progress-striped .bar, |
| 1000 | .progress-striped .bar-info { |
| 1001 | background-color: #5bc0de; |
| 1002 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); |
| 1003 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1004 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1005 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1006 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1007 | } |
| 1008 | |
| 1009 | .progress-warning .bar, |
| 1010 | .progress .bar-warning { |
| 1011 | background-color: #faa732; |
| 1012 | background-image: -moz-linear-gradient(top, #fbb450, #f89406); |
| 1013 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); |
| 1014 | background-image: -webkit-linear-gradient(top, #fbb450, #f89406); |
| 1015 | background-image: -o-linear-gradient(top, #fbb450, #f89406); |
| 1016 | background-image: linear-gradient(to bottom, #fbb450, #f89406); |
| 1017 | background-repeat: repeat-x; |
| 1018 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0); |
| 1019 | } |
| 1020 | |
| 1021 | .progress-warning.progress-striped .bar, |
| 1022 | .progress-striped .bar-warning { |
| 1023 | background-color: #fbb450; |
| 1024 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); |
| 1025 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1026 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1027 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1028 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1029 | } |
| 1030 | #access{ |
| 1031 | width: 250px; |
| 1032 | } |
| 1033 | |
| 1034 | #nxt{ |
| 1035 | background-color: #C1F4C1; |
| 1036 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); |
| 1037 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1038 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1039 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1040 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); |
| 1041 | -webkit-background-size: 40px 40px; |
| 1042 | -moz-background-size: 40px 40px; |
| 1043 | -o-background-size: 40px 40px; |
| 1044 | background-size: 40px 40px; |
| 1045 | display: none; |
| 1046 | border-bottom:1px solid #008000; |
| 1047 | color: #0C490C;font-family:'Courier New';padding:5px 10px;text-align: center; |
| 1048 | } |
| 1049 | |
| 1050 | #serr{ |
| 1051 | display: none;margin-top: 5px;border:1px solid #800000;background: #FFEDED;color: #000;font-family:'Courier New';padding:5px 10px;text-align: left; |
| 1052 | } |
| 1053 | .action #nxt{ |
| 1054 | width:100%; |
| 1055 | position: fixed; |
| 1056 | top:0px;left:0px;z-index:999999; |
| 1057 | } |
| 1058 | #nxt a{ |
| 1059 | font-weight: bold; |
| 1060 | color:#0C490C; |
| 1061 | } |
| 1062 | |
| 1063 | .action-float{ |
| 1064 | position:fixed;top:-33px;left:0px;width:100%;z-index:999999;text-align:right; |
| 1065 | background: rgba(0,0,0,0.9); |
| 1066 | } |
| 1067 | |
| 1068 | .action .inside, |
| 1069 | .action-float .inside{ |
| 1070 | margin: 0px; |
| 1071 | } |
| 1072 | |
| 1073 | .action-float #serr{ |
| 1074 | width:500px; |
| 1075 | float: left; |
| 1076 | margin: 4px; |
| 1077 | z-index:999999; |
| 1078 | margin-top:-50px; |
| 1079 | border:1px solid #800000; |
| 1080 | } |
| 1081 | .action-float #nxt{ |
| 1082 | width:500px; |
| 1083 | float: left; |
| 1084 | margin: 4px; |
| 1085 | z-index:999999; |
| 1086 | margin-top:-40px; |
| 1087 | border:1px solid #008000; |
| 1088 | } |
| 1089 | |
| 1090 | .wpdm-accordion > div{ |
| 1091 | padding:10px; |
| 1092 | } |
| 1093 | |
| 1094 | /*.wpdmlock {*/ |
| 1095 | /*opacity:0;*/ |
| 1096 | /*}*/ |
| 1097 | /*.wpdmlock+label {*/ |
| 1098 | |
| 1099 | /*width:16px;*/ |
| 1100 | /*height:16px;*/ |
| 1101 | /*vertical-align:middle;*/ |
| 1102 | /*}*/ |
| 1103 | |
| 1104 | .w3eden .panel{ |
| 1105 | padding: 0 !important; |
| 1106 | } |
| 1107 | .w3eden .wpdmlock{ |
| 1108 | margin: 0 5px 0 0 !important; |
| 1109 | } |
| 1110 | .wpdm-unchecked{ |
| 1111 | display: inline-block; |
| 1112 | float: left; |
| 1113 | width: 21px; |
| 1114 | height: 21px; |
| 1115 | padding: 0px; |
| 1116 | margin: 0px; |
| 1117 | cursor: hand; |
| 1118 | padding: 3px; |
| 1119 | margin-top: -4px !important; |
| 1120 | background-image: url('<?php echo plugins_url('/download-manager/assets/images/CheckBox.png'); ?>'); |
| 1121 | background-position: -21px 0px; |
| 1122 | } |
| 1123 | .wpdm-checked{ |
| 1124 | display: inline-block; |
| 1125 | float: left; |
| 1126 | width: 21px; |
| 1127 | height: 21px; |
| 1128 | padding: 0px; |
| 1129 | margin: 0px; |
| 1130 | cursor: hand; |
| 1131 | padding: 3px; |
| 1132 | margin-top: -4px !important; |
| 1133 | background-image: url('<?php echo plugins_url('/download-manager/assets/images/CheckBox.png'); ?>'); |
| 1134 | background-position: 0px 0px; |
| 1135 | } |
| 1136 | .switch label { cursor: pointer; } |
| 1137 | /*.switch input { display: none; }*/ |
| 1138 | p.field.switch{ |
| 1139 | margin:0px;display:block;float:left; |
| 1140 | } |
| 1141 | .wpdm-accordion.w3eden .panel-default{ |
| 1142 | margin-bottom: -2px !important; |
| 1143 | border-radius: 0; |
| 1144 | } |
| 1145 | .wpdm-accordion.w3eden .panel-default .panel-heading{ |
| 1146 | border-radius: 0; |
| 1147 | } |
| 1148 | .w3eden .chzn-choices{ |
| 1149 | background-image: none !important; |
| 1150 | border-radius: 3px; |
| 1151 | } |
| 1152 | .w3eden .chzn-choices input{ |
| 1153 | padding: 0; |
| 1154 | line-height: 10px; |
| 1155 | } |
| 1156 | .w3eden .chzn-container-multi .chzn-drop{ |
| 1157 | margin-top: 3px; |
| 1158 | border: 1px solid #5897fb !important; |
| 1159 | overflow: hidden; |
| 1160 | border-radius: 3px; |
| 1161 | padding: 10px 5px 10px 10px !important; |
| 1162 | } |
| 1163 | .w3eden .chzn-container-multi .chzn-drop li{ |
| 1164 | border-radius: 2px !important; |
| 1165 | margin-right: 10px !important; |
| 1166 | } |
| 1167 | .w3eden .info.fa-solid{ |
| 1168 | color: #666; |
| 1169 | } |
| 1170 | .w3eden .table td{ |
| 1171 | vertical-align: middle !important; |
| 1172 | } |
| 1173 | </style> |
| 1174 |