jdarwood007 commited on 2014-10-11 11:54:43
Showing 1 changed files, with 4 additions and 14 deletions.
... | ... |
@@ -16,7 +16,7 @@ $specialPage['pageTitlePrefix'] = 'SMF PacMan'; |
16 | 16 |
require_once('../wp-ssi.php'); |
17 | 17 |
|
18 | 18 |
// Our sauce link. |
19 |
-$specialPage['source'] = 'See the source code: [<a href="http://git.sleepycode.com/?a=summary&p=SMF%20Package%20Manager%20Generator">Local</a>] [<a href="https://github.com/jdarwood007/smf_package_maker">GitHub</a>]'; |
|
19 |
+$specialPage['source'] = 'See the source code: [<a href="//git.sleepycode.com/?a=summary&p=SMF%20Package%20Manager%20Generator">Local</a>] [<a href="https://github.com/jdarwood007/smf_package_maker">GitHub</a>]'; |
|
20 | 20 |
|
21 | 21 |
// Load the headers up. |
22 | 22 |
function pacman_header($headers) |
... | ... |
@@ -34,21 +35,11 @@ function pacman_footer() |
34 | 35 |
function pacman_wp_int() |
35 | 36 |
{ |
36 | 37 |
global $headers; |
38 |
+ global $site_injected_css, $site_injected_js; |
|
37 | 39 |
|
38 | 40 |
if (!empty($headers['css'])) |
39 |
- foreach ($headers['css'] as $css) |
|
40 |
- echo ' |
|
41 |
- <link rel="stylesheet" id="', $css['name'], '" href="', $css['href'], '" type="text/css" media="all" />'; |
|
41 |
+ $site_injected_css = $headers['css']; |
|
42 | 42 |
|
43 | 43 |
if (!empty($headers['js'])) |
44 |
- foreach ($headers['js'] as $js) |
|
45 |
- if ($js['name'] != 'jquery') |
|
46 |
- echo ' |
|
47 |
- <script type="text/javascript" src="', $js['src'], '"></script>'; |
|
48 |
- |
|
49 |
- // Pretty source code. I care about that. |
|
50 |
- if (!empty($headers['css']) && !empty($headers['js'])) |
|
51 |
- echo ' |
|
52 |
-'; |
|
53 |
- |
|
44 |
+ $site_injected_js = $headers['js']; |
|
54 | 45 |
} |
55 | 46 |