Skip to content

Commit 37ca551

Browse files
johnkpaulrdworth
authored andcommitted
fixes learn #43, add feedback link to github page for content; partial fix for #49
(cherry picked from commit c0eb873)
1 parent d9dab1d commit 37ca551

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

themes/jquery/functions.jquery.php

+8
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,11 @@ function jq_page_links_for_category( $category ) {
120120
return $ret;
121121
}
122122

123+
function jq_get_github_url() {
124+
global $post;
125+
$source_path = get_post_meta( $post->ID, "source_path" );
126+
$github_prefix = 'https://github.com/jquery/' . get_stylesheet() . '/tree/master/' . $source_path[0];
127+
return $github_prefix;
128+
}
129+
130+
?>

themes/jquery/page.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
<?php comments_template( '', true ); ?>
1919

2020

21-
<?php get_footer(); ?>
21+
<?php get_footer(); ?>

themes/learn.jquery.com/page.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
<?php get_template_part( 'content', 'page' ); ?>
1212

1313
<?php comments_template( '', true ); ?>
14-
14+
<h2>Suggestions, Problems, Feedback</h2>
15+
<a class="btn" href="<?php echo jq_get_github_url(); ?>"><i class="icon-github"></i> Open an Issue or Submit a Pull Request on GitHub</a>
16+
1517
</div>
1618
<!-- /inner -->
1719

themes/learn.jquery.com/style.css

+4
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,7 @@ Template: jquery
5959
letter-spacing: 0;
6060
margin: 4px 0 0 0;
6161
}
62+
63+
#body .inner .icon-github {
64+
color:#30b9f8;
65+
}

0 commit comments

Comments
 (0)