Skip to content

learn.jquery.com: remove templating for contributors attributions #334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions themes/learn.jquery.com/content-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,6 @@
<ul>
<li class="icon-calendar icon-large" title="Last Updated"><span><?php the_modified_time('F j, Y'); ?></span></li>
</ul>
<?php if ( get_post_meta( $post->ID, "contributors" ) ) : ?>
<?php $contributors = json_decode(get_post_meta( $post->ID, "contributors", true)) ?>
<h3>Contributors</h3>
<ul class="contributor-list">
<?php foreach ($contributors as $contrib) { ?>
<li>
<?php if ( isset( $contrib ->source ) ) : ?>
<a href="<?php echo $contrib->source ?>">
<?php endif ?>
<?php if ( isset( $contrib ->email ) ) : ?>
<?php echo get_avatar( $contrib->email, 24) ?>
<?php endif ?>
<?php echo $contrib->name ?>
<?php if ( isset( $contrib ->source ) ) : ?>
</a>
<?php endif ?>

</li>
<?php } ?>
</ul>
<?php endif; ?>
</aside>
<aside class="github-feedback six columns">
<h3>Suggestions, Problems, Feedback?</h3>
Expand Down
23 changes: 0 additions & 23 deletions themes/learn.jquery.com/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -196,29 +196,6 @@ a {
float: left;
}

.entry-meta aside.meta-details .contributor-list {
list-style-type: none;
margin: 0;
}
#content .entry-meta aside.meta-details .contributor-list li {
font-size: 14px;
line-height: 24px;
margin: 0 0 4px 0;
background: none;
padding-left: 0;
}

.entry-meta aside.meta-details .contributor-list li a {
text-decoration: none;
}

.entry-meta aside.meta-details .contributor-list li a:hover {
text-decoration: underline;
}
.entry-meta aside.meta-details .contributor-list li img {
vertical-align: middle;
margin-right: 4px;
}
.meta .feedback {
float: left;
display: block;
Expand Down