__('Header Menu', '4Piksel'),
) );
remove_filter( 'the_excerpt', 'wpautop' );
if ( ! isset( $content_width ) ) $content_width = 1000;
}
}
add_action( 'after_setup_theme', 'dpx_kurulum' );
function dpx_bilesen() {
register_sidebar( array(
'name' => __( 'Sidebar', '4Piksel' ),
'id' => 'sidebar',
'description' => __( 'The components you add to the sidebar area appear only in the right hand area.', '4Piksel' ),
'before_widget' => '',
'before_title' => '',
'after_title' => '
',)
);
}
add_action( 'widgets_init', 'dpx_bilesen' );
function dpx_arama( $form ) {
$form = '
';
return $form;
}
add_filter( 'get_search_form', 'dpx_arama' );
function dpx_bilesen_kaldir() {
unregister_widget('WP_Widget_Calendar');
}
add_action('widgets_init', 'dpx_bilesen_kaldir', 11);
if ( !function_exists( 'dpx_gerekli' )) {
function dpx_gerekli() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_style( 'normalize', get_template_directory_uri(). '/css/normalize.css' );
wp_enqueue_style( 'fa', get_template_directory_uri(). '/font/font-awesome/css/font-awesome.min.css' );
wp_enqueue_script( 'jsdosya', 'http://code.jquery.com/jquery-1.10.1.min.js', array( 'jquery'),'', true);
wp_enqueue_script( 'genel', get_template_directory_uri().'/js/genel.js', array( 'jquery'),'', true);
}
}
add_action( 'wp_enqueue_scripts', 'dpx_gerekli' );
if(is_admin()) {
wp_enqueue_style( 'fontawesome', get_template_directory_uri(). '/font/font-awesome/css/font-awesome.min.css' );
}
function html5_shim () {
global $is_IE;
if ($is_IE)
echo '';
}
add_action('wp_head', 'html5_shim');
if ( ! function_exists( 'dpx_yaziozet' ) ) {
function dpx_yaziozet( $more ) {
return '...';
}
}
add_filter( 'excerpt_more', 'dpx_yaziozet' );
add_filter('comment_reply_link', 'cevap_link_sinif');
function cevap_link_sinif($class){
$class = str_replace("class='comment-reply-link", "class='cevapla", $class);
return $class;
}
if ( ! function_exists( 'shape_comment' ) ) :
function dpx_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case 'pingback' :
case 'trackback' :
?>
term_id ) ) . '">' . esc_html( $kategoriler[0]->name ) . '';
}
}
function AramaFiltresi($query) {
if ($query->is_search) {
$query->set('post_type', 'post');
}
return $query;
}
add_filter('pre_get_posts','AramaFiltresi');
add_theme_support('infinite-transporter',
array(
'container' => 'sayfa-sol',
'posts_per_page' => 5
)
);
add_action( 'after_setup_theme', 'tema_dil' );
function tema_dil(){
load_theme_textdomain( '4Piksel', get_template_directory() . '/dil' );
}
define('WPLANG', 'tr-TR');
function cevap_js() {
if( is_singular() && comments_open() && ( get_option( 'thread_comments' ) == 1) ) {
wp_enqueue_script( 'comment-reply', 'wp-includes/js/comment-reply', array(), false, true );
}
}
add_action( 'wp_enqueue_scripts', 'cevap_js' );
?>