I don't understand how language variables work.

Имя пользователя: 
msalist
Help me, please.
For example, I have this code in the template header.tpl:

<div id="welcome">
  <?php if (!$logged) { ?>
    <?php echo $text_welcome; ?>
  <?php } else { ?>
    <?php echo $text_logged; ?>
  <?php } ?>
</div>

 
I know that language variables are in the language file:

$_['text_welcome']        = '<a href="%s">Login</a> or <a href="%s">register</a>';

But I don't understand how '%s' becomes a link.

Добавить комментарий

Filtered HTML ckeditor

  • Разрешённые HTML-теги: <pre> <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <div> <br> <img> <u> <strike> <p> <div>
  • Адреса страниц и электронной почты автоматически преобразуются в ссылки.
  • You can enable syntax highlighting of source code with the following tags: <pre>, <javascript>, <php>, <python>, <xml>.

Plain text

  • HTML-теги не обрабатываются и показываются как обычный текст
  • Адреса страниц и электронной почты автоматически преобразуются в ссылки.
  • Строки и параграфы переносятся автоматически.
CAPTCHA
Защита от спама
Target Image