Skip to content

Commit ae864d9

Browse files
committed
Updated to not use PHP short tags.
1 parent 28220b2 commit ae864d9

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

footer.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@
2020

2121
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
2222
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
23-
<script>!window.jQuery && document.write('<script src="<?= $GLOBALS["TEMPLATE_RELATIVE_URL"] ?>html5-boilerplate/js/jquery-1.4.2.min.js"><\/script>')</script>
23+
<script>!window.jQuery && document.write('<script src="<?php echo $GLOBALS["TEMPLATE_RELATIVE_URL"] ?>html5-boilerplate/js/jquery-1.4.2.min.js"><\/script>')</script>
2424

2525

26-
<?= versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/plugins.js") ?>
27-
<?= versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/script.js") ?>
26+
<?php versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/plugins.js") ?>
27+
<?php versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/script.js") ?>
2828

2929

3030
<!--[if lt IE 7 ]>
31-
<?= versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/dd_belatedpng.js") ?>
31+
<?php versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/dd_belatedpng.js") ?>
3232
<![endif]-->
3333

3434

3535
<!-- yui profiler and profileviewer - remove for production -->
36-
<!-- <?= versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/profiling/yahoo-profiling.min.js") ?>
37-
<?= versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/profiling/config.js") ?> -->
36+
<!-- <?php versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/profiling/yahoo-profiling.min.js") ?>
37+
<?php versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/profiling/config.js") ?> -->
3838
<!-- end profiling code -->
3939

4040

functions.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ function mytheme_comment($comment, $args, $depth) {
4848

4949
// Add ?v=[last modified time] to style sheets
5050
function versioned_stylesheet($relative_url, $add_attributes=""){
51-
return '<link rel="stylesheet" href="'.versioned_resource($relative_url).'" '.$add_attributes.'>'."\n";
51+
echo '<link rel="stylesheet" href="'.versioned_resource($relative_url).'" '.$add_attributes.'>'."\n";
5252
}
5353

5454
// Add ?v=[last modified time] to javascripts
5555
function versioned_javascript($relative_url, $add_attributes=""){
56-
return '<script src="'.versioned_resource($relative_url).'" '.$add_attributes.'></script>'."\n";
56+
echo '<script src="'.versioned_resource($relative_url).'" '.$add_attributes.'></script>'."\n";
5757
}
5858

5959
// Add ?v=[last modified time] to a file url

header.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
3535

3636
<!-- CSS : implied media="all" -->
37-
<?= versioned_stylesheet($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/css/style.css") ?>
37+
<?php versioned_stylesheet($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/css/style.css") ?>
3838

3939
<!-- For the less-enabled mobile browsers like Opera Mini -->
40-
<?= versioned_stylesheet($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/css/handheld.css", 'media="handheld"') ?>
40+
<?php versioned_stylesheet($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/css/handheld.css", 'media="handheld"') ?>
4141

4242
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
43-
<?= versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/modernizr-1.5.min.js") ?>
43+
<?php versioned_javascript($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/js/modernizr-1.5.min.js") ?>
4444

4545
<!-- Wordpress Head Items -->
4646
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

0 commit comments

Comments
 (0)