Example #1
0
</h4>
			  <div class="a-filter-options type clearfix">
					<?php 
    $type = isset($type) ? $type : '';
    ?>
			    <?php 
    $typesInfo = aMediaTools::getOption('types');
    ?>
					<?php 
    foreach ($typesInfo as $typeName => $typeInfo) {
        ?>
					  <?php 
        // If a metatype such as _downloadable or _embeddable is in force show only types that support it
        ?>
					  <?php 
        $metatype = aMediaTools::getMetatype();
        ?>
					  <?php 
        if ($metatype) {
            ?>
					    <?php 
            if (!a_get_option($typeInfo, substr($metatype, 1), false)) {
                ?>
					      <?php 
                continue;
                ?>
					    <?php 
            }
            ?>
					  <?php 
        }