You are here

function theme_panels_ipe_toolbar in Panels 7.3

2 theme calls to theme_panels_ipe_toolbar()
panels_ipe_page_alter in panels_ipe/panels_ipe.module
Implementation of hook_footer().
panels_renderer_ipe::ajax_save_form in panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php
AJAX entry point to create the controller form for an IPE.

File

panels_ipe/panels_ipe.module, line 261

Code

function theme_panels_ipe_toolbar($vars) {
  $buttons = $vars['buttons'];
  ctools_include('cleanstring');
  $output = "<div id='panels-ipe-control-container' class='clearfix'>";
  foreach ($buttons as $key => $ipe_buttons) {
    $key = ctools_cleanstring($key);
    $output .= "<div id='panels-ipe-control-{$key}' class='panels-ipe-control'>";

    // Controls in this container will appear when the IPE is not on.
    $output .= '<div class="panels-ipe-button-container clearfix">';
    foreach ($ipe_buttons as $button) {
      $output .= is_string($button) ? $button : drupal_render($button);
    }
    $output .= '</div>';

    // Controls in this container will appear when the IPE is on. It is usually
    // filled via AJAX.
    $output .= '<div class="panels-ipe-form-container clearfix"></div>';
    $output .= '</div>';
  }
  $output .= "</div>";
  return $output;
}