feat: Add npm dependencies and update vendor paths
- Add package.json dependencies: jquery, jquery-ui, moment, daterangepicker, wavesurfer.js, air-datepicker - Create scripts/setup-vendor.js to copy npm packages to public/assets/vendor - Update view templates to use vendor paths instead of old /js/ or CDN URLs - Clean up legacy commented-out scripts in master layout
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<?
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
* Change the path to your folder.
|
||||
|
||||
*
|
||||
|
||||
* This must be the full path from the root of your
|
||||
|
||||
* web space. If you're not sure what it is, ask your host.
|
||||
|
||||
*
|
||||
|
||||
* Name this file index.php and place in the directory.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// Define the full path to your folder from root
|
||||
|
||||
$path = "/var/www/vhosts/6fm.nl/httpdocs/img/icons/";
|
||||
|
||||
|
||||
|
||||
// Open the folder
|
||||
|
||||
$dir_handle = @opendir($path) or die("Unable to open $path");
|
||||
|
||||
|
||||
|
||||
// Loop through the files
|
||||
|
||||
while ($file = readdir($dir_handle)) {
|
||||
|
||||
|
||||
|
||||
if($file == "." || $file == ".." || $file == "index.php" )
|
||||
|
||||
|
||||
|
||||
continue;
|
||||
|
||||
echo "<img src=\"/img/icons/$file\">";
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Close
|
||||
|
||||
closedir($dir_handle);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user