aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-29 17:19:12 -0700
committerFriendika <info@friendika.com>2011-03-29 17:19:12 -0700
commitf1db34eebcef28cb0748931153926374f6442be6 (patch)
tree5ea7c9053b1cd6f7ee7166eec70a6caee81a27b6 /mod
parente1fd2ecb16a212c56567ac5c5910d2a2d9754b47 (diff)
downloadvolse-hubzilla-f1db34eebcef28cb0748931153926374f6442be6.tar.gz
volse-hubzilla-f1db34eebcef28cb0748931153926374f6442be6.tar.bz2
volse-hubzilla-f1db34eebcef28cb0748931153926374f6442be6.zip
more templates gone
Diffstat (limited to 'mod')
-rw-r--r--mod/notifications.php13
-rw-r--r--mod/profile_photo.php8
2 files changed, 11 insertions, 10 deletions
diff --git a/mod/notifications.php b/mod/notifications.php
index 93ca82bb0..ed0831aab 100644
--- a/mod/notifications.php
+++ b/mod/notifications.php
@@ -65,12 +65,11 @@ function notifications_content(&$a) {
else
$sql_extra = " AND `ignore` = 0 ";
-
- $tpl = load_view_file('view/intros-top.tpl');
- $o .= replace_macros($tpl,array(
- '$hide_url' => ((strlen($sql_extra)) ? 'notifications/all' : 'notifications' ),
- '$hide_text' => ((strlen($sql_extra)) ? t('Show Ignored Requests') : t('Hide Ignored Requests'))
- ));
+ $o .= '<h1>' . t('Pending Friend/Connect Notifications') . '</h1>' . "\r\n";
+
+ $o .= '<div id="notification-show-hide-wrapper" >';
+ $o .= '<a href="' . ((strlen($sql_extra)) ? 'notifications/all' : 'notifications' ) . '" id="notifications-show-hide-link" >'
+ . ((strlen($sql_extra)) ? t('Show Ignored Requests') : t('Hide Ignored Requests')) . '</a></div>' . "\r\n";
$r = q("SELECT COUNT(*) AS `total` FROM `intro`
@@ -141,7 +140,7 @@ function notifications_content(&$a) {
if ($a->config['register_policy'] == REGISTER_APPROVE &&
$a->config['admin_email'] === $a->user['email']){
- $o .= load_view_file('view/registrations-top.tpl');
+ $o .= '<h1>' . t('User registrations waiting for confirm') . '</h1>' . "\r\n";
$r = q("SELECT `register`.*, `contact`.`name`, `user`.`email`
FROM `register`
diff --git a/mod/profile_photo.php b/mod/profile_photo.php
index 68c05625b..48805fbdd 100644
--- a/mod/profile_photo.php
+++ b/mod/profile_photo.php
@@ -196,9 +196,11 @@ function profile_photo_content(&$a) {
$o .= replace_macros($tpl,array(
'$filename' => $filename,
'$resource' => $a->config['imagecrop'] . '-' . $a->config['imagecrop_resolution'],
- '$image_url' => $a->get_baseurl() . '/photo/' . $filename
- ));
-
+ '$image_url' => $a->get_baseurl() . '/photo/' . $filename,
+ '$title' => t('Crop Image'),
+ '$desc' => t('Please adjust the image cropping for optimum viewing.'),
+ '$done' => t('Done Editing')
+ ));
return $o;
}