'
',
'after_widget' => '',
'before_title' => '',
));
function wp_get_js_dir()
{
/* Find JS directory */
$js_dir = get_stylesheet_uri();
$js_dir = str_replace("\\", "/", $js_dir); // Windows/XAMPP fix
$js_dir = str_replace("/style.css", "", $js_dir);
$js_dir .= "/js";
return $js_dir;
}
function wp_list_pages_ttf($args = '') {
$defaults = array(
'depth' => 0, 'show_date' => '',
'date_format' => get_option('date_format'),
'child_of' => 0, 'exclude' => '',
'title_li' => __('Pages'), 'echo' => 1,
'authors' => '', 'sort_column' => 'menu_order, post_title'
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
$output = '';
$current_page = 0;
$r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);
$r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));
// Query pages.
$r['hierarchical'] = 0;
$pages = get_pages($r);
$styledir = get_stylesheet_uri();
$styledir = str_replace("\\", "/", $styledir); // Windows/XAMPP fix
$styledir = str_replace("style.css", "", $styledir);
$home = get_option('home');
$output = '
';
foreach ($pages as $page)
{
$title = attribute_escape(apply_filters('the_title', $page->post_title));
$link = get_page_link($page->ID);
$cat = $page->post_parent;
if ($cat == 0)
{
$output .= '
';
}
}
return $output;
}
?>