| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/www/plugins/system/bluetheme/assets/shortcode/ |
Upload File : |
<?php
defined('_JEXEC') or die;
add_shortcode('article_box_desi','articleBoxDesignShortcode');
function articleBoxDesignShortcode($atts,$content=null){
extract(shortcode_atts(array(
"class" => '',
"extension"=>'com_k2',
"article_id"=>'0',
"type"=>'outside'
), $atts));
$st = new BluethemePlugin();
if($extension=='com_k2'){
$item = $st->getK2byId($article_id);
$linkimage = $st->getImageK2($item->id,"L");
$linkimagefull = $st->getImageK2($item->id,"XL");
$linkreadmore = $st->getK2link($item->id,$item->alias,$item->catid,$item->categoryalias);
}else if($extension=='com_content'){
$item = $st->getContentbyId($article_id);
$linkimage = $linkimagefull = $st->getImageContent($item->images);
$linkreadmore = $st->getContentlink($item);
}else{
return 'extension only support com_content or com_k2';
}
$req = BluethemePlugin::addTemplate('article_box');
if($req["check"]){
require $req["src"];
}
}
?>