first commit

This commit is contained in:
2024-11-10 21:08:49 +01:00
commit 0d932ce5ee
14455 changed files with 2567501 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
/**
* WP File Download
*
* @package WP File Download
* @author Joomunited
* @version 1.0
*/
// No direct access.
defined( 'ABSPATH' ) || die();
?>
<style>
ul.tagit{background: none;background-color:#f5f5f5;}
.wpfdparams ul.tagit {margin: 0 !important;}
.tagit-hidden-field{display:none;}
ul.tagit input[type="text"]{background-color: #f5f5f5;}
ul.tagit li {
font-weight: normal !important;
color: #6B6B6B !important;
font-size: 14px;
}
</style>
<?php echo $this->form; ?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#file_tags").tagit({
availableTags: <?php echo $this->allTagsFiles; ?>,
afterTagAdded:function(e){e.preventDefault();},
allowSpaces :true
});
});
<?php echo wpfd_calendartranslation();?>
</script>

View File

@@ -0,0 +1,34 @@
<?php
/**
* WP File Download
*
* @package WP File Download
* @author Joomunited
* @version 1.0
*/
$content = '';
if (!empty($this->versions)) {
$content .= '<table>';
foreach ($this->versions as $meta_id => $file) {
$version = '1';
$content .= '<tr>';
$content .= '<td><a href="admin-ajax.php?action=wpfd&task=file.download&version=' . $version . '&id=' . $this->file_id . '&vid=' . $file['meta_id'] . '&catid='.$file['catid'].'" >';
$content .= date("Y M d", strtotime($file['created_time'])) . ' ';
$content .= '</a></td>';
$content .= '<td>' . wpfdHelperFiles::bytesToSize($file['size']) . '</td>';
$content .= '<td>'.
'<a data-id="' . $this->file_id . '" data-vid="' . $file['meta_id'] . '" data-catid="'.$file['catid'].'" href="#" class="restore"><i class="icon-restore"></i></a>';
if(apply_filters('wpfdAddonCategoryFrom',$file['catid']) == 'dropbox'){
$content .= '';
}else{
$content .= '<a data-id="' . $this->file_id . '" data-vid="' . $file['meta_id'] . '" data-catid="'.$file['catid'].'" href="#" class="trash"><i class="icon-trash"></i></a></td>';
}
$content .= '</tr>';
}
$content .= '</table>';
}
echo $content;