Neither, I am just referring to the basic logic and variables you can use. I assumed up to this point you are a theme/plugin developer and know how to write the code you need in your theme.
Are you looking for a specific code solution for your web site?