'.$marketing_h2.'

'.$marketing_p.'

'; foreach ($marketing_structure as $marketing => $folders){ echo ''.$marketing.''; } echo'
'; foreach ($marketing_structure as $marketing => $folders){ foreach($folders as $folder){ echo ' '.$folder.''; } } echo '
'; if (isset($product_group) && $product_group !='' && isset($product_content) && $product_content !=''){ echo '
'; $dir_name = $main_marketing_dir.$product_group.'/'.$product_content; $files = array_diff(scandir($dir_name), array('.', '..')); echo''; foreach ($files as $file) { $filetype = strtolower(pathinfo($file,PATHINFO_EXTENSION)); if ( $filetype != '' && $filetype != 'ds_store'){ echo '
'; if ( $filetype == "jpg" || $filetype == "png" || $filetype == "jpeg" || $filetype == "gif" || $filetype == "png"){ echo' '; } if ($filetype == "doc" || $filetype == "docx" || $filetype == "xls"|| $filetype == "xlsx"){ echo' '; } if ( $filetype == "pdf"){ echo' '.ucfirst(substr($file, 0, strpos($file, '.ucfirst(substr(substr($file, 0, strpos($file, ".")),0 ,25)).' '; } if ( $filetype == "mp4"){ echo' '; } echo'
'; } } echo '
'; } template_footer(); ?>