Browse Source

Load the PublishStories widget after everything else to prevent layout issues

pull/1431/head
Timothée Jaussoin 8 months ago
parent
commit
94ac6eecb4
  1. 5
      app/Views/admin.tpl
  2. 5
      app/Views/community.tpl
  3. 5
      app/Views/conf.tpl
  4. 5
      app/Views/explore.tpl
  5. 5
      app/Views/help.tpl
  6. 5
      app/Views/news.tpl
  7. 5
      app/Views/subscriptions.tpl

5
app/Views/admin.tpl

@ -1,5 +1,4 @@
<?php $this->widget('Search');?>
<?php $this->widget('PublishStories');?>
<?php $this->widget('Onboarding');?>
<?php $this->widget('Notifications');?>
<?php $this->widget('Location');?>
@ -36,3 +35,7 @@
<?php } ?>
</div>
</main>
<?php if (\App\User::me()->hasPubsub()) { ?>
<?php $this->widget('PublishStories');?>
<?php } ?>

5
app/Views/community.tpl

@ -5,7 +5,6 @@
<?php $this->widget('SendTo');?>
<?php if(\App\User::me()->hasOMEMO()) $this->widget('ChatOmemo');?>
<?php $this->widget('Location');?>
<?php $this->widget('PublishStories');?>
<?php $this->widget('PostActions');?>
<nav class="color dark">
@ -59,3 +58,7 @@
<?php } ?>
<?php } ?>
</main>
<?php if (isLogged() && \App\User::me()->hasPubsub()) { ?>
<?php $this->widget('PublishStories');?>
<?php } ?>

5
app/Views/conf.tpl

@ -1,5 +1,4 @@
<?php $this->widget('Search');?>
<?php $this->widget('PublishStories');?>
<?php $this->widget('Onboarding');?>
<?php $this->widget('Notifications');?>
<?php if(\App\User::me()->hasOMEMO()) $this->widget('ChatOmemo');?>
@ -41,3 +40,7 @@
<?php $this->widget('Blocked');?>
</div>
</main>
<?php if (\App\User::me()->hasPubsub()) { ?>
<?php $this->widget('PublishStories');?>
<?php } ?>

5
app/Views/explore.tpl

@ -1,6 +1,5 @@
<?php $this->widget('Search');?>
<?php $this->widget('Upload'); ?>
<?php $this->widget('PublishStories');?>
<?php $this->widget('Notifications');?>
<?php $this->widget('SendTo');?>
<?php if(\App\User::me()->hasOMEMO()) $this->widget('ChatOmemo');?>
@ -49,3 +48,7 @@
<?php } ?>
</div>
</main>
<?php if (\App\User::me()->hasPubsub()) { ?>
<?php $this->widget('PublishStories');?>
<?php } ?>

5
app/Views/help.tpl

@ -1,5 +1,4 @@
<?php $this->widget('Search');?>
<?php $this->widget('PublishStories');?>
<?php $this->widget('Notifications');?>
<?php if(\App\User::me()->hasOMEMO()) $this->widget('ChatOmemo');?>
<?php $this->widget('Location');?>
@ -31,3 +30,7 @@
<?php $this->widget('About');?>
</div>
</main>
<?php if (\App\User::me()->hasPubsub()) { ?>
<?php $this->widget('PublishStories');?>
<?php } ?>

5
app/Views/news.tpl

@ -26,4 +26,7 @@
<?php $this->widget('Snap');?>
<?php $this->widget('Draw');?>
<?php $this->widget('PublishStories');?>
<?php if (\App\User::me()->hasPubsub()) { ?>
<?php $this->widget('PublishStories');?>
<?php } ?>

5
app/Views/subscriptions.tpl

@ -1,5 +1,4 @@
<?php $this->widget('Search');?>
<?php $this->widget('PublishStories');?>
<?php $this->widget('Notifications');?>
<?php $this->widget('SendTo');?>
<?php $this->widget('Location');?>
@ -28,3 +27,7 @@
<?php } ?>
</div>
</main>
<?php if (\App\User::me()->hasPubsub()) { ?>
<?php $this->widget('PublishStories');?>
<?php } ?>
Loading…
Cancel
Save