= 3.8 ) && ( is_admin()) ) { $classes .= 'wp-8'; } return $classes; } add_filter( 'admin_body_class', 'alhenalite_admin_body_class' ); /*-----------------------------------------------------------------------------------*/ /* Localize theme */ /*-----------------------------------------------------------------------------------*/ load_theme_textdomain( 'wip', get_template_directory() . '/languages'); /*-----------------------------------------------------------------------------------*/ /* Default menu */ /*-----------------------------------------------------------------------------------*/ function alhenalite_add_menuclass( $ulclass ) { return preg_replace( '/
' . $content . ' ' . __( "Read More","wip") . '
'; } /*-----------------------------------------------------------------------------------*/ /* Shortcode in widget */ /*-----------------------------------------------------------------------------------*/ add_filter('widget_text', 'do_shortcode'); /*-----------------------------------------------------------------------------------*/ /* Remove category list rel */ /*-----------------------------------------------------------------------------------*/ function alhenalite_remove_category_list_rel($output) { $output = str_replace('rel="category"', '', $output); return $output; } add_filter('wp_list_categories', 'alhenalite_remove_category_list_rel'); add_filter('the_category', 'alhenalite_remove_category_list_rel'); /*-----------------------------------------------------------------------------------*/ /* Remove thumbnail dimensions */ /*-----------------------------------------------------------------------------------*/ function alhenalite_remove_thumbnail_dimensions( $html, $post_id, $post_image_id ) { $html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html ); return $html; } add_filter( 'post_thumbnail_html', 'alhenalite_remove_thumbnail_dimensions', 10, 3 ); /*-----------------------------------------------------------------------------------*/ /* Remove css gallery */ /*-----------------------------------------------------------------------------------*/ function alhenalite_my_gallery_style() { return "