Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ASTemplate {
- public function getStyleSheet($styleName = '', $stylesheet = '') {
- $templatePath = "template/" . $styleName . "/stylesheet/" . $stylesheet . ".css";
- switch (file_exists($templatePath)) {
- case (true):
- echo $templatePath;
- break;
- case (false):
- die ("Cannot locate the Template.");
- break;
- }
- }
- public function getImagePath($styleName = '') {
- $stylePath = "template/" . $styleName . "/images/";
- switch (file_exists($stylePath)) {
- case (true):
- echo $stylePath;
- break;
- case (false):
- die ("Cannot locate the Style Path.");
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement