I'm tyring to build a Wordpress theme where user can choose some available options.
Let's say I have an option where user can choose column width from available options. In my page.php, I'm using this code to add class
<div class="<?php if ( my_column_width == '1' ) : ?> full-width
<?php elseif ( my_column_width == '2' ) : ?> one-two
<?php elseif ( my_column_width == '3' ) : ?> one-three">
Usually I put it in a single line, above code just for it' easier to understand. I have a lot of options on my theme, so those conditional statements really make it hard to read my code.
Can someone tell me the better approach to do this? I'm hoping that people who will use my theme can understand the logic when they read my code.