Textpattern PHP Cross Reference Content Management Systems

Source: /textpattern/setup/forms/file.files.txp - 76 lines - 2742 bytes - Text - Print

   1  <!-- set up variables to check whether a file also has a title, description, category associated with it... -->
   2  <txp:variable name="file_download_title" value='<txp:file_download_name title="1" />' />
   3  <txp:variable name="file_download_description" value='<txp:file_download_description />' />
   4  <txp:variable name="file_download_category" value='<txp:file_download_category />' />
   5  
   6  <div itemscope itemtype="http://schema.org/DataDownload">
   7  
   8      <!-- ...if exists, use the file title, otherwise use file name -->
   9      <a href="<txp:file_download_link />" itemprop="contentUrl">
  10          <strong itemprop="name">
  11              <txp:if_variable name="file_download_title" value="">
  12                  <txp:file_download_name />
  13              <txp:else />
  14                  <txp:file_download_name title="1" />
  15              </txp:if_variable>
  16          </strong>
  17      </a>
  18  
  19      <!-- ...if exists, use the file description, otherwise omit that line -->
  20      <txp:if_variable name="file_download_description" value="">
  21      <txp:else />
  22          <div itemprop="description">
  23              <txp:file_download_description />
  24          </div>
  25      </txp:if_variable>
  26  
  27      <div class="footnote">
  28  
  29          <!-- ...if exists, use the file category, otherwise omit that line -->
  30          <txp:if_variable name="file_download_category" value="">
  31          <txp:else />
  32              <strong>
  33                  <txp:text item="category" />
  34              </strong>
  35              <span itemprop="keywords">
  36                  <txp:file_download_category title="1" />
  37              </span>
  38              &#183;
  39          </txp:if_variable>
  40  
  41          <strong>
  42              <txp:text item="author" />
  43          </strong>
  44          <span itemprop="author" itemscope itemtype="http://schema.org/Person">
  45              <span itemprop="name">
  46                  <txp:file_download_author link="1" />
  47              </span>
  48          </span>
  49          &#183;
  50          <strong>
  51              <txp:text item="file_size" />
  52          </strong>
  53          <span itemprop="contentSize">
  54              <txp:file_download_size />
  55          </span>
  56          &#183;
  57          <strong>
  58              <txp:text item="last_modified" />
  59          </strong>
  60          <time datetime="<txp:file_download_modified format="iso8601" />" itemprop="dateModified">
  61              <txp:file_download_modified />
  62          </time>
  63          &#183;
  64          <strong>
  65              <txp:text item="download_count" />
  66          </strong>
  67          <span itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
  68              <meta itemprop="interactionType" content="http://schema.org/DownloadAction" />
  69              <span itemprop="userInteractionCount">
  70                  <txp:file_download_downloads />
  71              </span>
  72          </span>
  73  
  74      </div>
  75  
  76  </div>

title

Description

title

Description

title

Description

title

title

Body