You are here

function panels_ipe_footer in Panels 6.3

Implementation of hook_footer()

Adds the IPE control container.

Parameters

unknown_type $main:

File

panels_ipe/panels_ipe.module, line 132

Code

function panels_ipe_footer($main = 0) {
  $key = panels_ipe_get_cache_key();
  if (!isset($key)) {
    return;
  }

  // TODO should be moved into the IPE plugin - WAAAY too hardcoded right now
  $output = "<div id='panels-ipe-control-container' class='clear-block'>";
  $output .= "<div id='panels-ipe-control-{$key}' class='panels-ipe-control'>";
  $output .= "<div class='panels-ipe-startedit panels-ipe-pseudobutton panels-ipe-off'>";
  $output .= "<span>" . t('Customize this page') . "</span>";
  $output .= "</div>";
  $output .= "<div class='panels-ipe-form-container panels-ipe-on clear-block'></div>";
  $output .= "</div></div>";
  return $output;
}