Good day! I am writing to you forum users on this occasion. The authorities have set the task to adapt the site for all sorts of mobile devices and tablets. It became the task of developing an interface for mobile devices. So your own questions:

  1. Are there any simpler classes on php like MobileDetect that would allow to distinguish from which device the user came? Classification by the following types: computer, phone, tablet. Go into specific modifications of the phone or tablet, it is not necessary.
  2. Are there any free services that allow a website template for a PC to be transferred to a mobile device at minimal cost?
  3. The site is designed on 1c-Bitrix, respectively, the template for mobile devices will be picked up as an alternative to the computer template. Where is it better to prescribe these processing conditions such as the user device through which he went to the site?

I would be grateful for the answers on all or some points.

Closed due to the fact that the question is too general a participant Nick Volynkin Jul 16 '17 at 3:37 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Then I will tell you this, of course, you can search from which device you came and pick up your template, but it is better to translate the template into adaptive. It makes no sense to add these classes defining devices and browsers, it is better to tell the browser how to display the site with such window sizes. For this you need to overturn it. If necessary, I can advise the coder. - binliz
  • Well, I don’t know I was told not to redo the site, namely, to add the logic of the site, if you entered it from a computer. For a PC site with a fixed layout, for mobile it is necessary rubber layout. So it is necessary to analyze UserAgent (browser) and the device. It’s not a layout designer, but a programmer, and therefore asked a second question about this. - IntegralAL
  • Does your bitrix currently have updates? In the marketplace there is a platform for mobile applications. And it is completely free. - binliz
  • Yes, there is the possibility of updating. @binliz, this is a good idea filed! Probably need to move in this direction. - IntegralAL
  • @tlatypov, if the mobile and tablet design does not imply any special functionality on the backend, then I would advise you to do everything on the front end through the CSS Media Queries with the addition to JS (where css can not cope). See a very illustrative example of how to change a site using css (you need to compress the browser screen) - MasterAlex

1 answer 1

Are there any simpler classes on php like MobileDetect?

Yes, but it is extremely difficult to find them .

  • Well, why should I link to the MobileDetect code? Maybe then who will share their sources, how do they distinguish between a PC, a phone and a tablet? - IntegralAL
  • one
    And to see how MobileDetect works and try to understand is not destiny? Then, I'm afraid, someone else's source will not help you ... Especially since they are unlikely to work any other way. - user6550
  • You can sort out anything, if you have time. I do not have time to learn additional technologies, the working day is literally minute by minute. Just the overall impression of the MobileDetect module is too heaped up and useless in terms of the difference in mobile devices. I would like a more lightweight code that could be entered into any component of the bitrix. - IntegralAL
  • one
    So busy people need not to write here, but to a freelancers' exchange. And if you were just a little more attentive, you would instantly find the desired methods. However, such a discussion is deliberately useless. Sorry I did not meet expectations. - user6550
  • Thanks for the answer anyway). It is necessary to study this MobileDetect in a non-working time to pull the necessary methods from there. - IntegralAL