فهرست منبع

课程页优化

Bhikkhu-Kosalla 5 سال پیش
والد
کامیت
9b7dfc6359

+ 3 - 3
app/course/index.php

@@ -196,13 +196,13 @@ include "../pcdl/html_head.php";
 	<div class="index_inner">
 		<div id="course_head_bar" class="collect_head_bar">
 			<div class="section_inner">
-				<h1>課程</h1>
-				<div style="max-width:30em">來自世界個地的巴利專家詳細解析聖典</div>
+				<h1><?php echo $_local->gui->lesson ;?></h1>
+				<div style="max-width:30em"><?php echo $_local->gui->lesson_intro; ?></div>
 			</div>
 		</div>
 		<div class="index_list_categories">
 			<div class="title_bar">
-				<h3><?php echo $_local->gui->speaker ?></h3>
+				<h3><?php echo $_local->gui->speaker ;?></h3>
 				<span class="title_more"><a href="../course"><?php echo $_local->gui->more ?></a></span>
 			</div>
 			<div class="content">

+ 3 - 0
app/public/lang/default.json

@@ -609,6 +609,9 @@
 		"cooperate_group": "cooperative group",
 		"personal": "personal",
 		"empty_null_mark": "Here is so quiet",
+		"lesson_intro": "Let’s take the course to see how the pāḷi experts explain conon",
+		"teaching_course": "teaching course",
+		"watching_course": "watching course",
 		"": ""
 	},
 	"grammastr": [

+ 3 - 0
app/public/lang/en.json

@@ -608,6 +608,9 @@
 		"cooperate_group": "cooperative group",
 		"personal": "personal",
 		"empty_null_mark": "Here is so quiet",
+		"lesson_intro": "Let’s take the course to see how the pāḷi experts explain conon",
+		"teaching_course": "teaching course",
+		"watching_course": "watching course",
 		"": ""
 	},
 	"grammastr": [

+ 3 - 0
app/public/lang/my.json

@@ -608,6 +608,9 @@
 		"cooperate_group": "cooperative group",
 		"personal": "personal",
 		"empty_null_mark": "Here is so quiet",
+		"lesson_intro": "Let’s take the course to see how the pāḷi experts explain conon",
+		"teaching_course": "teaching course",
+		"watching_course": "watching course",
 		"": ""
 	},
 	"grammastr": [

+ 3 - 0
app/public/lang/si.json

@@ -613,6 +613,9 @@
 		"cooperate_group": "cooperative group",
 		"personal": "personal",
 		"empty_null_mark": "Here is so quiet",
+		"lesson_intro": "Let’s take the course to see how the pāḷi experts explain conon",
+		"teaching_course": "teaching course",
+		"watching_course": "watching course",
 		"": ""
 	},
 	"grammastr": [

+ 3 - 0
app/public/lang/zh-cn.json

@@ -611,6 +611,9 @@
 		"cooperate_group": "协作组",
 		"personal": "个人",
 		"empty_null_mark": "这里很安静",
+		"lesson_intro": "看看世界个地的巴利专家都是如何解析圣典的",
+		"teaching_course": "主讲的课程",
+		"watching_course": "关注的课程",
 		"": ""
 	},
 	"grammastr": [

+ 3 - 0
app/public/lang/zh-tw.json

@@ -610,6 +610,9 @@
 		"cooperate_group": "協作組",
 		"personal": "個人",
 		"empty_null_mark": "這裡很安靜",
+		"lesson_intro": "看看世界個地的巴利專家都是如何解析聖典的",
+		"teaching_course": "主講的課程",
+		"watching_course": "關注的課程",
 		"": ""
 	},
 	"grammastr": [

+ 5 - 4
app/uhome/course.php

@@ -19,16 +19,17 @@ include "../pcdl/html_head.php";
 
 <div class='section_inner'>
 	<div class="course_info_block">
-		<h2>你发布的课程</h2>
+		<h2><?php echo $_local->gui->teaching_course ;?></h2>
 		<div id="course_list" >
 		</div>
 	</div>
 	<div class="course_info_block">
-		<h2>你关注的课程</h2>
+		<h2><?php echo $_local->gui->watching_course ;?></h2>
 		<div id="my_like" >
 		</div>
 	</div>
 </div>	
+<script src="../public/js/marked.js"></script>
 
 <script>
 	$.get("../course/course_list.php",
@@ -47,10 +48,10 @@ include "../pcdl/html_head.php";
 			for (const iterator of arrData) {
 				html += '<div class="card" style="display:flex;margin:1em;padding:10px;">';
 
-				html += '<div style="flex:7;">';
+				html += '<div style="flex:9;">';
 				html +=  '<div class="title" style="padding-bottom:5px;font-size:110%;font-weight:600;"><a href="../course/course.php?id='+iterator.id+'">'+iterator.title+'</a></div>';
 				html += '<div class="summary"  style="padding-bottom:5px;">'+iterator.subtitle+'</div>';
-				html += '<div class="summary"  style="padding-bottom:5px;">'+iterator.summary+'</div>';
+				html += '<div class="summary"  style="padding-bottom:5px;">'+marked(iterator.summary)+'</div>';
 
 				html += '</div>';