Skip to content

Commit

Permalink
[imp] Add the ability to use a custom CSS file with Protostar (Fix #4211
Browse files Browse the repository at this point in the history
)
  • Loading branch information
roland-d committed Aug 6, 2015
1 parent 6728957 commit bdfbb9f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/protostar/index.php
Expand Up @@ -42,6 +42,14 @@
// Add Stylesheets
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template.css');

// Check for a custom CSS file
$userCss = JPATH_SITE . '/templates/' . $this->template . '/css/user.css';

if (file_exists($userCss) && filesize($userCss) > 0)
{
$doc->addStyleSheet('templates/' . $this->template . '/css/user.css');
}

// Load optional RTL Bootstrap CSS
JHtml::_('bootstrap.loadCss', false, $this->direction);

Expand Down

0 comments on commit bdfbb9f

Please sign in to comment.