| 1 |
<?php |
<?php |
| 2 |
// $Id: rpg.theme.inc,v 1.10 2008/01/03 01:59:56 aaron Exp $ |
// $Id: rpg.theme.inc,v 1.11 2008/03/08 00:31:04 aaron Exp $ |
| 3 |
|
|
| 4 |
function theme_rpg_play($pc) { |
function theme_rpg_play($pc) { |
| 5 |
$output = t('You are playing !pc.', array('!pc' => l(rpg_get('name', $pc), 'rpg/view/' . rpg_id($pc)))); |
$output = t('You are playing !pc.', array('!pc' => l(rpg_get('name', $pc), 'rpg/view/' . rpg_id($pc)))); |
| 118 |
return $output; |
return $output; |
| 119 |
} |
} |
| 120 |
|
|
| 121 |
|
/** |
| 122 |
|
* This will display the intro text for rpg. In general, you should either override this theme function in your template.php file, |
| 123 |
|
* or override the /rpg path entirely, pointing to your own node page, panel, view, or what have you. |
| 124 |
|
*/ |
| 125 |
function theme_rpg_page() { |
function theme_rpg_page() { |
| 126 |
$output .= t('Welcome to Drupal RPG! Things are still in development, so !play at your own risk. If you are the administrator, you will probably want to create a new theme function to override this message. See the Drupal Handbook for more help.', array('!play' => l(t('play'), 'rpg/play'))); |
$output .= t('Welcome to Drupal RPG! Things are still in development, so !play at your own risk. If you are the administrator, you will probably want to create a new theme function to override this message. See the Drupal Handbook for more help.', array('!play' => l(t('play'), 'rpg/play'))); |
| 127 |
return $output; |
return $output; |