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
1 week ago
package-settings.php
2 weeks ago
attach-file.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | $files = maybe_unserialize(get_post_meta($post->ID, '__wpdm_files', true)); |
| 4 | |
| 5 | if (!is_array($files)) $files = array(); |
| 6 | |
| 7 | include __DIR__.'/attach-file/upload-file.php'; |
| 8 | if(!defined("WPDM_DISABLE_REMOTE_URL_ATTACHMENT") || WPDM_DISABLE_REMOTE_URL_ATTACHMENT === false) |
| 9 | include __DIR__.'/attach-file/remote-url.php'; |
| 10 | if(!defined("WPDM_DISABLE_MEDIA_ATTACHMENT") || WPDM_DISABLE_MEDIA_ATTACHMENT === false) |
| 11 | include __DIR__.'/attach-file/media-library-file.php'; |
| 12 | if(!defined("WPDM_DISABLE_SERVER_FILE_ATTACHMENT") || WPDM_DISABLE_SERVER_FILE_ATTACHMENT === false) |
| 13 | include __DIR__.'/attach-file/server-file.php'; |
| 14 | |
| 15 | do_action("wpdm_attach_file_metabox"); |
| 16 | |
| 17 | if(!defined('WPDM_CLOUD_STORAGE')){ |
| 18 | ?> |
| 19 | <div class="w3eden"> |
| 20 | <br/> |
| 21 | <div class="panel panel-default" style="margin-bottom: 0"> |
| 22 | <div class="panel-body"> |
| 23 | <small><?php echo esc_attr__('To store files in cloud storage or to link files from cloud storage ( ex: DropBox, Google Drive, Amazon S3), please check our cloud storage add-ons', 'download-manager') ?></small> |
| 24 | </div> |
| 25 | <div class="panel-footer"><a target="_blank" class="btn wpdm-linkedin btn-nlock" href="https://www.wpdownloadmanager.com/downloads/cloud-storage/"><?php echo esc_attr__('Cloud Storage Add-ons', 'download-manager') ?></a></div> |
| 26 | </div> |
| 27 | </div> |
| 28 | <?php |
| 29 | } |
| 30 |