function register_my_menus() { register_nav_menus( array( 'main-menu' => __( 'Main Menu' )) ); } function page_bodyclass() { // add class to tag global $wp_query; $page = ''; if (is_front_page() ) { $page = 'home'; } elseif (is_page()) { $page = $wp_query->query_vars["pagename"]; } if ($page) echo 'class= "'. $page. '"'; } add_action( 'init', 'register_my_menus' ); $locale = get_locale(); $locale_file = TEMPLATEPATH . "/languages/$locale.php"; if ( is_readable($locale_file) ) require_once($locale_file); // Get the page number function get_page_number() { if ( get_query_var('paged') ) { print ' | ' . __( 'Page ' , 'hbd-theme') . get_query_var('paged'); } } // end get_page_number // Custom callback to list comments in the hbd-theme style function custom_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $GLOBALS['comment_depth'] = $depth; ?>

  • Fatal error: Uncaught Error: Call to undefined function ereg() in /websites/th/thedelatitehotel.com.au/wp-content/themes/delatite/functions.php:84 Stack trace: #0 /websites/th/thedelatitehotel.com.au/wp-content/themes/delatite/functions.php(42): commenter_link() #1 /websites/th/thedelatitehotel.com.au/wp-settings.php(663): include('/websites/th/th...') #2 /websites/th/thedelatitehotel.com.au/wp-config.php(89): require_once('/websites/th/th...') #3 /websites/th/thedelatitehotel.com.au/wp-load.php(50): require_once('/websites/th/th...') #4 /websites/th/thedelatitehotel.com.au/wp-blog-header.php(13): require_once('/websites/th/th...') #5 /websites/th/thedelatitehotel.com.au/index.php(17): require('/websites/th/th...') #6 {main} thrown in /websites/th/thedelatitehotel.com.au/wp-content/themes/delatite/functions.php on line 84