rendered paste body<?php
protected $isModal = false;
public function hidw_all() {
if (class_exists('CC_WM') && CC_WM::is_window($this->get_name()) && $this->isModal) {
parent::grab_remove();
$return = parent::hide_all();
$this->isModal = false;
return $return;
} else {
return parent::hide_all();
}
}
public function show_all($modal = false) {
if (class_exists('CC_WM') && CC_WM::is_window($this->get_name())) {
$return = parent::show_all();
parent::grab_add();
$this->isModal = true;
return $return;
} else {
return parent::show_all();
}
}
?>