From b5bc04799c9f2fec82bbd0e9823a384118ea14c1 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 11 Nov 2013 01:18:09 -0800 Subject: turn safemode into a proper widget --- include/dir_fns.php | 1 + view/tpl/safesearch.tpl | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/dir_fns.php b/include/dir_fns.php index 7af98bec3..fef58428f 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -30,6 +30,7 @@ function dir_safe_mode(&$a) { else $toggle = t('Disable Safe Search'); $o = replace_macros(get_markup_template('safesearch.tpl'), array( + '$safemode' => t('Safe Mode'), '$toggle' => $toggle, )); diff --git a/view/tpl/safesearch.tpl b/view/tpl/safesearch.tpl index 92c3db2a5..e0b2ab538 100644 --- a/view/tpl/safesearch.tpl +++ b/view/tpl/safesearch.tpl @@ -1,2 +1,4 @@ -

Safe Mode

+
+

{{$safemode}}

{{$toggle}} +
-- cgit v1.2.3