Index: trunk/tools/wp-photocommons/search.php |
— | — | @@ -1,16 +1,16 @@ |
2 | 2 | <?php |
3 | | -$path = dirname($_SERVER['PHP_SELF']); |
4 | | -// Standalone is used to develop this page directly, without having to load |
5 | | -// it in admin. |
6 | | -$standalone = empty($_GET['standalone']); |
| 3 | +$path = dirname( $_SERVER['PHP_SELF'] ); |
| 4 | +// Standalone is used to debug/test this page directly, |
| 5 | +// without having to the HEAD/BODY with it in admin. |
| 6 | +$standalone = empty( $_GET['standalone'] ); |
7 | 7 | |
8 | | -if ($standalone) : ?> |
| 8 | +if ( $standalone ) : ?> |
9 | 9 | <!doctype html> |
10 | 10 | <html> |
11 | 11 | <head> |
12 | 12 | <meta charset="utf-8" /> |
13 | | - <link rel="stylesheet" href="<?=$dir?>/css/ui-lightness/jquery-ui-1.8.5.custom.css" /> |
14 | | - <link rel="stylesheet" href="<?=$dir?>/css/jquery.suggestions.css" /> |
| 13 | + <link rel="stylesheet" href="<?php echo $dir; ?>/css/ui-lightness/jquery-ui-1.8.5.custom.css" /> |
| 14 | + <link rel="stylesheet" href="<?php echo $dir; ?>/css/jquery.suggestions.css" /> |
15 | 15 | <link rel="stylesheet" href="css/search.css" /> |
16 | 16 | </head> |
17 | 17 | <body> |
— | — | @@ -21,15 +21,15 @@ |
22 | 22 | |
23 | 23 | <ul id="wp-photocommons-results"></ul> |
24 | 24 | |
25 | | - <img src="<? echo $path; ?>/img/loading.gif" style="display:none;" id="wp-photocommons-loading" /> |
| 25 | + <img src="<?php echo $path; ?>/img/loading.gif" style="display:none;" id="wp-photocommons-loading" /> |
26 | 26 | |
27 | 27 | <div id="wp-photocommons-images"></div> |
28 | 28 | |
29 | 29 | <?php if ($standalone) : ?> |
30 | 30 | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> |
31 | | - <script src="<? echo $path; ?>/js/jquery-ui-1.8.5.custom.min.js"></script> |
32 | | - <script src="<? echo $path; ?>/js/search.js"></script> |
33 | | - <script src="<? echo $path; ?>/js/jquery.suggestions.js"></script> |
| 31 | + <script src="<?php echo $path; ?>/js/jquery-ui-1.8.5.custom.min.js"></script> |
| 32 | + <script src="<?php echo $path; ?>/js/search.js"></script> |
| 33 | + <script src="<?php echo $path; ?>/js/jquery.suggestions.js"></script> |
34 | 34 | </body> |
35 | 35 | </html> |
36 | 36 | <?php endif; ?> |
\ No newline at end of file |