diff options
author | Friendika <info@friendika.com> | 2011-04-07 18:00:35 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-07 18:00:35 -0700 |
commit | 338ba485548f9ec1acbc9349f7db95e84c51e7eb (patch) | |
tree | d43dc2127c85e5a1df96a1aeb24e23d35d846b67 /mod | |
parent | 3a6dfb9862c4d91f7a2f259bca447a469e19e8b5 (diff) | |
download | volse-hubzilla-338ba485548f9ec1acbc9349f7db95e84c51e7eb.tar.gz volse-hubzilla-338ba485548f9ec1acbc9349f7db95e84c51e7eb.tar.bz2 volse-hubzilla-338ba485548f9ec1acbc9349f7db95e84c51e7eb.zip |
more templates
Diffstat (limited to 'mod')
-rw-r--r-- | mod/notifications.php | 14 | ||||
-rw-r--r-- | mod/profiles.php | 12 | ||||
-rw-r--r-- | mod/settings.php | 6 |
3 files changed, 22 insertions, 10 deletions
diff --git a/mod/notifications.php b/mod/notifications.php index ed0831aab..c3f8449ed 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -147,17 +147,13 @@ function notifications_content(&$a) { LEFT JOIN `contact` ON `register`.`uid` = `contact`.`uid` LEFT JOIN `user` ON `register`.`uid` = `user`.`uid`;"); if(($r !== false) && (count($r))) { - $tpl = load_view_file("view/registrations.tpl"); + $o .= '<ul>'; foreach($r as $rr) { - $o .= "<ul>"; - $o .= replace_macros($tpl, array( - '$fullname' => $rr['name'], - '$email' => $rr['email'], - '$approvelink' => "regmod/allow/".$rr['hash'], - '$denylink' => "regmod/deny/".$rr['hash'], - )); - $o .= "</ul>"; + $o .= '<li>' . sprintf('%s (%s) : ', $rr['name'],$rr['email']) + . '<a href="regmod/allow/' . $rr['hash'] .'">' . t('Approve') + . '</a> - <href="regmod/deny/' . $rr['hash'] . '">' . t('Deny') . '</a></li>' . "\r\n"; } + $o .= "</ul>"; } else notice( t('No registrations.') . EOL); diff --git a/mod/profiles.php b/mod/profiles.php index 434f58adf..99812ed88 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -351,6 +351,9 @@ function profiles_content(&$a) { $opt_tpl = load_view_file("view/profile-hide-friends.tpl"); $hide_friends = replace_macros($opt_tpl,array( + '$desc' => t('Hide my contact/friend list from viewers of this profile?'), + '$yes_str' => t('Yes'), + '$no_str' => t('No'), '$yes_selected' => (($r[0]['hide-friends']) ? " checked=\"checked\" " : ""), '$no_selected' => (($r[0]['hide-friends'] == 0) ? " checked=\"checked\" " : "") )); @@ -410,7 +413,14 @@ function profiles_content(&$a) { local_user()); if(count($r)) { - $o .= load_view_file('view/profile_listing_header.tpl'); + $tpl_header = load_view_file('view/profile_listing_header.tpl'); + $o .= replace_macros($tpl_header,array( + '$header' => t('Profiles'), + '$chg_photo' => t('Change profile photo'), + '$cr_new' => t('Create New Profile') + )); + + $tpl_default = load_view_file('view/profile_entry_default.tpl'); $tpl = load_view_file('view/profile_entry.tpl'); diff --git a/mod/settings.php b/mod/settings.php index 72b627d41..646ec55ea 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -285,6 +285,9 @@ function settings_content(&$a) { else { $opt_tpl = load_view_file("view/profile-in-directory.tpl"); $profile_in_dir = replace_macros($opt_tpl,array( + '$desc' => t('Publish your default profile in site directory?'), + '$yes_str' => t('Yes'), + '$no_str' => t('No'), '$yes_selected' => (($profile['publish']) ? " checked=\"checked\" " : ""), '$no_selected' => (($profile['publish'] == 0) ? " checked=\"checked\" " : "") )); @@ -294,6 +297,9 @@ function settings_content(&$a) { $opt_tpl = load_view_file("view/profile-in-netdir.tpl"); $profile_in_net_dir = replace_macros($opt_tpl,array( + '$desc' => t('Publish your default profile in global social directory?'), + '$yes_str' => t('Yes'), + '$no_str' => t('No'), '$yes_selected' => (($profile['net-publish']) ? " checked=\"checked\" " : ""), '$no_selected' => (($profile['net-publish'] == 0) ? " checked=\"checked\" " : "") )); |