aboutsummaryrefslogtreecommitdiffstats
path: root/include/acl_selectors.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-19 17:24:09 -0700
committerFriendika <info@friendika.com>2011-07-19 17:24:09 -0700
commit1d35d1e5a1c807ea391d7958657b13a6bb471a0b (patch)
treed88d1b83d21c39c3d53758549c28ffed0d41f7f7 /include/acl_selectors.php
parent0b8aaef09cd9ff455a027b082c79d1590bce9da9 (diff)
parent0a3ae96093a1fd81414b4fceaf65d4e98efda26c (diff)
downloadvolse-hubzilla-1d35d1e5a1c807ea391d7958657b13a6bb471a0b.tar.gz
volse-hubzilla-1d35d1e5a1c807ea391d7958657b13a6bb471a0b.tar.bz2
volse-hubzilla-1d35d1e5a1c807ea391d7958657b13a6bb471a0b.zip
Merge pull request #141 from fabrixxm/newacl
New jot ACL selector
Diffstat (limited to 'include/acl_selectors.php')
-rw-r--r--include/acl_selectors.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/include/acl_selectors.php b/include/acl_selectors.php
index c3e26082e..99de67d64 100644
--- a/include/acl_selectors.php
+++ b/include/acl_selectors.php
@@ -239,7 +239,7 @@ function populate_acl($user = null,$celeb = false) {
array_walk($deny_gid,'fixacl');
}
- $o = '';
+ /*$o = '';
$o .= '<div id="acl-wrapper">';
$o .= '<div id="acl-permit-outer-wrapper">';
$o .= '<div id="acl-permit-text">' . t('Visible To:') . '</div><div id="jot-public">' . t('everybody') . '</div>';
@@ -272,7 +272,20 @@ function populate_acl($user = null,$celeb = false) {
$o .= '<div id="acl-deny-end"></div>' . "\r\n";
$o .= '</div>';
$o .= '</div>' . "\r\n";
- $o .= '<div id="acl-wrapper-end"></div>' . "\r\n";
+ $o .= '<div id="acl-wrapper-end"></div>' . "\r\n";*/
+
+ $tpl = get_markup_template("acl_selector.tpl");
+ $o = replace_macros($tpl, array(
+ '$showall'=> t("Visible to everybody"),
+ '$show' => t("show"),
+ '$hide' => t("don't show"),
+ '$allowcid' => json_encode($allow_cid),
+ '$allowgid' => json_encode($allow_gid),
+ '$denycid' => json_encode($deny_cid),
+ '$denygid' => json_encode($deny_gid),
+ ));
+
+
return $o;
}