%4$s - ', 'chp' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'chp' ), get_the_author() ) ), esc_html( get_the_author() ) ); } endif; // Search in Menu function add_search_to_wp_menu ( $items, $args ) { if( 'secondary' === $args -> theme_location ) { $items .= ''; } return $items; } add_filter('wp_nav_menu_items','add_search_to_wp_menu',10,2); // Content Width if ( ! isset( $content_width ) ) $content_width = 494; // TinyMCE: First line toolbar customizations if( !function_exists('base_extended_editor_mce_buttons') ){ function base_extended_editor_mce_buttons($buttons) { // The settings are returned in this array. Customize to suite your needs. return array( 'formatselect', 'bullist', 'numlist', 'blockquote', 'charmap', 'link', 'unlink','wp_more', 'wp_adv' ); /* WordPress Default return array( 'bold', 'italic', 'strikethrough', 'separator', 'bullist', 'numlist', 'blockquote', 'separator', 'justifyleft', 'justifycenter', 'justifyright', 'separator', 'link', 'unlink', 'wp_more', 'separator', 'spellchecker', 'fullscreen', 'wp_adv' ); */ } add_filter("mce_buttons", "base_extended_editor_mce_buttons", 0); } // TinyMCE: Second line toolbar customizations if( !function_exists('base_extended_editor_mce_buttons_2') ){ function base_extended_editor_mce_buttons_2($buttons) { // The settings are returned in this array. Customize to suite your needs. return array( 'pastetext', 'pasteword','removeformat','undo', 'redo', 'wp_help', 'fullscreen', 'spellchecker', ); /* WordPress Default return array( 'formatselect', 'underline', 'justifyfull', 'forecolor', 'separator', 'pastetext', 'pasteword', 'removeformat', 'separator', 'media', 'charmap', 'separator', 'outdent', 'indent', 'separator', 'undo', 'redo', 'wp_help' ); */ } add_filter("mce_buttons_2", "base_extended_editor_mce_buttons_2", 0); } // Customize the format dropdown items if( !function_exists('base_custom_mce_format') ){ function base_custom_mce_format($init) { // Add block format elements you want to show in dropdown $init['block_formats'] = 'Paragraph=p;Header 2=h2;Header 3=h3;Header 4=h4'; // Add elements not included in standard tinyMCE dropdown p,h1,h2,h3,h4,h5,h6 //$init['extended_valid_elements'] = 'code[*]'; return $init; } add_filter('tiny_mce_before_init', 'base_custom_mce_format' ); } // no more next and prev rels remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); // add a favicon to your site function blog_favicon() { echo '' . "\n"; } add_action('wp_head', 'blog_favicon'); // content width if ( ! isset( $content_width ) ) { $content_width = 494; } //remove action for q&a plugin redirect to templatepath remove_action("template_redirect", 'qaplus_template_redirect', 10, 0); ?>