Replacement Classipress sidebar-ad.php File
This is the replacement code for sidebar-ad.php to show just a single tab with Google Map, it will then still allow you to place additional widgets below the map.
[START CODE]
<?php
global $userdata, $app_abbr, $gmap_active;
// make sure google maps has a valid address field before showing tab
$custom_fields = get_post_custom();
if ( !empty($custom_fields[$app_abbr.'_zipcode']) || !empty($custom_fields[$app_abbr.'_country']) ||
!empty($custom_fields[$app_abbr.'_state']) || !empty($custom_fields[$app_abbr.'_city']) ||
!empty($custom_fields[$app_abbr.'_street']) ) {
$gmap_active = true;
}
?>
<!-- right sidebar -->
<div class="content_right">
<div class="tabprice">
<ul class="tabnavig">
<?php if ( $gmap_active ) { ?>
<li><a href="#priceblock1"><span class="big"><?php _e('Map', 'appthemes') ?></span></a></li>
<?php } ?>
</ul>
<?php if ( $gmap_active ) { ?>
<!-- tab 1 -->
<div id="priceblock1">
<div class="clr"></div>
<div class="singletab">
<?php include_once ( TEMPLATEPATH . '/includes/sidebar-gmap.php' ); ?>
<?php } ?>
</div><!-- /singletab -->
</div><!-- /priceblock1 -->
</div><!-- /tabprice -->
<div class="clr"></div>
<?php appthemes_before_sidebar_widgets(); ?>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar_listing') ) : else : ?>
<!-- no dynamic sidebar so don't do anything -->
<?php endif; ?>
<?php appthemes_after_sidebar_widgets(); ?>
</div><!-- /content_right -->
[END]