Linux mail.vriendennsm.nl 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64
Apache/2.4.68 (Debian)
Server IP : 217.154.75.17 & Your IP : 216.73.217.16
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
vnsm /
plugins /
j2store /
app_schemaproducts /
Delete
Unzip
Name
Size
Permission
Date
Action
app_schemaproducts
[ DIR ]
drwxr-xr-x
2025-02-08 22:29
languages
[ DIR ]
drwxr-xr-x
2025-02-08 22:29
app_schemaproducts.php
5.49
KB
-rwxr-xr-x
2022-02-20 10:42
app_schemaproducts.xml
895
B
-rwxr-xr-x
2022-02-20 10:42
index.html
216
B
-rwxr-xr-x
2022-02-20 10:42
Save
Rename
<?php /** * @package J2Store * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org * @license GNU GPL v3 or later */ /** ensure this file is being included by a parent file */ defined('_JEXEC') or die('Restricted access'); require_once(JPATH_ADMINISTRATOR.'/components/com_j2store/library/plugins/app.php'); class plgJ2StoreApp_schemaproducts extends J2StoreAppPlugin { /** * @var $_element string Should always correspond with the plugin's filename, * forcing it to be unique */ var $_element = 'app_schemaproducts'; /** * @param $row * @return string|null * @throws Exception */ function onJ2StoreGetAppView( $row ) { if (!$this->_isMe($row)) { return null; } $html = $this->viewList(); return $html; } /** * @return string * @throws Exception */ function viewList() { $app = JFactory::getApplication(); JToolBarHelper::title(JText::_('J2STORE_APP').'-'.JText::_('PLG_J2STORE_'.strtoupper($this->_element)),'j2store-logo'); $vars = new stdClass(); $vars->id = $app->input->getInt('id', 0); $form = array(); $form['action'] = "index.php?option=com_j2store&view=app&task=view&id={$vars->id}"; $vars->form = $form; $html = $this->_getLayout('default', $vars); return $html; } function onJ2StoreViewProductList(&$items, &$view, &$params, $model){ $schema = array( '@context' => 'https://schema.org/', '@type' => "ItemList" ); $i = 1; $currency = J2store::currency(); foreach ($items as $item){ $product_url = rtrim(JUri::base(),'/').'/'.ltrim($item->product_link,'/'); $item_list = array( "@type" => "ListItem", //"position" => $i, "item" => array( '@type' => "Product", 'name' => $item->product_name, 'sku' => $item->sku, 'url' => $product_url ) ); if(isset($item->variant->j2store_variant_id) && !empty($item->variant->j2store_variant_id)){ $item_list['item']['offers'] = array( '@type' => 'Offer', 'price' => isset($item->pricing->price) ? round($item->pricing->price,2): 0, 'priceCurrency' => $currency->getCode(), 'url' => $product_url ); $item_list['offers']['availability'] = 'https://schema.org/'.($item->variant->availability ? 'InStock':'OutOfStock'); } if(isset($item->main_image) && !empty($item->main_image)){ $main_image = rtrim(JUri::base(),'/').'/'.ltrim($item->main_image,'/'); $item_list['item']['image'] = $main_image; }elseif (isset($item->thumb_image) && !empty($item->thumb_image)){ $thumb_image = rtrim(JUri::base(),'/').'/'.ltrim($item->thumb_image,'/'); $item_list['item']['image'] = $thumb_image; } if(isset($item->brand_name) && !empty($item->brand_name)){ $item_list['item']['brand'] = $item->brand_name; } if(isset($item->introtext) && !empty($item->introtext)){ $item_list['item']['description'] = substr($item->introtext,0,200); } //aggregateRating //review $schema['itemListElement'][] = $item_list; $i++; } $doc = JFactory::getDocument(); $doc->addScriptDeclaration(json_encode($schema),'application/ld+json'); } function onJ2StoreViewProduct(&$item, &$view){ $product_url = rtrim(JUri::base(),'/').'/'.ltrim($item->product_link,'/'); $currency = J2store::currency(); $item_list = array( '@context' => 'https://schema.org/', '@type' => "Product", 'name' => $item->product_name, 'sku' => (isset($item->variant->sku) && !empty($item->variant->sku)) ? $item->variant->sku: '', 'url' => $product_url, //'position' => 1 ); if(isset($item->variant->j2store_variant_id) && !empty($item->variant->j2store_variant_id)){ $item_list['offers'] = array( '@type' => 'Offer', 'price' => isset($item->pricing->price) ? round($item->pricing->price,2): 0, 'priceCurrency' => $currency->getCode(), 'url' => $product_url ); $item_list['offers']['availability'] = 'https://schema.org/'.($item->variant->availability ? 'InStock':'OutOfStock'); } if(isset($item->main_image) && !empty($item->main_image)){ $main_image = rtrim(JUri::base(),'/').'/'.ltrim($item->main_image,'/'); $item_list['image'] = $main_image; }elseif (isset($item->thumb_image) && !empty($item->thumb_image)){ $thumb_image = rtrim(JUri::base(),'/').'/'.ltrim($item->thumb_image,'/'); $item_list['image'] = $thumb_image; } if(isset($item->brand_name) && !empty($item->brand_name)){ $item_list['brand'] = $item->brand_name; } if(isset($item->introtext) && !empty($item->introtext)){ $item_list['description'] = substr($item->introtext,0,200); } $doc = JFactory::getDocument(); $doc->addScriptDeclaration(json_encode($item_list),'application/ld+json'); } }