// Count total files
$countfiles = count($_FILES['file']['name']);
// Looping all files
for($i=0;$i<$countfiles;$i++){
$filename = $_FILES['file']['name'][$i];
$filename = str_replace(" ","_", $filename);
// Upload file
move_uploaded_file($_FILES['file']['tmp_name'][$i],'/upload/'.$filename);
$content = '<a href="/upload/'.$filename.'">'.$filename.'</a><br>';
}
// Count total files
$countfiles = count($_FILES['file']['name']);
// Looping all files
for($i=0;$i<$countfiles;$i++){
$filename = $_FILES['file']['name'][$i];
$filename = str_replace(" ","_", $filename);
// Upload file
move_uploaded_file($_FILES['file']['tmp_name'][$i],'/upload/'.$filename);
$content = '<a href="/upload/'.$filename.'">'.$filename.'</a><br>';
}
jQuery(document).ready(function ($){
jQuery('.size-radiobox i').on('click', function(e){
var html = $(this).text();
$(".mobile-select span").html(html)
})
});
if (~window.location.href.indexOf("add-to-cart")) {
jQuery(window).load(function(){
jQuery.magnificPopup.open({
items: {src: '#cartModal'},type: 'inline'}, 0);
});
}