PHP_Framework

Wh1t3projects' PHP framework. Small PHP framework for building web apps and websites

View the Project on GitHub

Syntax: theme_css(string $cssFile)

Get the external path (user-accessible) to the specified CSS file. The file must be located inside the CSS folder of the theme. If inside a sub-folder, it must be specified as a relative path.


Parameters

$cssFile
The file to get the path to.


Return values

The external path to the specified file.


Examples:

Print the path to the style.css file
echo theme_css('style.css');

Print the link element of the HEAD with the path to style.css from header.php
<link rel="stylesheet" href="<?php echo theme_css('style.css');?>"/>