english/plugins/editors-xtd/pagebreak/pagebreak.php
/**
	 * Display the button
	 *
	 * @return array A two element array of (imageName, textToInsert)
	 */
Display the button
@return array A two element array of (imageName, textToInsert)
Display the button @return array A two element array of ( imageName textToInsert )
public function onDisplay($name)
	{
		$app = JFactory::getApplication();
		$doc = JFactory::getDocument();
		$template = $app->getTemplate();
		$link = 'index.php?option=com_content&amp;view=article&amp;layout=pagebreak&amp;tmpl=component&amp;e_name='.$name;
		JHtml::_('behavior.modal');
		$button = new JObject;
		$button->set('modal', true);
		$button->set('link', $link);
		$button->set('text', JText::_('PLG_EDITORSXTD_PAGEBREAK_BUTTON_PAGEBREAK'));
		$button->set('name', 'pagebreak');
		$button->set('options', "{handler: 'iframe', size: {x: 400, y: 100}}");
		return $button;
	}
public function onDisplay ( $ name ) { $ app = JFactory :: getApplication ( ) ; $ doc = JFactory :: getDocument ( ) ; $ template = $ app -> getTemplate ( ) ; $ link = 'index.php?option=com_content&amp;view=article&amp;layout=pagebreak&amp;tmpl=component&amp;e_name=' . $ name ; JHtml :: _ ( 'behavior.modal' ) ; $ button = new JObject ; $ button -> set ( 'modal' , true ) ; $ button -> set ( 'link' , $ link ) ; $ button -> set ( 'text' , JText :: _ ( 'PLG_EDITORSXTD_PAGEBREAK_BUTTON_PAGEBREAK' ) ) ; $ button -> set ( 'name' , 'pagebreak' ) ; $ button -> set ( 'options' , " {handler: 'iframe', size: {x: 400, y: 100}} " ) ; return $ button ; }
Display the button
 @return array A two element array of (imageName, textToInsert)
Display the button @return array A two element array of ( imageName textToInsert )