File tree 2 files changed +11
-0
lines changed
themes/plugins.jquery.com
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,14 @@ function jq_plugin_repo_url() {
14
14
return jq_plugin_meta ( array ( "key " => "repo_url " ) );
15
15
}
16
16
17
+ function jq_plugin_bugs_url () {
18
+ $ manifest = jq_plugin_manifest ();
19
+ if ( empty ( $ manifest ->bugs ) ) {
20
+ return false ;
21
+ }
22
+ return is_string ( $ manifest ->bugs ) ? $ manifest ->bugs : $ manifest ->bugs ->url ;
23
+ }
24
+
17
25
function jq_plugin_watchers () {
18
26
return jq_plugin_meta ( array ( "key " => "watchers " ) );
19
27
}
Original file line number Diff line number Diff line change 19
19
<a class="other-link view-homepage" href="<?php echo jq_release_homepage (); ?> "><span class="icon-external-link"></span>View Homepage</a>
20
20
<a class="other-link demo" href="<?php echo jq_release_demo (); ?> "><span class="icon-eye-open"></span>Try a Demo</a>
21
21
<a class="other-link read-docs" href="<?php echo jq_release_docs (); ?> "><span class="icon-file"></span>Read the Docs</a>
22
+ <?php if (jq_plugin_bugs_url ()): ?>
23
+ <a class="other-link bugs" href="<?php echo jq_plugin_bugs_url (); ?> "><span class="icon-flag"></span>Bug Reports</a>
24
+ <?php endif ?>
22
25
</div>
23
26
</div>
24
27
</aside>
You can’t perform that action at this time.
0 commit comments