[dev] An Ad Bock for Midas (and Possibly Giapeto)..

Robert Ribnitz ribnitz at linuxbourg.ch
Tue Aug 19 09:37:39 PDT 2003


This is still untested as I havent gotten it ot show up in the block 
choice yet.

However here it is (goes to midas/lib/Block)

Robert
-------------- next part --------------
<?php
/**
 * $Horde: midas/lib/Block/summary.php,v 1.1 2003/02/22 01:58:51 chuck Exp $
 *
 * @package horde.block
 */
class midas_ad_Block extends Horde_Block {

    function midas_ad_Block($params = array()) 
    {
        $this->_params = $params;
        $this->_app = 'midas';
        $this->_type = 'ad';
    }

    function isEditable() 
    {
        return false;
    }

    function _title() 
    {
    	return _("Advertisment");
    }

    function _content()
    {
        global $registry;

        $midas = &Midas::singleton();
	$ad=$midas->viewAdByJs(null);
	return $ad;
    }

}


More information about the dev mailing list