Changeset 1369

Show
Ignore:
Timestamp:
12/05/07 18:20:12 (1 year ago)
Author:
rho
Message:

cleanup

  • use to templates_page_output function to display page

Signed-off: Rolando Espinoza La fuente <rho@prosoftpeople.com>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/activity/index.php

    r1248 r1369  
    120120} 
    121121 
    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          ); 
     122templates_page_output($title, $body); 
    133123 
    134124?> 
  • devel/mod/blog/archive.php

    r1077 r1369  
    2525        $body .= run("weblogs:archives:view"); 
    2626 
    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); 
    3828 
    3929?> 
  • devel/mod/blog/archive_month.php

    r1077 r1369  
    2424        $body = run("weblogs:archives:month:view"); 
    2525 
    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); 
    3727 
    3828?> 
  • devel/mod/blog/edit.php

    r1350 r1369  
    3535        $body .= run("weblogs:edit"); 
    3636 
    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); 
    4838 
    4939?> 
  • devel/mod/blog/everyone.php

    r1332 r1369  
    3333 
    3434        $body .= run("weblogs:everyone:view"); 
     35        $body = '<div id="view_all_blog_posts">' . $body . '</div>'; 
    3536 
    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); 
    4738 
    4839?> 
  • devel/mod/blog/friends.php

    r1077 r1369  
    2424        $body = run("content:weblogs:view"); 
    2525        $body .= run("weblogs:friends:view"); 
     26        $body = '<div id="view_friends_blogs">' . $body . '</div>'; 
    2627 
    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); 
    3829 
    3930?> 
  • devel/mod/blog/index.php

    r1077 r1369  
    3333        $body = run("content:weblogs:view"); 
    3434        $body .= run("weblogs:view"); 
     35        $body = '<div id="view_own_blog">' . $body . '</div>'; 
    3536 
    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); 
    4738 
    4839?> 
  • devel/mod/blog/interesting.php

    r1251 r1369  
    2323$body = run("content:weblogs:view"); 
    2424$body .= run("weblogs:interesting:view"); 
     25$body = '<div id="view_friends_blogs">' . $body . '</div>'; 
    2526 
    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                         ); 
     27templates_page_output($title, $body); 
    3528 
    3629?> 
  • devel/mod/blog/view_post.php

    r1077 r1369  
    5252    $body .= run("weblogs:posts:view:individual",$post); 
    5353 
    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); 
    6555 
    6656} 
  • devel/mod/browser/index.php

    r1049 r1369  
    230230         
    231231        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); 
    242233 
    243234?> 
  • devel/mod/commentwall/index.php

    r1277 r1369  
    2727    $html.= commentwall_display_footer($owner, $limit, $offset); 
    2828     
    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); 
    4230     
    4331?> 
  • devel/mod/commentwall/post.php

    r1201 r1369  
    3232    $html .= commentwall_post_form($wallowner, $reply, false, "", $returnurl); 
    3333     
    34     $html = templates_draw(array( 
    35                              'context' => 'contentholder', 
    36                              'title' => $title, 
    37                              'body' => $html 
    38                              ) 
    39                        ); 
     34    templates_page_output($title, $html); 
    4035 
    41                                                         // Write everything to the screen 
    42     echo templates_page_draw( 
    43                                     array( 
    44                                         $title, $html 
    45                                     ) 
    46                                 ); 
    4736?> 
  • devel/mod/community/addgroup.php

    r1248 r1369  
    22 
    33    //    ELGG add community a community 
    4 error_log("en _communities/addgroup"); 
     4    //error_log("en _communities/addgroup"); 
    55    // Run includes 
    66        require_once(dirname(dirname(__FILE__))."/../includes.php"); 
     
    2222 
    2323        $title = user_info("name", page_owner())  . " :: ". __gettext("Invite a Community"); 
     24        $body = run('communities:communities', array($page_owner)); 
    2425 
    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); 
    3227 
    3328?> 
  • devel/mod/community/index.php

    r1080 r1369  
    2424 
    2525        $title = run("profile:display:name") . " :: " . __gettext("Communities"); 
     26        $body = run('communities:editpage'); 
    2627 
    27         echo templates_page_draw( array( 
    28                     $title, run("communities:editpage") 
    29                 ) 
    30                 ); 
     28        templates_page_output($title, $body); 
    3129 
    3230?> 
  • devel/mod/community/lib/communities_edit_wrapper.php

    r1080 r1369  
    88$body .= run("communities:edit",array($page_owner)); 
    99 
    10 $body = templates_draw(array( 
    11                              'context' => 'contentholder', 
    12                              'title' => $title, 
    13                              'body' => $body 
    14                              ) 
    15                        ); 
    16                         
    1710$run_result = $body; 
    1811                     
  • devel/mod/community/lib/communities_membership_requests.php

    r1095 r1369  
    1010        $owner_name = user_info('username',$page_owner); 
    1111        if (user_type($page_owner) == "community" && run("permissions:check",array("userdetails:change", $page_owner))) { 
    12             $title = run("profile:display:name") . " :: ". __gettext("Membership requests") .""; 
    1312 
    1413            if ($pending_requests = get_records_sql('SELECT fr.ident AS request_id, u.*  FROM '.$CFG->prefix.'friends_requests fr 
     
    5150            } 
    5251 
    53             $run_result = templates_draw( array( 
    54                         'context' => 'contentholder', 
    55                         'title' => $title, 
    56                         'body' => $body 
    57                     ) 
    58                     ); 
    59  
     52            $run_result = $body; 
    6053        } 
    6154 
  • devel/mod/community/members.php

    r1095 r1369  
    2424 
    2525        $title = run("profile:display:name") . " :: " . __gettext("Members"); 
     26        $body = run('communities:members', array($page_owner)); 
    2627 
    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); 
    3629 
    3730?> 
  • devel/mod/community/new.php

    r1080 r1369  
    2424 
    2525        $title = run("profile:display:name") . " :: " . __gettext("Owned Communities"); 
     26        $body = run('communities:create', array($page_owner)); 
    2627 
    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); 
    3629 
    3730?> 
  • devel/mod/community/owned.php

    r1080 r1369  
    2424 
    2525        $title = run("profile:display:name") . " :: " . __gettext("Owned Communities"); 
     26        $body = run('communities:owned', array($page_owner)); 
    2627 
    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); 
    3629 
    3730?> 
  • devel/mod/community/requests.php

    r1248 r1369  
    2424 
    2525        $title = run("profile:display:name") . " :: ". __gettext("Membership requests"); 
     26        $body = run('communities:requests:view'); 
    2627 
    27         echo templates_page_draw(array( 
    28                     $title, run("communities:requests:view") 
    29                 ) 
    30                 ); 
     28        templates_page_output($title, $body); 
    3129 
    3230?> 
  • devel/mod/file/edit_file.php

    r1248 r1369  
    2222        $body .= run("files:edit"); 
    2323         
    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); 
    3425                 
    3526?> 
  • devel/mod/file/edit_folder.php

    r1248 r1369  
    2222        $body .= run("files:folder:edit"); 
    2323         
    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); 
    3425                 
    3526?> 
  • devel/mod/file/index.php

    r1248 r1369  
    3232        } 
    3333         
    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); 
    4435                 
    4536?> 
  • devel/mod/friend/friendsof.php

    r1248 r1369  
    2020        templates_page_setup(); 
    2121        $title = run("profile:display:name") . " :: ". __gettext("Friends who have linked to you"); 
     22        $body = run('friends:of:editpage'); 
    2223 
    23         echo templates_page_draw( array( 
    24                     $title, run("friends:of:editpage") 
    25                 ) 
    26                 ); 
     24        templates_page_output($title, $body); 
    2725 
    2826?> 
  • devel/mod/friend/index.php

    r1248 r1369  
    2020        templates_page_setup(); 
    2121        $title = run("profile:display:name") . " :: ". __gettext("Friends I have linked to"); 
     22        $body = run('friends:editpage'); 
    2223 
    23         echo templates_page_draw( array( 
    24                     $title, run("friends:editpage") 
    25                 ) 
    26                 ); 
     24        templates_page_output($title, $body); 
    2725 
    2826?> 
  • devel/mod/friend/lib/friends_edit_wrapper.php

    r1248 r1369  
    88        $body .= run("friends:edit",array($page_owner)); 
    99         
    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; 
    1811                     
    1912?> 
  • devel/mod/friend/lib/friends_of_edit_wrapper.php

    r1248 r1369  
    88    $body .= run("friends:of:edit",array($page_owner)); 
    99     
    10     $body = templates_draw(array( 
    11                     'context' => 'contentholder', 
    12                     'title' => $title, 
    13                     'body' => $body 
    14                 ) 
    15                 ); 
    16  
    1710    $run_result .= $body; 
    1811 
  • devel/mod/friend/lib/user_friendship_requests.php

    r1262 r1369  
    5151                $body = "<p>" . __gettext("You have no pending friendship requests.") . "</p>"; 
    5252            } 
    53  
    54             $run_result = templates_draw(array( 
    55                         'context' => 'contentholder', 
    56                         'title' => $title, 
    57                         'body' => $body 
    58                     ) 
    59                     ); 
     53                        
     54            $run_result .= $body; 
    6055 
    6156        } 
  • devel/mod/friend/requests.php

    r1248 r1369  
    2121 
    2222        $title = run("profile:display:name") . " :: ". __gettext("Friendship requests"); 
     23        $body = run('friends:requests:view'); 
    2324 
    24         echo templates_page_draw(array( 
    25                     $title, run("friends:requests:view") 
    26                 ) 
    27                 ); 
     25        templates_page_output($title, $body); 
    2826 
    2927?> 
  • devel/mod/generic_comments/comment_page.php

    r1117 r1369  
    2929 
    3030templates_page_setup();     
     31templates_page_output($title, $body); 
    3132 
    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         ); 
    4233?> 
  • devel/mod/groups/index.php

    r1251 r1369  
    2222         
    2323        $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); 
    3527 
    3628?> 
  • devel/mod/icons/index.php

    r1248 r1369  
    2424$body .= run("icons:add"); 
    2525 
    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          ); 
     26templates_page_output($title, $body); 
    3727 
    3828?> 
  • devel/mod/invite/forgotten_password.php

    r1251 r1369  
    1616        $body = run("invite:password:request"); 
    1717         
    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, '&nbsp;' 
    27                     ) 
    28                     ); 
     18        templates_page_output($title, $body, null, '&nbsp;'); 
    2919 
    3020?> 
  • devel/mod/invite/index.php

    r1251 r1369  
    55        require_once(dirname(dirname(__FILE__))."/../includes.php"); 
    66         
    7      error_log ("Aver");    
     7     //error_log ("Aver");    
    88        run("profile:init"); 
    99        run("invite:init"); 
    1010      
    11      error_log ("Aver 2");    
     11     //error_log ("Aver 2");    
    1212        define("context", "network"); 
    1313        templates_page_setup(); 
     
    2121            $body .= run("invite:invite"); 
    2222             
    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 
    3425        } else { 
    3526            header("Location: " . $CFG->wwwroot); 
  • devel/mod/invite/join.php

    r1251 r1369  
    1515        $body .= run("invite:join"); 
    1616         
    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); 
    2818 
    2919?> 
  • devel/mod/invite/new_password.php

    r1251 r1369  
    1313        $body = run("invite:password:new"); 
    1414         
    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); 
    2616 
    2717?> 
  • devel/mod/invite/register.php

    r1283 r1369  
    1616  $body .= run("join:no_invite"); 
    1717 
    18   $body= templates_draw(array ( 
    19     'context' => 'contentholder', 
    20     'title' => $title, 
    21     'body' => $body 
    22   )); 
    23  
    2418} else { 
     19  $title= sprintf(__gettext("Welcome to %s"), sitename); 
    2520 
    2621  if (array_key_exists("invite:register:welcome:success", $function)) { 
     
    3126} 
    3227 
    33 echo templates_page_draw(array ( 
    34   $title, 
    35   $body 
    36 )); 
     28templates_page_output($title, $body); 
     29 
    3730?> 
  • devel/mod/invite/wrongpassword.php

    r1251 r1369  
    5555templates_page_setup(); 
    5656// 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         ); 
     57templates_page_output(__gettext('Log On'), $body); 
    6758 
    6859?> 
  • devel/mod/newsclient/blog.php