|
5 | 5 |
|
6 | 6 |
|
7 | 7 | use Illuminate\Support\Facades\View; |
| 8 | +use ModStart\ModStart; |
8 | 9 | use Module\Partner\Util\PartnerUtil; |
9 | 10 |
|
10 | 11 | class PartnerView |
11 | 12 | { |
12 | 13 | public static function text($position, $param = []) |
13 | 14 | { |
14 | 15 | $records = PartnerUtil::listByPositionWithCache($position); |
| 16 | + $linkDisable = modstart_config('Partner_LinkDisable', false); |
15 | 17 | return View::make('module::Partner.View.inc.text', array_merge($param, [ |
16 | 18 | 'records' => $records, |
17 | 19 | 'position' => $position, |
| 20 | + 'linkDisable' => $linkDisable, |
18 | 21 | ]))->render(); |
19 | 22 | } |
20 | 23 |
|
21 | 24 | public static function simple($position, $param = []) |
22 | 25 | { |
| 26 | + ModStart::js('asset/common/lazyLoad.js'); |
| 27 | + $linkDisable = modstart_config('Partner_LinkDisable', false); |
23 | 28 | $records = PartnerUtil::listByPositionWithCache($position); |
24 | 29 | return View::make('module::Partner.View.inc.simple', array_merge($param, [ |
25 | 30 | 'records' => $records, |
26 | 31 | 'position' => $position, |
| 32 | + 'linkDisable' => $linkDisable, |
| 33 | + ]))->render(); |
| 34 | + } |
| 35 | + |
| 36 | + public static function mini($position, $param = []) |
| 37 | + { |
| 38 | + ModStart::js('asset/common/lazyLoad.js'); |
| 39 | + $records = PartnerUtil::listByPositionWithCache($position); |
| 40 | + $linkDisable = modstart_config('Partner_LinkDisable', false); |
| 41 | + return View::make('module::Partner.View.inc.mini', array_merge($param, [ |
| 42 | + 'records' => $records, |
| 43 | + 'linkDisable' => $linkDisable, |
| 44 | + 'position' => $position, |
27 | 45 | ]))->render(); |
28 | 46 | } |
29 | 47 |
|
|
0 commit comments