"; if (has_filter('itx_single_meta_'.$meta)) apply_filters ('itx_single_meta_'.$meta); else { switch ($meta){ case ('commentcount') : echo ''; echo ''; comments_number('0','1', '%'); echo ''; break; case ('date') : the_time(get_option('date_format')); break; case ('author') : echo 'by '; if ($all_meta['author']=='author') the_author(); elseif ($all_meta['author']=='author_posts') the_author_posts_link(); else the_author_link(); break; case ('categories') : if ($cats=get_the_category_list(', ')) { echo ' : '.$cats; } break; case ('tags') : if ($tags=get_the_tag_list('',', ')){ echo ' : '.$tags; } break; case ('author_info') : echo get_avatar(get_the_author_meta('email'), 60); if ($all_meta['author_info']=='link'){ $user_url=get_the_author_meta('user_url'); if (!empty($user_url)) echo '
'.str_replace('http://', '', $user_url).'
'; } echo "

About " . get_the_author() . "

".get_the_author_meta('description').'
'; echo '
'; break; } } echo ''; } } /** * Function check wether meta is shown. * * @param string The position/location of the meta. * @return bool meta is active. */ function itx_is_active_single_meta($pos){ if (is_page()) $meta=itx_get_option('single','page_meta'); else $meta=itx_get_option('single','post_meta'); if (!empty($meta[$pos])) return true; else return false; } ?>