Код: Выделить всё
To format the text use the tags:
Subtitle
[b]Bold[/b]
[:pt]Text in Portuguese
[:en]Text in English
[:es]Text in Spanish
Код: Выделить всё
Код: Выделить всё
register_sidebar( array(
'name' => 'Widget',
'id' => 'widget-user',
'description' => "Para formatar o texto, utilize as tags: Subtítulo laranja [b]Negrito[/b] [:pt]Texto em português nbsp; [:en]Texto em inglês [:es]Texto em espanhol (o que estiver escrito fora das tags de idioma irão aparecer para todos",
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
));
Я отчаянно пробовал это, но безуспешно:
Код: Выделить всё
"description" => "This is a line
break test"
"description" => "This is a line \n break test"
"description" => "This is a line \r break test"
"description" => "This is a line \r\n break test"
"description" => htmlspecialchars("This is a line
break test")
htmlspecialchars("description") => "This is a line
break test"
"description" => htmlentities("This is a line
break test")
"description" => html_entity_decode("This is a line
break test")
"description" => nl2br("This is a line
break test")
nl2br("description") => nl2br("This is a line
break test")
Подробнее здесь: https://stackoverflow.com/questions/138 ... -wordpress
Мобильная версия