Overview
Comment:Unused features
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 30be8fe318c042e12e1f209edf71c466ac5a1fce
User & Date: bohwaz on 2020-11-16 23:54:36
Other Links: branch diff | manifest | tags
Context
2020-11-17
00:36
Fix SQLite datetime parsing check-in: 491a983d9a user: bohwaz tags: dev
2020-11-16
23:54
Unused features check-in: 30be8fe318 user: bohwaz tags: dev
23:53
Enable to use relative URIs in href param of linkbutton check-in: 77d0797105 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Template.php from [c1e683e29d] to [531a115719].

193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
		$params = implode(' ', $params);

		return sprintf('<button %s data-icon="%s">%s</button>', $params, $icon, $label);
	}

	protected function widgetLinkButton(array $params): string
	{
		if (isset($params['href'])) {
			$href = $params['href'];

			// href can be prefixed with '!' to make the URL relative to ADMIN_URL
			if (substr($href, 0, 1) == '!') {
				$href = ADMIN_URL . substr($params['href'], 1);
			}
		}
		else {
			$href = Utils::getSelfURL();
		}

		if (isset($params['merge_url'])) {
			$href = HTTP::mergeURLs($href, $params['merge_url']);
		}

		return sprintf('<a class="icn-btn" data-icon="%s" href="%s">%s</a>', Utils::iconUnicode($params['shape']), $this->escape($href), $this->escape($params['label']));
	}

	protected function formInput(array $params)
	{







<
|

|
|
|
<
<
<
<
<
<
<
<







193
194
195
196
197
198
199

200
201
202
203
204








205
206
207
208
209
210
211
		$params = implode(' ', $params);

		return sprintf('<button %s data-icon="%s">%s</button>', $params, $icon, $label);
	}

	protected function widgetLinkButton(array $params): string
	{

		$href = $params['href'];

		// href can be prefixed with '!' to make the URL relative to ADMIN_URL
		if (substr($href, 0, 1) == '!') {
			$href = ADMIN_URL . substr($params['href'], 1);








		}

		return sprintf('<a class="icn-btn" data-icon="%s" href="%s">%s</a>', Utils::iconUnicode($params['shape']), $this->escape($href), $this->escape($params['label']));
	}

	protected function formInput(array $params)
	{