git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/trunk@20 eb19766c-00d9-a042-a3a0-45cb8ec72764
89 lines
3.3 KiB
PHP
89 lines
3.3 KiB
PHP
<?php
|
|
/**
|
|
* Copyright 2010 Aart-Jan Boor <aart-jan@wemag.nl>
|
|
* Author: Aart-Jan Boor
|
|
* Wemag Advisering <http://www.wemag.nl>
|
|
* Website: http://www.ktplugins.com
|
|
*
|
|
*/
|
|
require_once(KT_LIB_DIR . '/widgets/portlet.inc.php');
|
|
require_once('KTPFwPage.php');
|
|
|
|
/**
|
|
* Interception portlet for frontend pages, replaces KTPage object with KTplugins extension of
|
|
* this object that allows adjusting page output
|
|
*/
|
|
class KTPFwInterceptionPortlet extends KTPortlet {
|
|
var $sNamespace = "ktplugins.KTPFramework.portlets.interceptionportlet";
|
|
var $systemPortlet = true;
|
|
|
|
|
|
function KTPFwInterceptionPortlet(){
|
|
|
|
$page = new KTPFwPage('browse');
|
|
$page->portlets = $GLOBALS['main']->portlets;
|
|
$page->contents = $GLOBALS['main']->contents;
|
|
$page->breadcrumbs = $GLOBALS['main']->breadcrumbs;
|
|
$page->breadcrumbDetails = $GLOBALS['main']->breadcrumbDetails;
|
|
$page->breadcrumbSection = $GLOBALS['main']->breadcrumbSection;
|
|
$page->js_resources = $GLOBALS['main']->js_resources;
|
|
$page->css_resources = $GLOBALS['main']->css_resources;
|
|
$page->js_standalone = $GLOBALS['main']->js_standalone;
|
|
$page->css_standalone = $GLOBALS['main']->css_standalone;
|
|
$page->secondary_title = $GLOBALS['main']->secondary_title;
|
|
$page->ie_only_css = $GLOBALS['main']->ie_only_css;
|
|
$page->menu = $GLOBALS['main']->menu;
|
|
$page->userMenu = $GLOBALS['main']->userMenu;
|
|
$page->componentLabel = $GLOBALS['main']->componentLabel;
|
|
$page->componentClass = $GLOBALS['main']->componentClass;
|
|
$page->template = $GLOBALS['main']->template;
|
|
$page->content_class = $GLOBALS['main']->content_class;
|
|
$page->user = $GLOBALS['main']->user;
|
|
|
|
$page->show_portlets = $GLOBALS['main']->show_portlets; // Rodax Software - Ticket #446
|
|
|
|
$GLOBALS['main'] = $page;
|
|
}
|
|
|
|
function render() {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Interception portlet for administration pages, replaces KTPage object with KTplugins extension of
|
|
* this object that allows adjusting page output
|
|
*/
|
|
class KTPFwInterceptionAdminPortlet extends KTPortlet {
|
|
var $sNamespace = "ktplugins.KTPFramework.portlets.interceptionadminportlet";
|
|
|
|
function KTPFwInterceptionAdminPortlet(){
|
|
$page = new KTPFwPage('admin');
|
|
$page->portlets = $GLOBALS['main']->portlets;
|
|
$page->contents = $GLOBALS['main']->contents;
|
|
$page->breadcrumbs = $GLOBALS['main']->breadcrumbs;
|
|
$page->breadcrumbDetails = $GLOBALS['main']->breadcrumbDetails;
|
|
$page->breadcrumbSection = $GLOBALS['main']->breadcrumbSection;
|
|
$page->js_resources = $GLOBALS['main']->js_resources;
|
|
$page->css_resources = $GLOBALS['main']->css_resources;
|
|
$page->js_standalone = $GLOBALS['main']->js_standalone;
|
|
$page->css_standalone = $GLOBALS['main']->css_standalone;
|
|
$page->secondary_title = $GLOBALS['main']->secondary_title;
|
|
$page->ie_only_css = $GLOBALS['main']->ie_only_css;
|
|
$page->menu = $GLOBALS['main']->menu;
|
|
$page->userMenu = $GLOBALS['main']->userMenu;
|
|
$page->componentLabel = $GLOBALS['main']->componentLabel;
|
|
$page->componentClass = $GLOBALS['main']->componentClass;
|
|
$page->template = $GLOBALS['main']->template;
|
|
$page->content_class = $GLOBALS['main']->content_class;
|
|
$page->user = $GLOBALS['main']->user;
|
|
$GLOBALS['main'] = $page;
|
|
}
|
|
|
|
function render() {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
?>
|