Class: ODDB::View::NavigationFoot

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/navigationfoot.rb

Constant Summary

CSS_CLASS =
"composite"
COMPONENTS =
{
  [1,0]   => View::ZoneNavigation,
  [0,1]   => View::Copyright,
  [1,1]   => View::Navigation,
}
CSS_MAP =
{
  [0,0] =>  'navigation',
  [1,0] =>  'navigation right',
  [0,1] =>  'subheading',
  [1,1] =>  'subheading right',
}
COMPONENT_CSS_MAP =
{
  [0,0] =>  'navigation',
  [1,0] =>  'navigation right',
  [0,1] =>  'subheading',
  [1,1] =>  'subheading right',
}

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) init



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'src/view/navigationfoot.rb', line 30

def init
  if(@lookandfeel.disabled?(:navigation))
    @components = {
      [0,0]   => View::Copyright,
    }
    @css_map = {
      [0,0] =>  'subheading',
    }
    @component_css_map = {
      [0,0] =>  'subheading',
    }
  elsif(@lookandfeel.disabled?(:zone_navigation))
    @components = {
      [0,0]   => View::Copyright,
      [1,0]   => View::Navigation,
    }
    @css_map = {
      [0,0] =>  'navigation',
      [1,0] =>  'navigation right',
    }
    @component_css_map = {
      [0,0] =>  'navigation',
      [1,0] =>  'navigation right',
    }
  elsif(@lookandfeel.enabled?(:custom_navigation, false) \
     || @lookandfeel.zone_navigation.empty?)
    @components = {
      [0,0]   => View::Copyright,
      [1,0]   => View::Navigation,
    }
    @css_map = {
      [0,0] =>  'subheading',
      [1,0] =>  'subheading right',
    }
    @component_css_map = {
      [0,0] =>  'subheading',
      [1,0] =>  'subheading right',
    }
  elsif(@lookandfeel.enabled?(:country_navigation))
    components.store([0,0], View::CountryNavigation)
  end
  super
end