Questo può essere fatto utilizzando un outlet del plugin e aggiungendo alcuni handlebars (questi concetti sono trattati in Developing Discourse Themes & Theme Components)
Nel tuo tema (amministratore > personalizza > temi > modifica CSS/HTML), puoi aggiungere questo al tuo file <head>.
<script type="text/x-handlebars" data-template-name="/connectors/above-main-container/anon-button">
{{#if this.currentUser}}
{{#if this.currentUser.is_anonymous}}
{{d-button class="btn-primary" action=(route-action 'toggleAnonymous') icon="ban" label="switch_from_anon"}}
{{else}}
{{d-button class="btn-primary" action=(route-action 'toggleAnonymous') icon="user-secret" label="switch_to_anon"}}
{{/if}}
{{/if}}
</script>
