File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ ?>
Original file line number Diff line number Diff line change 1818 <?php comments_template ( '' , true ); ?>
1919
2020
21- <?php get_footer (); ?>
21+ <?php get_footer (); ?>
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments