aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Widget/Hq_controls.php
blob: 781e2a0bd9c990a3bbec1bbe21b0e1f13a7bca5e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                      






















                                                                     

                                                                             
                                                      



                         
<?php

namespace Zotlabs\Widget;

class Hq_controls {

	function widget($arr) {

		if (! local_channel())
			return;

		$entries = [
			'toggle_editor' => [
				'label' => t('Toggle post editor'),
				'id' => 'jot-toggle',
				'href' => '#',
				'class' => 'btn btn-outline-primary',
				'type' => 'button',
				'icon' => 'pencil',
				'extra' => 'data-toggle="button"'
			]
		];


		$entries['toggle_notes'] = [
			'label' => t('Toggle personal notes'),
			'id' => 'notes-toggle',
			'href' => '#',
			'class' => 'btn btn-outline-primary',
			'type' => 'button',
			'icon' => 'sticky-note-o',
			'extra' => 'data-toggle="button"'
		];

		return replace_macros(get_markup_template('hq_controls.tpl'),
			[
				'$entries' => $entries
			]
		);
	}
}