2021-01-25 10:36:43 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 友联
|
|
|
|
*
|
|
|
|
* @package custom
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="zh-CN">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<?php $this->need('public/include.php'); ?>
|
2021-01-27 05:00:55 +00:00
|
|
|
<!-- 友联页面需要用到的CSS及JS -->
|
2021-01-25 10:36:43 +00:00
|
|
|
<script src="<?php $this->options->themeUrl('assets/js/joe.post&page.js'); ?>"></script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="Joe">
|
|
|
|
<?php $this->need('public/header.php'); ?>
|
|
|
|
<div class="joe_container">
|
|
|
|
<div class="joe_main">
|
|
|
|
<div class="joe_detail" data-cid="<?php echo $this->cid ?>">
|
|
|
|
<?php $this->need('public/article.php'); ?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$friends = [];
|
|
|
|
$friends_color = [
|
2021-01-25 13:26:58 +00:00
|
|
|
'#F8D800',
|
|
|
|
'#0396FF',
|
|
|
|
'#EA5455',
|
|
|
|
'#7367F0',
|
|
|
|
'#32CCBC',
|
|
|
|
'#F6416C',
|
|
|
|
'#28C76F',
|
|
|
|
'#9F44D3',
|
|
|
|
'#F55555',
|
|
|
|
'#736EFE',
|
|
|
|
'#E96D71',
|
|
|
|
'#DE4313',
|
|
|
|
'#D939CD',
|
|
|
|
'#4C83FF',
|
|
|
|
'#F072B6',
|
|
|
|
'#C346C2',
|
|
|
|
'#5961F9',
|
|
|
|
'#FD6585',
|
|
|
|
'#465EFB',
|
|
|
|
'#FFC600',
|
|
|
|
'#FA742B',
|
|
|
|
'#5151E5',
|
|
|
|
'#BB4E75',
|
|
|
|
'#FF52E5',
|
|
|
|
'#49C628',
|
|
|
|
'#00EAFF',
|
|
|
|
'#F067B4',
|
|
|
|
'#F067B4',
|
|
|
|
'#ff9a9e',
|
|
|
|
'#00f2fe',
|
|
|
|
'#4facfe',
|
|
|
|
'#f093fb',
|
2021-01-25 10:36:43 +00:00
|
|
|
'#6fa3ef',
|
|
|
|
'#bc99c4',
|
|
|
|
'#46c47c',
|
|
|
|
'#f9bb3c',
|
|
|
|
'#e8583d',
|
|
|
|
'#f68e5f',
|
|
|
|
];
|
|
|
|
$friends_text = $this->options->JFriends;
|
|
|
|
if ($friends_text) {
|
|
|
|
$friends_arr = explode("\r\n", $friends_text);
|
|
|
|
if (count($friends_arr) > 0) {
|
|
|
|
for ($i = 0; $i < count($friends_arr); $i++) {
|
|
|
|
$name = explode("||", $friends_arr[$i])[0];
|
|
|
|
$url = explode("||", $friends_arr[$i])[1];
|
|
|
|
$avatar = explode("||", $friends_arr[$i])[2];
|
|
|
|
$desc = explode("||", $friends_arr[$i])[3];
|
|
|
|
$friends[] = array("name" => trim($name), "url" => trim($url), "avatar" => trim($avatar), "desc" => trim($desc));
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<?php if (sizeof($friends) > 0) : ?>
|
|
|
|
<ul class="joe_detail__friends">
|
|
|
|
<?php foreach ($friends as $item) : ?>
|
|
|
|
<li class="joe_detail__friends-item">
|
2021-01-25 15:03:09 +00:00
|
|
|
<a class="contain" href="http://ae.js.cn" target="_blank" rel="noopener noreferrer" style="background: <?php echo $friends_color[mt_rand(0, count($friends_color) - 1)] ?>">
|
2021-01-25 10:36:43 +00:00
|
|
|
<span class="title"><?php echo $item['name']; ?></span>
|
|
|
|
<div class="content">
|
2021-01-25 13:26:58 +00:00
|
|
|
<div class="desc"><?php echo $item['desc']; ?></div>
|
2021-01-25 10:36:43 +00:00
|
|
|
<img class="avatar" src="<?php echo $item['avatar']; ?>" alt="<?php echo $item['name']; ?>" />
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php $this->need('public/handle.php'); ?>
|
|
|
|
<?php $this->need('public/copyright.php'); ?>
|
|
|
|
</div>
|
2021-01-26 06:19:52 +00:00
|
|
|
<?php $this->need('public/comment.php'); ?>
|
2021-01-25 10:36:43 +00:00
|
|
|
</div>
|
|
|
|
<?php $this->need('public/aside.php'); ?>
|
|
|
|
</div>
|
|
|
|
<?php $this->need('public/footer.php'); ?>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|