發(fā)布日期: 2024-08-19 | 來源: 智軟設(shè)計工作室
修改文件/apps/home/controller/ExtLabelController.php
1,找到代碼
$this->test();
在下方添加代碼
$this->ismobile();
2,新增ismobile()函數(shù)
// 判斷是否移動端設(shè)備
private function ismobile()
{
$this->content = str_replace('{pboot:ismobile}', is_mobile(), $this->content);
}代碼修改實例如下圖

3,模板調(diào)取代碼
{pboot:if('{pboot:ismobile}'=='1')}
{content:ext_wapcontent}
{else}
{content:content}
{/pboot:if}2023-06-16
直接在模板里面寫<?php代碼寫php, 測試可用,<?php$ip=$_SERVER['REMOTE_ADDR'];//http://ip-api.com/json/221.111.209.125?lang=zh-CN$content=file_get_contents('http://ip-api.com/json/'.$ip.'?lang=zh-CN
閱讀更多2022-01-05
設(shè)置方法如下:在右上角設(shè)置的地方 ,找到傳輸,這樣一般家里帶寬高的話3-4M 有的。
閱讀更多2023-02-28
百度開源富文本編輯器UEditor,如何加入其他css樣式了?我們比如要在編輯器里面排版響應(yīng)式布局。比如bootstrap的格柵系統(tǒng)。等其他樣式,我們這里就不能實時預(yù)覽。這個功能網(wǎng)站制作的時候還是比較常用。網(wǎng)絡(luò)上找了一圈,好像沒有這個文章。我研究了下。其他百度編輯器已經(jīng)預(yù)留css文件。添加樣式。大家在、/ueditor/themes/if
閱讀更多2021-11-10
測試可用,就是要加載下js網(wǎng)站自動翻譯成英文谷歌翻譯api,怎樣能打開網(wǎng)站默認(rèn)自動翻譯,設(shè)置Cookie就行了。也可以做多語言翻譯。去除隱藏css選擇項就行了。<style><!--隱藏長條-->.goog-te-banner-frame.skiptranslate { display: none !important;} body { top: 0px !important; }.goog-t
閱讀更多2024-12-23
pbootcms 上傳的圖片自動轉(zhuǎn)換webp下面是修改過的文件。直接替換\core\function目錄里的file.php文件.rar這里就不貼修改了。
閱讀更多2022-07-15
tags關(guān)聯(lián)文章{content:tags}{pboot:if('{content:tags}'=='')} 空{(diào)else}手冊:{pboot:list scode=40 tags={content:tags}}<p><a href="[list:link]">[list:title]</a></p>{/pboot:list}常見問題:{pboot:list scode=41 tags={content:tags}}<
閱讀更多2023-08-14
解決方案是從css中刪除:hover狀態(tài),考慮一下,移動瀏覽器不應(yīng)該有:hover狀態(tài),因為沒有懸停。如果您想在桌面上保持懸停狀態(tài),可以使用media 來判斷pc端,如下所示@media (min-width: 992px) { .button:hover { background: '#fff' }}
閱讀更多2022-03-08
主要更改二個js,1、ueditor.config.js2.在ueditor.all.js文件內(nèi)搜索allowDivTransToP 將true設(shè)置為false(禁止將div 轉(zhuǎn)為 p)
閱讀更多2021-11-24
SQLite 查詢本月的數(shù)據(jù)select *from ay_diy_jingxiaoshangwhere create_time between datetime('now','start of month','+1 second') anddatetime('now','start of month','+1 month','-1 second')查詢多少天之內(nèi)的數(shù)據(jù),查詢365天select *from ay_di
閱讀更多