Changeset 1369
- Timestamp:
- 12/05/07 18:20:12 (1 year ago)
- Files:
-
- devel/mod/activity/index.php (modified) (1 diff)
- devel/mod/blog/archive.php (modified) (1 diff)
- devel/mod/blog/archive_month.php (modified) (1 diff)
- devel/mod/blog/edit.php (modified) (1 diff)
- devel/mod/blog/everyone.php (modified) (1 diff)
- devel/mod/blog/friends.php (modified) (1 diff)
- devel/mod/blog/index.php (modified) (1 diff)
- devel/mod/blog/interesting.php (modified) (1 diff)
- devel/mod/blog/view_post.php (modified) (1 diff)
- devel/mod/browser/index.php (modified) (1 diff)
- devel/mod/commentwall/index.php (modified) (1 diff)
- devel/mod/commentwall/post.php (modified) (1 diff)
- devel/mod/community/addgroup.php (modified) (2 diffs)
- devel/mod/community/index.php (modified) (1 diff)
- devel/mod/community/lib/communities_edit_wrapper.php (modified) (1 diff)
- devel/mod/community/lib/communities_membership_requests.php (modified) (2 diffs)
- devel/mod/community/members.php (modified) (1 diff)
- devel/mod/community/new.php (modified) (1 diff)
- devel/mod/community/owned.php (modified) (1 diff)
- devel/mod/community/requests.php (modified) (1 diff)
- devel/mod/file/edit_file.php (modified) (1 diff)
- devel/mod/file/edit_folder.php (modified) (1 diff)
- devel/mod/file/index.php (modified) (1 diff)
- devel/mod/friend/friendsof.php (modified) (1 diff)
- devel/mod/friend/index.php (modified) (1 diff)
- devel/mod/friend/lib/friends_edit_wrapper.php (modified) (1 diff)
- devel/mod/friend/lib/friends_of_edit_wrapper.php (modified) (1 diff)
- devel/mod/friend/lib/user_friendship_requests.php (modified) (1 diff)
- devel/mod/friend/requests.php (modified) (1 diff)
- devel/mod/generic_comments/comment_page.php (modified) (1 diff)
- devel/mod/groups/index.php (modified) (1 diff)
- devel/mod/icons/index.php (modified) (1 diff)
- devel/mod/invite/forgotten_password.php (modified) (1 diff)
- devel/mod/invite/index.php (modified) (2 diffs)
- devel/mod/invite/join.php (modified) (1 diff)
- devel/mod/invite/new_password.php (modified) (1 diff)
- devel/mod/invite/register.php (modified) (2 diffs)
- devel/mod/invite/wrongpassword.php (modified) (1 diff)
- devel/mod/newsclient/blog.php (modified) (1 diff)
- devel/mod/newsclient/index.php (modified) (1 diff)
- devel/mod/newsclient/individual.php (modified) (1 diff)
- devel/mod/newsclient/popular.php (modified) (1 diff)
- devel/mod/newsclient/subscriptions.php (modified) (1 diff)
- devel/mod/profile/add.php (modified) (1 diff)
- devel/mod/template/preview.php (modified) (1 diff)
- devel/mod/users/index.php (modified) (1 diff)
- devel/mod/widget/add.php (modified) (1 diff)
- devel/mod/widget/edit.php (modified) (1 diff)
- devel/mod/widget/manage_widgets.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/activity/index.php
r1248 r1369 120 120 } 121 121 122 $body = templates_draw(array( 123 'context' => 'contentholder', 124 'title' => $title, 125 'body' => $body 126 ) 127 ); 128 129 echo templates_page_draw( array( 130 $title, $body 131 ) 132 ); 122 templates_page_output($title, $body); 133 123 134 124 ?> devel/mod/blog/archive.php
r1077 r1369 25 25 $body .= run("weblogs:archives:view"); 26 26 27 $body = templates_draw(array( 28 'context' => 'contentholder', 29 'title' => $title, 30 'body' => $body 31 ) 32 ); 33 34 echo templates_page_draw( array( 35 $title, $body 36 ) 37 ); 27 templates_page_output($title, $body); 38 28 39 29 ?> devel/mod/blog/archive_month.php
r1077 r1369 24 24 $body = run("weblogs:archives:month:view"); 25 25 26 $body = templates_draw(array( 27 'context' => 'contentholder', 28 'title' => $title, 29 'body' => $body 30 ) 31 ); 32 33 echo templates_page_draw( array( 34 $title, $body 35 ) 36 ); 26 templates_page_output($title, $body); 37 27 38 28 ?> devel/mod/blog/edit.php
r1350 r1369 35 35 $body .= run("weblogs:edit"); 36 36 37 $body = templates_draw(array( 38 'context' => 'contentholder', 39 'title' => $title, 40 'body' => $body 41 ) 42 ); 43 44 echo templates_page_draw( array( 45 $title, $body 46 ) 47 ); 37 templates_page_output($title, $body); 48 38 49 39 ?> devel/mod/blog/everyone.php
r1332 r1369 33 33 34 34 $body .= run("weblogs:everyone:view"); 35 $body = '<div id="view_all_blog_posts">' . $body . '</div>'; 35 36 36 $body = templates_draw(array( 37 'context' => 'contentholder', 38 'title' => $title, 39 'body' => "<div id=\"view_all_blog_posts\">" . $body . "</div>" 40 ) 41 ); 42 43 echo templates_page_draw( array( 44 $title, $body 45 ) 46 ); 37 templates_page_output($title, $body); 47 38 48 39 ?> devel/mod/blog/friends.php
r1077 r1369 24 24 $body = run("content:weblogs:view"); 25 25 $body .= run("weblogs:friends:view"); 26 $body = '<div id="view_friends_blogs">' . $body . '</div>'; 26 27 27 $body = templates_draw(array( 28 'context' => 'contentholder', 29 'title' => $title, 30 'body' => "<div id=\"view_friends_blogs\">" . $body . "</div>" 31 ) 32 ); 33 34 echo templates_page_draw( array( 35 $title, $body 36 ) 37 ); 28 templates_page_output($title, $body); 38 29 39 30 ?> devel/mod/blog/index.php
r1077 r1369 33 33 $body = run("content:weblogs:view"); 34 34 $body .= run("weblogs:view"); 35 $body = '<div id="view_own_blog">' . $body . '</div>'; 35 36 36 $body = templates_draw(array( 37 'context' => 'contentholder', 38 'title' => $title, 39 'body' => "<div id=\"view_own_blog\">" . $body . "</div>" 40 ) 41 ); 42 43 echo templates_page_draw( array( 44 $title, $body 45 ) 46 ); 37 templates_page_output($title, $body); 47 38 48 39 ?> devel/mod/blog/interesting.php
r1251 r1369 23 23 $body = run("content:weblogs:view"); 24 24 $body .= run("weblogs:interesting:view"); 25 $body = '<div id="view_friends_blogs">' . $body . '</div>'; 25 26 26 $body = templates_draw(array('context' => 'contentholder', 27 'title' => $title, 28 'body' => "<div id=\"view_friends_blogs\">" . $body . "</div>" 29 ) 30 ); 31 32 echo templates_page_draw( array($title, 33 $body) 34 ); 27 templates_page_output($title, $body); 35 28 36 29 ?> devel/mod/blog/view_post.php
r1077 r1369 52 52 $body .= run("weblogs:posts:view:individual",$post); 53 53 54 $body = templates_draw(array( 55 'context' => 'contentholder', 56 'title' => $title, 57 'body' => $body 58 ) 59 ); 60 61 echo templates_page_draw( array( 62 $title, $body 63 ) 64 ); 54 templates_page_output($title, $body); 65 55 66 56 } devel/mod/browser/index.php
r1049 r1369 230 230 231 231 templates_page_setup(); 232 233 $body = templates_draw(array( 234 'context' => 'contentholder', 235 'title' => $title, 236 'body' => $body 237 ) 238 ); 239 240 241 echo templates_page_draw(array($title, $body)); 232 templates_page_output($title, $body); 242 233 243 234 ?> devel/mod/commentwall/index.php
r1277 r1369 27 27 $html.= commentwall_display_footer($owner, $limit, $offset); 28 28 29 $html = templates_draw(array( 30 'context' => 'contentholder', 31 'title' => $title, 32 'body' => $html 33 ) 34 ); 35 36 // Write everything to the screen 37 echo templates_page_draw( 38 array( 39 $title, $html 40 ) 41 ); 29 templates_page_output($title, $html); 42 30 43 31 ?> devel/mod/commentwall/post.php
r1201 r1369 32 32 $html .= commentwall_post_form($wallowner, $reply, false, "", $returnurl); 33 33 34 $html = templates_draw(array( 35 'context' => 'contentholder', 36 'title' => $title, 37 'body' => $html 38 ) 39 ); 34 templates_page_output($title, $html); 40 35 41 // Write everything to the screen42 echo templates_page_draw(43 array(44 $title, $html45 )46 );47 36 ?> devel/mod/community/addgroup.php
r1248 r1369 2 2 3 3 // ELGG add community a community 4 error_log("en _communities/addgroup");4 //error_log("en _communities/addgroup"); 5 5 // Run includes 6 6 require_once(dirname(dirname(__FILE__))."/../includes.php"); … … 22 22 23 23 $title = user_info("name", page_owner()) . " :: ". __gettext("Invite a Community"); 24 $body = run('communities:communities', array($page_owner)); 24 25 25 echo templates_page_draw(array( 26 $title, templates_draw(array( 27 'context' => 'contentholder', 28 'title' => $title, 29 'body' => run("communities:communities",array($page_owner)))) 30 ) 31 ); 26 templates_page_output($title, $body); 32 27 33 28 ?> devel/mod/community/index.php
r1080 r1369 24 24 25 25 $title = run("profile:display:name") . " :: " . __gettext("Communities"); 26 $body = run('communities:editpage'); 26 27 27 echo templates_page_draw( array( 28 $title, run("communities:editpage") 29 ) 30 ); 28 templates_page_output($title, $body); 31 29 32 30 ?> devel/mod/community/lib/communities_edit_wrapper.php
r1080 r1369 8 8 $body .= run("communities:edit",array($page_owner)); 9 9 10 $body = templates_draw(array(11 'context' => 'contentholder',12 'title' => $title,13 'body' => $body14 )15 );16 17 10 $run_result = $body; 18 11 devel/mod/community/lib/communities_membership_requests.php
r1095 r1369 10 10 $owner_name = user_info('username',$page_owner); 11 11 if (user_type($page_owner) == "community" && run("permissions:check",array("userdetails:change", $page_owner))) { 12 $title = run("profile:display:name") . " :: ". __gettext("Membership requests") ."";13 12 14 13 if ($pending_requests = get_records_sql('SELECT fr.ident AS request_id, u.* FROM '.$CFG->prefix.'friends_requests fr … … 51 50 } 52 51 53 $run_result = templates_draw( array( 54 'context' => 'contentholder', 55 'title' => $title, 56 'body' => $body 57 ) 58 ); 59 52 $run_result = $body; 60 53 } 61 54 devel/mod/community/members.php
r1095 r1369 24 24 25 25 $title = run("profile:display:name") . " :: " . __gettext("Members"); 26 $body = run('communities:members', array($page_owner)); 26 27 27 echo templates_page_draw( array( 28 $title, templates_draw(array( 29 'context' => 'contentholder', 30 'title' => $title, 31 'body' => run("communities:members",array($page_owner)) 32 ) 33 ) 34 ) 35 ); 28 templates_page_output($title, $body); 36 29 37 30 ?> devel/mod/community/new.php
r1080 r1369 24 24 25 25 $title = run("profile:display:name") . " :: " . __gettext("Owned Communities"); 26 $body = run('communities:create', array($page_owner)); 26 27 27 echo templates_page_draw( array( 28 $title, templates_draw(array( 29 'context' => 'contentholder', 30 'title' => $title, 31 'body' => run("communities:create",array($page_owner)) 32 ) 33 ) 34 ) 35 ); 28 templates_page_output($title, $body); 36 29 37 30 ?> devel/mod/community/owned.php
r1080 r1369 24 24 25 25 $title = run("profile:display:name") . " :: " . __gettext("Owned Communities"); 26 $body = run('communities:owned', array($page_owner)); 26 27 27 echo templates_page_draw( array( 28 $title, templates_draw(array( 29 'context' => 'contentholder', 30 'title' => $title, 31 'body' => run("communities:owned",array($page_owner)) 32 ) 33 ) 34 ) 35 ); 28 templates_page_output($title, $body); 36 29 37 30 ?> devel/mod/community/requests.php
r1248 r1369 24 24 25 25 $title = run("profile:display:name") . " :: ". __gettext("Membership requests"); 26 $body = run('communities:requests:view'); 26 27 27 echo templates_page_draw(array( 28 $title, run("communities:requests:view") 29 ) 30 ); 28 templates_page_output($title, $body); 31 29 32 30 ?> devel/mod/file/edit_file.php
r1248 r1369 22 22 $body .= run("files:edit"); 23 23 24 echo templates_page_draw( array( 25 $title, 26 templates_draw(array( 27 'context' => 'contentholder', 28 'title' => $title, 29 'body' => $body 30 ) 31 ) 32 ) 33 ); 24 templates_page_output($title, $body); 34 25 35 26 ?> devel/mod/file/edit_folder.php
r1248 r1369 22 22 $body .= run("files:folder:edit"); 23 23 24 echo templates_page_draw( array( 25 $title, 26 templates_draw(array( 27 'context' => 'contentholder', 28 'title' => $title, 29 'body' => $body 30 ) 31 ) 32 ) 33 ); 24 templates_page_output($title, $body); 34 25 35 26 ?> devel/mod/file/index.php
r1248 r1369 32 32 } 33 33 34 echo templates_page_draw( array( 35 $title, 36 templates_draw(array( 37 'context' => 'contentholder', 38 'title' => $title, 39 'body' => $body 40 ) 41 ) 42 ) 43 ); 34 templates_page_output($title, $body); 44 35 45 36 ?> devel/mod/friend/friendsof.php
r1248 r1369 20 20 templates_page_setup(); 21 21 $title = run("profile:display:name") . " :: ". __gettext("Friends who have linked to you"); 22 $body = run('friends:of:editpage'); 22 23 23 echo templates_page_draw( array( 24 $title, run("friends:of:editpage") 25 ) 26 ); 24 templates_page_output($title, $body); 27 25 28 26 ?> devel/mod/friend/index.php
r1248 r1369 20 20 templates_page_setup(); 21 21 $title = run("profile:display:name") . " :: ". __gettext("Friends I have linked to"); 22 $body = run('friends:editpage'); 22 23 23 echo templates_page_draw( array( 24 $title, run("friends:editpage") 25 ) 26 ); 24 templates_page_output($title, $body); 27 25 28 26 ?> devel/mod/friend/lib/friends_edit_wrapper.php
r1248 r1369 8 8 $body .= run("friends:edit",array($page_owner)); 9 9 10 $body = templates_draw(array( 11 'context' => 'contentholder', 12 'title' => $title, 13 'body' => $body 14 ) 15 ); 16 17 $run_result = $body; 10 $run_result .= $body; 18 11 19 12 ?> devel/mod/friend/lib/friends_of_edit_wrapper.php
r1248 r1369 8 8 $body .= run("friends:of:edit",array($page_owner)); 9 9 10 $body = templates_draw(array(11 'context' => 'contentholder',12 'title' => $title,13 'body' => $body14 )15 );16 17 10 $run_result .= $body; 18 11 devel/mod/friend/lib/user_friendship_requests.php
r1262 r1369 51 51 $body = "<p>" . __gettext("You have no pending friendship requests.") . "</p>"; 52 52 } 53 54 $run_result = templates_draw(array( 55 'context' => 'contentholder', 56 'title' => $title, 57 'body' => $body 58 ) 59 ); 53 54 $run_result .= $body; 60 55 61 56 } devel/mod/friend/requests.php
r1248 r1369 21 21 22 22 $title = run("profile:display:name") . " :: ". __gettext("Friendship requests"); 23 $body = run('friends:requests:view'); 23 24 24 echo templates_page_draw(array( 25 $title, run("friends:requests:view") 26 ) 27 ); 25 templates_page_output($title, $body); 28 26 29 27 ?> devel/mod/generic_comments/comment_page.php
r1117 r1369 29 29 30 30 templates_page_setup(); 31 templates_page_output($title, $body); 31 32 32 echo templates_page_draw( array(33 sitename,34 templates_draw(array(35 'body' => $body,36 'title' => $title,37 'context' => 'contentholder'38 )39 )40 )41 );42 33 ?> devel/mod/groups/index.php
r1251 r1369 22 22 23 23 $title = run("profile:display:name") . " :: ". __gettext("Access Controls"); 24 25 echo templates_page_draw( array( 26 $title, 27 templates_draw(array( 28 'context' => 'contentholder', 29 'title' => $title, 30 'body' => run("groups:editpage") 31 ) 32 ) 33 ) 34 ); 24 $body = run('groups:editpage'); 25 26 templates_page_output($title, $body); 35 27 36 28 ?> devel/mod/icons/index.php
r1248 r1369 24 24 $body .= run("icons:add"); 25 25 26 $mainbody = templates_draw(array( 27 'context' => 'contentholder', 28 'title' => $title, 29 'body' => $body 30 ) 31 ); 32 33 echo templates_page_draw( array( 34 $title, $mainbody 35 ) 36 ); 26 templates_page_output($title, $body); 37 27 38 28 ?> devel/mod/invite/forgotten_password.php
r1251 r1369 16 16 $body = run("invite:password:request"); 17 17 18 $body = templates_draw(array( 19 'context' => 'contentholder', 20 'title' => $title, 21 'body' => $body 22 ) 23 ); 24 25 echo templates_page_draw( array( 26 $title, $body, ' ' 27 ) 28 ); 18 templates_page_output($title, $body, null, ' '); 29 19 30 20 ?> devel/mod/invite/index.php
r1251 r1369 5 5 require_once(dirname(dirname(__FILE__))."/../includes.php"); 6 6 7 error_log ("Aver");7 //error_log ("Aver"); 8 8 run("profile:init"); 9 9 run("invite:init"); 10 10 11 error_log ("Aver 2");11 //error_log ("Aver 2"); 12 12 define("context", "network"); 13 13 templates_page_setup(); … … 21 21 $body .= run("invite:invite"); 22 22 23 $body = templates_draw(array( 24 'context' => 'contentholder', 25 'title' => $title, 26 'body' => $body 27 ) 28 ); 29 30 echo templates_page_draw( array( 31 $title, $body 32 ) 33 ); 23 templates_page_output($title, $body); 24 34 25 } else { 35 26 header("Location: " . $CFG->wwwroot); devel/mod/invite/join.php
r1251 r1369 15 15 $body .= run("invite:join"); 16 16 17 $body = templates_draw(array( 18 'context' => 'contentholder', 19 'title' => $title, 20 'body' => $body 21 ) 22 ); 23 24 echo templates_page_draw( array( 25 $title, $body 26 ) 27 ); 17 templates_page_output($title, $body); 28 18 29 19 ?> devel/mod/invite/new_password.php
r1251 r1369 13 13 $body = run("invite:password:new"); 14 14 15 $body = templates_draw(array( 16 'context' => 'contentholder', 17 'title' => $title, 18 'body' => $body 19 ) 20 ); 21 22 echo templates_page_draw( array( 23 $title, $body 24 ) 25 ); 15 templates_page_output($title, $body); 26 16 27 17 ?> devel/mod/invite/register.php
r1283 r1369 16 16 $body .= run("join:no_invite"); 17 17 18 $body= templates_draw(array (19 'context' => 'contentholder',20 'title' => $title,21 'body' => $body22 ));23 24 18 } else { 19 $title= sprintf(__gettext("Welcome to %s"), sitename); 25 20 26 21 if (array_key_exists("invite:register:welcome:success", $function)) { … … 31 26 } 32 27 33 echo templates_page_draw(array ( 34 $title, 35 $body 36 )); 28 templates_page_output($title, $body); 29 37 30 ?> devel/mod/invite/wrongpassword.php
r1251 r1369 55 55 templates_page_setup(); 56 56 // display the form. 57 echo templates_page_draw( array( 58 sitename, 59 templates_draw(array( 60 'body' => $body, 61 'title' => __gettext('Log On'), 62 'context' => 'contentholder' 63 ) 64 ) 65 ) 66 ); 57 templates_page_output(__gettext('Log On'), $body); 67 58 68 59 ?> devel/mod/newsclient/blog.php
