Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
s_ibanshou
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋林
s_ibanshou
Commits
3749aa7b
Commit
3749aa7b
authored
Mar 09, 2018
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改推荐课程的自定义标签修改支持直播课程
parent
afe25872
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
userfun.php
e/class/userfun.php
+30
-2
No files found.
e/class/userfun.php
View file @
3749aa7b
...
...
@@ -17,8 +17,34 @@ function user_ibanshou($num)
foreach
(
$list
as
$val
)
{
//自适应 http, https
$val
[
'url'
]
=
str_replace
(
'http://'
,
'//'
,
$val
[
'url'
]);
$str
.=
<<<EOD
if
(
$val
[
'homework'
]
==
4
and
$val
[
'liveStatus'
]
==
0
){
$str
.=
<<<EOD
<div class="tuan-list">
<a href="{$val['url']}">
<img src="{$val['preview_pic']}-ym.preview\">
<h3>{$val['name']}</h3>
<p class="clearfix">
<span class="price">{$val['liveReservationNum']}<b>人已预约</b></span>
<span class="go-buy-btn">预约报名<i class="iconfont icon-xiangyou1"></i></span>
</p>
</a>
</div>
EOD;
}
else
if
(
$val
[
'homework'
]
==
4
and
$val
[
'liveStatus'
]
==
1
){
$str
.=
<<<EOD
<div class="tuan-list">
<a href="{$val['url']}">
<img src="{$val['preview_pic']}-ym.preview\">
<h3>{$val['name']}</h3>
<p class="clearfix">
<span class="price">{$val['liveWatchNum']}<b>人观看中</b></span>
<span class="go-buy-btn">正在直播<i class="iconfont icon-xiangyou1"></i></span>
</p>
</a>
</div>
EOD;
}
else
{
$str
.=
<<<EOD
<div class=\"news-item portal-course\">
<a href=\"{$val['url']}\" class=\"content pb-none\">
<div class=\"tit\">{$val['name']}</div>
...
...
@@ -33,6 +59,8 @@ function user_ibanshou($num)
</div>
</div>
EOD;
}
}
foreach
(
$thread
as
$val
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment