def core__get_widgets
      lato_modules = core__get_modules_list
      # create list of widgets
      widgets = []
      lato_modules.each do |lato_module_name|
        module_widgets = core__get_widgets_for_module(lato_module_name)
        widgets = widgets + module_widgets if module_widgets
      end
      # sort items and return them
      widgets = widgets.sort_by {|widget| widget[:position]}
      return widgets.reverse
    end
def core__get_widgets
      lato_modules = core__get_modules_list
      # create list of widgets
      widgets = []
      lato_modules.each do |lato_module_name|
        module_widgets = core__get_widgets_for_module(lato_module_name)
        widgets = widgets + module_widgets if module_widgets
      end
      # sort items and return them
      widgets = widgets.sort_by {|widget| widget[:position]}
      return widgets.reverse
    end
Widgets:
 This function return a list of widgets for the header of the layout.