<?php
add_theme_support( 'menus' );
add_theme_support( 'post-thumbnails' );
add_image_size( 'boyut100x100', 100, 100, true );
add_image_size( 'boyut75x75', 75, 75, true );
register_sidebars(1, array('name'=>'Sidebar'));
register_nav_menus( array( 'ust_menu' => 'UstHeaderMenu', 'alt_menu' => 'AltFooterMenu', ) );
function mytheme_wp_get_attachment_image_attributes( $attr ) {
unset($attr['title']);
return $attr;
}
add_filter( 'wp_get_attachment_image_attributes', 'mytheme_wp_get_attachment_image_attributes' );
function my_init() {
if (!is_admin()) {
// comment out the next two lines to load the local copy of jQuery
wp_deregister_script('jquery');
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2');
wp_enqueue_script('jquery');
}
}
add_action('init', 'my_init');
?>
<?php
}
function yorumgetir( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case '' :
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<?php if ( $comment->comment_approved == '0' ) : ?>
<em class="comment-awaiting-moderation"><?php _e( 'Yorumunuz onay bekliyor...', 'twentyten' ); ?></em>
<?php endif; ?>
<div class="yorumbilgibar">
<div class="left"><?php printf( __( '%s ', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?></div>
<div class="right"><?php printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(), get_comment_time() ); ?></div>
</div><!-- .comment-meta .commentmetadata -->
<div class="yorumparagraf"><?php comment_text(); ?></div>
<?php
break;
case 'pingback' :
case 'trackback' :
?>
<p> <?php comment_author_link(); ?> </p>
<?php
break;
endswitch;
}
?>Bu şekilde deneyin.