@@ -19,9 +19,6 @@ if(!preg_match($pattern, $url)) | |||
include('../templates/'.$CONF['template'].'/header.php'); | |||
set_page_title("Teknik Git"); | |||
?> | |||
<script src="<?php echo get_page_url($CONF['page'], $CONF); ?>/templates/<?php echo $CONF['template']; ?>/js/codemirror/codemirror.js"></script> | |||
<?php | |||
} | |||
if (php_sapi_name() == 'cli-server' && file_exists(substr($_SERVER['REQUEST_URI'], 1))) { |
@@ -1,7 +1 @@ | |||
<!--[if lt IE 9]> | |||
<script src="{{ app.request.basepath }}/web/js/html5.js"></script> | |||
<![endif]--> | |||
{% block body %}{% endblock %} | |||
<script src="{{ app.request.basepath }}/web/js/raphael.js"></script> | |||
<script src="{{ app.request.basepath }}/web/js/codemirror.js"></script> | |||
<script src="{{ app.request.basepath }}/web/js/showdown.js"></script> |
@@ -49,7 +49,16 @@ | |||
case "contact": | |||
array_push($jsFiles, 'contact.js'); | |||
break; | |||
case "git": | |||
case "git": | |||
$url = curPageURL(); | |||
$pattern = "/^(.*)((\/zipball\/)|(\/tarball\/)|(\/raw\/))(.*)$/"; | |||
if(!preg_match($pattern, $url)) | |||
{ | |||
array_push($jsFiles, | |||
'raphael/raphael.js', | |||
'showdown/showdown.js', | |||
'codemirror/codemirror.js'); | |||
} | |||
array_push($jsFiles, 'git.js'); | |||
break; | |||
case "pod": |