php - Module Views and Themes -
I am putting several different modules for use in my Codeigniter application. There are many different themes included in this application. What I would like to do is to know that if I have it, instead of continuing similar forms, there is a logging structure on all topics and only visible is clearly different . I want to know what I can do so that I only have to create a view of a login form within the user module folder and they should know the current theme how to handle it.
To explain further, suppose that forms have the same text field, but there are probably some topics that are not included in other topics such as the following. In this example this one is one of my topics where a class or something that can be added to a div or that there is no div in the other surrounding input tags in another theme.
& lt; Form id = "login_form" action = "" role = "form" & gt; & Lt; Div class = "form-group relative-w" & gt; & Lt; Input type = "email" name = "email_address" class = "form-control" placeholder = "email address" & gt; & Lt; I class = "fa-u-user input-ab-icon" & gt; & Lt; / I & gt; & Lt; / Div & gt; & Lt; Div class = "form-group relative-w" & gt; & Lt; Input type = "password" name = "password" class = "form-control" placeholder = "password" & gt; & Lt; I class = "fa-lock input-ab-icon" & gt; & Lt; / I & gt; & Lt; / Div & gt; & Lt; Button class = "BTN BTN-Primary BTN-Spherical BTN-Icon" & gt; & Lt; Span & gt; Sign me up & lt; / Span & gt; & Lt; I square = "fa fa-arrow-right" & gt; & Lt; / I & gt; & Lt; / Button & gt; & Lt; / Form & gt;
You can do it with CSS.
echo & amp; Links rel = "stylesheet" type = "text / css" href = "css / '. $ Style.' CSS '& gt; & # 39;
or
$ this-> load-> subsidiary (' html '); echo link_tag ( "Css / $ style.css");
Update
You say
... for example The login for has all the same structure in the theme and the look is clearly different. I want to know what I can do to make a view of a login form within the user module folder only And they should know the current theme how to handle it
Then you say
... in my subjects where a class or something that can be added to a div or Maybe there is no div around the input tags in any other theme
I think you should know first what you want.
If all the subjects have the same HTML structure, then you can use different CSS files to replace.
If the structure is in sync Will not, then the question may be moot because you will need to create different versions of English forms anyway. *
Everyone said, some of the template items that are worth searching for:
* Do not say this That you can not have a bunch of in order to adjust the change in theme-based HTML / / << code> statement in your view ... but it does not look right.
Comments
Post a Comment