| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/a/w/e/awebpaca/visitevirtuelle/plugins/system/ova/ova_sc/ |
Upload File : |
<?php
defined('_JEXEC') or die;
add_shortcode('portfolio_desi', 'PortfolioShortcode');
function PortfolioShortcode($atts,$content=null){
extract(shortcode_atts(array(
"elementid"=>"",
"category"=>"0",
"id"=>"0",
"title"=>"",
"description"=>"",
"count"=>"100"
), $atts));
require_once JPATH_BASE.'/components/com_k2/models/item.php';
$ova = new OvaData();
// Get Items by category
$catItems = $ova->getk2Category($category,$count);
// Get extrafield value by Id of the extrafield
$extra_filter = $ova->getvalextrafield($id);
$arr_name_filter = array();
if($extra_filter->value){
foreach(json_decode($extra_filter->value) as $key=>$value){
$arr_name_filter[] = $value->name;
}
}
$req = OvaData::addLayout('portfolio');
if($req["check"]){
require $req["src"];
}
}
?>