File manager - Edit - /home/capoccitel/www/components/com_tlpportfolio/views/portfolios/tmpl/default_isotope7.php
Back
<?php /** * @version 2.0 * @package com_tlpportfolio * @author TechLabPro <info@techlabpro.com> * @copyright Copyright (C) 2015. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access defined('_JEXEC') or die; extract($this->tlpconfig); $html =''; $html .='<div class="isotop-container">'; $html .='<div class="button-group filter-button-group isotop-btn">'; $allitems=TlpportfolioFrontendHelper::getAllitemsCount($category_id); if($hide_count==1){ $count = ''; }else{ $count = ' <span class="count-cat">('. count($allitems).')</span>'; } if(!$hide_all_btn){ $selected = $selected_category ? null : " class='selected'" ; $html .='<button data-filter="*" '.$selected.'>'.JText::_('COM_TLPPORTFOLIO_ISOTOPE_ALL_BTN').$count .'</button>'; } $category=TlpportfolioFrontendHelper::getCategoryName($category_id); foreach ($category as $key => $value) { $selected = null; if($value->id == $selected_category){ $selected = " class='selected'"; } $catitems=TlpportfolioFrontendHelper::getCountbyCat($value->id); if($hide_count==1){ $count = ''; }else{ $count = ' <span class="count-cat-all">('. count($catitems).')</span>'; } $html .='<button '.$selected.' data-filter=".cat'.strtolower($value->id).'">'.$value->title. $count.' </button>'; } $html .='</div>'; $html .='<div class="portfolio-grid">'; $allitems=TlpportfolioFrontendHelper::getallPortfolio($category_id); foreach ($allitems as $key => $this->item){ if($link_type==2){ $popup=' data-id="'.$this->item->id.'" class="tlp-single-item-popup"'; }else{ $popup= null; } $detail_link=JRoute::_('index.php?option=com_tlpportfolio&view=portfolio&id='.(int) $this->item->id); if (!empty($this->item->portfolio_image)){ $tcat=explode(',', $this->item->category); $cat=implode(' cat', $tcat); $html .='<div class="tlp-portfolio-item cat'.$cat.' '.$bss.$ItemClass.' '.$item_to_item_margin .'">'; $html .='<figure>'; $html .='<img class="img-responsive" src="'.JURI::root().$image_storiage_path.'/m_'.$this->item->portfolio_image.'" alt="'.$this->item->title.'"/>'; $html .='<figcaption>'; $html .='<div class="tlp-content" >'; if($project_name_field==1){ if($link_detail==1){ if($this->item->custom_url){ $html .='<h3><a href="'.$this->item->custom_url.'" target="_blank" >'.$this->item->title.'</a></h3>'; }else{ $html .='<h3><a href="'.$detail_link.'" '. $popup.'>'.$this->item->title.'</a></h3>'; } }else{ $html .='<h3>'.$this->item->title.'</h3>'; } } if(($category_field==1)&&($this->item->category!='')){ $html .='<p>'.TlpportfolioFrontendHelper::getCatTitle($this->item->category).'</p>'; } if(($tools_field==1)&&($this->item->tools_used!='')){ $html .='<p>'.TlpportfolioFrontendHelper::getTools($this->item->tools_used).'</p>'; } if(($short_desc_field==1)&&($this->item->short_description!='')){ if($short_desc_limit>0){ $html .='<p>'.substr($this->item->short_description,0,$short_desc_limit).' ...'.'</p>'; }else{ $html .='<p>'.$this->item->short_description.'</p>'; } } $html .='<p class="link-icon">'; if($link_detail==1){ if($this->item->custom_url){ $html .='<a href="'.$this->item->custom_url.'" target="_blank" ><i class="fa fa-info"></i></a>'; }else{ $html .='<a href="'.$detail_link .'" '.$popup.'><i class="fa fa-info"></i></a>'; } } if(($project_url_field==1)&&($this->item->project_url)){ $html .='<a href="'.$this->item->project_url.'" target="_blank"><i class="fa fa-external-link"></i></a>'; } $html .='</p>'; $html .='</div>'; $html .='</figcaption>'; $html .='</figure>'; $html .='</div>'; } } $html .='</div>'; $html .='</div>'; echo $html; ?>
| ver. 1.6 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings