-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathconfig.php
More file actions
41 lines (33 loc) · 1.31 KB
/
Copy pathconfig.php
File metadata and controls
41 lines (33 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
# The URL associated with your QnA instance's main page.
$home = "http://www.example.com/";
# Source Whitelist. See http://www.qnamarkup.org/syntax/#remote
# Provide a comma separated list of domains, and make sure to include the trailing slash (/).
$whitelist = "http://www.qnamarkup.org/,http://colarusso.github.io/";
# Dynamic Nav Bar Menu
function nav_bar($home) {
?>
<span style="float:right;">
<?php if (!preg_match("/^\/(syntax)\//i", $_SERVER["REQUEST_URI"])) { echo "<a href=".$home.">Home (editor)</a> "; } ?>
<a href="<?php echo $home ?>syntax/">Syntax</a> |
<a href="https://github.com/colarusso/QnAMarkup/wiki/Gallery/" target="_blank">Gallery</a>
<a href="https://github.com/colarusso/QnAMarkup/wiki/" target="_blank">Wiki</a>
<a href="https://github.com/colarusso/QnAMarkup" target="_blank">GitHub</a>
</span>
<?php
}
# include link to report bugs/issues: 1 = yes, 0 = no
# only set to 1 if you have not altered any code
$bugs = 0;
# A code block to be placed at the
# very end of your pages' BODY tag.
$analytics_code = "";
function share_widget($home,$query_string) {
# A code block to be placed in your
# interactive output right before the
# "code your own" link, assuming sharing
# is selected under the Style tab.
?>
<?php
}
?>