/wp-content/plugins/atoz_category_navigation/liststyle.css" /> A to Z Category Nagivation Settings'; if($_POST['action'] == 'dd_menu'){ $data = $_POST['mwidth']; $malign = $_POST['malign']; $subwidth =$_POST['subwidth']; $excat = implode(',',$_POST['cat']); update_option('dd_menu_mtabwidth',$data); update_option('dd_menu_subwidth',$subwidth); update_option('dd_menu_malign',$malign); update_option('dd_menu_excat',$excat); echo ""; } $mwidth = get_option('dd_menu_mtabwidth'); $subwidth = get_option('dd_menu_subwidth'); $malign = get_option('dd_menu_malign'); $excat = explode(',', get_option('dd_menu_excat')); ?>
0,'orderby'=>'name','taxonomy'=>'category', 'exclude'=> $excat)); $cid_cat = $wpdb->get_results("select t.term_id,t.name from ".$wpdb->prefix."terms t, ".$wpdb->prefix."term_taxonomy as tr where t.term_id = tr.term_id and tr.taxonomy = 'category' and tr.parent=".$parent_id." order by t.name"); $cat_all = get_categories(array('parent'=>$parent_id,'orderby'=>'name','taxonomy'=>'category')); if(! empty($cat_all)){ echo ''; } //return $output1; } function dropdown_list_categories() { $mwidth = get_option('dd_menu_mtabwidth'); $subwidth = get_option('dd_menu_subwidth'); $excat = get_option('dd_menu_excat'); echo ''; } function wpcustom_list_categories_init(){ update_option('dd_menu_mtabwidth','46px'); update_option('dd_menu_subwidth','170px'); update_option('dd_menu_malign','left'); register_sidebar_widget(__('AtoZ categoty navigation'), 'dropdown_list_categories'); } add_action("plugins_loaded", "wpcustom_list_categories_init"); ?>