Browse Source

site title update

master
filesite 7 months ago
parent
commit
a09299537c
  1. 2
      themes/tajian/controller/MyController.php
  2. 14
      themes/tajian/controller/SiteController.php
  3. 6
      themes/tajian/views/layout/index.php
  4. 44
      themes/tajian/views/site/tajian.php
  5. 3
      www/css/tajian.css
  6. 2
      www/tajian/README.md
  7. 2
      www/tajian/README_title.txt

2
themes/tajian/controller/MyController.php

@ -14,7 +14,7 @@ Class MyController extends SiteController {
if (empty($loginedUser['username'])) { if (empty($loginedUser['username'])) {
return $this->redirect('/site/login/'); return $this->redirect('/site/login/');
}else if (!empty(FSC::$app['config']['multipleUserUriParse']) && FSC::$app['user_id'] != $loginedUser['username']) { }else if (!empty(FSC::$app['config']['multipleUserUriParse']) && FSC::$app['user_id'] != $loginedUser['username']) {
$shareUrl = "/{$loginedUser['username']}/my/"; $shareUrl = "/{$loginedUser['username']}/my/" . FSC::$app['action'];
return $this->redirect($shareUrl); return $this->redirect($shareUrl);
} }

14
themes/tajian/controller/SiteController.php

@ -93,14 +93,16 @@ Class SiteController extends Controller {
//显示TA荐首页 //显示TA荐首页
protected function renderTajianIndex() { protected function renderTajianIndex() {
$pageTitle = "Ta荐:好用的视频收藏夹,帮你整理不同平台的好视频,轻松分享给朋友!"; $loginedUser = Common::getUserFromSession();
$pageTitle = "Ta荐:你的聚宝盆,帮你收纳不同平台的有价值视频,轻松分享!";
$stats = TajianStats::init(); $stats = TajianStats::init();
$this->layout = 'index'; $this->layout = 'index';
$viewName = 'tajian'; $viewName = 'tajian';
$params = compact( $params = compact(
'pageTitle', 'stats' 'pageTitle', 'stats', 'loginedUser'
); );
return $this->render($viewName, $params, $pageTitle); return $this->render($viewName, $params, $pageTitle);
} }
@ -404,7 +406,13 @@ Class SiteController extends Controller {
//判断是否已经登录 //判断是否已经登录
$loginedUser = Common::getUserFromSession(); $loginedUser = Common::getUserFromSession();
if (!empty($loginedUser['username'])) { if (!empty($loginedUser['username'])) {
$shareUrl = "/{$loginedUser['username']}/my/share/"; $shareUrl = "/{$loginedUser['username']}/my/";
$goUrl = $this->get('go', '');
if (!empty($goUrl) && preg_match("/^\/.+$/", urldecode($goUrl))) {
$shareUrl = urldecode($goUrl);
}
return $this->redirect($shareUrl); return $this->redirect($shareUrl);
} }

6
themes/tajian/views/layout/index.php

@ -24,7 +24,7 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
- TaJian.tv - TaJian.tv
</a> </a>
<div class="right_class_tn"> <div class="right_class_tn">
<a class="connect_me_tn" href="https://github.com/filesite-io/machete" target="_blank" title="从GitHub下载Machete源码"><img src="/img/download.png" alt="下载Machete源码" class="verBottom">下载源码</a> <a class="connect_me_tn" href="/site/login/"><img src="/img/PersonalCenter.svg" alt="用户登录" class="verBottom">登录</a>
</div> </div>
</header> </header>
@ -37,11 +37,11 @@ if (!empty($viewFile) && file_exists($viewFile)) {
<div class="footer"> <div class="footer">
<div class="copyright"> <div class="copyright">
从GitHub下 <a href="https://github.com/filesite-io/machete" target="_blank">Machete源码</a> 部署到本地 本站源代码GitHub网址 <a href="https://github.com/filesite-io/machete" target="_blank">Machete源码</a>
<br> <br>
数据采集由 数据采集由
<a href="https://herounion.filesite.io" target="_blank">HeroUnion英雄联盟</a> <a href="https://herounion.filesite.io" target="_blank">HeroUnion英雄联盟</a>
提供技术支持 提供支持
<br> <br>
<a href="https://filesite.io" target="_blank">&copy;FileSite.io</a> 2022 - execute time: {page_time_cost} ms <a href="https://filesite.io" target="_blank">&copy;FileSite.io</a> 2022 - execute time: {page_time_cost} ms
</div> </div>

44
themes/tajian/views/site/tajian.php

@ -3,17 +3,12 @@
require_once __DIR__ . '/../../../../plugins/Html.php'; require_once __DIR__ . '/../../../../plugins/Html.php';
$imgPreffix = '/' . FSC::$app['config']['content_directory'] . FSC::$app['config']['tajian']['data_dir']; $imgPreffix = '/' . FSC::$app['config']['content_directory'] . FSC::$app['config']['tajian']['data_dir'];
$linkPrefix = ''; $loginBackUrl = !empty($viewData['loginedUser']['username']) ? "/{$viewData['loginedUser']['username']}/my/share" : '/my/share';
//多用户路径支持
if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['user_id'])) {
$linkPrefix = '/' . FSC::$app['user_id'];
}
?> ?>
<main class="tajian_index"> <main class="tajian_index">
<h1 class="h1title vercenter mt65"> <h1 class="h1title vercenter mt65">
一个好用的视频收藏夹 你的聚宝盆
<small>- 帮你整理不同App/网站的好视频,还能分享给朋友</small> <small>- 帮你收纳不同App/网站有价值的视频</small>
</h1> </h1>
<div class="btns clearfix"> <div class="btns clearfix">
@ -21,33 +16,31 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
<a href="/site/register/"> <a href="/site/register/">
<img src="/img/favorite.png" alt="Create your favorite tajian link." width="100"> <img src="/img/favorite.png" alt="Create your favorite tajian link." width="100">
<br> <br>
创建专属收藏夹 创建聚宝盆
</a> </a>
</div> </div>
<div class="downbtn"> <div class="downbtn">
<a href="/site/login/"> <a href="/site/login/?go=<?=$loginBackUrl?>">
<img src="/img/share.png" alt="Download machete source code" width="100"> <img src="/img/share.png" alt="Download machete source code" width="100">
<br> <br>
获取分享链接 分享聚宝盆
</a> </a>
</div> </div>
</div> </div>
<h3 class="h3title pl20">谁在用?</h3> <h3 class="h3title pl20">谁在用?</h3>
<ul class="ulist pl20"> <ul class="ulist pl20">
<li>通过视频学习又喜欢收藏以便随时翻阅的朋友</li> <li>布道者、意见领袖</li>
<li>工作中需要汇总行业优秀视频给用户的朋友</li> <li>发烧友、分享达人</li>
<li>各行业的意见领袖有一定粉丝的朋友</li> <li>有收藏、整理知识库习惯的朋友</li>
<li>经常分享新鲜视频的达人朋友</li>
<li>其他需要从不同平台汇总视频的朋友</li>
</ul> </ul>
<h3 class="h3title pl20">使用方法</h3> <h3 class="h3title pl20">使用步骤</h3>
<div class="pl20 lh18"> <div class="pl20 lh18">
<p> <p>
1. 从各视频App、网站<strong>复制视频的分享链接</strong> 1. 从各视频App、网站<strong>复制视频的分享链接</strong>
<br> <br>
2. 在“<strong>添加</strong>”里<strong>粘贴</strong>保存 2. 登录后在“<strong>添加收藏</strong>”里<strong>粘贴</strong>保存
<br> <br>
3. 分享你的专属链接给朋友 3. 分享你的专属链接给朋友
<?php <?php
@ -62,26 +55,23 @@ eof;
<h4 class="mt20">没注册?</h4> <h4 class="mt20">没注册?</h4>
<p> <p>
点上面“创建专属收藏夹”, 用手机号码 + 邀请码(邀请者手机号末 6 位)
<br>用手机号码 + 邀请码(朋友手机号码末6位)<a href="/site/register/" class="loginbtn">去注册</a> <a href="/site/register/" class="loginbtn">去注册</a>
<br class="hidden-xs"> <br class="hidden-xs">
还可以加客服微信索要注册邀请码 还可以加客服微信获取注册邀请码
<button class="mt10 bt_kf_JS" type="button" data-hide="隐藏二维码">显示二维码</button> <button class="mt10 bt_kf_JS" type="button" data-hide="隐藏二维码">显示二维码</button>
<img src="/tajian/wx_jialuoma.jpeg" alt="Ta荐客服微信二维码" width="200" class="kfwx kf_wx_JS hide"> <img src="/tajian/wx_jialuoma.jpeg" alt="Ta荐客服微信二维码" width="200" class="kfwx kf_wx_JS hide">
</p> </p>
<h4 class="mt20">已有账号</h4>
<p><a href="/site/login/" class="loginbtn">去登录</a></p>
</div> </div>
<h3 class="h3title pl20">支持的视频App/网站</h3> <h3 class="h3title pl20">支持的视频App/网站</h3>
<ul class="ulist pl20"> <ul class="ulist pl20">
<li>抖音</li>
<li>B站- 哔哩哔哩</li> <li>B站- 哔哩哔哩</li>
<li>抖音</li>
<li>快手</li> <li>快手</li>
<li>西瓜视频</li> <li>西瓜视频</li>
</ul> </ul>
<p class="pl20 pt20">其它App和网站将陆续增加。。。</p> <p class="pl20 pt20">更多App和网站将陆续增加。。。</p>
<h3 class="h3title pl20">Ta荐核心数据</h3> <h3 class="h3title pl20">Ta荐核心数据</h3>
<div class="stats pl20"> <div class="stats pl20">

3
www/css/tajian.css

@ -237,7 +237,8 @@ a:link{text-decoration:none;}
/* TaJian首页 */ /* TaJian首页 */
.tajian_index{max-width:640px;margin:0 auto;padding:10px} .tajian_index{max-width:640px;margin:0 auto;padding:10px}
.tajian_index .h1title{font-size:17px;color:#444} .tajian_index .h1title{font-size:24px;color:#444}
.tajian_index .h1title small{font-size:67%}
.tajian_index .h3title{margin-top:30px;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #DDD} .tajian_index .h3title{margin-top:30px;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #DDD}
.tajian_index .ulist{margin-top:10px} .tajian_index .ulist{margin-top:10px}
.tajian_index .ulist li{list-style:circle;margin-left:26px;padding-left:8px;line-height:1.8} .tajian_index .ulist li{list-style:circle;margin-left:26px;padding-left:8px;line-height:1.8}

2
www/tajian/README.md

@ -1,5 +1,5 @@
发邮件告诉我们你对Machete的看法和它的趣事吧: 发邮件告诉我们你对Ta荐的看法和它的趣事吧:
``` ```
machete#filesite.io(用@替换#) machete#filesite.io(用@替换#)
``` ```

2
www/tajian/README_title.txt

@ -1 +1 @@
Ta荐:好用的视频收藏夹,帮你整理不同平台的好视频,轻松分享给朋友 Ta荐:你的聚宝盆,帮你收纳不同平台的有价值视频,轻松分享
Loading…
Cancel
Save