Hata tam olarak şöyle
Parse error: syntax error, unexpected T_FUNCTION in /home/metinhil/public_html/wp-content/themes/metin2-hile/functions.php on line 10
function.php dosyam şöyle
function baslik($kac) {
$baslik = get_the_title();
if(strlen($baslik)> $kac) {
$baslik = mb_substr($baslik, 0, $kac) . '..';
}
echo $baslik;
}
function konu_ozeti($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content( $more_link_text, $stripteaser, $more_file );
$content = apply_filters( 'the_content', $content );
$content = str_replace( ']]>', ']]>', $content );
$content = strip_tags( $content );
if (0 < strlen( $_GET['p'] )) {
echo $content;
return null;
}
strpos( $content, ' ', $max_char );
if (( $max_char < strlen( $content ) && $espacio = )) {
$content = substr( $content, 0, $espacio );
$content = $content;
echo $content;
echo '...';
return null;
}
echo $content;
}
function resimli_baglantilar($isim) {
$baglantilar_resimli = get_bookmarks( array( 'orderby' => 'name', 'order' => 'ASC', 'category_name' => $isim ) );
foreach ($baglantilar_resimli as $bm) {
printf( ' ', $bm->link_url, __( $bm->link_name ), __( $bm->link_image ), __( $bm->link_description ) );
echo '
';
}
}
function text_baglantilar($isim) {
$bookmarks = get_bookmarks( array( 'orderby' => 'name', 'order' => 'ASC', 'category_name' => $isim ) );
foreach ($bookmarks as $bm) {
printf( '%s ', $bm->link_url, __( $bm->link_name ), __( $bm->link_name ) );
echo '
';
}
}
function yorumlar($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
echo ' comment_class( );
echo ' id="comment-';
comment_ID( );
echo '">
';
echo get_avatar( $comment, 52 );
echo '
';
comment_author_link( );
echo ' - ';
comment_time( 'd F Y - G:i' );
echo ' ';
if ($args['max_depth'] != $depth) {
echo '- ';
comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) );
}
echo '
';
if ($comment->comment_approved == '0') {
echo ' { Yorumunuz yönetici tarafindan onaylandiktan sonra yayimlanacak. }
';
}
echo ' ';
comment_text( );
echo '
';
}
function fs_theme_footer() {
echo '
' . fs_get_option( 'fs_tracking' ) . '
';
}
function fs_get_option($key) {
global $fs_options;
$fs_options = get_option( 'fs_options' );
$fs_defaults = array( 'fs_logo' => get_bloginfo( 'template_url' ) . '/images/logo.png' );
foreach ($fs_defaults as $k => $v) {
if (!$fs_options[$k]) {
$fs_options[$k] = $fs_defaults[$k];
continue;
}
}
return $fs_options[$key];
}
if (function_exists( 'add_image_size' )) {
add_theme_support( 'post-thumbnails' );
}
if (function_exists( 'add_image_size' )) {
add_image_size( 'resim1', 100, 50, true );
add_image_size( 'resim2', 160, 80, true );
add_image_size( 'resim3', 260, 140, true );
add_image_size( 'resim4', 325, 150, true );
}
register_nav_menus( array( 'ustmenu' => 'Header Menu' ) );
add_action( 'wp_footer', 'fs_theme_footer' );
require_once( TEMPLATEPATH . '/admin/theme-options.php' );
?>
Ek Olarak: Güncel sorunum devam etmektedir.
Ek Olarak: sorunum devam etmektedır.