Do I need a conditional statement?

Homepage Community Forums Epik Theme Support Do I need a conditional statement?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5463
    dono2081
    Customer

      Hi Eric & Everybody!
      I see in most of the templates in Epik there’s a conditional statement early, which goes something like: “If there’s something in any of these widget areas, then …” and the template goes off and produces content.

      I’ve made my custom template, and it will always have widgets in the widget areas, so is there any point in my creating this conditional for My Template? Is there some “programming best practice” or “Good idea to do this for Genesis” thing that I should know about related to this condition?
      Thanks!
      DonO

      #5469
      scooby
      Customer

        I’d just do it the way they have it setup in the home file. Thats how StudioPress does it. I haven’t seen any specific documentation on it from SP….so if you want more info on it just search the WordPress.org codex to learn more about best practices – http://codex.wordpress.org/WordPress_Coding_Standards

        #5482
        dono2081
        Customer

          Thanks, Scooby. Good idea.

          I’m not sure … are you’re one of the authors of Epik?

          I’m specifically interested in finding out if the conditional is a requirement within Genesis+Epik to make something work? If you helped write Epik, you’re the guy who would know.

          -DonO

          #5494
          scooby
          Customer

            No only Wes creates all of the themes here. Everyone else, including myself is just a regular customer/member like yourself.

            #5496
            dono2081
            Customer

              Awesome!
              Yeah I believe that the conditional is included just to protect the theme from borking somehow. -D

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The topic ‘Do I need a conditional statement?’ is closed to new replies.