'', 'default-image' => get_template_directory_uri() . '/assets/img/default-background.jpg', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ); add_theme_support( 'custom-background', $custom_background_support ); } add_action( 'after_setup_theme', 'abık_setup' ); function abık_scripts_styles() { if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); wp_enqueue_style( 'abık-template', get_template_directory_uri() . '/assets/css/template.css', array(), '1.0.1' ); wp_enqueue_style( 'abık-style', get_stylesheet_uri(), array(), '1.0.1' ); wp_enqueue_script( 'abık-bootstrap', get_template_directory_uri() . '/assets/js/bootstrap-3.1.1.min.js', array( 'jquery' ), '3.1.1', true ); wp_enqueue_script( 'abık-functions', get_template_directory_uri() . '/assets/js/functions.js', array( 'jquery', 'abık-bootstrap' ), '1.2.9', true ); } add_action( 'wp_enqueue_scripts', 'abık_scripts_styles' ); function abık_ie_support_header() { echo ''. "\n"; } add_action( 'wp_head', 'abık_ie_support_header' ); function abık_widgets_init() { register_sidebar( array( 'name' => __( 'Main Widget Area', 'abık' ), 'id' => 'sidebar-1', 'description' => __( 'Appears in the sidebar section of the site', 'abık' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'abık_widgets_init' ); function abık_entry_meta( $show_sep = true ) { // Set up and print post meta information. printf( __(' yazar ', 'abık'), esc_url( get_permalink() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), get_the_author() ); if( $show_sep == true ) echo '·'; echo ''.comments_popup_link( __( '0 Yorum', 'abık' ), __( '1 Yorum', 'abık' ), __( '% Yorum', 'abık' ) ) . ''; } function abık_paging_nav() { global $wp_query, $paged; if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) return; ?> post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) return; ?>