<?php if ( yp_opts('general_logo') && yp_opts('navigation_logo') ): ?>
<?php if ($_SERVER{'REQUEST_URI'} == "/") {?>
<img src="<?php echo esc_url(yp_opts('general_logo')); ?>" alt="" title="">
<? } else { ?>
<a class="navbar-brand" href="<?php echo esc_url(home_url()); ?>">
<img src="<?php echo esc_url(yp_opts('general_logo')); ?>" alt="" title="">
</a>
<? } ?>
<?php endif; ?>