<?php 
/**
 * Webkul Software.
 *
 * @category  Webkul
 * @package   Webkul_Agorae
 * @author    Webkul
 * @copyright Copyright (c) Webkul Software Private Limited (https://webkul.com)
 * @license   https://store.webkul.com/license.html
 */

// @codingStandardsIgnoreFile

/**
 * Seller Location at Seller Profile Page
 *
 * @var $block \Webkul\Marketplace\Block\Profile
 */

$partner = $block->getProfileDetail();
if($partner->getIsSeller() && $partner->getShopUrl()){
    $locsearch = $partner['company_locality'];
    $countryName = '';
?>
    <iframe width="100%" height="550" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="//maps.google.com/maps?q=<?php echo $locsearch.$countryName;?>&amp;output=embed"></iframe>
    <br />
    <small>
        <a href="//maps.google.com/maps?q=<?php echo $locsearch.$countryName;?>" class="wk_loc_inf">
            <?php echo __('View Larger Map') ?>
        </a>
    </small>
<?php
} ?>