Projet

Général

Profil

Révision 18596a08

Ajouté par Assos Assos il y a presque 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/file_entity/file_entity.tpl.php
84 84

  
85 85
  <div class="content"<?php print $content_attributes; ?>>
86 86
    <?php
87
      // We hide the links now so that we can render them later.
88
      hide($content['links']);
87
    // We hide the links now so that we can render them later.
88
    hide($content['links']);
89
    // Check to see if the file has an external url for linking.
90
    if(!empty($content['file']['#file']->external_url)) {;?>
91
      <a href="<?php print render($content['file']['#file']->external_url);?>"><?php print render($content);?></a>
92
      <?php
93
    } else {
89 94
      print render($content);
95
    }
90 96
    ?>
91 97
  </div>
92 98

  

Formats disponibles : Unified diff