diff options
author | François KUBLER <francois@kubler.org> | 2011-03-09 21:57:00 +0100 |
---|---|---|
committer | François KUBLER <francois@kubler.org> | 2011-03-09 21:57:00 +0100 |
commit | bf815b33908394fcda4fb6cb987caaca58b20fd0 (patch) | |
tree | 6238b364efdad687e6aeb69e6111cbd7af06776f /templates | |
parent | 1935d85ef1200f7a73cccbca39f0b81ce411850c (diff) | |
download | nextcloud-server-bf815b33908394fcda4fb6cb987caaca58b20fd0.tar.gz nextcloud-server-bf815b33908394fcda4fb6cb987caaca58b20fd0.zip |
Fixed PHP syntax in template files.
* Full PHP tags
* Alternative syntax for control structures
* Semi-colon at the end of instructions
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layout.admin.php | 28 | ||||
-rw-r--r-- | templates/layout.guest.php | 14 | ||||
-rw-r--r-- | templates/layout.user.php | 28 | ||||
-rw-r--r-- | templates/login.php | 6 |
4 files changed, 38 insertions, 38 deletions
diff --git a/templates/layout.admin.php b/templates/layout.admin.php index b4fcc915882..ebf0a1f048a 100644 --- a/templates/layout.admin.php +++ b/templates/layout.admin.php @@ -9,24 +9,24 @@ <title>ownCloud</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="favicon.ico" /> - <? foreach( $_["cssfiles"] as $cssfile ){ ?> - <link rel="stylesheet" href="<? echo $cssfile ?>" type="text/css" media="screen" /> - <? } ?> - <? foreach( $_["jsfiles"] as $jsfile ){ ?> - <script type="text/javascript" src="<? echo $jsfile ?>"></script> - <? } ?> + <?php foreach($_["cssfiles"] as $cssfile): ?> + <link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" /> + <?php endforeach; ?> + <?php foreach($_["jsfiles"] as $jsfile): ?> + <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> + <?php endforeach; ?> </head> <body> <div id="header"> - <a href="<? echo link_to( "", "index.php" )?>" title="" id="owncloud"><img src="<? echo image_path( "", "owncloud-logo-small-white.png" ) ?>" alt="ownCloud" /></a> + <a href="<?php echo link_to("", "index.php"); ?>" title="" id="owncloud"><img src="<?php echo image_path("", "owncloud-logo-small-white.png"); ?>" alt="ownCloud" /></a> <div id="user"> <a id="user_menu_link" href="" title="">Username</a> <ul id="user_menu"> - <? foreach( $_["personalmenu"] as $entry ){ ?> - <li><a href="<? echo link_to( $entry["app"], $entry["file"] )?>" title=""><? echo $entry["name"] ?></a></li> - <? } ?> + <?php foreach($_["personalmenu"] as $entry ): ?> + <li><a href="<?php echo link_to($entry["app"], $entry["file"]); ?>" title=""><?php echo $entry["name"]; ?></a></li> + <?php endforeach; ?> </ul> </div> </div> @@ -34,14 +34,14 @@ <div id="main"> <div id="plugins"> <ul> - <? foreach( $_["navigation"] as $entry ){ ?> - <li><a href="<? echo link_to( $entry["app"], $entry["file"] )?>" title=""><? echo $entry["name"] ?></a></li> - <? } ?> + <?php foreach($_["navigation"] as $entry): ?> + <li><a href="<?php echo link_to($entry["app"], $entry["file"]); ?>" title=""><?php echo $entry["name"]; ?></a></li> + <?php endforeach; ?> </ul> </div> <div id="content"> - <? echo $_["content"] ?> + <?php echo $_["content"]; ?> </div> </div> </body> diff --git a/templates/layout.guest.php b/templates/layout.guest.php index a5ebf7a76a8..a163a97103f 100644 --- a/templates/layout.guest.php +++ b/templates/layout.guest.php @@ -9,16 +9,16 @@ <title>ownCloud</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="favicon.ico" /> - <? foreach( $_["cssfiles"] as $cssfile ){ ?> - <link rel="stylesheet" href="<? echo $cssfile ?>" type="text/css" media="screen" /> - <? } ?> - <? foreach( $_["jsfiles"] as $jsfile ){ ?> - <script type="text/javascript" src="<? echo $jsfile ?>"></script> - <? } ?> + <?php foreach($_["cssfiles"] as $cssfile): ?> + <link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" /> + <?php endforeach; ?> + <?php foreach($_["jsfiles"] as $jsfile): ?> + <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> + <?php endforeach; ?> </head> <body class="login"> - <? echo $_["content"] ?> + <?php echo $_["content"]; ?> <p class="info"> ownCloud is an open personal cloud which runs on your personal server.<br /> To learn more, please visit <a href="http://www.owncloud.org/">owncloud.org</a>. diff --git a/templates/layout.user.php b/templates/layout.user.php index 0643c99e933..20fb3f88cd6 100644 --- a/templates/layout.user.php +++ b/templates/layout.user.php @@ -9,24 +9,24 @@ <title>ownCloud</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="favicon.ico" /> - <? foreach( $_["cssfiles"] as $cssfile ){ ?> - <link rel="stylesheet" href="<? echo $cssfile ?>" type="text/css" media="screen" /> - <? } ?> - <? foreach( $_["jsfiles"] as $jsfile ){ ?> - <script type="text/javascript" src="<? echo $jsfile ?>"></script> - <? } ?> + <?php foreach($_["cssfiles"] as $cssfile): ?> + <link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" /> + <?php endforeach; ?> + <?php foreach($_["jsfiles"] as $jsfile): ?> + <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> + <?php endforeach; ?> </head> <body> <div id="header"> - <a href="<? echo link_to( "", "index.php" )?>" title="" id="owncloud"><img src="<? echo image_path( "", "owncloud-logo-small-white.png" ) ?>" alt="ownCloud" /></a> + <a href="<?php echo link_to("", "index.php"); ?>" title="" id="owncloud"><img src="<?php echo image_path("", "owncloud-logo-small-white.png"); ?>" alt="ownCloud" /></a> <div id="user"> <a id="user_menu_link" href="" title="">Username</a> <ul id="user_menu"> - <? foreach( $_["personalmenu"] as $entry ){ ?> - <li><a href="<? echo link_to( $entry["app"], $entry["file"] )?>" title=""><? echo $entry["name"] ?></a></li> - <? } ?> + <?php foreach($_["personalmenu"] as $entry): ?> + <li><a href="<?php echo link_to($entry["app"], $entry["file"]); ?>" title=""><?php echo $entry["name"]; ?></a></li> + <?php endforeach; ?> </ul> </div> </div> @@ -34,14 +34,14 @@ <div id="main"> <div id="plugins"> <ul> - <? foreach( $_["navigation"] as $entry ){ ?> - <li><a href="<? echo link_to( $entry["app"], $entry["file"] )?>" title=""><? echo $entry["name"] ?></a></li> - <? } ?> + <?php foreach($_["navigation"] as $entry): ?> + <li><a href="<?php echo link_to($entry["app"], $entry["file"]); ?>" title=""><?php echo $entry["name"]; ?></a></li> + <?php endforeach; ?> </ul> </div> <div id="content"> - <? echo $_["content"] ?> + <?php echo $_["content"]; ?> </div> </div> </body> diff --git a/templates/login.php b/templates/login.php index 60b8dc0253f..a165fc7246e 100644 --- a/templates/login.php +++ b/templates/login.php @@ -4,13 +4,13 @@ */ ?> <div id="login"> - <img src="<? echo image_path( "", "owncloud-logo-medium-white.png" ) ?>" alt="ownCloud" /> + <img src="<?php echo image_path("", "owncloud-logo-medium-white.png"); ?>" alt="ownCloud" /> <form action="index.php" method="post"> <!-- <h1>Sign in :</h1> --> <fieldset> - <? if( $_["error"] ){ ?> + <?php if($_["error"]): ?> Login failed! - <? } ?> + <?php endif; ?> <p><input type="text" name="user" value="" /></p> <p><input type="password" name="password" /></p> <p><input type="submit" value="Sign in" /></p> |