#198664 by mooffie: blockquote was misused in the php module help example, use a list instead

6.x
Gábor Hojtsy 2007-12-07 10:32:12 +00:00
parent 7b38b291b4
commit 81ed7e4987
1 changed files with 4 additions and 4 deletions

View File

@ -43,11 +43,11 @@ function php_filter_tips($delta, $format, $long = false) {
$output .= '<li>'. t('Consider including your custom PHP code within a site-specific module or <code>template.php</code> file rather than embedding it directly into a post or block.') .'</li>'; $output .= '<li>'. t('Consider including your custom PHP code within a site-specific module or <code>template.php</code> file rather than embedding it directly into a post or block.') .'</li>';
$output .= '<li>'. t('Be aware that the ability to embed PHP code within content is provided by the PHP Filter module. If this module is disabled or deleted, then blocks and posts with embedded PHP may display, rather than execute, the PHP code.') .'</li></ul>'; $output .= '<li>'. t('Be aware that the ability to embed PHP code within content is provided by the PHP Filter module. If this module is disabled or deleted, then blocks and posts with embedded PHP may display, rather than execute, the PHP code.') .'</li></ul>';
$output .= '<p>'. t('A basic example: <em>Creating a "Welcome" block that greets visitors with a simple message.</em>') .'</p>'; $output .= '<p>'. t('A basic example: <em>Creating a "Welcome" block that greets visitors with a simple message.</em>') .'</p>';
$output .= '<blockquote>'. t('<p>Add a custom block to your site, named "Welcome". With its input format set to "PHP code" (or another format supporting PHP input), add the following in the Block body:</p> $output .= '<ul><li>'. t('<p>Add a custom block to your site, named "Welcome". With its input format set to "PHP code" (or another format supporting PHP input), add the following in the Block body:</p>
<pre> <pre>
print t(\'Welcome visitor! Thank you for visiting.\'); print t(\'Welcome visitor! Thank you for visiting.\');
</pre> </pre>') .'</li>';
<p>To display the name of a registered user, use this instead:</p> $output .= '<li>'. t('<p>To display the name of a registered user, use this instead:</p>
<pre> <pre>
global $user; global $user;
if ($user->uid) { if ($user->uid) {
@ -56,7 +56,7 @@ if ($user->uid) {
else { else {
print t(\'Welcome visitor! Thank you for visiting.\'); print t(\'Welcome visitor! Thank you for visiting.\');
} }
</pre>') .'</blockquote>'; </pre>') .'</li></ul>';
$output .= '<p>'. t('<a href="@drupal">Drupal.org</a> offers <a href="@php-snippets">some example PHP snippets</a>, or you can create your own with some PHP experience and knowledge of the Drupal system.', array('@drupal' => url('http://drupal.org'), '@php-snippets' => url('http://drupal.org/handbook/customization/php-snippets'))) .'</p>'; $output .= '<p>'. t('<a href="@drupal">Drupal.org</a> offers <a href="@php-snippets">some example PHP snippets</a>, or you can create your own with some PHP experience and knowledge of the Drupal system.', array('@drupal' => url('http://drupal.org'), '@php-snippets' => url('http://drupal.org/handbook/customization/php-snippets'))) .'</p>';
return $output; return $output;
} }