__( 'Primary Navigation', 'application' ), ) ); } endif; ?>
  • comment_type ) : case '' : ?>
  • id="li-comment-">
    %s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  • __( 'Primary Widget Area', 'application' ), 'id' => 'primary-widget-area', 'description' => __( 'The primary widget area', 'application' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'application' ), 'id' => 'secondary-widget-area', 'description' => __( 'The secondary widget area', 'application' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 3, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'blogmedia' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', 'blogmedia' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 4, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'blogmedia' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area', 'blogmedia' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 5, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'blogmedia' ), 'id' => 'third-footer-widget-area', 'description' => __( 'The third footer widget area', 'blogmedia' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 6, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'blogmedia' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'The fourth footer widget area', 'blogmedia' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); } if ( ! function_exists( 'application_posted_on' ) ) : /** * Prints HTML with meta information for the current post—date/time and author. */ function application_posted_on() { printf( __( '%2$s by %3$s', 'application' ), 'meta-prep meta-prep-author', sprintf( '%3$s', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '%3$s', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'application' ), get_the_author() ), get_the_author() ) ); } endif; // Filter wp_nav_menu() to add additional links and other output function application_nav_menu_items($items) { $homelink = '
    ' . __('Home') . '
    '; $items = $homelink . $items; return $items; } add_filter( 'wp_nav_menu_items', 'application_nav_menu_items' ); add_filter( 'wp_list_pages', 'application_nav_menu_items' ); /** Register sidebars by running application_widgets_init() on the widgets_init hook. */ add_action( 'widgets_init', 'application_widgets_init' ); /** filter function for wp_title */ function application_filter_wp_title( $old_title, $sep, $sep_location ){ // add padding to the sep $ssep = ' ' . $sep . ' '; // find the type of index page this is if( is_category() ) $insert = $ssep . 'Category'; elseif( is_tag() ) $insert = $ssep . 'Tag'; elseif( is_author() ) $insert = $ssep . 'Author'; elseif( is_year() || is_month() || is_day() ) $insert = $ssep . 'Archives'; else $insert = NULL; // get the page number we're on (index) if( get_query_var( 'paged' ) ) $num = $ssep . 'page ' . get_query_var( 'paged' ); // get the page number we're on (multipage post) elseif( get_query_var( 'page' ) ) $num = $ssep . 'page ' . get_query_var( 'page' ); // else else $num = NULL; // concoct and return new title return get_bloginfo( 'name' ) . $insert . $old_title . $num; } // call our custom wp_title filter, with normal (10) priority, and 3 args add_filter( 'wp_title', 'application_filter_wp_title', 10, 3 ); // custom function function application_head_css() { $output = ''; $custom_css = of_get_option('custom_css'); if ($custom_css <> '') { $output .= $custom_css . "\n"; } // Output styles if ($output <> '') { $output = "\n\n"; echo $output; } } add_action('wp_head', 'application_head_css'); function application_of_analytics(){ $googleanalytics= of_get_option('go_code'); echo stripslashes($googleanalytics); } add_action( 'wp_footer', 'application_of_analytics' ); function application_favicon() { if (of_get_option('favicon_image') != '') { echo ''."\n"; } } add_action('wp_head', 'application_favicon'); function application_of_register_js() { if (!is_admin()) { wp_register_script('superf', get_template_directory_uri() . '/js/superfish.js', 'jquery', '1.0', TRUE); wp_register_script('jCycle', get_template_directory_uri() . '/js/jquery.cycle.all.js', 'jquery', '1.0', TRUE); wp_register_script('jeasing', get_template_directory_uri() . '/js/jquery.easing.1.3.js', 'jquery', '1.3', TRUE); wp_register_script('application_custom', get_template_directory_uri() . '/js/jquery.custom.js', 'jquery', '1.0', TRUE); wp_enqueue_script('jquery'); wp_enqueue_script('superf'); wp_enqueue_script('jCycle'); wp_enqueue_script('jeasing'); wp_enqueue_script('application_custom'); } } add_action('init', 'application_of_register_js'); function application_of_single_scripts() { if(is_singular()) wp_enqueue_script( 'comment-reply' ); // loads the javascript required for threaded comments } add_action('wp_print_scripts', 'application_of_single_scripts'); function application_of_styles() { wp_register_style( 'superfish', get_template_directory_uri() . '/css/superfish.css' ); wp_enqueue_style( 'superfish' ); } add_action('wp_print_styles', 'application_of_styles'); /** redirect */ if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) wp_redirect( 'themes.php?page=options-framework'); // include panel file. if ( !function_exists( 'optionsframework_init' ) ) { /*-----------------------------------------------------------------------------------*/ /* Options Framework Theme /*-----------------------------------------------------------------------------------*/ /* Set the file path based on whether the Options Framework Theme is a parent theme or child theme */ if ( get_stylesheet_directory() == get_template_directory_uri() ) { define('OPTIONS_FRAMEWORK_URL', get_template_directory() . '/admin/'); define('OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/admin/'); } else { define('OPTIONS_FRAMEWORK_URL', get_template_directory() . '/admin/'); define('OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/admin/'); } require_once (OPTIONS_FRAMEWORK_URL . 'options-framework.php'); }