Changeset 937 for trunk/templates

Show
Ignore:
Timestamp:
03/14/07 23:30:34 (21 months ago)
Author:
kake
Message:

Let people add name of copyright holder, licence URL, and info page URL for node images (ticket #179).

Location:
trunk/templates
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/templates/display_metadata.tt

    r885 r937  
    77[% IF node_image %] 
    88  <div id="node_image_box"> 
    9     [% IF website %]<a href="[% website %]">[% END %] 
    10       <img id="node_image" src="[% node_image %]" alt="Picture of [% node_name %]" /> 
    11     [% IF website %]</a>[% END %] 
     9    [% IF node_image_url %]<a href="[% node_image_url %]">[% END %] 
     10    <img id="node_image" src="[% node_image %]" 
     11         alt="Picture of [% node_name %]" /> 
     12    [% IF node_image_url %]</a>[% END %] 
     13    [% IF node_image_copyright %] 
     14      <div id="node_image_copyright"> 
     15        [% IF node_image_licence %] 
     16          <a href="[% node_image_licence %]">&copy; 
     17            [% node_image_copyright %]</a> 
     18        [% ELSE %] 
     19          &copy; [% node_image_copyright %] 
     20        [% END %] 
     21      </div> 
     22    [% END %] 
    1223  </div> 
    1324[% ELSE %] 
     
    1526[% END %] 
    1627 
    17   <!--- For the vcard ---> 
     28  <!-- For the vcard --> 
    1829  <span class="fn" style="display:none">[% node_name %]</span> 
    1930[% IF phone OR fax OR address OR postcode OR formatted_website_text 
  • trunk/templates/edit_form.tt

    r935 r937  
    8989          <legend>Metadata (optional)</legend> 
    9090          <table summary="Form for entering metadata about the subject of this node"> 
    91 [% IF config.enable_node_image %] 
    92             <tr> 
    93               <td class="label"><label for="node_image">URL to node Image:</label></td> 
    94               <td> 
    95                 <input type="text" size="50" id="node_image" name="node_image" value="[% node_image %]" /> 
    96                 [% INCLUDE node_photo_notes.tt %] 
    97               </td> 
    98               [% IF conflict %] 
    99                 <td>[% CGI.escapeHTML(new_node_image) %]</td> 
    100               [% END %] 
    101             </tr> 
    102 [% END %] 
     91            [% IF config.enable_node_image %] 
     92              [% INCLUDE node_image_fields.tt %] 
     93            [% END %] 
     94 
    10395            <tr> 
    10496              <td class="label"><label for="phone">Phone:</label></td>