<?php $filename_doc = $violationDocument->document_filename; ?>
<?php $filename_ext = $violationDocument->document_ext_filename; ?>
<?php $extraUrl = $violationDocument->getExtUrl();; ?>
<?php $webUrl = $violationDocument->getForWebUrl();; ?>
<div class="row">
  <?php if(endsWith($filename_doc, '.pdf')) { ?>
    <object <?php echo MtHaml\Runtime::renderAttributes(array(array('data', ($violationDocument->getUrl())), array('type', 'application/pdf'), array('width', '100%'), array('height', '600')), 'html5', 'UTF-8'); ?>>
      <a <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'icon-download'), array('href', ($violationDocument->getUrl()))), 'html5', 'UTF-8'); ?>></a>
    </object>
  <?php } else { ?>
    <img <?php echo MtHaml\Runtime::renderAttributes(array(array('src', ($violationDocument->getUrl()))), 'html5', 'UTF-8'); ?> />
  <?php } ?>
</div>
<?php if(isset($extraUrl) && strlen($extraUrl) > 0) { ?>
  <div class="row">
    <img <?php echo MtHaml\Runtime::renderAttributes(array(array('src', $extraUrl)), 'html5', 'UTF-8'); ?> />
  </div>
<?php } ?>
<?php if(isset($webUrl) && strlen($webUrl) > 0) { ?>
  <div class="row">
    <img <?php echo MtHaml\Runtime::renderAttributes(array(array('src', $webUrl)), 'html5', 'UTF-8'); ?> />
  </div>
<?php } ?>
