Current File : /home/pacjaorg/public_html/km/components/com_djclassifieds/views/item/tmpl/default_contact.php
<?php
/**
 * @package DJ-Classifieds
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */

defined ('_JEXEC') or die('Restricted access');

$user = JFactory::getUser();

$par = $this->par;
$item = $this->item;

?>

<?php if($this->item->event->beforeDJClassifiedsDisplayContact){ ?>
	<div class="djcf_before_contact">
		<?php echo $this->item->event->beforeDJClassifiedsDisplayContact; ?>
	</div>
<?php } ?>

<?php if(($par->get('show_contact','1') && $item->contact) || ($par->get('show_website','1') && $item->website) || $this->fields_contact){ ?>
    <?php $show_contact = false; ?>
    <div class="row_gd djcf_contact">
        <div class="contact_mainrow">
            <span class="row_label"><?php echo JText::_('COM_DJCLASSIFIEDS_CONTACT'); ?></span>
            <span class="row_value"><?php 
            if($item->event->onDJClassifiedsAccessContact){
                echo $item->event->onDJClassifiedsAccessContact;
            }elseif($par->get('show_contact_only_registered',0)==1 && !$user->id){
                echo '<span class="log_in_msg">'.JText::sprintf('COM_DJCLASSIFIEDS_LOG_IN_TO_SEE_CONTACT', '<a href="'.JRoute::_('index.php?option=com_users&view=login&return='.base64_encode(JUri::getInstance()), false).'">'.JText::_('COM_DJCLASSIFIEDS_LOG_IN_LINK').'</a>').'</span>';
            }elseif(!($user->id && $item->user_id == $user->id) && !DJClassifiedsAccess::hasContactAccess($user->id, $par)){
                echo '<span class="no_contact_access">'.($par->get('no_contact_access_itemid') ? JText::sprintf('COM_DJCLASSIFIEDS_GO_HERE_TO_GET_CONTACT_ACCESS', '<a href="'.JRoute::_('index.php?Itemid='.$par->get('no_contact_access_itemid').'">'.JText::_('COM_DJCLASSIFIEDS_HERE_LINK').'</a>', false)) : JText::_('COM_DJCLASSIFIEDS_NO_CONTACT_ACCESS')).'</span>';
            }else{
                $show_contact = true;
                echo $item->contact;
                if($par->get('show_website','1') && $item->website){
                    if($item->contact){
                        echo '<br />';		
                    }
                    $website = strip_tags($item->website);
                    echo '<a target="_blank" itemprop="url" rel="noopener noreferrer'.($par->get('website_nofollow','1') ? ' nofollow' : '' ).'" href="'.(strstr($website, 'http://') || strstr($website, 'https://') ? '' : 'http://').$website.'">'.$website.'</a>';
                }
            }
            ?></span>
            </div>
        <?php if($this->fields_contact && $show_contact){ ?>
            <?php echo DJClassifiedsTheme::renderLayout('customfields', array('fields' => $this->fields_contact, 'class' => 'contact_row')); ?>
        <?php } ?>
    </div>
<?php } ?>
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!