Merge pull request #2080 from drshawnkwang/drupal_fix-forum-top-links

Drupal: Modified how subscribe link layout.
This commit is contained in:
tristanolive 2017-09-07 22:02:42 -04:00 committed by GitHub
commit efe7064f6e
4 changed files with 41 additions and 13 deletions

View File

@ -331,6 +331,9 @@ ul.links li a {
right: 0;
text-align: right;
}
.subscribe .flag-subscriptions {
padding-left: .5em;
}
.toc {
background-color: transparent;

View File

@ -99,10 +99,18 @@
<h2 class="title"><?php print $subtitle; ?></h2>
</div>
<div class="subscribe">
<?php if ($subscribe_link): ?>
<a href="#block-comment_form_block-comment_form">Post new comment</a> |&nbsp;
<?php print $subscribe_link; ?>
<?php endif; ?>
<ul class="links">
<?php if (user_access('post comments') AND ($comment==COMMENT_NODE_READ_WRITE)): ?>
<li class="first"><a href="#block-comment_form_block-comment_form">Post new comment</a></li>
<?php if ($subscribe_link): ?>
<li class="last"><?php print $subscribe_link; ?></li>
<?php endif; ?>
<?php else: ?>
<?php if ($subscribe_link): ?>
<li class="first"><?php print $subscribe_link; ?></li>
<?php endif; ?>
<?php endif; ?>
</ul>
</div>
<div class="clearfix"></div>
</div>

View File

@ -115,10 +115,18 @@
<h2 class="title"><?php print $subtitle; ?></h2>
</div>
<div class="subscribe">
<?php if ($subscribe_link): ?>
<a href="#block-comment_form_block-comment_form">Post new comment</a> |&nbsp;
<?php print $subscribe_link; ?>
<?php endif; ?>
<ul class="links">
<?php if (user_access('post comments') AND ($comment==COMMENT_NODE_READ_WRITE)): ?>
<li class="first"><a href="#block-comment_form_block-comment_form">Post new comment</a></li>
<?php if ($subscribe_link): ?>
<li class="last"><?php print $subscribe_link; ?></li>
<?php endif; ?>
<?php else: ?>
<?php if ($subscribe_link): ?>
<li class="first"><?php print $subscribe_link; ?></li>
<?php endif; ?>
<?php endif; ?>
</ul>
</div>
<div class="clearfix"></div>
</div>

View File

@ -74,11 +74,20 @@
*/
?>
<?php if ($subscribe_link): ?>
<div class="subscribe">
<?php print $subscribe_link; ?>
</div>
<?php endif; ?>
<div class="subscribe">
<ul class="links">
<?php if (user_access('post comments') AND ($comment==COMMENT_NODE_READ_WRITE)): ?>
<li class="first"><a href="#block-comment_form_block-comment_form">Post new comment</a></li>
<?php if ($subscribe_link): ?>
<li class="last"><?php print $subscribe_link; ?></li>
<?php endif; ?>
<?php else: ?>
<?php if ($subscribe_link): ?>
<li class="first"><?php print $subscribe_link; ?></li>
<?php endif; ?>
<?php endif; ?>
</ul>
</div>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix">
<?php print $user_picture; ?>