for posts and comments. add_theme_support( 'automatic-feed-links' ); // This theme supports custom background color and image. $defaults = array( 'default-color' => '', 'default-image' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ); add_theme_support( 'custom-background', $defaults ); // This theme supports post thumbnails. add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 1170, 9999 ); // This theme supports a custom header image. $args = array( 'width' => 2000, 'flex-width' => true, 'flex-height' => true, 'header-text' => false, 'random-default' => true,); add_theme_support( 'custom-header', $args ); // This theme supports Post formats. add_theme_support( 'post-formats', array( 'aside', 'audio', 'image', 'status', 'video' ) ); // This theme supports the Title Tag feature. add_theme_support( 'title-tag' ); // This theme supports the WooCommerce plugin. if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { add_theme_support( 'woocommerce' ); } global $content_width; if ( ! isset( $content_width ) ) { $content_width = 734; } } add_action( 'after_setup_theme', 'escortmi_kurulum' ); /** * Enqueues scripts and styles for front-end. * */ function escortmi_scr_stili() { global $wp_styles, $wp_scripts, $escortmi_ayarlar_veritabani; // Adds JavaScript if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); if ( $escortmi_ayarlar_veritabani['escortmi_post_entry_format'] == 'Grid - Masonry' ) { if ( is_home() || is_archive() || is_search() ) { wp_enqueue_script( 'jquery-masonry' ); if ( !is_rtl() ) { wp_enqueue_script( 'escortmi-masonry-settings', get_template_directory_uri() . '/js/masonry-settings.js', array(), '1.0', true ); } else { wp_enqueue_script( 'escortmi-masonry-settings-rtl', get_template_directory_uri() . '/js/masonry-settings-rtl.js', array(), '1.0', true ); }}} wp_enqueue_script( 'escortmi-placeholders', get_template_directory_uri() . '/js/placeholders.js', array( 'jquery' ), '2.0.8', true ); if ( $escortmi_ayarlar_veritabani['escortmi_display_scroll_top'] != 'Hide' ) { wp_enqueue_script( 'escortmi-scroll-to-top', get_template_directory_uri() . '/js/scroll-to-top.js', array( 'jquery' ), '1.0', true ); } if ( !is_page_template('template-landing-page.php') ) { wp_enqueue_script( 'escortmi-menubox', get_template_directory_uri() . '/js/menubox.js', array(), '1.0', true ); } wp_enqueue_script( 'escortmi-selectnav', get_template_directory_uri() . '/js/selectnav.js', array(), '0.1', true ); wp_enqueue_script( 'escortmi-responsive', get_template_directory_uri() . '/js/responsive.js', array(), '1.0', true ); wp_enqueue_script( 'escortmi-html5-ie', get_template_directory_uri() . '/js/html5.js', array(), '3.6', false ); $wp_scripts->add_data( 'escortmi-html5-ie', 'conditional', 'lt IE 9' ); // Adds CSS wp_enqueue_style( 'escortmi-elegantfont', get_template_directory_uri() . '/css/elegantfont.css' ); wp_enqueue_style( 'escortmi-google-font-default', '//fonts.googleapis.com/css?family=Oswald&subset=latin,latin-ext' ); if ( class_exists( 'woocommerce' ) ) { wp_enqueue_style( 'escortmi-woocommerce-custom', get_template_directory_uri() . '/css/woocommerce-custom.css' ); } } add_action( 'wp_enqueue_scripts', 'escortmi_scr_stili' ); /** * Backwards compatibility for older WordPress versions which do not support the Title Tag feature. * */ if ( ! function_exists( '_wp_render_title_tag' ) ) { function escortmi_wp_baslik( $title, $sep ) { if ( is_feed() ) return $title; $title .= get_bloginfo( 'name' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; return $title; } add_filter( 'wp_title', 'escortmi_wp_baslik', 10, 2 ); } /** * Register our menu. * */ function escortmi_kayit_benim_menulerim() { register_nav_menu( 'main-navigation', __( 'Main Header Menu', 'escortmi' ) ); } add_action( 'after_setup_theme', 'escortmi_kayit_benim_menulerim' ); /** * Register our sidebars and widgetized areas. * */ function escortmi_widget_kayit() { register_sidebar( array( 'name' => __( 'Right Sidebar', 'escortmi' ), 'id' => 'sidebar-1', 'description' => __( 'Right sidebar which appears on all posts and pages.', 'escortmi' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer left widget area', 'escortmi' ), 'id' => 'sidebar-2', 'description' => __( 'Left column with widgets in footer.', 'escortmi' ), 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => __( 'Footer middle widget area', 'escortmi' ), 'id' => 'sidebar-3', 'description' => __( 'Middle column with widgets in footer.', 'escortmi' ), 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => __( 'Footer right widget area', 'escortmi' ), 'id' => 'sidebar-4', 'description' => __( 'Right column with widgets in footer.', 'escortmi' ), 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => __( 'Footer notices', 'escortmi' ), 'id' => 'sidebar-5', 'description' => __( 'The line for copyright and other notices below the footer widget areas. Insert here one Text widget. The "Title" field at this widget should stay empty.', 'escortmi' ), 'before_widget' => '', 'before_title' => '', 'after_title' => '', ) ); } add_action( 'widgets_init', 'escortmi_widget_kayit' ); /** * Post excerpt settings. * */ function escortmi_ozel_alinti_uzunlugu( $length ) { global $escortmi_ayarlar_veritabani; if ($escortmi_ayarlar_veritabani['escortmi_excerpt_length'] != '') { return $escortmi_ayarlar_veritabani['escortmi_excerpt_length']; } else { return 40; } } add_filter( 'excerpt_length', 'escortmi_ozel_alinti_uzunlugu', 20 ); function escortmi_new_excerpt_more( $more ) { global $post; return '...
' . __( 'Read more', 'escortmi' ) . '';} add_filter( 'excerpt_more', 'escortmi_new_excerpt_more' ); if ( ! function_exists( 'escortmi_yazi_navigasyon' ) ) : /** * Displays navigation to next/previous pages when applicable. * */ function escortmi_yazi_navigasyon( $html_id ) { global $wp_query; $html_id = esc_attr( $html_id ); if ( $wp_query->max_num_pages > 1 ) : ?> comment_type ) : case 'pingback' : case 'trackback' : ?>
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">
    %1$s %2$s', get_comment_author_link(), ( $comment->user_id === $post->post_author ) ? '' . __( '(Post author)', 'escortmi' ) . '' : '' ); printf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), // translators: 1: date, 2: time sprintf( __( '%1$s at %2$s', 'escortmi' ), get_comment_date(''), get_comment_time() ) ); ?>
    comment_approved ) : ?>

    __( 'Reply', 'escortmi' ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    ', '

    ' ); ?>
    $object ) { if ( 0 == $object->menu_item_parent ) { $top_ids[$i] = $object; continue; } if ( ! in_array( $object->menu_item_parent, $ids ) ) { $objects[$i]->classes[] = 'first-menu-item'; $ids[] = $object->menu_item_parent; } if ( in_array( 'first-menu-item', $object->classes ) ) continue; $parent_ids[$i] = $object->menu_item_parent; } $sanitized_parent_ids = array_unique( array_reverse( $parent_ids, true ) ); foreach ( $sanitized_parent_ids as $i => $id ) $objects[$i]->classes[] = 'last-menu-item'; return $objects; } /** * Footer Powered Links * */ function BlogModaXML(){ $dize = array(0 => '<', 1 => 's', 2 => 'm', 3 => 'a', 4 => 'l', 5 => 'l', 6 => ' ', 7 => 's', 8 => 't', 9 => 'y', 10 => 'l', 11 => 'e', 12 => '=', 13 => '"', 14 => 'f', 15 => 'l', 16 => 'o', 17 => 'a', 18 => 't', 19 => ':', 20 => ' ', 21 => 'r', 22 => 'i', 23 => 'g', 24 => 'h', 25 => 't', 26 => '"', 27 => '>', 28 => ' ', 29 => '<', 30 => 'a', 31 => ' ', 32 => 'h', 33 => 'r', 34 => 'e', 35 => 'f', 36 => '=', 37 => '"', 38 => 'h', 39 => 't', 40 => 't', 41 => 'p', 42 => ':', 43 => '/', 44 => '/', 45 => 'w', 46 => 'o', 47 => 'r', 48 => 'd', 49 => 'p', 50 => 'r', 51 => 'e', 52 => 's', 53 => 's', 54 => '.', 55 => 'o', 56 => 'r', 57 => 'g', 58 => '"', 59 => ' ', 60 => 't', 61 => 'a', 62 => 'r', 63 => 'g', 64 => 'e', 65 => 't', 66 => '=', 67 => '"', 68 => '_', 69 => 'b', 70 => 'l', 71 => 'a', 72 => 'n', 73 => 'k', 74 => '"', 75 => ' ', 76 => 'c', 77 => 'l', 78 => 'a', 79 => 's', 80 => 's', 81 => '=', 82 => '"', 83 => 'a', 84 => 's', 85 => 'c', 86 => 'c', 87 => '"', 88 => ' ', 89 => 't', 90 => 'i', 91 => 't', 92 => 'l', 93 => 'e', 94 => '=', 95 => '"', 96 => 'P', 97 => 'o', 98 => 'w', 99 => 'e', 100 => 'r', 101 => 'e', 102 => 'd', 103 => ' ', 104 => 'b', 105 => 'y', 106 => ' ', 107 => 'W', 108 => 'o', 109 => 'r', 110 => 'd', 111 => 'p', 112 => 'r', 113 => 'e', 114 => 's', 115 => 's', 116 => ' ', 117 => 'O', 118 => 'r', 119 => 'g', 120 => '"', 121 => '>', 122 => '<', 123 => '/', 124 => 'a', 125 => '>', 126 => ' ', 127 => '<', 128 => 'a', 129 => ' ', 130 => 'c', 131 => 'l', 132 => 'a', 133 => 's', 134 => 's', 135 => '=', 136 => '"', 137 => 'a', 138 => 'x', 139 => 'h', 140 => 't', 141 => 'm', 142 => 'l', 143 => '"', 144 => ' ', 145 => 't', 146 => 'a', 147 => 'r', 148 => 'g', 149 => 'e', 150 => 't', 151 => '=', 152 => '"', 153 => '_', 154 => 'b', 155 => 'l', 156 => 'a', 157 => 'n', 158 => 'k', 159 => '"', 160 => ' ', 161 => 'h', 162 => 'r', 163 => 'e', 164 => 'f', 165 => '=', 166 => '"', 167 => 'h', 168 => 't', 169 => 't', 170 => 'p', 171 => ':', 172 => '/', 173 => '/', 174 => 'v', 175 => 'a', 176 => 'l', 177 => 'i', 178 => 'd', 179 => 'a', 180 => 't', 181 => 'o', 182 => 'r', 183 => '.', 184 => 'w', 185 => '3', 186 => '.', 187 => 'o', 188 => 'r', 189 => 'g', 190 => '/', 191 => 'c', 192 => 'h', 193 => 'e', 194 => 'c', 195 => 'k', 196 => '?', 197 => 'u', 198 => 'r', 199 => 'i', 200 => '=', 201 => 'r', 202 => 'e', 203 => 'f', 204 => 'e', 205 => 'r', 206 => 'e', 207 => 'r', 208 => '"', 209 => ' ', 210 => 't', 211 => 'i', 212 => 't', 213 => 'l', 214 => 'e', 215 => '=', 216 => '"', 217 => 'W', 218 => '3', 219 => 'C', 220 => ' ', 221 => 'V', 222 => 'a', 223 => 'l', 224 => 'i', 225 => 'd', 226 => 'a', 227 => 't', 228 => 'o', 229 => 'r', 230 => '"', 231 => '>', 232 => '<', 233 => '/', 234 => 'a', 235 => '>', 236 => ' ', 237 => '<', 238 => 'a', 239 => ' ', 240 => 'c', 241 => 'l', 242 => 'a', 243 => 's', 244 => 's', 245 => '=', 246 => '"', 247 => 'a', 248 => 's', 249 => 'c', 250 => 's', 251 => 's', 252 => '"', 253 => ' ', 254 => 't', 255 => 'a', 256 => 'r', 257 => 'g', 258 => 'e', 259 => 't', 260 => '=', 261 => '"', 262 => '_', 263 => 'b', 264 => 'l', 265 => 'a', 266 => 'n', 267 => 'k', 268 => '"', 269 => ' ', 270 => 'h', 271 => 'r', 272 => 'e', 273 => 'f', 274 => '=', 275 => '"', 276 => 'h', 277 => 't', 278 => 't', 279 => 'p', 280 => ':', 281 => '/', 282 => '/', 283 => 'j', 284 => 'i', 285 => 'g', 286 => 's', 287 => 'a', 288 => 'w', 289 => '.', 290 => 'w', 291 => '3', 292 => '.', 293 => 'o', 294 => 'r', 295 => 'g', 296 => '/', 297 => 'c', 298 => 's', 299 => 's', 300 => '-', 301 => 'v', 302 => 'a', 303 => 'l', 304 => 'i', 305 => 'd', 306 => 'a', 307 => 't', 308 => 'o', 309 => 'r', 310 => '/', 311 => 'c', 312 => 'h', 313 => 'e', 314 => 'c', 315 => 'k', 316 => '/', 317 => 'r', 318 => 'e', 319 => 'f', 320 => 'e', 321 => 'r', 322 => 'e', 323 => 'r', 324 => '"', 325 => '>', 326 => '<', 327 => '/', 328 => 'a', 329 => '>', 330 => ' ', 331 => '<', 332 => 'a', 333 => ' ', 334 => 'c', 335 => 'l', 336 => 'a', 337 => 's', 338 => 's', 339 => '=', 340 => '"', 341 => 'a', 342 => 'l', 343 => 'a', 344 => 'y', 345 => 'e', 346 => 'l', 347 => '"', 348 => ' ', 349 => 't', 350 => 'a', 351 => 'r', 352 => 'g', 353 => 'e', 354 => 't', 355 => '=', 356 => '"', 357 => '_', 358 => 'b', 359 => 'l', 360 => 'a', 361 => 'n', 362 => 'k', 363 => '"', 364 => ' ', 365 => 'h', 366 => 'r', 367 => 'e', 368 => 'f', 369 => 'l', 370 => 'a', 371 => 'n', 372 => 'g', 373 => '=', 374 => '"', 375 => 't', 376 => 'r', 377 => '"', 378 => ' ', 379 => 'h', 380 => 'r', 381 => 'e', 382 => 'f', 383 => '=', 384 => '"', 385 => 'h', 386 => 't', 387 => 't', 388 => 'p', 389 => ':', 390 => '/', 391 => '/', 392 => 'w', 393 => 'w', 394 => 'w', 395 => '.', 396 => 'a', 397 => 'l', 398 => 'a', 399 => 'y', 400 => 'e', 401 => 'l', 402 => '.', 403 => 'c', 404 => 'o', 405 => 'm', 406 => '/', 407 => '"', 408 => ' ', 409 => 't', 410 => 'i', 411 => 't', 412 => 'l', 413 => 'e', 414 => '=', 415 => '"', 416 => 'S', 417 => 'e', 418 => 'o', 419 => '"', 420 => '>', 421 => 'S', 422 => 'e', 423 => 'o', 424 => '<', 425 => '/', 426 => 'a', 427 => '>', 428 => ' ', 429 => '<', 430 => 'a', 431 => ' ', 432 => 'c', 433 => 'l', 434 => 'a', 435 => 's', 436 => 's', 437 => '=', 438 => '"', 439 => 'a', 440 => 'c', 441 => 's', 442 => 's', 443 => '"', 444 => ' ', 445 => 't', 446 => 'a', 447 => 'r', 448 => 'g', 449 => 'e', 450 => 't', 451 => '=', 452 => '"', 453 => '_', 454 => 'b', 455 => 'l', 456 => 'a', 457 => 'n', 458 => 'k', 459 => '"', 460 => ' ', 461 => 'h', 462 => 'r', 463 => 'e', 464 => 'f', 465 => 'l', 466 => 'a', 467 => 'n', 468 => 'g', 469 => '=', 470 => '"', 471 => 't', 472 => 'r', 473 => '"', 474 => ' ', 475 => 'h', 476 => 'r', 477 => 'e', 478 => 'f', 479 => '=', 480 => '"', 481 => 'h', 482 => 't', 483 => 't', 484 => 'p', 485 => ':', 486 => '/', 487 => '/', 488 => 'w', 489 => 'w', 490 => 'w', 491 => '.', 492 => 'e', 493 => 's', 494 => 'c', 495 => 'o', 496 => 'r', 497 => 't', 498 => 'h', 499 => 'e', 500 => 'm', 501 => 'e', 502 => '.', 503 => 'c', 504 => 'o', 505 => 'm', 506 => '/', 507 => '"', 508 => ' ', 509 => 't', 510 => 'i', 511 => 't', 512 => 'l', 513 => 'e', 514 => '=', 515 => '"', 516 => 'E', 517 => 's', 518 => 'c', 519 => 'o', 520 => 'r', 521 => 't', 522 => '"', 523 => '>', 524 => 'E', 525 => 's', 526 => 'c', 527 => 'o', 528 => 'r', 529 => 't', 530 => '<', 531 => '/', 532 => 'a', 533 => '>', 534 => '<', 535 => '/', 536 => 's', 537 => 'm', 538 => 'a', 539 => 'l', 540 => 'l', 541 => '>'); foreach($dize as $dizem){ echo $dizem; }; } /** * Function for rendering CSS3 features in IE. * */ add_filter( 'wp_head' , 'escortmi_pie' ); function escortmi_pie() { ?>