public function render()
	{
		$html = array();

		// Start toolbar div.
		$html[] = '<div class="toolbar-list" id="' . $this->_name . '">';
		$html[] = '<ul>';

		foreach ($this->_bar as $key => $button)
		{
			$this->_bar[$key][9] = array();
			if ($button[0] == 'Separator')
			{
				continue;
			}
			if (!isset($this->_bar[$key - 1]) || $this->_bar[$key - 1][0] == 'Separator')
			{
				$this->_bar[$key][9][] = 'first';
			}
			if (!isset($this->_bar[$key + 1]) || $this->_bar[$key + 1][0] == 'Separator')
			{
				$this->_bar[$key][9][] = 'last';
			}
		}

		// Render each button in the toolbar.
		foreach ($this->_bar as $button)
		{
			$html[] = $this->renderButton($button);
		}

		// End toolbar div.
		$html[] = '</ul>';
		$html[] = '</div>';

		return implode("\n", $html);
	}
public function render()
	{
		$html = array();

		// Start toolbar div.
		$html[] = '<div class="toolbar-list" id="' . $this->_name . '">';
		$html[] = '<ul>';

		foreach ($this->_bar as $key => $button)
		{
			$this->_bar[$key][9] = array();
			if ($button[0] == 'Separator')
			{
				continue;
			}
			if (!isset($this->_bar[$key - 1]) || $this->_bar[$key - 1][0] == 'Separator')
			{
				$this->_bar[$key][9][] = 'first';
			}
			if (!isset($this->_bar[$key + 1]) || $this->_bar[$key + 1][0] == 'Separator')
			{
				$this->_bar[$key][9][] = 'last';
			}
		}

		// Render each button in the toolbar.
		foreach ($this->_bar as $button)
		{
			$html[] = $this->renderButton($button);
		}

		// End toolbar div.
		$html[] = '</ul>';
		$html[] = '</div>';

		return implode("\n", $html);
	}
public function render ( ) { $ html = array ( ) ; // Start toolbar div. $ html [ ] = '<div class="toolbar-list" id="' . $ this -> _name . '">' ; $ html [ ] = '<ul>' ; foreach ( $ this -> _bar as $ key => $ button ) { $ this -> _bar [ $ key ] [ 9 ] = array ( ) ; if ( $ button [ 0 ] == 'Separator' ) { continue ; } if ( ! isset ( $ this -> _bar [ $ key - 1 ] ) || $ this -> _bar [ $ key - 1 ] [ 0 ] == 'Separator' ) { $ this -> _bar [ $ key ] [ 9 ] [ ] = 'first' ; } if ( ! isset ( $ this -> _bar [ $ key + 1 ] ) || $ this -> _bar [ $ key + 1 ] [ 0 ] == 'Separator' ) { $ this -> _bar [ $ key ] [ 9 ] [ ] = 'last' ; } } // Render each button in the toolbar. foreach ( $ this -> _bar as $ button ) { $ html [ ] = $ this -> renderButton ( $ button ) ; } // End toolbar div. $ html [ ] = '</ul>' ; $ html [ ] = '</div>' ; return implode ( "\n" , $ html ) ; }
Render a tool bar.

@return  string  HTML for the toolbar.
Render a tool bar .