@Dawid
In file:
/oc-content/plugins/virtual/functions.php
Create new function:
// GET VERSION OF LAST FILE BY ITEM ID
function vrt_item_file_version($item_id) {
if($item_id > 0) {
$file = vrt_item_file($item_id);
if(isset($file['i_version']) && $file['i_version'] <> '') {
return $file['i_version'];
}
}
return false;
}
You can then use it anywhere as:
<?php echo vrt_item_file_version(osc_item_id()); ?>