<?php $this->widget('Search');?>
<?php $this->widget('Notification');?>
<?php $this->widget('VisioLink');?>
<?php $this->widget('Upload'); ?>

<nav class="color dark">
    <?php $this->widget('Presence');?>
    <?php $this->widget('Navigation');?>
</nav>

<main>
    <section style="background-color: #EEE;">
        <?php if(empty($_GET['s'])) { ?>
            <aside>
                <?php $this->widget('NewsNav');?>
            </aside>
            <?php $this->widget('Communities'); ?>
        <?php } elseif($_GET['s'] == 'subscriptions'
                    && $this->user->isSupported('pubsub')) { ?>
            <aside>
                <?php $this->widget('NewsNav');?>
            </aside>
            <?php $this->widget('CommunitySubscriptions'); ?>
        <?php } elseif(empty($_GET['n'])) { ?>
            <aside>
                <?php $this->widget('NewsNav');?>
            </aside>
            <?php $this->widget('CommunitiesServer'); ?>
        <?php } else { ?>
            <aside>
                <?php $this->widget('CommunityData'); ?>
                <?php $this->widget('CommunityConfig'); ?>
                <?php $this->widget('CommunityAffiliations'); ?>
            </aside>
            <div id="community">
            <?php $this->widget('CommunityHeader'); ?>
            <?php $this->widget('CommunityPosts'); ?>
            </div>
        <?php } ?>
    </section>
</main>

<?php $this->widget('Search');?>
<?php $this->widget('Notification');?>
<?php $this->widget('VisioLink');?>
<?php $this->widget('Upload'); ?>

<?php $this->widget('PostActions');?>

<nav class="color dark">
    <?php $this->widget('Presence');?>
    <?php $this->widget('Navigation');?>
</nav>

<main>
    <section style="background-color: #EEE;">
        <?php if(empty($_GET['s'])) { ?>
            <aside>
                <?php $this->widget('NewsNav');?>
            </aside>
            <?php $this->widget('Communities'); ?>
        <?php } elseif($_GET['s'] == 'subscriptions'
                    && $this->user->isSupported('pubsub')) { ?>
            <aside>
                <?php $this->widget('NewsNav');?>
            </aside>
            <?php $this->widget('CommunitySubscriptions'); ?>
        <?php } elseif(empty($_GET['n'])) { ?>
            <aside>
                <?php $this->widget('NewsNav');?>
            </aside>
            <?php $this->widget('CommunitiesServer'); ?>
        <?php } else { ?>
            <aside>
                <?php $this->widget('CommunityData'); ?>
                <?php $this->widget('CommunityConfig'); ?>
                <?php $this->widget('CommunityAffiliations'); ?>
            </aside>
            <div id="community">
            <?php $this->widget('CommunityHeader'); ?>
            <?php $this->widget('CommunityPosts'); ?>
            </div>
        <?php } ?>
    </section>
</main>

Fix Actions for posts in Communities
Fix Actions for posts in Communities
