mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 19:55:16 +00:00
25 lines
547 B
PHP
25 lines
547 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Widget;
|
|
|
|
use App;
|
|
|
|
class Sblock
|
|
{
|
|
|
|
public function widget($args)
|
|
{
|
|
|
|
if (!local_channel()) {
|
|
return EMPTY_STR;
|
|
}
|
|
|
|
return replace_macros(get_markup_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' => '',
|
|
]);
|
|
}
|
|
}
|