Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /*---------Menu------------------*/ add_action( 'init', 'theme_menus' ); function..

Decoded Output download

<?php 
/*---------Menu------------------*/ 
add_action( 'init', 'theme_menus' ); 
function theme_menus() { 
register_nav_menus( 
array( 
'menu-1' => __( 'Top menu' ), 
'menu-2' => __( 'Headmenu' ) 
) 
); 
} 
/*---------Menu------------------*/ 
/*--------- Rastgele yaz------------------*/ 
function yazi_yonlendir() { 
global $wpdb; 
$query = "SELECT ID FROM $wpdb->posts WHERE post_type = 'post' AND post_password = '' AND post_status = 'publish' ORDER BY RAND() LIMIT 1"; 
if ( isset( $_GET['random_cat_id'] ) ) { 
$random_cat_id = (int) $_GET['random_cat_id']; 
$query = "SELECT DISTINCT ID FROM $wpdb->posts AS p INNER JOIN $wpdb->term_relationships AS tr ON (p.ID = tr.object_id AND tr.term_taxonomy_id = $random_cat_id) INNER JOIN $wpdb->term_taxonomy AS tt ON(tr.term_taxonomy_id = tt.term_taxonomy_id AND taxonomy = 'category') WHERE post_type = 'post' AND post_password = '' AND post_status = 'publish' ORDER BY RAND() LIMIT 1"; 
} 
if ( isset( $_GET['random_post_type'] ) ) { 
$post_type = preg_replace( '|[^a-z]|i', '', $_GET['random_post_type'] ); 
$query = "SELECT ID FROM $wpdb->posts WHERE post_type = '$post_type' AND post_password = '' AND post_status = 'publish' ORDER BY RAND() LIMIT 1"; 
} 
$random_id = $wpdb->get_var( $query ); 
wp_redirect( get_permalink( $random_id ) ); 
exit; 
} 
if ( isset( $_GET['rastgele'] ) ) { 
add_action( 'template_redirect', 'yazi_yonlendir' ); 
} 
/*--------- Rastgele yaz ekleme------------------*/ 
 
/*--Dinamik Sidebar---*/ 
	register_sidebar( 
		array( 
			'name' => __( 'Sidebar-1', 'sidebarismi' ), //Sidebarn ismi admin arayznde grlecek ksm 
			'id' => 'sidebar1', //sidebara ait id 
			'description' => __( 'Yan mende yer alan sidebar', 'sidebarismi' ), //sidebar aklamas ve ismi 
			'before_widget' => '<div class="clearfix sidebar"><div class="clearfix single_sidebar"><div class="popular_post">', //her widget'dan nce baslacak dom nesnesi 
			'after_widget' => '</div></div></div>', //her widgettan sonra eklenecek olan dom nesnesi 
			'before_title' => '<div class="sidebar_title"><h2>', //her widget title'ndan nce eklenen nesne 
			'after_title' => '</h2></div>', //her widget title'ndan sonra ekenen nesne 
		) 
	); 
    register_sidebar(array( 
'name' => 'footer-1', 
'before_widget' => '<div class="clearfix single_footer_top floatleft">', 
'after_widget' => '</div>', 
'before_title' => '<h2>', 
'after_title' => '</h2>', 
)); 
       register_sidebar(array( 
'name' => 'footer-2', 
'before_widget' => '<div class="clearfix single_footer_top floatleft">', 
'after_widget' => '</div>', 
'before_title' => '<h2>', 
'after_title' => '</h2>', 
)); 
  register_sidebar(array( 
'name' => 'footer-3', 
'before_widget' => '<div class="clearfix single_footer_top floatleft">', 
'after_widget' => '</div>', 
'before_title' => '<h2>', 
'after_title' => '</h2>', 
)); 
/*--Dinamik Sidebar---*/ 
 
Function Lisans () { 
$site = get_bloginfo ("home"); 
 
$site1 = "http://www.localhost.com"; 
 
$site2 = "http://localhost"; 
 
if (($site!=$site1) and ($site!=$site2)) { 
 
echo "Bu tema  'caferkara.org' sitesinde kullanlabilir."; 
 
die(); 
 
} 
 
} 
 
Lisans(); 
 
 
/*--Son yorumlar---*/ 
add_action( 'widgets_init', 'bi3_sonyorum_widgets' ); 
  
function bi3_sonyorum_widgets() { 
    register_widget( 'bi3_sonyorum_widget' ); 
} 
  
class bi3_sonyorum_widget extends WP_Widget { 
  
function bi3_sonyorum_widget() { 
      
        /* Widget settings */ 
        $widget_ops = array( 'classname' => 'widget_sonyorum', 'description' => __('Son 3 yorumu resimli olarak listeler.', 'bi3') ); 
  
        /* Create the widget */ 
        $this->WP_Widget( 'bi3_sonyorum_widget', __('SarBlog Son Yorumlar', 'bi3'), $widget_ops ); 
    } 
      
function widget( $args, $instance ) { 
              
    ?> 
     		 
		<div class="clearfix single_sidebar"> 
            <div class="sidebar_title"><h2>Son Yorumlar</h2></div> 
                <?php $comments = get_comments('status=approve&number=3'); ?>  
<?php foreach ($comments as $comment) { ?>  
<div class="sonyorumlar"><?php  
$title = get_the_title($comment->comment_post_ID);  
echo '<div class="yorumresim">' . get_avatar( $comment, '40' ) . '</div>';  
echo '<div class="yorumisim">' . ($comment->comment_author) . '</div>';  
?><div class="yorumyorum"><a href="<?php echo get_permalink($comment->comment_post_ID); ?>#comment-<?php comment_ID() ?>" rel="external nofollow" title="<?php echo $title; ?>"><?php echo wp_html_excerpt( $comment->comment_content, 80 ); ?></a></div><div class="temizlik"></div> 
</div>  
<?php }    ?>  
            </div> 
        
        <?php 
        echo $after_widget; 
    } 
      
function update( $new_instance, $old_instance ) {} 
  
    function form( $instance ) { 
      
        $instance = wp_parse_args( (array) $instance, $defaults ); ?> 
          
        <p> 
           Kaydet butonuna basmay unutmayn. 
        </p> 
          
    <?php 
    } 
} 
/*---------Son Yorumlar Biti------------------*/ 
/*---------Varsaylan bileenleri sil ------------------*/ 
function remove_default_widgets() {  
unregister_widget('WP_Widget_Recent_Comments');  
}  
add_action('widgets_init', 'remove_default_widgets', 11);  
 
/*---------Varsaylan bileenleri sil son------------------*/ 
/*---------Sayfalama ------------------*/ 
function sayfalama($pages = '', $range = 2) 
{ 
 $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 "<div class='wp_paging'><ul>"; 
if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<li><a href='".get_pagenum_link(1)."'>lk</a></li>"; 
 if($paged > 1 && $showitems < $pages) echo "<li><a href='".get_pagenum_link($paged - 1)."'>Geri</a></li>"; 
 for ($i=1; $i <= $pages; $i++) 
 { 
 if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems )) 
 { 
 echo ($paged == $i)? "<li><a href='#'>".$i."</a></li>":"<li><a href='".get_pagenum_link($i)."'>".$i."</a></li>"; 
 } 
 } 
 if ($paged < $pages && $showitems < $pages) echo "<li><a href='".get_pagenum_link($paged + 1)."'>Sonraki</a></li>"; 
 if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<li><a href='".get_pagenum_link($pages)."'>Son</a></li>"; 
 echo "</ul><div class='cleaner'></div></div>"; 
 } 
} 
/*---------Sayfalama Biti---------------*/ 
/*---------Devamn Oku---------------*/ 
function new_excerpt_more( $more ) { 
	return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">' . __('Read More', 'your-text-domain') . '</a>'; 
} 
add_filter( 'excerpt_more', 'new_excerpt_more' ); 
/*---------Devamn Oku---------------*/ 
/*---------Yaz Ksa Aklamas---------------*/ 
function excerpt($limit) { 
 
 $excerpt = explode(' ', get_the_excerpt(), $limit); 
 
 if (count($excerpt)>=$limit) { 
 
 array_pop($excerpt); 
 
 $excerpt = implode(" ",$excerpt).'...'; 
 
 } else { 
 
 $excerpt = implode(" ",$excerpt); 
 
 } 
 
 $excerpt = preg_replace('`[[^]]*]`','',$excerpt); 
 
 return $excerpt; 
 
} 
 
function content($limit) { 
 
 $content = explode(' ', get_the_content(), $limit); 
 
 if (count($content)>=$limit) { 
 
 array_pop($content); 
 
 $content = implode(" ",$content).'...'; 
 
 } else { 
 
 $content = implode(" ",$content); 
 
 } 
 
 $content = preg_replace('/[.+]/','', $content); 
 
 $content = apply_filters('the_content', $content); 
 
 $content = str_replace(']]>', ']]&gt;', $content); 
 
 return $content; 
 
} 
 
 
/*---------Yaz Ksa Aklamas---------------*/ 
/*---------Yaz Thumbnails---------------*/ 
add_theme_support( 'post-thumbnails'); 
set_post_thumbnail_size( 150,150,true); 
add_image_size('single-post-thumbnail', 150,150 ); 
/*---------Yaz Thumbnails---------------*/ 
/*---------Sosyal Medya Butonlar---------------*/ 
function sariblog_social_sharing_buttons($content) { global $post; 
 if(is_singular()){ 
 $sariblogURL = urlencode(get_permalink()); 
 $sariblogTitle = str_replace( ' ', '%20', get_the_title()); 
 
 $twitterURL = 'https://twitter.com/intent/tweet?text='.$sariblogTitle.'&amp;url='.$sariblogURL.'&amp;via=sariblog'; 
 $facebookURL = 'http://www.facebook.com/sharer.php?u='.$sariblogURL; 
 $googleURL = 'http://plus.google.com/share?url='.$sariblogURL; 
 $whatsappURL = 'whatsapp://send?text='.$sariblogTitle. ' ' . $sariblogURL; 
 $pinURL = 'https://pinterest.com/pin/create/bookmarklet/?media='.$sariblogTitle. ' '.$sariblogURL; 
 $linkedinURL = 'https://www.linkedin.com/shareArticle?url='.$sariblogTitle. ' '.$sariblogURL; 
 $tumblrURL = 'https://www.tumblr.com/widgets/share/tool?canonicalUrl'.$sariblogTitle. ' '.$sariblogURL; 
 if(cs_get_option("paylas-buton")=="") {$content .='';} else { 
$content .= '<div class="sariblog-social"><div class="paylas"><p>&nbsp;Payla&nbsp;</p></div>'; 
if(cs_get_option("twitter-paylas")=="") {$content .='';} else { 
$content .= '<a class="sariblog-link sariblog-twitter" href="'.$twitterURL.'" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i>&nbsp;Twitter</a>';} 
if(cs_get_option("facebook-paylas")=="") {$content .='';} else { 
$content .= '<a class="sariblog-link sariblog-facebook" href="'.$facebookURL.'" target="_blank"><i class="fa fa-facebook-official" aria-hidden="true"></i>&nbsp;Facebook</a>';} 
if(cs_get_option("whatsapp-paylas")=="") {$content .='';} else { 
$content .= '<a class="sariblog-link sariblog-whatsapp" href="'.$whatsappURL.'" target="_blank"><i class="fa fa-whatsapp" aria-hidden="true"></i>&nbsp;WhatsApp</a>';} 
if(cs_get_option("google-paylas")=="") {$content .='';} else { 
$content .= '<a class="sariblog-link sariblog-googleplus" href="'.$googleURL.'" target="_blank"><i class="fa fa-google-plus" aria-hidden="true"></i>&nbsp;Google</a>';} 
if(cs_get_option("pinterest-paylas")=="") {$content .='';} else { 
$content .= '<a class="sariblog-link sariblog-pin" href="'.$pinURL.'" target="_blank"><i class="fa fa-pinterest-p" aria-hidden="true"></i>&nbsp;Pinterest</a>';} 
if(cs_get_option("linkedin-paylas")=="") {$content .='';} else { 
$content .= '<a class="sariblog-link sariblog-linkedin" href="'.$linkedinURL.'" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i>&nbsp;Linkedn</a>';} 
if(cs_get_option("tumblr-paylas")=="") {$content .='';} else { 
$content .= '<a class="sariblog-link sariblog-tumblr" href="'.$tumblrURL.'" target="_blank"><i class="fa fa-tumblr" aria-hidden="true"></i>&nbsp;Tumblr</a>';} 
$content .= '</div>';} 
  
 return $content; 
 }else{ 
 return $content; 
 } 
}; 
add_filter( 'the_content', 'sariblog_social_sharing_buttons'); 
/*---------Sosyal Medya Butonlar Biti---------------*/ 
/*---------Yaz ii Author Blm---------------*/ 
 function wpb_author_info_box( $content ) {  
global $post;  
if ( is_single() && isset( $post->post_author ) ) {  
$display_name = get_the_author_meta( 'display_name', $post->post_author ); 
if ( empty( $display_name ) ) 
$display_name = get_the_author_meta( 'nickname', $post->post_author ); 
$user_description = get_the_author_meta( 'user_description', $post->post_author ); 
$user_website = get_the_author_meta('url', $post->post_author); 
$user_posts = get_author_posts_url( get_the_author_meta( 'ID' , $post->post_author)); 
if ( ! empty( $display_name ) )  
$author_details = '<p class="author_name">' . $display_name . ' Hakknda</p>'; 
 if ( ! empty( $user_description ) )  
    $author_details .= '<p class="author_links"><a href="'. $user_posts .'">' . $display_name . ' isimli yazarn tm yazlar</a>';   
if ( ! empty( $user_website ) ) { 
$author_details .= ' | <a href="' . $user_website .'" target="_blank" rel="nofollow">Website</a></p>'; 
$author_details .= '<p class="author_details">' . get_avatar( get_the_author_meta('user_email') , 90 ) . nl2br( $user_description ). '</p>';  
 
} else {  
$author_details .= '</p>'; 
}  
$content = $content . '<footer class="author_bio_section" >' . $author_details . '</footer>'; 
}  
return $content; 
}  
add_action( 'the_content', 'wpb_author_info_box' ); 
remove_filter('pre_user_description', 'wp_filter_kses');  
/*---------Yaz ii Author Blm Biti ---------------*/ 
/*---------Beardcrumbs--------*/ 
function custom_breadcrumbs() { 
        
    // Settings 
    $separator          = '&middot;'; 
    $breadcrums_id      = 'breadcrumbs'; 
    $breadcrums_class   = 'breadcrumbs'; 
    $home_title         = 'Anasayfa'; 
       
    // If you have any custom post types with custom taxonomies, put the taxonomy name below (e.g. product_cat) 
    $custom_taxonomy    = 'product_cat'; 
        
    // Get the query & post information 
    global $post,$wp_query; 
        
    // Do not display on the homepage 
    if ( !is_front_page() ) { 
        
        // Build the breadcrums 
        echo '<ul id="' . $breadcrums_id . '" class="' . $breadcrums_class . '">'; 
            
        // Home page 
        echo '<li class="item-home"><a class="bread-link bread-home" href="' . get_home_url() . '" title="' . $home_title . '">' . $home_title . '</a></li>'; 
        echo '<li class="separator separator-home"> ' . $separator . ' </li>'; 
            
        if ( is_archive() && !is_tax() && !is_category() && !is_tag() ) { 
               
            echo '<li class="item-current item-archive"><strong class="bread-current bread-archive">' . post_type_archive_title($prefix, false) . '</strong></li>'; 
               
        } else if ( is_archive() && is_tax() && !is_category() && !is_tag() ) { 
               
            // If post is a custom post type 
            $post_type = get_post_type(); 
               
            // If it is a custom post type display name and link 
            if($post_type != 'post') { 
                   
                $post_type_object = get_post_type_object($post_type); 
                $post_type_archive = get_post_type_archive_link($post_type); 
               
                echo '<li class="item-cat item-custom-post-type-' . $post_type . '"><a class="bread-cat bread-custom-post-type-' . $post_type . '" href="' . $post_type_archive . '" title="' . $post_type_object->labels->name . '">' . $post_type_object->labels->name . '</a></li>'; 
                echo '<li class="separator"> ' . $separator . ' </li>'; 
               
            } 
               
            $custom_tax_name = get_queried_object()->name; 
            echo '<li class="item-current item-archive"><strong class="bread-current bread-archive">' . $custom_tax_name . '</strong></li>'; 
               
        } else if ( is_single() ) { 
               
            // If post is a custom post type 
            $post_type = get_post_type(); 
               
            // If it is a custom post type display name and link 
            if($post_type != 'post') { 
                   
                $post_type_object = get_post_type_object($post_type); 
                $post_type_archive = get_post_type_archive_link($post_type); 
               
                echo '<li class="item-cat item-custom-post-type-' . $post_type . '"><a class="bread-cat bread-custom-post-type-' . $post_type . '" href="' . $post_type_archive . '" title="' . $post_type_object->labels->name . '">' . $post_type_object->labels->name . '</a></li>'; 
                echo '<li class="separator"> ' . $separator . ' </li>'; 
               
            } 
               
            // Get post category info 
            $category = get_the_category(); 
              
            if(!empty($category)) { 
               
                // Get last category post is in 
                $last_category = end(array_values($category)); 
                   
                // Get parent any categories and create array 
                $get_cat_parents = rtrim(get_category_parents($last_category->term_id, true, ','),','); 
                $cat_parents = explode(',',$get_cat_parents); 
                   
                // Loop through parent categories and store in variable $cat_display 
                $cat_display = ''; 
                foreach($cat_parents as $parents) { 
                    $cat_display .= '<li class="item-cat">'.$parents.'</li>'; 
                    $cat_display .= '<li class="separator"> ' . $separator . ' </li>'; 
                } 
              
            } 
               
            // If it's a custom post type within a custom taxonomy 
            $taxonomy_exists = taxonomy_exists($custom_taxonomy); 
            if(empty($last_category) && !empty($custom_taxonomy) && $taxonomy_exists) { 
                    
                $taxonomy_terms = get_the_terms( $post->ID, $custom_taxonomy ); 
                $cat_id         = $taxonomy_terms[0]->term_id; 
                $cat_nicename   = $taxonomy_terms[0]->slug; 
                $cat_link       = get_term_link($taxonomy_terms[0]->term_id, $custom_taxonomy); 
                $cat_name       = $taxonomy_terms[0]->name; 
                
            } 
               
            // Check if the post is in a category 
            if(!empty($last_category)) { 
                echo $cat_display; 
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '" title="' . get_the_title() . '">' . get_the_title() . '</strong></li>'; 
                   
            // Else if post is in a custom taxonomy 
            } else if(!empty($cat_id)) { 
                   
                echo '<li class="item-cat item-cat-' . $cat_id . ' item-cat-' . $cat_nicename . '"><a class="bread-cat bread-cat-' . $cat_id . ' bread-cat-' . $cat_nicename . '" href="' . $cat_link . '" title="' . $cat_name . '">' . $cat_name . '</a></li>'; 
                echo '<li class="separator"> ' . $separator . ' </li>'; 
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '" title="' . get_the_title() . '">' . get_the_title() . '</strong></li>'; 
               
            } else { 
                   
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '" title="' . get_the_title() . '">' . get_the_title() . '</strong></li>'; 
                   
            } 
               
        } else if ( is_category() ) { 
                
            // Category page 
            echo '<li class="item-current item-cat"><strong class="bread-current bread-cat">' . single_cat_title('', false) . '</strong></li>'; 
                
        } else if ( is_page() ) { 
                
            // Standard page 
            if( $post->post_parent ){ 
                    
                // If child page, get parents  
                $anc = get_post_ancestors( $post->ID ); 
                    
                // Get parents in the right order 
                $anc = array_reverse($anc); 
                    
                // Parent page loop 
                if ( !isset( $parents ) ) $parents = null; 
                foreach ( $anc as $ancestor ) { 
                    $parents .= '<li class="item-parent item-parent-' . $ancestor . '"><a class="bread-parent bread-parent-' . $ancestor . '" href="' . get_permalink($ancestor) . '" title="' . get_the_title($ancestor) . '">' . get_the_title($ancestor) . '</a></li>'; 
                    $parents .= '<li class="separator separator-' . $ancestor . '"> ' . $separator . ' </li>'; 
                } 
                    
                // Display parent pages 
                echo $parents; 
                    
                // Current page 
                echo '<li class="item-current item-' . $post->ID . '"><strong title="' . get_the_title() . '"> ' . get_the_title() . '</strong></li>'; 
                    
            } else { 
                    
                // Just display current page if not parents 
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '"> ' . get_the_title() . '</strong></li>'; 
                    
            } 
                
        } else if ( is_tag() ) { 
                
            // Tag page 
                
            // Get tag information 
            $term_id        = get_query_var('tag_id'); 
            $taxonomy       = 'post_tag'; 
            $args           = 'include=' . $term_id; 
            $terms          = get_terms( $taxonomy, $args ); 
            $get_term_id    = $terms[0]->term_id; 
            $get_term_slug  = $terms[0]->slug; 
            $get_term_name  = $terms[0]->name; 
                
            // Display the tag name 
            echo '<li class="item-current item-tag-' . $get_term_id . ' item-tag-' . $get_term_slug . '"><strong class="bread-current bread-tag-' . $get_term_id . ' bread-tag-' . $get_term_slug . '">' . $get_term_name . '</strong></li>'; 
            
        } elseif ( is_day() ) { 
                
            // Day archive 
                
            // Year link 
            echo '<li class="item-year item-year-' . get_the_time('Y') . '"><a class="bread-year bread-year-' . get_the_time('Y') . '" href="' . get_year_link( get_the_time('Y') ) . '" title="' . get_the_time('Y') . '">' . get_the_time('Y') . ' Archives</a></li>'; 
            echo '<li class="separator separator-' . get_the_time('Y') . '"> ' . $separator . ' </li>'; 
                
            // Month link 
            echo '<li class="item-month item-month-' . get_the_time('m') . '"><a class="bread-month bread-month-' . get_the_time('m') . '" href="' . get_month_link( get_the_time('Y'), get_the_time('m') ) . '" title="' . get_the_time('M') . '">' . get_the_time('M') . ' Archives</a></li>'; 
            echo '<li class="separator separator-' . get_the_time('m') . '"> ' . $separator . ' </li>'; 
                
            // Day display 
            echo '<li class="item-current item-' . get_the_time('j') . '"><strong class="bread-current bread-' . get_the_time('j') . '"> ' . get_the_time('jS') . ' ' . get_the_time('M') . ' Archives</strong></li>'; 
                
        } else if ( is_month() ) { 
                
            // Month Archive 
                
            // Year link 
            echo '<li class="item-year item-year-' . get_the_time('Y') . '"><a class="bread-year bread-year-' . get_the_time('Y') . '" href="' . get_year_link( get_the_time('Y') ) . '" title="' . get_the_time('Y') . '">' . get_the_time('Y') . ' Archives</a></li>'; 
            echo '<li class="separator separator-' . get_the_time('Y') . '"> ' . $separator . ' </li>'; 
                
            // Month display 
            echo '<li class="item-month item-month-' . get_the_time('m') . '"><strong class="bread-month bread-month-' . get_the_time('m') . '" title="' . get_the_time('M') . '">' . get_the_time('M') . ' Archives</strong></li>'; 
                
        } else if ( is_year() ) { 
                
            // Display year archive 
            echo '<li class="item-current item-current-' . get_the_time('Y') . '"><strong class="bread-current bread-current-' . get_the_time('Y') . '" title="' . get_the_time('Y') . '">' . get_the_time('Y') . ' Archives</strong></li>'; 
                
        } else if ( is_author() ) { 
                
            // Auhor archive 
                
            // Get the author information 
            global $author; 
            $userdata = get_userdata( $author ); 
                
            // Display author name 
            echo '<li class="item-current item-current-' . $userdata->user_nicename . '"><strong class="bread-current bread-current-' . $userdata->user_nicename . '" title="' . $userdata->display_name . '">' . 'Author: ' . $userdata->display_name . '</strong></li>'; 
            
        } else if ( get_query_var('paged') ) { 
                
            // Paginated archives 
            echo '<li class="item-current item-current-' . get_query_var('paged') . '"><strong class="bread-current bread-current-' . get_query_var('paged') . '" title="Page ' . get_query_var('paged') . '">'.__('Page') . ' ' . get_query_var('paged') . '</strong></li>'; 
                
        } else if ( is_search() ) { 
            
            // Search results page 
            echo '<li class="item-current item-current-' . get_search_query() . '"><strong class="bread-current bread-current-' . get_search_query() . '" title="Search results for: ' . get_search_query() . '">Search results for: ' . get_search_query() . '</strong></li>'; 
            
        } elseif ( is_404() ) { 
                
            // 404 page 
            echo '<li>' . 'Error 404' . '</li>'; 
        } 
        
        echo '</ul>'; 
            
    } 
        
} 
 
/*---------Beardcrumb Biti--- 
/*---------Yorum Listeleme ---------------*/ 
function advanced_comment($comment, $args, $depth) { 
   $GLOBALS['comment'] = $comment; ?> 
  
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> 
   <div class="comment-author vcard"> 
     <?php echo get_avatar( $comment, 50 ); ?> 
       <div class="comment-meta"<a href="<?php the_author_meta( 'user_url'); ?>"><?php printf(__('%s'), get_comment_author_link()) ?></a></div> 
       <small><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?><?php edit_comment_link(__('(Edit)'),'  ','') ?></small> 
     </div> 
     <div class="clear"></div> 
  
     <?php if ($comment->comment_approved == '0') : ?> 
       <em><?php _e('Yorumunuz onay bekliyor.') ?></em> 
       <br /> 
     <?php endif; ?> 
  
     <div class="comment-text">  
         <?php comment_text() ?> 
     </div> 
  
   <div class="reply"> 
      <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> 
   </div> 
   <div class="clear"></div> 
<?php } ?> 
<?php function delete_comment_link($id) { 
  if (current_user_can('edit_post')) { 
    echo '<a href="'.admin_url("comment.php?action=cdc&c=$id").'">Sil</a> '; 
    echo '<a href="'.admin_url("comment.php?action=cdc&dt=spam&c=$id").'">Spam</a>'; 
  } 
} 
?> 
<?php  
function close_comments( $posts ) { 
    if ( !is_single() ) { return $posts; } 
    if ( time() - strtotime( $posts[0]->post_date_gmt ) > ( 30 * 24 * 60 * 60 ) ) { 
        $posts[0]->comment_status = 'closed'; 
        $posts[0]->ping_status    = 'closed'; 
    } 
    return $posts; 
} 
add_filter( 'the_posts', 'close_comments' );  
?> 
<?php function check_referrer() { 
    if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] == ) { 
        wp_die( __('Ltfen ynlendirenleri taraycnzdan etkinletirin veya bir spam gnderenseniz buradan kn!') ); 
    } 
} 
add_action('check_comment_flood', 'check_referrer'); 
/*TEMA admin PANEL */ 
require_once("adminpaneli/cs-framework.php"); ?>

Did this file decode correctly?

Original Code

<?php
/*---------Menu------------------*/
add_action( 'init', 'theme_menus' );
function theme_menus() {
register_nav_menus(
array(
'menu-1' => __( 'Top menu' ),
'menu-2' => __( 'Headmenu' )
)
);
}
/*---------Menu------------------*/
/*--------- Rastgele yaz------------------*/
function yazi_yonlendir() {
global $wpdb;
$query = "SELECT ID FROM $wpdb->posts WHERE post_type = 'post' AND post_password = '' AND post_status = 'publish' ORDER BY RAND() LIMIT 1";
if ( isset( $_GET['random_cat_id'] ) ) {
$random_cat_id = (int) $_GET['random_cat_id'];
$query = "SELECT DISTINCT ID FROM $wpdb->posts AS p INNER JOIN $wpdb->term_relationships AS tr ON (p.ID = tr.object_id AND tr.term_taxonomy_id = $random_cat_id) INNER JOIN $wpdb->term_taxonomy AS tt ON(tr.term_taxonomy_id = tt.term_taxonomy_id AND taxonomy = 'category') WHERE post_type = 'post' AND post_password = '' AND post_status = 'publish' ORDER BY RAND() LIMIT 1";
}
if ( isset( $_GET['random_post_type'] ) ) {
$post_type = preg_replace( '|[^a-z]|i', '', $_GET['random_post_type'] );
$query = "SELECT ID FROM $wpdb->posts WHERE post_type = '$post_type' AND post_password = '' AND post_status = 'publish' ORDER BY RAND() LIMIT 1";
}
$random_id = $wpdb->get_var( $query );
wp_redirect( get_permalink( $random_id ) );
exit;
}
if ( isset( $_GET['rastgele'] ) ) {
add_action( 'template_redirect', 'yazi_yonlendir' );
}
/*--------- Rastgele yaz ekleme------------------*/

/*--Dinamik Sidebar---*/
	register_sidebar(
		array(
			'name' => __( 'Sidebar-1', 'sidebarismi' ), //Sidebarn ismi admin arayznde grlecek ksm
			'id' => 'sidebar1', //sidebara ait id
			'description' => __( 'Yan mende yer alan sidebar', 'sidebarismi' ), //sidebar aklamas ve ismi
			'before_widget' => '<div class="clearfix sidebar"><div class="clearfix single_sidebar"><div class="popular_post">', //her widget'dan nce baslacak dom nesnesi
			'after_widget' => '</div></div></div>', //her widgettan sonra eklenecek olan dom nesnesi
			'before_title' => '<div class="sidebar_title"><h2>', //her widget title'ndan nce eklenen nesne
			'after_title' => '</h2></div>', //her widget title'ndan sonra ekenen nesne
		)
	);
    register_sidebar(array(
'name' => 'footer-1',
'before_widget' => '<div class="clearfix single_footer_top floatleft">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
       register_sidebar(array(
'name' => 'footer-2',
'before_widget' => '<div class="clearfix single_footer_top floatleft">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
  register_sidebar(array(
'name' => 'footer-3',
'before_widget' => '<div class="clearfix single_footer_top floatleft">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
/*--Dinamik Sidebar---*/

Function Lisans () {
$site = get_bloginfo ("home");

$site1 = "http://www.localhost.com";

$site2 = "http://localhost";

if (($site!=$site1) and ($site!=$site2)) {

echo "Bu tema  'caferkara.org' sitesinde kullanlabilir.";

die();

}

}

Lisans();


/*--Son yorumlar---*/
add_action( 'widgets_init', 'bi3_sonyorum_widgets' );
 
function bi3_sonyorum_widgets() {
    register_widget( 'bi3_sonyorum_widget' );
}
 
class bi3_sonyorum_widget extends WP_Widget {
 
function bi3_sonyorum_widget() {
     
        /* Widget settings */
        $widget_ops = array( 'classname' => 'widget_sonyorum', 'description' => __('Son 3 yorumu resimli olarak listeler.', 'bi3') );
 
        /* Create the widget */
        $this->WP_Widget( 'bi3_sonyorum_widget', __('SarBlog Son Yorumlar', 'bi3'), $widget_ops );
    }
     
function widget( $args, $instance ) {
             
    ?>
     		
		<div class="clearfix single_sidebar">
            <div class="sidebar_title"><h2>Son Yorumlar</h2></div>
                <?php $comments = get_comments('status=approve&number=3'); ?> 
<?php foreach ($comments as $comment) { ?> 
<div class="sonyorumlar"><?php 
$title = get_the_title($comment->comment_post_ID); 
echo '<div class="yorumresim">' . get_avatar( $comment, '40' ) . '</div>'; 
echo '<div class="yorumisim">' . ($comment->comment_author) . '</div>'; 
?><div class="yorumyorum"><a href="<?php echo get_permalink($comment->comment_post_ID); ?>#comment-<?php comment_ID() ?>" rel="external nofollow" title="<?php echo $title; ?>"><?php echo wp_html_excerpt( $comment->comment_content, 80 ); ?></a></div><div class="temizlik"></div>
</div> 
<?php }    ?> 
            </div>
       
        <?php
        echo $after_widget;
    }
     
function update( $new_instance, $old_instance ) {}
 
    function form( $instance ) {
     
        $instance = wp_parse_args( (array) $instance, $defaults ); ?>
         
        <p>
           Kaydet butonuna basmay unutmayn.
        </p>
         
    <?php
    }
}
/*---------Son Yorumlar Biti------------------*/
/*---------Varsaylan bileenleri sil ------------------*/
function remove_default_widgets() { 
unregister_widget('WP_Widget_Recent_Comments'); 
} 
add_action('widgets_init', 'remove_default_widgets', 11); 

/*---------Varsaylan bileenleri sil son------------------*/
/*---------Sayfalama ------------------*/
function sayfalama($pages = '', $range = 2)
{
 $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 "<div class='wp_paging'><ul>";
if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<li><a href='".get_pagenum_link(1)."'>lk</a></li>";
 if($paged > 1 && $showitems < $pages) echo "<li><a href='".get_pagenum_link($paged - 1)."'>Geri</a></li>";
 for ($i=1; $i <= $pages; $i++)
 {
 if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
 {
 echo ($paged == $i)? "<li><a href='#'>".$i."</a></li>":"<li><a href='".get_pagenum_link($i)."'>".$i."</a></li>";
 }
 }
 if ($paged < $pages && $showitems < $pages) echo "<li><a href='".get_pagenum_link($paged + 1)."'>Sonraki</a></li>";
 if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<li><a href='".get_pagenum_link($pages)."'>Son</a></li>";
 echo "</ul><div class='cleaner'></div></div>";
 }
}
/*---------Sayfalama Biti---------------*/
/*---------Devamn Oku---------------*/
function new_excerpt_more( $more ) {
	return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">' . __('Read More', 'your-text-domain') . '</a>';
}
add_filter( 'excerpt_more', 'new_excerpt_more' );
/*---------Devamn Oku---------------*/
/*---------Yaz Ksa Aklamas---------------*/
function excerpt($limit) {

 $excerpt = explode(' ', get_the_excerpt(), $limit);

 if (count($excerpt)>=$limit) {

 array_pop($excerpt);

 $excerpt = implode(" ",$excerpt).'...';

 } else {

 $excerpt = implode(" ",$excerpt);

 }

 $excerpt = preg_replace('`[[^]]*]`','',$excerpt);

 return $excerpt;

}

function content($limit) {

 $content = explode(' ', get_the_content(), $limit);

 if (count($content)>=$limit) {

 array_pop($content);

 $content = implode(" ",$content).'...';

 } else {

 $content = implode(" ",$content);

 }

 $content = preg_replace('/[.+]/','', $content);

 $content = apply_filters('the_content', $content);

 $content = str_replace(']]>', ']]&gt;', $content);

 return $content;

}


/*---------Yaz Ksa Aklamas---------------*/
/*---------Yaz Thumbnails---------------*/
add_theme_support( 'post-thumbnails');
set_post_thumbnail_size( 150,150,true);
add_image_size('single-post-thumbnail', 150,150 );
/*---------Yaz Thumbnails---------------*/
/*---------Sosyal Medya Butonlar---------------*/
function sariblog_social_sharing_buttons($content) { global $post;
 if(is_singular()){
 $sariblogURL = urlencode(get_permalink());
 $sariblogTitle = str_replace( ' ', '%20', get_the_title());

 $twitterURL = 'https://twitter.com/intent/tweet?text='.$sariblogTitle.'&amp;url='.$sariblogURL.'&amp;via=sariblog';
 $facebookURL = 'http://www.facebook.com/sharer.php?u='.$sariblogURL;
 $googleURL = 'http://plus.google.com/share?url='.$sariblogURL;
 $whatsappURL = 'whatsapp://send?text='.$sariblogTitle. ' ' . $sariblogURL;
 $pinURL = 'https://pinterest.com/pin/create/bookmarklet/?media='.$sariblogTitle. ' '.$sariblogURL;
 $linkedinURL = 'https://www.linkedin.com/shareArticle?url='.$sariblogTitle. ' '.$sariblogURL;
 $tumblrURL = 'https://www.tumblr.com/widgets/share/tool?canonicalUrl'.$sariblogTitle. ' '.$sariblogURL;
 if(cs_get_option("paylas-buton")=="") {$content .='';} else {
$content .= '<div class="sariblog-social"><div class="paylas"><p>&nbsp;Payla&nbsp;</p></div>';
if(cs_get_option("twitter-paylas")=="") {$content .='';} else {
$content .= '<a class="sariblog-link sariblog-twitter" href="'.$twitterURL.'" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i>&nbsp;Twitter</a>';}
if(cs_get_option("facebook-paylas")=="") {$content .='';} else {
$content .= '<a class="sariblog-link sariblog-facebook" href="'.$facebookURL.'" target="_blank"><i class="fa fa-facebook-official" aria-hidden="true"></i>&nbsp;Facebook</a>';}
if(cs_get_option("whatsapp-paylas")=="") {$content .='';} else {
$content .= '<a class="sariblog-link sariblog-whatsapp" href="'.$whatsappURL.'" target="_blank"><i class="fa fa-whatsapp" aria-hidden="true"></i>&nbsp;WhatsApp</a>';}
if(cs_get_option("google-paylas")=="") {$content .='';} else {
$content .= '<a class="sariblog-link sariblog-googleplus" href="'.$googleURL.'" target="_blank"><i class="fa fa-google-plus" aria-hidden="true"></i>&nbsp;Google</a>';}
if(cs_get_option("pinterest-paylas")=="") {$content .='';} else {
$content .= '<a class="sariblog-link sariblog-pin" href="'.$pinURL.'" target="_blank"><i class="fa fa-pinterest-p" aria-hidden="true"></i>&nbsp;Pinterest</a>';}
if(cs_get_option("linkedin-paylas")=="") {$content .='';} else {
$content .= '<a class="sariblog-link sariblog-linkedin" href="'.$linkedinURL.'" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i>&nbsp;Linkedn</a>';}
if(cs_get_option("tumblr-paylas")=="") {$content .='';} else {
$content .= '<a class="sariblog-link sariblog-tumblr" href="'.$tumblrURL.'" target="_blank"><i class="fa fa-tumblr" aria-hidden="true"></i>&nbsp;Tumblr</a>';}
$content .= '</div>';}
 
 return $content;
 }else{
 return $content;
 }
};
add_filter( 'the_content', 'sariblog_social_sharing_buttons');
/*---------Sosyal Medya Butonlar Biti---------------*/
/*---------Yaz ii Author Blm---------------*/
 function wpb_author_info_box( $content ) { 
global $post; 
if ( is_single() && isset( $post->post_author ) ) { 
$display_name = get_the_author_meta( 'display_name', $post->post_author );
if ( empty( $display_name ) )
$display_name = get_the_author_meta( 'nickname', $post->post_author );
$user_description = get_the_author_meta( 'user_description', $post->post_author );
$user_website = get_the_author_meta('url', $post->post_author);
$user_posts = get_author_posts_url( get_the_author_meta( 'ID' , $post->post_author));
if ( ! empty( $display_name ) ) 
$author_details = '<p class="author_name">' . $display_name . ' Hakknda</p>';
 if ( ! empty( $user_description ) ) 
    $author_details .= '<p class="author_links"><a href="'. $user_posts .'">' . $display_name . ' isimli yazarn tm yazlar</a>';  
if ( ! empty( $user_website ) ) {
$author_details .= ' | <a href="' . $user_website .'" target="_blank" rel="nofollow">Website</a></p>';
$author_details .= '<p class="author_details">' . get_avatar( get_the_author_meta('user_email') , 90 ) . nl2br( $user_description ). '</p>'; 

} else { 
$author_details .= '</p>';
} 
$content = $content . '<footer class="author_bio_section" >' . $author_details . '</footer>';
} 
return $content;
} 
add_action( 'the_content', 'wpb_author_info_box' );
remove_filter('pre_user_description', 'wp_filter_kses'); 
/*---------Yaz ii Author Blm Biti ---------------*/
/*---------Beardcrumbs--------*/
function custom_breadcrumbs() {
       
    // Settings
    $separator          = '&middot;';
    $breadcrums_id      = 'breadcrumbs';
    $breadcrums_class   = 'breadcrumbs';
    $home_title         = 'Anasayfa';
      
    // If you have any custom post types with custom taxonomies, put the taxonomy name below (e.g. product_cat)
    $custom_taxonomy    = 'product_cat';
       
    // Get the query & post information
    global $post,$wp_query;
       
    // Do not display on the homepage
    if ( !is_front_page() ) {
       
        // Build the breadcrums
        echo '<ul id="' . $breadcrums_id . '" class="' . $breadcrums_class . '">';
           
        // Home page
        echo '<li class="item-home"><a class="bread-link bread-home" href="' . get_home_url() . '" title="' . $home_title . '">' . $home_title . '</a></li>';
        echo '<li class="separator separator-home"> ' . $separator . ' </li>';
           
        if ( is_archive() && !is_tax() && !is_category() && !is_tag() ) {
              
            echo '<li class="item-current item-archive"><strong class="bread-current bread-archive">' . post_type_archive_title($prefix, false) . '</strong></li>';
              
        } else if ( is_archive() && is_tax() && !is_category() && !is_tag() ) {
              
            // If post is a custom post type
            $post_type = get_post_type();
              
            // If it is a custom post type display name and link
            if($post_type != 'post') {
                  
                $post_type_object = get_post_type_object($post_type);
                $post_type_archive = get_post_type_archive_link($post_type);
              
                echo '<li class="item-cat item-custom-post-type-' . $post_type . '"><a class="bread-cat bread-custom-post-type-' . $post_type . '" href="' . $post_type_archive . '" title="' . $post_type_object->labels->name . '">' . $post_type_object->labels->name . '</a></li>';
                echo '<li class="separator"> ' . $separator . ' </li>';
              
            }
              
            $custom_tax_name = get_queried_object()->name;
            echo '<li class="item-current item-archive"><strong class="bread-current bread-archive">' . $custom_tax_name . '</strong></li>';
              
        } else if ( is_single() ) {
              
            // If post is a custom post type
            $post_type = get_post_type();
              
            // If it is a custom post type display name and link
            if($post_type != 'post') {
                  
                $post_type_object = get_post_type_object($post_type);
                $post_type_archive = get_post_type_archive_link($post_type);
              
                echo '<li class="item-cat item-custom-post-type-' . $post_type . '"><a class="bread-cat bread-custom-post-type-' . $post_type . '" href="' . $post_type_archive . '" title="' . $post_type_object->labels->name . '">' . $post_type_object->labels->name . '</a></li>';
                echo '<li class="separator"> ' . $separator . ' </li>';
              
            }
              
            // Get post category info
            $category = get_the_category();
             
            if(!empty($category)) {
              
                // Get last category post is in
                $last_category = end(array_values($category));
                  
                // Get parent any categories and create array
                $get_cat_parents = rtrim(get_category_parents($last_category->term_id, true, ','),',');
                $cat_parents = explode(',',$get_cat_parents);
                  
                // Loop through parent categories and store in variable $cat_display
                $cat_display = '';
                foreach($cat_parents as $parents) {
                    $cat_display .= '<li class="item-cat">'.$parents.'</li>';
                    $cat_display .= '<li class="separator"> ' . $separator . ' </li>';
                }
             
            }
              
            // If it's a custom post type within a custom taxonomy
            $taxonomy_exists = taxonomy_exists($custom_taxonomy);
            if(empty($last_category) && !empty($custom_taxonomy) && $taxonomy_exists) {
                   
                $taxonomy_terms = get_the_terms( $post->ID, $custom_taxonomy );
                $cat_id         = $taxonomy_terms[0]->term_id;
                $cat_nicename   = $taxonomy_terms[0]->slug;
                $cat_link       = get_term_link($taxonomy_terms[0]->term_id, $custom_taxonomy);
                $cat_name       = $taxonomy_terms[0]->name;
               
            }
              
            // Check if the post is in a category
            if(!empty($last_category)) {
                echo $cat_display;
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '" title="' . get_the_title() . '">' . get_the_title() . '</strong></li>';
                  
            // Else if post is in a custom taxonomy
            } else if(!empty($cat_id)) {
                  
                echo '<li class="item-cat item-cat-' . $cat_id . ' item-cat-' . $cat_nicename . '"><a class="bread-cat bread-cat-' . $cat_id . ' bread-cat-' . $cat_nicename . '" href="' . $cat_link . '" title="' . $cat_name . '">' . $cat_name . '</a></li>';
                echo '<li class="separator"> ' . $separator . ' </li>';
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '" title="' . get_the_title() . '">' . get_the_title() . '</strong></li>';
              
            } else {
                  
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '" title="' . get_the_title() . '">' . get_the_title() . '</strong></li>';
                  
            }
              
        } else if ( is_category() ) {
               
            // Category page
            echo '<li class="item-current item-cat"><strong class="bread-current bread-cat">' . single_cat_title('', false) . '</strong></li>';
               
        } else if ( is_page() ) {
               
            // Standard page
            if( $post->post_parent ){
                   
                // If child page, get parents 
                $anc = get_post_ancestors( $post->ID );
                   
                // Get parents in the right order
                $anc = array_reverse($anc);
                   
                // Parent page loop
                if ( !isset( $parents ) ) $parents = null;
                foreach ( $anc as $ancestor ) {
                    $parents .= '<li class="item-parent item-parent-' . $ancestor . '"><a class="bread-parent bread-parent-' . $ancestor . '" href="' . get_permalink($ancestor) . '" title="' . get_the_title($ancestor) . '">' . get_the_title($ancestor) . '</a></li>';
                    $parents .= '<li class="separator separator-' . $ancestor . '"> ' . $separator . ' </li>';
                }
                   
                // Display parent pages
                echo $parents;
                   
                // Current page
                echo '<li class="item-current item-' . $post->ID . '"><strong title="' . get_the_title() . '"> ' . get_the_title() . '</strong></li>';
                   
            } else {
                   
                // Just display current page if not parents
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '"> ' . get_the_title() . '</strong></li>';
                   
            }
               
        } else if ( is_tag() ) {
               
            // Tag page
               
            // Get tag information
            $term_id        = get_query_var('tag_id');
            $taxonomy       = 'post_tag';
            $args           = 'include=' . $term_id;
            $terms          = get_terms( $taxonomy, $args );
            $get_term_id    = $terms[0]->term_id;
            $get_term_slug  = $terms[0]->slug;
            $get_term_name  = $terms[0]->name;
               
            // Display the tag name
            echo '<li class="item-current item-tag-' . $get_term_id . ' item-tag-' . $get_term_slug . '"><strong class="bread-current bread-tag-' . $get_term_id . ' bread-tag-' . $get_term_slug . '">' . $get_term_name . '</strong></li>';
           
        } elseif ( is_day() ) {
               
            // Day archive
               
            // Year link
            echo '<li class="item-year item-year-' . get_the_time('Y') . '"><a class="bread-year bread-year-' . get_the_time('Y') . '" href="' . get_year_link( get_the_time('Y') ) . '" title="' . get_the_time('Y') . '">' . get_the_time('Y') . ' Archives</a></li>';
            echo '<li class="separator separator-' . get_the_time('Y') . '"> ' . $separator . ' </li>';
               
            // Month link
            echo '<li class="item-month item-month-' . get_the_time('m') . '"><a class="bread-month bread-month-' . get_the_time('m') . '" href="' . get_month_link( get_the_time('Y'), get_the_time('m') ) . '" title="' . get_the_time('M') . '">' . get_the_time('M') . ' Archives</a></li>';
            echo '<li class="separator separator-' . get_the_time('m') . '"> ' . $separator . ' </li>';
               
            // Day display
            echo '<li class="item-current item-' . get_the_time('j') . '"><strong class="bread-current bread-' . get_the_time('j') . '"> ' . get_the_time('jS') . ' ' . get_the_time('M') . ' Archives</strong></li>';
               
        } else if ( is_month() ) {
               
            // Month Archive
               
            // Year link
            echo '<li class="item-year item-year-' . get_the_time('Y') . '"><a class="bread-year bread-year-' . get_the_time('Y') . '" href="' . get_year_link( get_the_time('Y') ) . '" title="' . get_the_time('Y') . '">' . get_the_time('Y') . ' Archives</a></li>';
            echo '<li class="separator separator-' . get_the_time('Y') . '"> ' . $separator . ' </li>';
               
            // Month display
            echo '<li class="item-month item-month-' . get_the_time('m') . '"><strong class="bread-month bread-month-' . get_the_time('m') . '" title="' . get_the_time('M') . '">' . get_the_time('M') . ' Archives</strong></li>';
               
        } else if ( is_year() ) {
               
            // Display year archive
            echo '<li class="item-current item-current-' . get_the_time('Y') . '"><strong class="bread-current bread-current-' . get_the_time('Y') . '" title="' . get_the_time('Y') . '">' . get_the_time('Y') . ' Archives</strong></li>';
               
        } else if ( is_author() ) {
               
            // Auhor archive
               
            // Get the author information
            global $author;
            $userdata = get_userdata( $author );
               
            // Display author name
            echo '<li class="item-current item-current-' . $userdata->user_nicename . '"><strong class="bread-current bread-current-' . $userdata->user_nicename . '" title="' . $userdata->display_name . '">' . 'Author: ' . $userdata->display_name . '</strong></li>';
           
        } else if ( get_query_var('paged') ) {
               
            // Paginated archives
            echo '<li class="item-current item-current-' . get_query_var('paged') . '"><strong class="bread-current bread-current-' . get_query_var('paged') . '" title="Page ' . get_query_var('paged') . '">'.__('Page') . ' ' . get_query_var('paged') . '</strong></li>';
               
        } else if ( is_search() ) {
           
            // Search results page
            echo '<li class="item-current item-current-' . get_search_query() . '"><strong class="bread-current bread-current-' . get_search_query() . '" title="Search results for: ' . get_search_query() . '">Search results for: ' . get_search_query() . '</strong></li>';
           
        } elseif ( is_404() ) {
               
            // 404 page
            echo '<li>' . 'Error 404' . '</li>';
        }
       
        echo '</ul>';
           
    }
       
}

/*---------Beardcrumb Biti---
/*---------Yorum Listeleme ---------------*/
function advanced_comment($comment, $args, $depth) {
   $GLOBALS['comment'] = $comment; ?>
 
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
   <div class="comment-author vcard">
     <?php echo get_avatar( $comment, 50 ); ?>
       <div class="comment-meta"<a href="<?php the_author_meta( 'user_url'); ?>"><?php printf(__('%s'), get_comment_author_link()) ?></a></div>
       <small><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?><?php edit_comment_link(__('(Edit)'),'  ','') ?></small>
     </div>
     <div class="clear"></div>
 
     <?php if ($comment->comment_approved == '0') : ?>
       <em><?php _e('Yorumunuz onay bekliyor.') ?></em>
       <br />
     <?php endif; ?>
 
     <div class="comment-text"> 
         <?php comment_text() ?>
     </div>
 
   <div class="reply">
      <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
   </div>
   <div class="clear"></div>
<?php } ?>
<?php function delete_comment_link($id) {
  if (current_user_can('edit_post')) {
    echo '<a href="'.admin_url("comment.php?action=cdc&c=$id").'">Sil</a> ';
    echo '<a href="'.admin_url("comment.php?action=cdc&dt=spam&c=$id").'">Spam</a>';
  }
}
?>
<?php 
function close_comments( $posts ) {
    if ( !is_single() ) { return $posts; }
    if ( time() - strtotime( $posts[0]->post_date_gmt ) > ( 30 * 24 * 60 * 60 ) ) {
        $posts[0]->comment_status = 'closed';
        $posts[0]->ping_status    = 'closed';
    }
    return $posts;
}
add_filter( 'the_posts', 'close_comments' ); 
?>
<?php function check_referrer() {
    if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] == ) {
        wp_die( __('Ltfen ynlendirenleri taraycnzdan etkinletirin veya bir spam gnderenseniz buradan kn!') );
    }
}
add_action('check_comment_flood', 'check_referrer');
/*TEMA admin PANEL */
require_once("adminpaneli/cs-framework.php");

Function Calls

None

Variables

None

Stats

MD5 13a139491138e117cef75edea2edec83
Eval Count 0
Decode Time 169 ms