'System', $georgia => 'Georgia', $arial => 'Arial', $ms => 'Comic Sans MS', $lucida => 'Lucida Sans MS', $tahoma => 'Tahoma', $trebuchet => 'Trebuchet MS', $verdana => 'Verdana', ]; return $standard_fonts; } } if ( ! function_exists( 'ts_title' ) ) { // title ellipsis function ts_title($after, $length) { $mytitle = explode(' ', get_the_title(), $length); if (count($mytitle)>=$length) { array_pop($mytitle); $mytitle = implode(' ',$mytitle). $after; } else { $mytitle = implode(' ',$mytitle); } return $mytitle; } } if ( ! function_exists( 'bansta_before_content_grid' ) ) { function bansta_before_content_grid() { $theme_settings = bansta_get_theme_settings(); $grid = $theme_settings['big_grids_before_content']; switch( $grid ) { case 'default': Big_grids::default(); break; case 'grid-2': Big_grids::grid_2(); break; case 'grid-3': Big_grids::grid_3(); break; case 'grid-4': Big_grids::grid_4(); break; default: Big_grids::default(); } } } class Bansta_Classes { public static function heading_style() { $style = bansta_get_theme_settings(); $class = ''; if ( ! class_exists( 'Ts_Framewk' ) ) { $class = ( $style['bansta_heading_style'] === 'default') ? esc_attr('heading-default') : esc_attr('heading-default'); } else { $class = Ts_Pro_Settings::ts_heading(); } return $class; } public static function heading_styling($setting) { switch($setting) { case 'default': echo 'heading-default'; break; default: echo 'ts-heading'; } } } if ( ! function_exists( 'basta_get_comment_form' ) ) { function basta_get_comment_form($comment = '') { $comment; return apply_filters( 'bansta_single_comment_type', $comment ); } } if ( ! function_exists( 'bansta_single_wrapper_class' ) ) { function bansta_single_wrapper_class( $classes = null ) { $classes[] = ''; return apply_filters( 'bansta_single_wrapper_class', $classes ); } } if ( ! function_exists( 'bansta_single_main_page' ) ) if ( ! class_exists( 'bansta_copy_text') ) { function bansta_copy_text($text) { $default = bansta_get_default_option(); $text = $default['bansta_copy_text']; return apply_filters('bansta_copy_text', $text ); } }