streams/Code/Widget/Sblock.php
2022-02-15 20:08:28 -08:00

27 lines
568 B
PHP

<?php
namespace Code\Widget;
use App;
use Code\Render\Theme;
class Sblock
{
public function widget($args)
{
if (!local_channel()) {
return EMPTY_STR;
}
return replace_macros(Theme::get_template('superblock_widget.tpl'), [
'$connect' => t('Block channel or site'),
'$desc' => t('Enter channel address or URL'),
'$hint' => t('Examples: bob@example.com, https://example.com/barbara'),
'$follow' => t('Block'),
'$abook_usage_message' => '',
]);
}
}