PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom2
/
caribe
/
components
/
com_djcatalog2
/
views
/
item
/
tmpl
<?php /** * @version $Id: default_column_attributes.php 397 2015-04-09 12:43:20Z michal $ * @package DJ-Catalog2 * @copyright Copyright (C) 2012 DJ-Extensions.com LTD, All rights reserved. * @license http://www.gnu.org/licenses GNU/GPL * @author url: http://dj-extensions.com * @author email contact@dj-extensions.com * @developer Michal Olczyk - michal.olczyk@design-joomla.eu * * DJ-Catalog2 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * DJ-Catalog2 is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with DJ-Catalog2. If not, see <http://www.gnu.org/licenses/>. * */ defined ('_JEXEC') or die('Restricted access'); ?> <?php $item = $this->item_cursor; $attribute = $this->attribute_cursor; $attributeName = '_ef_'.$attribute->alias; ?> <?php if (!empty($item->$attributeName)) { ?> <div class="djc_value"> <?php if (is_array($item->$attributeName)){ $item->$attributeName = implode(', ', $item->$attributeName); } if ($attribute->type == 'textarea' || $attribute->type == 'text'){ $value = nl2br(htmlspecialchars($item->$attributeName)); // convert URLs $value = preg_replace('#([\w]+://)([^\s()<>]+)#iS', '<a target="_blank" href="$1$2">$2</a>', $value); // convert emails $value = preg_replace('#([\w.-]+(\+[\w.-]+)*@[\w.-]+)#i', '<a target="_blank" href="mailto:$1">$1</a>', $value); echo $value; } else if ($attribute->type == 'html') { echo JHTML::_('content.prepare', $item->$attributeName); } else if ($attribute->type == 'calendar') { echo JHtml::_('date', $item->$attributeName, JText::_('DATE_FORMAT_LC4')); } else { echo htmlspecialchars($item->$attributeName); } ?> </div> <?php } ?>
[+]
..
[-] default.php
[edit]
[-] default.xml
[edit]
[-] default_addtocart.php
[edit]
[-] default_attributes.php
[edit]
[-] default_children.php
[edit]
[-] default_column_attributes.php
[edit]
[-] default_comments.php
[edit]
[-] default_contact.php
[edit]
[-] default_files.php
[edit]
[-] default_images.php
[edit]
[-] default_map.php
[edit]
[-] default_relateditems.php
[edit]
[-] default_topbar.php
[edit]
[-] index.html
[edit]
[-] print.php
[edit]
[-] .htaccess.disabled
[edit]