/**
* @package WordPress
* @subpackage Video
*/
include_once("tema_ayar.php");
automatic_feed_links();
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'before_widget' => ' ',
'before_title' => '',
'after_title' => '
',
));
}
function new_excerpt_length($length) { return 200; }
add_filter('excerpt_length', 'new_excerpt_length');
function new_excerpt_more($more) { return '...'; }
add_filter('excerpt_more', 'new_excerpt_more');
/* POPULER YAZILAR */
function wpb_set_post_views($postID) {
$count_key = 'wpb_post_views_count';
$count = get_post_meta($postID, $count_key, true);
if($count==''){
$count = 0;
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, '0');
}else{
$count++;
update_post_meta($postID, $count_key, $count);
}
}
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);
/* #POPULER YAZILAR */
add_filter( 'avatar_defaults', 'newgravatar' );
function newgravatar ($avatar_defaults) {
$myavatar = get_bloginfo('template_directory') . '/images/tweaker.jpg';
$avatar_defaults[$myavatar] = "My Avatar";
return $avatar_defaults;
}
function sinyor_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment;
$PostAuthor = false;
if($comment->comment_author_email == get_the_author_email()) {
$PostAuthor = true;}
elseif($comment->comment_author_email == '') {
$PostAuthor = true;}
if (function_exists('add_theme_support')) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 600, 200 ); } if (function_exists('add_image_size')) { add_image_size('kucukresim', 145, 100, true); add_image_size('populer', 40, 40, true); }
id="li-yorum-">
Birde bunu dene hocam.