Textpattern | PHP Cross Reference | Content Management Systems |
1 <div itemscope itemtype="https://schema.org/DataDownload"> 2 3 <!-- ...if exists, use the file title, otherwise use file name --> 4 <a href="<txp:file_download_link />" itemprop="url contentUrl"> 5 <strong itemprop="name"> 6 <txp:evaluate> 7 <txp:file_download_name title /> 8 <txp:else /> 9 <txp:file_download_name /> 10 </txp:evaluate> 11 </strong> 12 </a> 13 14 <!-- ...if exists, use the file description, otherwise omit that line --> 15 <txp:evaluate test> 16 <div itemprop="description"> 17 <txp:file_download_description /> 18 </div> 19 </txp:evaluate> 20 21 <div class="footnote"> 22 23 <!-- ...if exists, use the file category, otherwise omit that line --> 24 <txp:evaluate test="file_download_category"> 25 <strong> 26 <txp:text item="category" /> 27 </strong> 28 <span itemprop="keywords"> 29 <txp:file_download_category title /> 30 </span> 31 · 32 </txp:evaluate> 33 34 <strong> 35 <txp:text item="author" /> 36 </strong> 37 <span itemprop="author" itemscope itemtype="https://schema.org/Person"> 38 <span itemprop="name"> 39 <txp:file_download_author link /> 40 </span> 41 </span> 42 · 43 <strong> 44 <txp:text item="file_size" /> 45 </strong> 46 <span itemprop="contentSize"> 47 <txp:file_download_size /> 48 </span> 49 · 50 <strong> 51 <txp:text item="last_modified" /> 52 </strong> 53 <time datetime="<txp:file_download_modified format="iso8601" />" itemprop="dateModified"> 54 <txp:file_download_modified /> 55 </time> 56 · 57 <strong> 58 <txp:text item="download_count" /> 59 </strong> 60 <span itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter"> 61 <meta itemprop="interactionType" content="https://schema.org/DownloadAction" /> 62 <span itemprop="userInteractionCount"> 63 <txp:file_download_downloads /> 64 </span> 65 </span> 66 67 </div> 68 69 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
title