From Bubblegum Wiki
(Difference between revisions)
|
m |
Line 1: |
Line 1: |
- | thanks for spending time on rtPanel. There are many reoanss as why we have used rtp_hooks_* and not rtp_*. Some of them are:rtp_hooks_* clubs all functions related to hooks . We can use rtp_something_* for some other kind of grouping. This ensures future-compatibility.Many IDEs/code-editors scans source-codes of included files and list all functions found in sidebar. In this case, all hooks will be easy to find.Codes become more readable as anyone by just reading a function-name can guess this is hook and can be called from elsewhere.It reduces chances of conflicting with another functions. Say there is some other function to do some work after header , then this reduces chances of collisions. I personally believe its better to develop conventions which will be easy to follows, rather than trusting our own memories! rtPanel theme will have many plugins developed for it. As plugins and themes will evolve over the time, plugins can just search for all rtPanel hooks by finding all function names in rtPanel theme which starts with rtp_hooks_. We have a use case for this which will make this point clearer in future.There are few more points but most of them won't make sense as of now. May be they will make sense after a year or two!Rest, your suggestions are always welcome & appreciated.
| + | Дружище! Использовать яваскрипт для того что бы прижать футер тоже в какой то степени решение проблемы, но не панацея. <div class="content-wrapper"> LOREM IPSUM <div class="wrapper"></div></div><div class="footer">...</div>html, body { heigth: 100%}.content-wrapper {min-heigth: 100%}.wrapper { pnadidg-bottom: 100px;}footer { heigth: 100px; margin-top:-100px}Ответить |
Revision as of 17:09, 11 November 2012
Дружище! Использовать яваскрипт для того что бы прижать футер тоже в какой то степени решение проблемы, но не панацея.
html, body { heigth: 100%}.content-wrapper {min-heigth: 100%}.wrapper { pnadidg-bottom: 100px;}footer { heigth: 100px; margin-top:-100px}Ответить