I have never used dedecms. Now I want to develop a website for the second time. I need to determine when a user enters using a mobile phone.
Just use js to jump to the specified mobile website?
I found that dede can automatically generate html. It seems unreasonable to add it to each html by yourself.
Who can explain it?
There should be a template, you can add it in the head or foot.
Just add it to the head of the template, or write a common js file and import it into the template.
Functions that can be processed directly in the include/dedetag.class.php file without using js. I think you should change the LoadTemplate function and use $_SERVER['HTTP_USER_AGENT'] to determine the browser core. Of course, if you are not good at writing php, it will be awkward.