aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-20 12:43:04 -0800
committerfriendica <info@friendica.com>2013-12-20 12:43:04 -0800
commitaa312f72bf48f3ffeb62606541b39e5243ce819e (patch)
tree1b50e1b918475d0193c9f0c460d3b09402f90fa7 /include/widgets.php
parenta084a3fa47879f00a535501f14f32c3ff55f7d29 (diff)
downloadvolse-hubzilla-aa312f72bf48f3ffeb62606541b39e5243ce819e.tar.gz
volse-hubzilla-aa312f72bf48f3ffeb62606541b39e5243ce819e.tar.bz2
volse-hubzilla-aa312f72bf48f3ffeb62606541b39e5243ce819e.zip
comanchify mod_directory. Two modules remaining. Actually three because message needs to be split.
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 2591a9d09..5e2285de7 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -1,5 +1,8 @@
<?php /** @file */
+require_once('include/dir_fns.php');
+require_once('include/contact_widgets.php');
+
function widget_profile($args) {
$a = get_app();
@@ -549,3 +552,19 @@ function widget_vcard($arr) {
return vcard_from_xchan('',get_app()->get_observer());
}
+
+/**
+ * The following directory widgets are only useful on the directory page
+ */
+
+function widget_dirsafemode($arr) {
+ return dir_safe_mode();
+}
+
+function widget_dirsort($arr) {
+ return dir_sort_links();
+}
+
+function widget_dirtags($arr) {
+ return dir_tagblock(z_root() . '/directory',null);
+} \ No newline at end of file