panels_renderer_single_pane.class.php in Panels 6.3
File
plugins/display_renderers/panels_renderer_single_pane.class.php
View source
<?php
class panels_renderer_single_pane extends panels_renderer_standard {
var $render_pid;
function init($plugin, &$display) {
$this->plugin = $plugin;
$this->display =& $display;
}
function prepare($external_settings = NULL) {
$this->render_pid = $external_settings;
}
function render() {
if (empty($this->render_pid) || empty($this->display->content[$this->render_pid])) {
return NULL;
}
return $this
->render_pane($this->display->content[$this->render_pid]);
}
function render_single($pid) {
return $this
->render_pane($this->display->content[$pid]);
}
}