Skip to content

Commit 33ee926

Browse files
authored
Update header.php
1 parent 341c4de commit 33ee926

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

trunk/web/template/syzoj/header.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,14 @@ function get_menu_news() {
131131
<?php
132132
if(isset($OJ_AI_HTML)&&$OJ_AI_HTML && !isset($OJ_ON_SITE_CONTEST_ID) ) echo $OJ_AI_HTML;
133133
else echo '<a class="desktop-only item" href="/"><i class="home icon"></i><span class="desktop-only">'.$MSG_HOME.'</span></a>';
134-
if(file_exists("moodle")) // 如果存在moodle目录,自动添加链接
135-
{
134+
if(file_exists("moodle")){ // 如果存在moodle目录,自动添加链接
136135
echo '<a class="item" href="moodle"><i class="group icon"></i><span class="desktop-only">Moodle</span></a>';
137136
}
137+
if(file_exists("hello")){ // 如果存在hello目录,自动添加链接
138+
echo '<a class="item" href="/hello" target=_blank><i class="book icon"></i><span class="desktop-only">Hello算法</span></a>';
139+
}
140+
141+
138142
if( !isset($OJ_ON_SITE_CONTEST_ID) && (!isset($_GET['cid'])||$cid==0) ){
139143
?>
140144
<!-- 问题 -->

0 commit comments

Comments
 (0)