ChecK adlı üyeden alıntı

tüm dosyayı yollar mısın ?



add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 125, 125 );

if (file_exists(TEMPLATEPATH.'/temapaneli.php')) include_once("temapaneli.php");

require( get_template_directory() . '/bilesen/sosyal.php' );
require( get_template_directory() . '/bilesen/ciftkategori.php' );
require( get_template_directory() . '/bilesen/sonyazilar.php' );
require( get_template_directory() . '/bilesen/sonyorum.php' );

if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Yan Menü',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '
',
'after_title' => '
',
));
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Footer Menü',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '
',
'after_title' => '
',
));

function add_nofollow_cat( $text ) {

$valid_tag = 'rel="tag"';
$text = str_replace('rel="category tag"', $valid_tag, $text);
return $text;
}
add_filter( 'the_category', 'add_nofollow_cat' );

function register_my_menus() {
register_nav_menus(
array(
'ust-menu' => __( 'Üst Menü' ),
'orta-menu' => __( 'Orta Menü' )
)
);
}
add_action( 'init', 'register_my_menus' );

function sayfalama($pages = '', $range = 3)
{
$showitems = ($range * 2)+1;
global $paged;
if(empty($paged)) $paged = 1;
if($pages == '')
{
global $wp_query;
$pages = $wp_query->max_num_pages;
if(!$pages)
{
$pages = 1;
}
}
if(1 != $pages)
{
echo "
";
echo "".$paged."/".$pages."";
if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "İlk";
if($paged > 1 && $showitems < $pages) echo "«";
for ($i=1; $i <= $pages; $i++)
{
if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
{
echo ($paged == $i)? "".$i."":"".$i."";
}
}
if ($paged < $pages && $showitems < $pages) echo "»";
if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "Son";
echo "
\n";
}
}

function wpn_content_limit($content, $ilimit = false)
{
$limit = ($ilimit) ? $ilimit : 270;
$pad="...";
$content = strip_tags($content);
if(strlen($content) > $limit)
{
$content = substr($content,0,$limit);
}
echo $content.$pad;
}

function son_yorumlar($limit="3",$kelime_limiti="100",$avatar_boyutu="60",$baslangic_etiket="",$bitis_etiket="") {
global $wpdb;
$sorgu = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,$kelime_limiti) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT $limit";
$yorumlar = $wpdb->get_results($sorgu);
foreach ($yorumlar as $yorum) {
$yorumid = $yorum->comment_ID;
$yazan = strip_tags($yorum->comment_author);
$avatar = get_avatar($yorum, $avatar_boyutu);
$yorum_icerik = strip_tags($yorum->com_excerpt);
$yorum_tarihi = get_comment_date('', $yorum->comment_ID );
echo $baslangic_etiket.'
'.$avatar.'
'.$yazan.' tarafından
'.$bitis_etiket;
}

}