tag based on what is being viewed. */ global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ); } function breadcrumbs(){ ?> "; } else{ the_post_thumbnail(); } } else{ return $img[0]; } } #jsinclude add_action('get_header','jsinclude'); function jsinclude(){ wp_enqueue_script("jquery"); wp_enqueue_script( 'hoverIntent', ATOM_URL.'/js/hoverIntent.js'); wp_enqueue_script( 'superfish', ATOM_URL.'/js/superfish.js'); wp_enqueue_script( 'supersubs', ATOM_URL.'/js/supersubs.js'); wp_enqueue_script( 'easing', ATOM_URL.'/js/easing.js'); wp_enqueue_script( 'cycle', ATOM_URL.'/js/cycle.js'); } #posted_on function base_posted_on() { printf( __( '', 'atom' ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); } #posted_by function base_posted_by() { printf( __( '', 'atom' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), sprintf( esc_attr__( 'View all posts by %s', 'atom' ), get_the_author() ), esc_html( get_the_author() ) ); } #get_atom_option function get_atom_option($option,$default=''){ $arr=get_option("atom_settings"); if(!isset($arr[$option])){ return $default; } else{ return atom_string($arr[$option]); } } # Create DropCaps function dropcaps($str){ $pre = substr(strip_tags($str), 0,1); # get the first html tag preg_match('#(
|

)#',$str,$matches); preg_match("#$pre#",$matches[0],$matches2); $pos = (count($matches2)>0) ? 2 : 1; $str = preg_replace("#$pre#",'',$str,$pos); echo "".$pre."".$str; } #Post Format function atom_get_the_content() { ob_start(); the_excerpt(); $output = ob_get_contents(); ob_end_clean(); return $output; } function atom_post_navi( $id = 'post-navi', $prev_pretext = '←', $next_pretext = '→'){ ?>

comment_type ) : case 'pingback' : case 'trackback' : ?>
  • ', '' ); ?>

  • id="li-comment-">
    comment_parent ) $avatar_size = 83; echo get_avatar( $comment, $avatar_size ); /* translators: 1: comment author, 2: date and time */ printf( __( '%1$s %2$s ', 'atom' ), sprintf( '%s', get_comment_author_link() ), sprintf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'atom' ), get_comment_date(), get_comment_time() ) ) ); ?> ', '' ); ?>
    __( 'Reply ', 'atom' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    comment_approved == '0' ) : ?>
    '.do_shortcode($content).'
  • ';} function atom_one_half_last($atts, $content = NULL){return '
    '.do_shortcode($content).'
    ';} function atom_one_third($atts, $content = NULL){return '
    '.do_shortcode($content).'
    ';} function atom_one_third_last($atts, $content = NULL){return '
    '.do_shortcode($content).'
    ';} function atom_one_fourth($atts, $content = NULL){return '
    '.do_shortcode($content).'
    ';} function atom_one_fourth_last($atts, $content = NULL){return '
    '.do_shortcode($content).'
    ';} function atom_two_third($atts, $content = NULL){return '
    '.do_shortcode($content).'
    ';} function atom_two_third_last($atts, $content = NULL){return '
    '.do_shortcode($content).'
    ';} add_shortcode('one_half','atom_one_half'); add_shortcode('one_half_last','atom_one_half_last'); add_shortcode('one_third','atom_one_third'); add_shortcode('one_third_last','atom_one_third_last'); add_shortcode('one_fourth','atom_one_fourth'); add_shortcode('one_fourth_last','atom_one_fourth_last'); add_shortcode('two_third','atom_two_third'); add_shortcode('two_third_last','atom_two_third_last'); /* SIDEBAR */ register_sidebar( array( 'name' => __( 'Sidebar', 'atom' ), 'id' => 'sidebar-footer-widget-area', 'description' => __( 'The sidebar widget area', 'atom' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'atom' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', 'atom' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'atom' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area', 'atom' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'atom' ), 'id' => 'third-footer-widget-area', 'description' => __( 'The third footer widget area', 'atom' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'atom' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'The fourth footer widget area', 'atom' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); # MENU WALKER class description_walker extends Walker_Nav_Menu { function start_el(&$output, $item, $depth, $args) { global $wp_query; $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $class_names = $value = ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) ); $class_names = ' class="'. esc_attr( $class_names ) . '"'; $output .= $indent . '