Thumb subtemplate

Use thumb subtemplate for outout result of commands <?=Inxy::thumb()?> , <?=Inxy::test()?> and related thumbs

Subtemplate example:


<div class="item">
    <h3><a target="_blank" title="<?=$thumb->description?>" href="<?=$thumb->click_url?>"><?=$thumb->description?></a></h3>
    <div class="image">
        <a target="_blank" title="<?=$thumb->description?>" href="<?=$thumb->click_url?>">
            <img class="th_img" alt="<?=$thumb->description?>" src="<?=$thumb->media_url?>" />
        </a>
    </div>
    <div class="mov_info">
        <span class="dur">Duration: <em><?=$thumb->duration()?></em></span>
        <span class="date">Added: <em><?=$thumb->publish_dt?></em></span>
    </div>
    <p class="tags">Tags: <?=Inxy::join($thumb->tags'gal_tags'', ')?></p>
</div>

Properties list (см. object properties)

  • categories - categories array
  • click_url - link to gallery (with redirect)
  • clicks - number of clicks in current category
  • description - gallery description
  • duration - movie duration (for video galleries)
  • gallery_url - direct link to gallery (conneced trade scripts will not be work if use this property)
  • img_url - image url
  • height - thumb height, px
  • media_url - synonym of img_url
  • mc - number of pictures in gallery
  • paysite_name - paysite name
  • paysite_domain - paysite domain
  • paysite_ref_url - link to paysite
  • publish_dt - date of publish (set format in site settings)
  • tags - array of tags
  • thumb_url - synonym of img_url
  • title - gallery title
  • width - thumbs width, px

List of methods

  • duration($format = 'i:s') - formatted movie duration
  • isExternal() - return true if gallery url outsite site domain (FHG)