8 Star 141 Fork 50

MZ/ModStartBlog

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
PartnerView.php 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
MZ 提交于 2023-07-06 09:26 +08:00 . feat: release 7.7.0
<?php
namespace Module\Partner\View;
use Illuminate\Support\Facades\View;
use ModStart\ModStart;
use Module\Partner\Util\PartnerUtil;
class PartnerView
{
public static function text($position, $param = [])
{
$records = PartnerUtil::listByPositionWithCache($position);
$linkDisable = modstart_config('Partner_LinkDisable', false);
return View::make('module::Partner.View.inc.text', array_merge($param, [
'records' => $records,
'position' => $position,
'linkDisable' => $linkDisable,
]))->render();
}
public static function simple($position, $param = [])
{
ModStart::js('asset/common/lazyLoad.js');
$linkDisable = modstart_config('Partner_LinkDisable', false);
$records = PartnerUtil::listByPositionWithCache($position);
return View::make('module::Partner.View.inc.simple', array_merge($param, [
'records' => $records,
'position' => $position,
'linkDisable' => $linkDisable,
]))->render();
}
public static function mini($position, $param = [])
{
ModStart::js('asset/common/lazyLoad.js');
$records = PartnerUtil::listByPositionWithCache($position);
$linkDisable = modstart_config('Partner_LinkDisable', false);
return View::make('module::Partner.View.inc.mini', array_merge($param, [
'records' => $records,
'linkDisable' => $linkDisable,
'position' => $position,
]))->render();
}
public static function transparent($position, $param = [])
{
$records = PartnerUtil::listByPositionWithCache($position);
return View::make('module::Partner.View.inc.transparent', array_merge($param, [
'records' => $records,
'position' => $position,
]))->render();
}
public static function raw($position, $param = [])
{
$records = PartnerUtil::listByPositionWithCache($position);
return View::make('module::Partner.View.inc.raw', array_merge($param, [
'records' => $records,
'position' => $position,
]))->render();
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/modstart/ModStartBlog.git
git@gitee.com:modstart/ModStartBlog.git
modstart
ModStartBlog
ModStartBlog
master

搜索帮助