Myzwer / foothillschurch

Bootcamp II is a wordpress theme (as well as an inside joke) designed to suit the needs of foothillschurch.com. It makes use of webpack, Babel, Sass, Tailwind, Browsersync, PostCSS, ESLint, Stylelint, Prettier and more. It is meant for that site, but if you can use it by all means go for it.
1 stars 1 forks source link

FAQ cleanup #61

Closed rain2o closed 2 weeks ago

rain2o commented 1 month ago

https://github.com/Myzwer/foothillschurch/blob/effc5bbf81497ae99f0561ab7849412fe9272bfd/components/layouts/faq.php#L15-L18

You could put this if condition outside of all markup in this component, so nothing is rendered if it's false.

https://github.com/Myzwer/foothillschurch/blob/effc5bbf81497ae99f0561ab7849412fe9272bfd/components/layouts/faq.php#L50-L51

Also this else isn't needed, it doesn't do anything.

Myzwer commented 2 weeks ago

Ended up reworking this so I didn't need this file.