<?php 
        }
        ?>
						</a>
				</figure>
				
				<div class="post-content">
					<h1 class="post-title"><a href="<?php 
        echo JBusinessUtil::getCompanyLink($company);
        ?>
"><?php 
        echo $company->name;
        ?>
</a></h1>
					<span class="post-date" ><span itemprop="street-address"><?php 
        echo JBusinessUtil::getAddressText($company);
        ?>
</span></span>
					<p class="company-clasificaiton">
						<span class="post-category">
							<a rel="nofollow" href="<?php 
        echo JBusinessUtil::getCategoryLink($company->mainCategoryId, $company->mainCategoryAlias);
        ?>
"><?php 
        echo $company->mainCategory;
        ?>
 </a>
						</span> <br/>
						<span>
							<?php 
        if (isset($company->typeName)) {
Beispiel #2
0
 public static function getBillingInformation($company)
 {
     $user = JFactory::getUser($company->userId);
     $inf = $user->username . "<br/>";
     $inf = $inf . $company->name . "<br/>";
     $inf = $inf . JBusinessUtil::getAddressText($company);
     return $inf;
 }
Beispiel #3
0
      var companies = [
        <?php 
$db = JFactory::getDBO();
if (!isset($companies)) {
    $companies = $this->companies;
}
$index = 1;
foreach ($companies as $company) {
    $description = str_replace("\r\n", "", $company->short_description);
    $description = str_replace("\\'", "", $description);
    $description = $db->escape($description);
    $marker = 0;
    if (!empty($company->categoryMaker)) {
        $marker = JURI::root() . PICTURES_PATH . $company->categoryMaker;
    }
    $contentString = '<div class="info-box">' . '<div class="title">' . $db->escape($company->name) . '</div>' . '<div class="info-box-content">' . '<div class="address" itemtype="http://schema.org/PostalAddress" itemscope="" itemprop="address">' . $db->escape(JBusinessUtil::getAddressText($company)) . '</div>' . '<div class="info-phone"><i class="dir-icon-phone"></i> ' . $db->escape($company->phone) . '</div>' . '<a href="' . $db->escape(JBusinessUtil::getCompanyLink($company)) . '"><i class="dir-icon-external-link"></i> ' . $db->escape(JText::_("LNG_MORE_INFO", true)) . '</a>' . '</div>' . '<div class="info-box-image">' . (isset($company->logoLocation) && strlen($company->logoLocation) > 3 ? '<img src="' . JURI::root() . PICTURES_PATH . $company->logoLocation . '" alt="' . $db->escape($company->name) . '">' : "") . '</div>' . '</div>';
    if (!empty($company->latitude) && !empty($company->longitude) && (isset($company->packageFeatures) && in_array(GOOGLE_MAP, $company->packageFeatures) || !$appSettings->enable_packages)) {
        echo "['" . $db->escape($company->name) . "', \"{$company->latitude}\",\"{$company->longitude}\", 4,'" . $contentString . "','" . $index . "','" . $marker . "']," . "\n";
    }
    if (!empty($company->locations) && (isset($company->packageFeatures) && in_array(GOOGLE_MAP, $company->packageFeatures) || !$appSettings->enable_packages)) {
        $locations = explode(",", $company->locations);
        foreach ($locations as $location) {
            $loc = explode("|", $location);
            echo "['" . htmlspecialchars($company->name, ENT_QUOTES) . "', \"{$loc['0']}\",\"{$loc['1']}\", 4,'" . $contentString . "','" . $index . "','" . $marker . "']," . "\n";
        }
    }
    $index++;
}
?>
     	
      ];
Beispiel #4
0
			<?php 
}
?>
			
			<div>		
				<div id="company-info-details" class="company-info-details">
					<h4 class="contact"><?php 
echo JText::_('LNG_CONTACT');
?>
</h4>
					
					<ul class="company-contact">
						<li>
							<span itemprop="address" itemscope="" itemtype="http://schema.org/PostalAddress">
								<i class="dir-icon-map-marker"></i> <?php 
echo JBusinessUtil::getAddressText($this->company);
?>
							</span>
						</li>
						<li>
							<?php 
if (!empty($this->company->phone) && $showData) {
    ?>
								<span itemprop="tel">
										<i class="dir-icon-phone"></i> <a href="tel:<?php 
    echo $this->company->phone;
    ?>
"><?php 
    echo $this->company->phone;
    ?>
</a>
Beispiel #5
0
# JBusinessDirectory
# author CMSJunkie
# copyright Copyright (C) 2012 cmsjunkie.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.cmsjunkie.com
# Technical Support:  Forum - http://www.cmsjunkie.com/forum/j-businessdirectory/?p=1
-------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access');
?>

<div id="company-locations">
<div class="company-location" id="location"><?php 
echo JBusinessUtil::getAddressText($this->company);
?>
</div>
<?php 
foreach ($this->company->locations as $location) {
    $location->publish_only_city = false;
    ?>
	<div class="company-location" id="location-<?php 
    echo $location->id;
    ?>
"><?php 
    echo $location->name . " - " . JBusinessUtil::getAddressText($location);
    ?>
</div>
<?php 
}
?>
</div>