Back to ToolbarHelper class

Method jooa11y

public static void
jooa11y
(mixed $url = '', mixed $updateEditors = false, mixed $icon = 'icon-universal-access', mixed $bodyHeight = null, mixed $modalWidth = null)
Writes a jooa11y accessibility checker button for a given option (opens a popup window).
Parameters
  • string $url The url to open
  • bool $updateEditors Unused
  • string $icon The image to display.
  • int $bodyHeight The body height of the preview popup
  • int $modalWidth The modal width of the preview popup
Returns
  • void
Since
  • 4.1.0
Class: ToolbarHelper
Project: Joomla

Method jooa11y - Source code

/**
 * Writes a jooa11y accessibility checker button for a given option (opens a popup window).
 *
 * @param   string   $url            The url to open
 * @param   bool     $updateEditors  Unused
 * @param   string   $icon           The image to display.
 * @param   integer  $bodyHeight     The body height of the preview popup
 * @param   integer  $modalWidth     The modal width of the preview popup
 *
 * @return  void
 *
 * @since   4.1.0
 */
public static function jooa11y($url = '', $updateEditors = false, $icon = 'icon-universal-access', $bodyHeight = null, $modalWidth = null)
{
    $bar = Toolbar::getInstance('toolbar');
    // Add a button.
    $bar->appendButton('Popup', $icon, 'Preview', $url . '&task=preview', 640, 480, $bodyHeight, $modalWidth);
}