function gdm_wswwpx_fold_page_list($query = '', $fullunfold = false) { wswwpx_fold_page_list($query, $fullunfold); }
/** *@desc the output of the pages menu * @param array $data - holding the switches * @param int $number - the current widget number */ function king_pages_output($data, $number) { echo '<!-- Start King Pages ' . $number . ' -->' . "\n"; echo $data['before_widget'] . "\n"; echo $data['before_widget_title'] . "\n"; echo $data['title'] . "\n"; echo $data['after_widget_title'] . "\n"; if (function_exists('wswwpx_fold_page_list') && !empty($data['foldlist'])) { # to be optimised wswwpx_fold_page_list(array('child_of' => $data['child_of'], 'sort_column' => $data['sort_column'], 'sort_order' => $data['sort_order'], 'exclude' => $data['exclude'], 'depth' => $data['depth'], 'show_date' => $data['show_date'], 'date_format' => $data['date_format'], 'title_li' => $data['title_li'])); } else { wp_list_pages(array('child_of' => $data['child_of'], 'sort_column' => $data['sort_column'], 'sort_order' => $data['sort_order'], 'exclude' => $data['exclude'], 'depth' => $data['depth'], 'show_date' => $data['show_date'], 'date_format' => $data['date_format'], 'title_li' => $data['title_li'])); } echo $data['after_widget'] . "\n"; echo '<!-- End King Pages ' . $number . ' -->' . "\n"; return; }