diff options
author | friendica <info@friendica.com> | 2013-11-11 01:18:09 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-11 01:18:09 -0800 |
commit | b5bc04799c9f2fec82bbd0e9823a384118ea14c1 (patch) | |
tree | 27d7c6e376e7d2c0c1b2ffb36387a27608e63a70 | |
parent | b233166d20842bfa92450bfbd3c5d0be9e3c0f4a (diff) | |
download | volse-hubzilla-b5bc04799c9f2fec82bbd0e9823a384118ea14c1.tar.gz volse-hubzilla-b5bc04799c9f2fec82bbd0e9823a384118ea14c1.tar.bz2 volse-hubzilla-b5bc04799c9f2fec82bbd0e9823a384118ea14c1.zip |
turn safemode into a proper widget
-rw-r--r-- | include/dir_fns.php | 1 | ||||
-rw-r--r-- | view/tpl/safesearch.tpl | 4 |
2 files changed, 4 insertions, 1 deletions
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 @@ -<h1>Safe Mode</h1> +<div id="directory_safemode" class="widget"> +<h3>{{$safemode}}</h3> <a href="toggle_safesearch">{{$toggle}}</a> +</div> |