add_action( 'after_setup_theme', 'custom_setup' );
if ( ! function_exists( 'custom_setup' ) ):
function custom_setup() {
error_reporting(0);
register_nav_menus( array(
'top-menu-bar' => __( 'Top menu area' ) ,
'header-menu-bar' => __( 'Main menu area' ) ,
'footer-menu-bar' => __( 'Footer menu area' ) ,
) );
}
if ( function_exists('register_sidebar') ){
register_sidebar( array(
'name' => __( 'Home Widget Area', 'twentyten' ),
'id' => 'home-widget-area',
'description' => __( 'Homepage widget area', 'twentyten' ),
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Main Widget Area', 'twentyten' ),
'id' => 'main-widget-area',
'description' => __( 'Inner page widget area', 'twentyten' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
) );
}
function string_limit_words($string, $word_limit)
{
$words = explode(' ', $string, ($word_limit + 1));
if(count($words) > $word_limit)
array_pop($words);
return implode(' ', $words);
}
add_theme_support('post-thumbnails');
add_filter('show_admin_bar', '__return_false');
register_post_type( 'slideshow',
array(
'labels' => array(
'name' => __( 'Slideshow' ),
'singular_name' => __( 'Slideshow' )
),
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'supports' => array( 'title', 'editor', "thumbnail", "author", "custom-fields", "comments"),
'rewrite' => array( 'slug' => 'slideshow', 'with_front' => true ),
'has_archive' => true,
'menu_position' => 6
)
);
register_post_type( 'portofoliu',
array(
'labels' => array(
'name' => __( 'Portofoliu' ),
'singular_name' => __( 'Portofoliu' )
),
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'supports' => array( 'title', 'editor', "thumbnail", "author", "custom-fields", "comments"),
'rewrite' => array( 'slug' => 'portofoliu', 'with_front' => true ),
'has_archive' => true,
'menu_position' => 6
)
);
register_post_type( 'servicii',
array(
'labels' => array(
'name' => __( 'Servicii' ),
'singular_name' => __( 'Servicii' )
),
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'supports' => array( 'title', 'editor', "thumbnail", "author", "custom-fields", "comments"),
'rewrite' => array( 'slug' => 'servicii', 'with_front' => true ),
'has_archive' => true,
'menu_position' => 6
)
);
$labels_1 = array(
'name' => 'Categorii',
'singular_name' => 'Categorie',
'search_items' => 'Cauta Categorie',
'popular_items' => 'Popular Categorie',
'all_items' => 'Toate Categoriile',
'parent_item' => 'Parinte Categorie',
'edit_item' => 'Editeaza Categorie',
'update_item' => 'Update Categorie',
'add_new_item' => 'Adauga Categorie',
'new_item_name' => 'Categorie noua',
'separate_items_with_commas' => 'Separa categorie cu virgula',
'add_or_remove_items' => 'Adauga sau sterge categorie',
'choose_from_most_used' => 'Alege din cele mai utilizate categorii'
);
$args_1 = array(
'label' => 'Categorii',
'labels' => $labels_1,
'public' => true,
'hierarchical' => true,
'show_ui' => true,
'show_in_nav_menus' => true,
'args' => array( 'orderby' => 'term_order' ),
'rewrite' => array( 'slug' => 'catportofoliu', 'with_front' => false ),
'query_var' => true
);
$post=array('portofoliu');
register_taxonomy( 'categorie-portofoliu', $post, $args_1 );
endif;
?>
Smart Design Decor | Not Found
The page cannot be found...