Skip to content

Commit bb7fe7c

Browse files
committed
learn.jquery.com: remove templating for contributors attributions
1 parent 28fe8bd commit bb7fe7c

File tree

2 files changed

+11
-55
lines changed

2 files changed

+11
-55
lines changed

themes/learn.jquery.com/content-page.php

-21
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,6 @@
4444
<ul>
4545
<li class="icon-calendar icon-large" title="Last Updated"><span><?php the_modified_time('F j, Y'); ?></span></li>
4646
</ul>
47-
<?php if ( get_post_meta( $post->ID, "contributors" ) ) : ?>
48-
<?php $contributors = json_decode(get_post_meta( $post->ID, "contributors", true)) ?>
49-
<h3>Contributors</h3>
50-
<ul class="contributor-list">
51-
<?php foreach ($contributors as $contrib) { ?>
52-
<li>
53-
<?php if ( isset( $contrib ->source ) ) : ?>
54-
<a href="<?php echo $contrib->source ?>">
55-
<?php endif ?>
56-
<?php if ( isset( $contrib ->email ) ) : ?>
57-
<?php echo get_avatar( $contrib->email, 24) ?>
58-
<?php endif ?>
59-
<?php echo $contrib->name ?>
60-
<?php if ( isset( $contrib ->source ) ) : ?>
61-
</a>
62-
<?php endif ?>
63-
64-
</li>
65-
<?php } ?>
66-
</ul>
67-
<?php endif; ?>
6847
</aside>
6948
<aside class="github-feedback six columns">
7049
<h3>Suggestions, Problems, Feedback?</h3>

themes/learn.jquery.com/style.css

+11-34
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ a {
5353
top: 11px;
5454
width: 120px;
5555
background-color: #ffea94;
56-
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffea94), to(#FFEA5E));
57-
background-image: -webkit-linear-gradient(top, #ffea94, #FFEA5E);
58-
background-image: -moz-linear-gradient(top, #ffea94, #FFEA5E);
59-
background-image: -ms-linear-gradient(top, #ffea94, #FFEA5E);
60-
background-image: -o-linear-gradient(top, #ffea94, #FFEA5E);
56+
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffea94), to(#FFEA5E));
57+
background-image: -webkit-linear-gradient(top, #ffea94, #FFEA5E);
58+
background-image: -moz-linear-gradient(top, #ffea94, #FFEA5E);
59+
background-image: -ms-linear-gradient(top, #ffea94, #FFEA5E);
60+
background-image: -o-linear-gradient(top, #ffea94, #FFEA5E);
6161
color: #6a6340;
6262
-webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
6363
-moz-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
@@ -67,11 +67,11 @@ a {
6767

6868
.beta-ribbon:hover {
6969
background-color: #ffea5e;
70-
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffea94), to(#FFEA5E));
71-
background-image: -webkit-linear-gradient(top, #ffea5e, #FFea94);
72-
background-image: -moz-linear-gradient(top, #ffea5e, #FFea94);
73-
background-image: -ms-linear-gradient(top, #ffea5e, #FFea94);
74-
background-image: -o-linear-gradient(top, #ffea5e, #FFea94);
70+
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffea94), to(#FFEA5E));
71+
background-image: -webkit-linear-gradient(top, #ffea5e, #FFea94);
72+
background-image: -moz-linear-gradient(top, #ffea5e, #FFea94);
73+
background-image: -ms-linear-gradient(top, #ffea5e, #FFea94);
74+
background-image: -o-linear-gradient(top, #ffea5e, #FFea94);
7575
}
7676
.beta-ribbon a {
7777
text-decoration: none;
@@ -155,7 +155,7 @@ a {
155155
}
156156
.entry-meta aside.meta-details li[class^="icon-"] span,
157157
.entry-meta aside.meta-details li[class*="icon-"] span {
158-
margin-left: 10px;
158+
margin-left: 10px;
159159
}
160160

161161
.entry-meta aside.meta-details [class^="icon-"]:before,
@@ -196,29 +196,6 @@ a {
196196
float: left;
197197
}
198198

199-
.entry-meta aside.meta-details .contributor-list {
200-
list-style-type: none;
201-
margin: 0;
202-
}
203-
#content .entry-meta aside.meta-details .contributor-list li {
204-
font-size: 14px;
205-
line-height: 24px;
206-
margin: 0 0 4px 0;
207-
background: none;
208-
padding-left: 0;
209-
}
210-
211-
.entry-meta aside.meta-details .contributor-list li a {
212-
text-decoration: none;
213-
}
214-
215-
.entry-meta aside.meta-details .contributor-list li a:hover {
216-
text-decoration: underline;
217-
}
218-
.entry-meta aside.meta-details .contributor-list li img {
219-
vertical-align: middle;
220-
margin-right: 4px;
221-
}
222199
.meta .feedback {
223200
float: left;
224201
display: block;

0 commit comments

Comments
 (0)