public function compile($args,
$compiler) { // Check and get attributes
$_attr =
$this->
getAttributes($compiler,
$args);
if (empty($_attr['path'
])) { return false;
} if (preg_match('/^([\'"]?)[a-zA-Z0-9\/\.\-\_]+(\\1)$/',
$_attr['path'
],
$match)) { $_attr =
$this->
parseAttributes($_attr);
return $_attr['path'
];
} return '<?php '
. 'echo Shopware()->Container()->get(\'' . \Shopware\Bundle\MediaBundle\MediaServiceInterface::
class D '\')->getUrl(' .
$_attr['path'
] . '); ?>';
}}