streams/Zotlabs/Widget/Sblock.php

26 lines
547 B
PHP
Raw Normal View History

<?php
namespace Zotlabs\Widget;
use App;
2021-12-02 23:02:31 +00:00
class Sblock
{
2021-12-02 23:02:31 +00:00
public function widget($args)
{
2021-12-02 23:02:31 +00:00
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' => '',
]);
}
}