Answer the question
In order to leave comments, you need to log in
How to do the right thing under different conditions for the template?
Hello!
The template (for mobile) after authorization is slightly modified, for example, instead of a logo image, an additional menu appears, instead of a brief description at the bottom of the screen, an online output appears there, an appeal to support.
So the question is not about how convenient it is for me, but how CORRECT (as is customary) to do: in one template, prescribe a condition for displaying content for authorized and unauthorized OR load different templates without porridge with conditions?
Thank you.
ps I like to shorten everything, so at the moment I have a mess (working) from one template with conditions, but you need to know how to do it right :)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question