コード例 #1
0
<div class="lymedia_asset">
  <div class="lymedia_asset_frame">
    <?php 
if ($popup) {
    ?>
    <div class="lymedia_popup_info">
      <span>
        <?php 
    echo image_path('/' . $asset->getPath());
    ?>
      </span>
      <?php 
    foreach (lyMediaThumbnails::getThumbnailSettings() as $type => $params) {
        ?>
        <span class="<?php 
        echo $type;
        ?>
">
          <?php 
        echo thumbnail_image_path($asset, $folder->getRelativePath(), $type);
        ?>
        </span>
      <?php 
    }
    ?>
    </div>
    <?php 
}
?>
    <?php 
echo thumbnail_image_tag($asset, $folder->getRelativePath(), 'small', 'alt=asset title=' . $asset->getTitle());
コード例 #2
0
 /**
  * Returns thumbnail types from plugin configuration.
  * 
  * @return array
  */
 protected function getThumbnailTypes()
 {
     return array_keys(lyMediaThumbnails::getThumbnailSettings());
 }