// Unhook default ClassiPress functions
function unhook_classipress_functions() {
remove_action( 'appthemes_header', 'cp_header' );
remove_action( 'appthemes_before_post_title', 'cp_ad_loop_price' );
// overwrite the main header
function pa_header() {
?>
<div class="header">
<div class="header_top">
<div class="header_top_res">
<p>
<?php echo cp_login_head(); ?>
<a href="<?php echo appthemes_get_feed_url(); ?>" class="srvicon rss-icon" target="_blank" title="<?php _e( 'RSS Feed', APP_TD ); ?>"><?php _e( 'RSS Feed', APP_TD ); ?></a>
<?php if ( $cp_options->facebook_id ) { ?>
| <a href="<?php echo appthemes_make_fb_profile_url( $cp_options->facebook_id ); ?>" class="srvicon facebook-icon" target="_blank" title="<?php _e( 'Facebook', APP_TD ); ?>"><?php _e( 'Facebook', APP_TD ); ?></a>
<?php } ?>
<?php if ( $cp_options->twitter_username ) { ?>
| <a href="http://twitter.com/<?php echo $cp_options->twitter_username; ?>" class="srvicon twitter-icon" target="_blank" title="<?php _e( 'Twitter', APP_TD ); ?>"><?php _e( 'Twitter', APP_TD ); ?></a>
<?php } ?>
</p>
</div><!-- /header_top_res -->
</div><!-- /header_top -->
<div class="header_main">
<div class="header_main_bg">
<div class="header_main_res">
<div id="logo">
<?php if ( $cp_options->use_logo ) { ?>
<?php if ( $cp_options->logo ) { ?>
<a href="<?php echo home_url('/'); ?>"><img src="<?php echo $cp_options->logo; ?>" alt="<?php bloginfo('name'); ?>" class="header-logo" /></a>
<?php } else { ?>
<a href="<?php echo home_url('/'); ?>"><div class="cp_logo"></div></a>
<?php } ?>
<?php } else { ?>
<h1><a href="<?php echo home_url('/'); ?>"><?php bloginfo('name'); ?></a></h1>
<div class="description"><?php bloginfo('description'); ?></div>
<?php } ?>
</div><!-- /logo -->
<div class="adblock">
<?php appthemes_advertise_header(); ?>
</div><!-- /adblock -->
<div class="clr"></div>
</div><!-- /header_main_res -->
</div><!-- /header_main_bg -->
</div><!-- /header_main -->
<div class="header_menu">
<div class="header_menu_res">
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'menu-header', 'fallback_cb' => false, 'container' => false ) ); ?>
<a href="http://www.gloshorseriders.co.uk/pricing/" class="obtn btn_orange"><?php _e( 'Post an Ad', APP_TD ); ?></a>
<a href="http://www.gloshorseriders.co.uk/pricing" class="obtn btn_orange"><?php _e( 'test', APP_TD ); ?></a>
<div class="clr"></div>
</div><!-- /header_menu_res -->
</div><!-- /header_menu -->
</div><!-- /header -->
<?php
}
// hook into the correct action
add_action('appthemes_header', 'pa_header');
There are currently 1 users browsing this thread. (0 members and 1 guests)