Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
j25j5 committed Jun 6, 2024
1 parent 6919867 commit 427e296
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Resources/contao/classes/VHUGUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@ public static function include_css(String $path) {
$GLOBALS['TL_CSS'][] = self::transformPath($filteredInput);
}
}

//bundles/tbutbasic/css/elements/ce_contact_with_ilustration_and_cta.scss|static
//assets/css/public_bundles_tbutbasic_css_elements_ce_text_with_animation_and_ilustration.scss.css


private static function transformPath($inputPath) {
$pathWithoutBundles = substr($inputPath, strlen('bundles/'));
$underscoredPath = 'public_bundles_' . str_replace('/', '_', $pathWithoutBundles);
$outputPath = 'assets/css/' . $underscoredPath . '.css';

dump($outputPath);
return $outputPath;
}
}

0 comments on commit 427e296

Please sign in to comment.