function __construct() {
$this->block = new Base_Block(__FILE__);
}public function display($location, $title) { $template->assign_block_vars('block_'.$location, array(
'TITLE' => $title,
'CONTENT' => $template->assign_display($this->block->template_prefix),
)
);<?php
/**
*
* Shout Box Block
*
* Notes
*
* Credits
*
* @author Bigbuck <www.evolution-cms.com>
* @version $Id:$ (9.0.0)
* @package phpBB-Evolution
* @copyright 2007 The Evolution-CMS Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* @ignore
*/
if (!defined('CMS')) {
die('Direct access is not allowed');
}
class block_Shout_Box {
/**
* Holds the block base class
*
* @var class Base_Block
*/
private $block;
/**
* Constructor
*
*/
function __construct() {
$this->block = new Base_Block(__FILE__);
}
/**
* Display the block
*
* @return string
*/
public function display($location, $title) {
global $prefix, $ShoutSubmit, $ShoutComment, $db, $user, $cookie, $shoutuid, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight, $currentlang, $template;
include_once(_PATH_MODULES.$this->block->base_name.'core/class_shout.inc.php');
//Setup the template
$template->set_filenames(array(
$this->block->template_prefix => 'cms/blocks/'.$this->block->template_prefix.'.html',
)
);
//Create the block
$template->assign_block_vars('block_'.$location, array(
'TITLE' => $title,
'CONTENT' => $template->assign_display($this->block->template_prefix),
)
);
switch($ShoutSubmit) {
default:
ShoutBox($ShoutSubmit, $ShoutComment, $shoutuid);
break;
}
if (!isset($_GET['Action']) && $_GET['Action'] != 'AJAX') {
echo '<script type="text/javascript">var SBheight = \''.$ShoutMarqueeheight.'\';var SBcontent = new String(\''.$mid_content.'\');</script>
<script type="text/javascript" src="javascript/shoutbox/shoutbox.js"></script>';
$content = $top_content."\n";
$content .= "<div align=\"center\" id=\"shoutbox\"><script type=\"text/javascript\">document.write(SBtxt);</script></div>\n";
$content .= $bottom_content."\n";
}
}
}include_once(_PATH_MODULES.$this->block->base_name.'/shout.php');if (empty($modules->current) || !is_object($current_module) || !is_callable($call)) {
return ;
}{if SHOUT_BOX}
{/if}Users browsing this forum: No registered users and 1 guest