File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 <!-- 问题 -->
You can’t perform that action at this time.
0 commit comments