
define([
  'marionette', 'backbone', 'moment',
  './base/rootView/lyt-rootview',
  'router',
  'controller',
  'config',
],
function(Marionette, Backbone, Moment, LytRootview, Router,
Controller, config) {

  var app = {};
  var JST = window.JST = window.JST || {};

  Backbone.Marionette.Renderer.render = function(template, data) {
    if (!JST[template]) throw 'Template \'' + template + '\' not found!';
    return JST[template](data);
  };

  app = new Marionette.Application();

  $.ajaxSetup({ cache: false });

  app.on('start', function() {
    var _this = this;
    var noimage = config.noimage ;
    var link = window.location.hostname;
    var url = config.coreUrl + 'site';
    if(link=="localhost"){
      url = url + '?noimage=true';
    }
    var Patern = Backbone.Model.extend({
      urlRoot: url
    });
    var model = new Patern();
    model.fetch({
      success: function() {
        model.set('siteClassName', model.get('title').replace(/ /g,'-'));
        app.siteInfo = model;
        app.rootView = new LytRootview();
        app.rootView.render();
        app.controller = new Controller({app: app});
        app.router = new Router({
          controller: app.controller,
          app: app
        });
        app.siteInfos = model;
        app.user = new Backbone.Model();
        app.user.url = config.coreUrl + 'currentUser';
        Backbone.history.start();
      },
      error: function() {
      },
    });
  });

  $(document).ajaxStart(function(e) {
    $('#header-loader').removeClass('hidden');
  });

  $(document).ajaxStop(function() {
    $('#header-loader').addClass('hidden');
  });

  window.app = app;
  return app;
});

@@ -578,75 +578,268 @@
 var 
-noimage = config.noimage ;%0A    var link = window.location.hostname;
+params=%7B%7D;%0A    window.location.search.replace(/%5B?&%5D+(%5B%5E=&%5D+)=(%5B%5E&%5D*)/gi, function(str,key,value) %7B%0A        params%5Bkey%5D = value;%0A      %7D%0A    );%0A    var val;%0A    if(params.img)%7B%0A      val = params.img;%0A    %7D%0A    if (params.image)%7B%0A      val = params.image;%0A    %7D
 %0A   
@@ -885,25 +885,48 @@
  if(
-link==%22localhost%22
+val==%220%22 %7C%7C val==%22false%22 %7C%7C val == false
 )%7B%0A 

fix - display image