<?php $vehicleClass = $event->custom_vehicle_type; ?>
<?php $signList = $event->speedLimitSignList; ?>
<?php $yellowBarType = $event->yellowBarType; ?>
<?php if(!Yii::app()->user->checkAccess('view_vehicle_landmarks')) { ?>
  <div class="vehicle-class-box">
    <?php echo VehicleTypes::tagForVehicleClass($vehicleClass); ?>
  </div>
<?php } else { ?>
  <div class="vehicle-class-box-full">
    <?php echo VehicleTypes::tagForVehicleClass($vehicleClass); ?>
    <?php if(!is_null($signList) || $yellowBarType)   { ?>
      <a class="signs-box pull-right tooltipbox">
        <div class="signs-box-speed-limit">
          <?php if(!is_null($signList)) { ?>
            <?php foreach($signList as $sign) { ?>
              <img <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'speed-limit-sign-icon-small'), array('src', ((Yii::app()->baseUrl) . '/images/speed-limit-signals/' . $sign . '.png'))), 'html5', 'UTF-8'); ?> />
            <?php } ?>
          <?php } ?>
        </div>
        <?php if($yellowBarType) { ?>
          <img <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'yellow-bar-sign-icon-small'), array('src', ((Yii::app()->baseUrl) . '/images/vehicle-signs/yb_' . $yellowBarType . '.png'))), 'html5', 'UTF-8'); ?> />
        <?php } ?>
        <span>
          <?php if(!is_null($signList)) { ?>
            <?php foreach($signList as $sign) { ?>
              <img <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'speed-limit-sign-icon-medium'), array('src', ((Yii::app()->baseUrl) . '/images/speed-limit-signals/' . $sign . '.png'))), 'html5', 'UTF-8'); ?> />
            <?php } ?>
          <?php } ?>
        </span>
      </a>
    <?php } ?>
  </div>
<?php } ?>
