                    :footer          (get-in ctx [:config :extra/theme :footer] nil)
                    :factory-url     (get-in ctx [:config :factory :url])
                    :show-terms?     (get-in ctx [:config :core :show-terms?] false)
-                   :filter-options  (first (mapcat #(get-in ctx [:config % :filter-options] []) (get-plugins ctx)))}]
+                   :filter-options  (first (mapcat #(get-in ctx [:config % :filter-options] []) (get-plugins ctx)))
+                   }]
     (str "function salavaCoreCtx() { return " (json/write-str ctx-out) "; }")))
+
 
 (defn include-meta-tags [ctx tags]
   (if tags

                   (cons (map (fn [f] (f ctx)) (plugin-fun (get-plugins ctx) "layout" "html-attributes"))))]
    (apply merge attrib)))

(defn main-view
  ([ctx] (main-view ctx nil))
  ([ctx meta-tags]

       [:link {:type "text/css" :href "/css/custom.css" :rel "stylesheet" :media "screen"}]
       [:link {:type "text/css" :href "/css/print.css" :rel "stylesheet" :media "print"}]
       [:link {:type "text/css", :href "https://fonts.googleapis.com/css?family=Halant:300,400,600,700|Dosis:300,400,600,700,800|Gochi+Hand|Coming+Soon|Oswald:400,300,700|Dancing+Script:400,700|Archivo+Black|Archivo+Narrow|Open+Sans:700,300,600,800,400|Open+Sans+Condensed:300,700|Cinzel:400,700&subset=latin,latin-ext", :rel "stylesheet"}]
       [:link {:rel "shortcut icon" :href (:icon favicons) }]
       [:link {:rel "icon" :type "image/png" :href  (:png favicons)}]

       [:script {:type "text/javascript"} (context-js ctx)]
       (include-js "/js/dataLayer.js"))]

      [:body {:class (if (nil? (get-in ctx [:user])) "anon")}
       [:div#app]
       "<!--[if lt IE 10]>"
