Minify css
[gitphp.git] / templates / header.tpl
blob:a/templates/header.tpl -> blob:b/templates/header.tpl
--- a/templates/header.tpl
+++ b/templates/header.tpl
@@ -16,8 +16,16 @@
       <link rel="alternate" title="{$project->GetProject()} log (Atom)" href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&amp;a=atom" type="application/atom+xml" />
       <link rel="alternate" title="{$project->GetProject()} log (RSS)" href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&amp;a=rss" type="application/rss+xml" />
     {/if}
+    {if file_exists('css/gitphp.min.css')}
+    <link rel="stylesheet" href="css/gitphp.min.css" type="text/css" />
+    {else}
     <link rel="stylesheet" href="css/gitphp.css" type="text/css" />
-    <link rel="stylesheet" href="css/{$stylesheet}" type="text/css" />
+    {/if}
+    {if file_exists("css/$stylesheet.min.css")}
+    <link rel="stylesheet" href="css/{$stylesheet}.min.css" type="text/css" />
+    {else}
+    <link rel="stylesheet" href="css/{$stylesheet}.css" type="text/css" />
+    {/if}
     {if $extracss}
     <style type="text/css">
     {$extracss}

comments