category_parent > 0) { $category = get_category($category->category_parent); $level++; } return $level; } function c2p_applyPrefixLevel($prefixBase, $level) { $auxPrefix = ""; for($i=1;$i<=$level;$i++) { $auxPrefix .= $prefixBase; } return $auxPrefix." "; } if ('process' == $_POST['stage']) { update_option('c2p_IDCategory', $_POST['c2p_IDCategory']); update_option('c2p_NumberOfPosts', $_POST['c2p_NumberOfPosts']); $showAll = '0'; if(isset($_POST['c2p_ShowAllContent'])) $showAll = '1'; update_option('c2p_ShowAllContent', $showAll); } $c2p_IDCategory = stripslashes(get_option('c2p_IDCategory')); $c2p_NumberOfPosts = stripslashes(get_option('c2p_NumberOfPosts')); $c2p_ShowAllContent = stripslashes(get_option('c2p_ShowAllContent')); $categories = get_categories('hide_empty=0'); ?>