2012-09-25 09:20:49 +09:00
|
|
|
Template.footer.helpers({
|
2012-12-16 18:46:58 +01:00
|
|
|
footerCode: function(){
|
|
|
|
return getSetting('footerCode');
|
|
|
|
},
|
2012-12-16 19:06:21 +01:00
|
|
|
extraCode: function(){
|
|
|
|
return getSetting('extraCode');
|
|
|
|
},
|
2012-12-16 18:46:58 +01:00
|
|
|
distanceFromTop: function(){
|
2012-12-20 17:52:15 +01:00
|
|
|
var distanceFromTop = parseInt(Session.get('distanceFromTop'))+70+20;
|
2012-12-20 21:34:29 +01:00
|
|
|
if(Meteor.Router.page()!='posts_digest' && !Session.get('allPostsLoaded'))
|
2012-12-20 17:52:15 +01:00
|
|
|
distanceFromTop += 70;
|
|
|
|
return distanceFromTop;
|
2012-12-16 18:58:57 +01:00
|
|
|
},
|
|
|
|
footerClass: function(){
|
|
|
|
return Session.get('isPostsList') ? 'absolute' : 'static';
|
2012-12-16 18:46:58 +01:00
|
|
|
}
|
2012-12-16 18:58:57 +01:00
|
|
|
});
|