|
9 | 9 | </thead> |
10 | 10 | <tbody> |
11 | 11 | {% assign sorted_images = page.images | sort %}{% for image in sorted_images %} |
| 12 | + {%- capture imagetype %}{{image|split:'-'|last|split:'.'|first}}{% endcapture %} |
| 13 | + {%- assign standard = false %} |
| 14 | + {%- capture alt_text %}Alternate image for {{page.title}}{% endcapture %} |
| 15 | + {%- assign theType = none %} |
| 16 | + {%- assign heightWidth = '' %} |
| 17 | + {%- for standardtype in site.data.imagetype %} |
| 18 | + {%- if standardtype.id == imagetype %} |
| 19 | + {%- assign theType = standardtype %} |
| 20 | + {%- assign standard = true %} |
| 21 | + {%- assign customstyle = standardtype.customstyle %} |
| 22 | + {%- capture alt_text %}Vector (.svg) logo for {{page.title}}: {{standardtype.title}}{% endcapture %} |
| 23 | + {%- capture heightWidth %}&height={{standardtype.height}}&width={{standardtype.width}}{% endcapture %} |
| 24 | + {%- endif %} |
| 25 | + {%- endfor %} |
12 | 26 | <tr> |
13 | 27 | <td class="d-none d-md-table-cell" style="white-space:nowrap;vertical-align:middle;"> |
14 | | - <a class="btn btn-secondary btn-sm" href="{{site.viewer}}?url={{site.production_url}}/logos/{{page.logohandle}}/{{image}}&zoom=max&backUrl={{site.production_url}}/logos/{{page.logohandle}}/index.html&backText=Return+to+VectorLogoZone" title="preview" rel="nofollow"><i class="far fa-eye"></i></a> |
| 28 | + <a class="btn btn-secondary btn-sm" href="{{site.viewer}}?url={{site.production_url}}/logos/{{page.logohandle}}/{{image}}&zoom=max&backUrl={{site.production_url}}/logos/{{page.logohandle}}/index.html&backText=Return+to+VectorLogoZone{{heightWidth}}" title="preview" rel="nofollow"><i class="far fa-eye"></i></a> |
15 | 29 | <a class="btn btn-secondary btn-sm" download="{{image}}" href="{{image}}" title="Download"><i class="fa fa-download"></i></a> |
16 | 30 | <button class="btn btn-secondary btn-sm copy2cb" data-clipboard-text="{{site.production_url}}/logos/{{page.logohandle}}/{{image}}" href="#" title="Copy URL to Clipboard" rel="nofollow"><i class="far fa-clipboard"></i></button> |
17 | 31 | <div style="position:relative;display:inline-block;"><button class="btn btn-primary btn-sm copy2tip" style="position:absolute;left:0;right:0;">Copied to Clipboard</button> |
18 | 32 | <a class="btn btn-secondary btn-sm" href="/util/convert_to_png.html?svg=/logos/{{page.logohandle}}/{{image}}" title="Convert to PNG" rel="nofollow"><i class="fa fa-exchange"></i></a> |
19 | 33 | </div> |
20 | 34 | </td> |
21 | 35 | <td class="d-none d-sm-table-cell" style="white-space:nowrap;vertical-align:middle;"> |
22 | | - {%- capture imagetype %}{{image|split:'-'|last|split:'.'|first}}{% endcapture %} |
23 | | - {%- assign standard = false %} |
24 | | - {%- capture alt_text %}Alternate image for {{page.title}}{% endcapture %} |
25 | | - {%- for standardtype in site.data.imagetype %} |
26 | | - {% if standardtype.id == imagetype %} |
27 | | - {{standardtype.title}} |
28 | | - {% capture alt_text %}Vector (.svg) logo for {{page.title}}: {{standardtype.title}}{% endcapture %} |
29 | | - {% assign standard = true %} |
30 | | - {% assign customstyle = standardtype.customstyle %} |
31 | | - {% endif %} |
32 | | - {% endfor %} |
33 | | - {% if standard == false %} |
| 36 | + {%- if standard %} |
| 37 | + {{theType.title}} |
| 38 | + {%- else %} |
34 | 39 | {{imagetype}} |
35 | 40 | {% endif %} |
36 | 41 | {% capture extension %}{{image|split:'.'|last}}{% endcapture %} |
37 | 42 | {% if extension == 'png' %} |
38 | 43 | (Raster) |
39 | 44 | {% endif %} |
40 | 45 | </td> |
41 | | - <td><a href="{{site.viewer}}?url={{site.production_url}}/logos/{{page.logohandle}}/{{image}}&zoom=max&backUrl={{site.production_url}}/logos/{{page.logohandle}}/index.html&backText=Return+to+VectorLogoZone" rel="nofollow"><img alt="{{alt_text}}" src="{{image}}" style="{% if customstyle%}{{customstyle}}{% else %}height:120px;{% endif %}" /></a></td> |
| 46 | + <td><a href="{{site.viewer}}?url={{site.production_url}}/logos/{{page.logohandle}}/{{image}}&zoom=max&backUrl={{site.production_url}}/logos/{{page.logohandle}}/index.html&backText=Return+to+VectorLogoZone{{heightWidth}}" rel="nofollow"><img alt="{{alt_text}}" src="{{image}}" style="{% if customstyle%}{{customstyle}}{% else %}height:120px;{% endif %}" /></a></td> |
42 | 47 | </tr> |
43 | 48 | {% endfor %} |
44 | 49 | </tbody> |
|
0 commit comments