for posts and comments. add_theme_support( 'automatic-feed-links' ); /* * Adds JavaScript to pages with the comment form to support * sites with threaded comments (when in use). */ if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); //registration of custom_menu function register_nav_menus( array( 'header' => 'Header Navigacija' ) ); //Post Thumbnails features add_theme_support( 'post-thumbnails' ); add_image_size ('medium', 320, 155, true); add_image_size ('large', 646, 250, true); add_image_size ('small', 50, 50, true); } add_action( 'after_setup_theme', 'tehnonjuz_setup' ); //Excerpt of posts on front page function new_excerpt_more( $more ) { return ''; } add_filter('excerpt_more', 'new_excerpt_more'); /** * Register two widget areas. */ function tehnonjuz_widgets_init() { register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'tehnonjuz' ), 'id' => 'sidebar-1', 'description' => __( 'Appears in the footer section of the site.', 'tehnonjuz' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Main Widget Area', 'tehnonjuz' ), 'id' => 'sidebar-2', 'description' => __( 'Appears on posts and pages in the sidebar.', 'tehnonjuz' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'tehnonjuz_widgets_init' ); function tehnonjuz_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
  • id="li-comment-">
    says:', 'tehnonjuz' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>