2016-04-25 17:02:41 +09:00
|
|
|
import React, { PropTypes, Component } from 'react';
|
2016-03-30 09:24:52 +09:00
|
|
|
|
2016-03-30 10:52:40 +09:00
|
|
|
import Core from "meteor/nova:core";
|
|
|
|
const FlashContainer = Core.FlashContainer;
|
|
|
|
|
2016-04-25 17:02:41 +09:00
|
|
|
class Layout extends Component {
|
2016-02-16 15:08:30 +09:00
|
|
|
|
2016-04-25 17:02:41 +09:00
|
|
|
render() {
|
|
|
|
|
|
|
|
({Header, Footer, FlashMessages, Newsletter, HeadTags, UsersProfileCheck} = Telescope.components);
|
2016-02-16 15:08:30 +09:00
|
|
|
|
2016-04-25 17:02:41 +09:00
|
|
|
return (
|
|
|
|
<div className="wrapper" id="wrapper">
|
2016-03-25 10:45:28 +09:00
|
|
|
|
2016-04-25 17:02:41 +09:00
|
|
|
<HeadTags />
|
2016-04-13 08:43:43 +02:00
|
|
|
|
2016-04-25 17:02:41 +09:00
|
|
|
<UsersProfileCheck {...this.props} />
|
2016-04-15 11:09:19 +02:00
|
|
|
|
2016-04-25 17:02:41 +09:00
|
|
|
<Header {...this.props}/>
|
|
|
|
|
|
|
|
<div className="main">
|
2016-03-25 10:45:28 +09:00
|
|
|
|
2016-04-25 17:02:41 +09:00
|
|
|
<FlashContainer component={FlashMessages}/>
|
2016-03-25 11:30:01 +09:00
|
|
|
|
2016-04-25 17:02:41 +09:00
|
|
|
<Newsletter />
|
2016-03-25 10:45:28 +09:00
|
|
|
|
2016-04-25 17:02:41 +09:00
|
|
|
{this.props.children}
|
2016-03-25 10:45:28 +09:00
|
|
|
|
2016-04-25 17:02:41 +09:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<Footer {...this.props}/>
|
|
|
|
|
2016-02-19 09:54:13 +09:00
|
|
|
</div>
|
2016-04-25 17:02:41 +09:00
|
|
|
)
|
|
|
|
|
|
|
|
}
|
2016-02-16 15:08:30 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Layout;
|