Changeset 251

Show
Ignore:
Timestamp:
11/23/07 19:49:37 (13 years ago)
Author:
exi
Message:

Added another callback to inject code into the html body.

Location:
branch/rev3
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branch/rev3/common/includes/class.page.php

    r250 r251  
    1313        $this->title_ = $title; 
    1414        $this->admin_ = false; 
    15         $this->headlines = array(); 
     15        $this->headlines = $this->bodylines = array(); 
    1616 
    1717        $this->igb_ = IS_IGB; 
     
    5353    } 
    5454 
     55    function addBody($line) 
     56    { 
     57        $this->bodylines[] = $line; 
     58    } 
     59 
    5560    function generate() 
    5661    { 
     
    6873        } 
    6974 
     75        // header 
    7076        event::call('page_assembleheader', $this); 
    71         // header 
    7277        $smarty->assign('page_headerlines', join("\n", $this->headlines)); 
     78 
     79        event::call('page_assemblebody', $this); 
     80        $smarty->assign('page_bodylines', join("\n", $this->bodylines)); 
    7381 
    7482        if (!$this->igb_) 
    7583        { 
    76             if (strpos(config::get('mods_active'), 'rss_feed') !== false) 
    77             { 
    78                 $smarty->assign('rss_feed', 1); 
    79             } 
    8084            if (MAIN_SITE) 
    8185            { 
  • branch/rev3/templates/index.tpl

    r250 r251  
    1515</head> 
    1616<body bgcolor="#222222" {$on_load} style="height: 100%"> 
     17{$page_bodylines} 
    1718<div align="center" id="popup" style="display:none; 
    1819        position:absolute;