__( 'Sidebar Widget Area' ),
'id' => 'sidebar-widget-area',
'description' => __( 'The sidebar widget area' ),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
function baza_noclegowa_init_method() {
if (!is_admin()) {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js');
wp_enqueue_script( 'jquery' );
}
if ( !is_admin() ) {
wp_register_script('custom_script_1',
get_template_directory_uri() . '/js/jquery.ddmenu.js');
wp_enqueue_script('custom_script_1');
wp_register_script('custom_script_2',
get_template_directory_uri() . '/js/jcarousellite_1.0.1.js');
wp_enqueue_script('custom_script_2');
}
}
add_action('init', 'baza_noclegowa_init_method');
add_editor_style();
add_theme_support( 'automatic-feed-links' );
add_theme_support('post-thumbnails');
if ( is_singular() ) wp_enqueue_script( "comment-reply" );
function baza_noclegowa_page_menu($o_args) {
global $wpdb;
global $post;
$_result = '';
$_res = $wpdb->get_results('SELECT * FROM `'.$wpdb->posts.'` WHERE `post_type` = \'page\' AND `post_parent` = \'0\' AND `post_status` = \'publish\' ORDER BY `menu_order`');
foreach($_res as $_row) {
$_result .= '- ';
$_result .= '';
$_result .= $o_args['before'];
$_result .= apply_filters('the_title', $_row->post_title);
$_result .= $o_args['after'];
$_result .= '';
if( count($_subres) ) {
$_result .= '';
}
$_result .= '
';
}
$_result .= '
';
echo $_result;
}
?>