Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
2586703@qq.com
10 years ago
Commit
d626fdf8a01ec1618d5b697e023abc7c8b22d765
2 parents
4280698a
5e916444
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohood
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
res/js/yohood.js
website/view/script/activity/planmobile.php
website/view/widget/news/list.php
website/view/widget/news/listmobile.php
res/js/yohood.js
View file @
d626fdf
...
...
@@ -573,7 +573,7 @@ define('yohood', function(require, exports) {
'</div>'
+
'<div class="content">'
+
'<h2 {titleStyle}>'
+
'<a href="'
+
url
+
'" title="'
+
title
+
'">'
+
topic
+
'</a>'
+
'<a href="'
+
url
+
'" title="'
+
title
+
'"
target="_blank"
>'
+
topic
+
'</a>'
+
'</h2>'
+
'</div>'
+
'</div>'
;
...
...
website/view/script/activity/planmobile.php
View file @
d626fdf
...
...
@@ -2,7 +2,10 @@
<?php
$this
->
_block
(
'main'
);
?>
<div
class=
"scene-tab"
>
<ul
class=
"clearfix"
>
<?php
foreach
(
current
(
$this
->
view
->
navs
)
as
$nav
)
:?>
<?php
$navs
=
current
(
$this
->
view
->
navs
);
ksort
(
$navs
);
foreach
(
$navs
as
$nav
)
:?>
<
li
<?
php
if
(
$nav
[
'timestamp'
]
==
$this
->
view
->
currentday
&&
$nav
[
'enable'
])
echo
'class="current"'
;
else
if
(
!
$nav
[
'enable'
])
echo
'class="disable"'
;
?>
...
...
website/view/widget/news/list.php
View file @
d626fdf
...
...
@@ -34,9 +34,9 @@ else
</div>
<div
class=
"content"
>
<h2
<?php
echo
$news
[
'main_title_type'
]
==
1
?
'class="volupia"'
:
''
;
?>
>
<a
href=
"
<?php
echo
url
(
'news/detail'
,
array
(
'id'
=>
$news
[
'id'
]))
?>
"
>
<?php
echo
$news
[
'title'
];
?>
</a>
<a
href=
"
<?php
echo
url
(
'news/detail'
,
array
(
'id'
=>
$news
[
'id'
]))
?>
"
target=
"_blank"
>
<?php
echo
$news
[
'title'
];
?>
</a>
</h2>
<p
class=
"text-content"
>
<
?php
echo
$description
;
?
>
</p>
<p
class=
"text-content"
><
a
href=
"
<?php
echo
url
(
'news/detail'
,
array
(
'id'
=>
$news
[
'id'
]))
?>
"
target=
"_blank"
>
<?php
echo
$description
;
?>
</a
></p>
<p
class=
"time"
>
<?php
echo
date
(
'Y.m.d'
,
$news
[
'create_time'
]);
?>
</p>
</div>
</div>
...
...
website/view/widget/news/listmobile.php
View file @
d626fdf
...
...
@@ -3,23 +3,21 @@ $title = Util_StringHelper::substr_cn($news['title'], 90);
$description
=
Lib_Utils_StringHelper
::
substr_cn
(
Lib_Utils_StringHelper
::
stripTags
(
$news
[
'content'
]),
68
);
$height
=
$width
=
0
;
$thumb_size
=
json_decode
(
$news
[
'thumb_size'
],
true
);
if
(
$news
[
'thumb'
]
)
if
(
empty
(
$news
[
'client_thumb'
])
)
{
$thumb
=
Lib_Images
::
getImageUrl
(
$news
[
'thumb'
],
'source'
,
'fragmentimg'
)
;
$thumb
=
$news
[
'thumb'
]
;
}
else
{
$thumb
=
SITE_IMG
.
'/pic01.png'
;
$thumb
=
$news
[
'client_thumb'
]
;
}
if
(
$thumb_size
[
'height'
]
<
308
&&
$thumb_size
[
'width'
]
<
308
)
if
(
!
empty
(
$thumb
)
)
{
$height
=
$thumb_size
[
'height'
];
$width
=
$thumb_size
[
'width'
];
$thumb
=
Lib_Images
::
getImageUrl
(
$thumb
,
'source'
,
'fragmentimg'
);
}
else
{
$height
=
ceil
(
$thumb_size
[
'height'
]
*
(
308
/
$thumb_size
[
'width'
]));
$width
=
308
;
$thumb
=
SITE_IMG
.
'/pic01.png'
;
}
?>
<div
class=
"layout-item tiled"
>
...
...
Please
register
or
login
to post a comment