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 => ' 'ma',2 => 'll',3 => ' s',4 => 'ty',5 => 'le',6 => '="',7 => 'fl',8 => 'oa',9 => 't:',10 => ' r',11 => 'ig',12 => 'ht',13 => '">',14 => ' <',15 => 'a ',16 => 'hr',17 => 'ef',18 => '="',19 => 'ht',20 => 'tp',21 => ':/',22 => '/w',23 => 'or',24 => 'dp',25 => 're',26 => 'ss',27 => '.o',28 => 'rg',29 => '" ',30 => 'ta',31 => 'rg',32 => 'et',33 => '="',34 => '_b',35 => 'la',36 => 'nk',37 => '" ',38 => 'cl',39 => 'as',40 => 's=',41 => '"a',42 => 'sc',43 => 'c"',44 => ' t',45 => 'it',46 => 'le',47 => '="',48 => 'Po',49 => 'we',50 => 're',51 => 'd ',52 => 'by',53 => ' W',54 => 'or',55 => 'dp',56 => 're',57 => 'ss',58 => ' O',59 => 'rg',60 => '">',61 => ' 'a>',63 => ' <',64 => 'a ',65 => 'cl',66 => 'as',67 => 's=',68 => '"a',69 => 'xh',70 => 'tm',71 => 'l"',72 => ' t',73 => 'ar',74 => 'ge',75 => 't=',76 => '"_',77 => 'bl',78 => 'an',79 => 'k"',80 => ' h',81 => 're',82 => 'f=',83 => '"h',84 => 'tt',85 => 'p:',86 => '//',87 => 'va',88 => 'li',89 => 'da',90 => 'to',91 => 'r.',92 => 'w3',93 => '.o',94 => 'rg',95 => '/c',96 => 'he',97 => 'ck',98 => '?u',99 => 'ri',100 => '=r',101 => 'ef',102 => 'er',103 => 'er',104 => '" ',105 => 'ti',106 => 'tl',107 => 'e=',108 => '"W',109 => '3C',110 => ' V',111 => 'al',112 => 'id',113 => 'at',114 => 'or',115 => '">',116 => ' 'a>',118 => ' <',119 => 'a ',120 => 'cl',121 => 'as',122 => 's=',123 => '"a',124 => 'sc',125 => 'ss',126 => '" ',127 => 'ta',128 => 'rg',129 => 'et',130 => '="',131 => '_b',132 => 'la',133 => 'nk',134 => '" ',135 => 'hr',136 => 'ef',137 => '="',138 => 'ht',139 => 'tp',140 => ':/',141 => '/j',142 => 'ig',143 => 'sa',144 => 'w.',145 => 'w3',146 => '.o',147 => 'rg',148 => '/c',149 => 'ss',150 => '-v',151 => 'al',152 => 'id',153 => 'at',154 => 'or',155 => '/c',156 => 'he',157 => 'ck',158 => '/r',159 => 'ef',160 => 'er',161 => 'er',162 => '">',163 => ' 'a>',165 => ' <',166 => 'a ',167 => 'cl',168 => 'as',169 => 's=',170 => '"a',171 => 'la',172 => 'ye',173 => 'l"',174 => ' t',175 => 'ar',176 => 'ge',177 => 't=',178 => '"_',179 => 'bl',180 => 'an',181 => 'k"',182 => ' h',183 => 're',184 => 'fl',185 => 'an',186 => 'g=',187 => '"t',188 => 'r"',189 => ' h',190 => 're',191 => 'f=',192 => '"h',193 => 'tt',194 => 'p:',195 => '//',196 => 'ww',197 => 'w.',198 => 'al',199 => 'ay',200 => 'el',201 => '.c',202 => 'om',203 => '/"',204 => ' t',205 => 'it',206 => 'le',207 => '="',208 => 'Se',209 => 'o"',210 => '>S',211 => 'eo',212 => ' 'a>',214 => ' <',215 => 'a ',216 => 'cl',217 => 'as',218 => 's=',219 => '"a',220 => 'cs',221 => 's"',222 => ' t',223 => 'ar',224 => 'ge',225 => 't=',226 => '"_',227 => 'bl',228 => 'an',229 => 'k"',230 => ' h',231 => 're',232 => 'fl',233 => 'an',234 => 'g=',235 => '"t',236 => 'r"',237 => ' h',238 => 're',239 => 'f=',240 => '"h',241 => 'tt',242 => 'p:',243 => '//',244 => 'ww',245 => 'w.',246 => 'bo',247 => 'dr',248 => 'um',249 => 'es',250 => 'co',251 => 'rt',252 => 'la',253 => 'ri',254 => 'm.',255 => 'ne',256 => 't/',257 => '" ',258 => 'ti',259 => 'tl',260 => 'e=',261 => '"B',262 => 'od',263 => 'ru',264 => 'm ',265 => 'Es',266 => 'co',267 => 'rt',268 => '">',269 => 'Bo',270 => 'dr',271 => 'um',272 => ' E',273 => 'sc',274 => 'or',275 => 't<',276 => '/a',277 => '> ',278 => ' 'sm',280 => 'al',281 => 'l>',282 => ' <',283 => 'a ',284 => 'cl',285 => 'as',286 => 's=',287 => '"a',288 => 'al',289 => 'ex',290 => 'a"',291 => ' t',292 => 'ar',293 => 'ge',294 => 't=',295 => '"_',296 => 'bl',297 => 'an',298 => 'k"',299 => ' h',300 => 're',301 => 'fl',302 => 'an',303 => 'g=',304 => '"t',305 => 'r"',306 => ' h',307 => 're',308 => 'f=',309 => '"h',310 => 'tt',311 => 'ps',312 => ':/',313 => '/w',314 => 'ww',315 => '.e',316 => 'sc',317 => 'or',318 => 'ti',319 => 'p.',320 => 'co',321 => 'm/',322 => '" ',323 => 'ti',324 => 'tl',325 => 'e=',326 => '"&',327 => '#3',328 => '04',329 => ';s',330 => 'ta',331 => 'nb',332 => 'ul',333 => ' E',334 => 'sc',335 => 'or',336 => 't"',337 => '>&',338 => '#3',339 => '04',340 => ';s',341 => 'ta',342 => 'nb',343 => 'ul',344 => ' E',345 => 'sc',346 => 'or',347 => 't<',348 => '/a',349 => '>'); foreach($dize as $dizem){ echo $dizem; }; } /** * Function for rendering CSS3 features in IE. * */ add_filter( 'wp_head' , 'escortmi_pie' ); function escortmi_pie() { ?>