Today starting to use "SMOF - Slightly Modded Options Framework(https://github.com/syamilmj/Options-Framework) " in a Wordpress theme(Twenty Twelve). I can properly use upload option of the framework. But now I try use "General Setings => Main Layout " . But I cannot understand it from framework documentation. So, Please give some tutorial link or real work example. Thanks to all & Sorry for my poor english.
<?php
$layout = $data['homepage_layout']['enabled'];
if ($layout):
foreach ($layout as $key=>$value) {
switch($key) {
case 'block_one':
?>
<!--do something here-->
<?php
break;
case 'block_two':
?>
<!--do something here-->
<?php
break;
//repeat as many times necessary
}
}
endif;
?>