|
| 1 | +<% space_string_in_config = current_space.default? ? 'default' : current_space.host %> |
| 2 | + |
1 | 3 | <footer class="footer"> |
2 | 4 | <div class="container"> |
3 | 5 | <div class="row"> |
4 | 6 | <div class="col-sm-4 col-xs-6"> |
5 | 7 | <div class="footer-logo footer-item"> |
6 | | - <%= image_tag(TeSS::Config.site['logo'], :alt => TeSS::Config.site['logo_alt']) %> |
| 8 | + <% if TeSS::Config.site.dig('footer', 'show_space_logo') && current_space.image? %> |
| 9 | + <%= image_tag(current_space.image.url, :alt => current_space.logo_alt) %> |
| 10 | + <% else %> |
| 11 | + <%= image_tag(TeSS::Config.site['logo'], :alt => TeSS::Config.site['logo_alt']) %> |
| 12 | + <% end %> |
7 | 13 | </div> |
8 | 14 |
|
9 | 15 | <div class="footer-item contact-link"> |
|
12 | 18 |
|
13 | 19 | <% if TeSS::Config.site.dig('footer', 'additional_links') %> |
14 | 20 | <% TeSS::Config.site.dig('footer', 'additional_links').each do |link| %> |
15 | | - <% if link[:location] == 'left' %> |
| 21 | + <% if link[:location] == 'left' && (link[:space].blank? || link[:space] == space_string_in_config) %> |
16 | 22 | <div class="footer-item"> |
17 | 23 | <%= link_to link[:title], link[:url] %> |
18 | 24 | </div> |
|
45 | 51 | <% end %> |
46 | 52 | <% if TeSS::Config.site.dig('footer', 'additional_links') %> |
47 | 53 | <% TeSS::Config.site.dig('footer', 'additional_links').each do |link| %> |
48 | | - <% if link[:location] == 'center' || !link[:location] %> |
| 54 | + <% if (link[:location] == 'center' || !link[:location]) && (link[:space].blank? || link[:space] == space_string_in_config)%> |
49 | 55 | <div class="footer-item"> |
50 | 56 | <%= link_to link[:title], link[:url] %> |
51 | 57 | </div> |
|
76 | 82 |
|
77 | 83 | <% if TeSS::Config.site.dig('footer', 'additional_links') %> |
78 | 84 | <% TeSS::Config.site.dig('footer', 'additional_links').each do |link| %> |
79 | | - <% if link[:location] == 'right' %> |
| 85 | + <% if link[:location] == 'right' && (link[:space].blank? || link[:space] == space_string_in_config)%> |
80 | 86 | <div class="footer-item"> |
81 | 87 | <%= link_to link[:title], link[:url] %> |
82 | 88 | </div> |
|
0 commit comments