public/wordpress/wp-content/plugins/backupbuddy/pluginbuddy/classes/ui.php
/*	pluginbuddy_ui->button()
	 *	
	 *	Displays a nice pretty styled button. How nice. Always returns.
	 *	
	 *	@param		string		$url				URL (href) for the button to link to.
	 *	@param		string		$text				Text to display in the button.
	 *	@param		string		$title				Optional title text to display on hover in the title tag.
	 *	@param		boolean		$primary			(optional) Whether or not this is a primary button. Primary buttons are blue and strong where default non-primary is grey and gentle.
	 *	@param		string		$additional_class	(optional) Additional CSS class to apply to button. Useful for thickbox or other JS stuff.
	 *	@param		string		$id					(optional) HTML ID to apply. Useful for JS.
	 *	@return		string							HTML string for the button.
	 */


Displays a nice pretty styled button. How nice. Always returns.

@param          string          $url                            URL (href) for the button to link to.
@param          string          $text                           Text to display in the button.
@param          string          $title                          Optional title text to display on hover in the title tag.
@param          boolean         $primary                        (optional) Whether or not this is a primary button. Primary buttons are blue and strong where default non-primary is grey and gentle.
@param          string          $additional_class       (optional) Additional CSS class to apply to button. Useful for thickbox or other JS stuff.
@param          string          $id                                     (optional) HTML ID to apply. Useful for JS.
@return         string                                                  HTML string for the button.
Displays a nice pretty styled button . How nice . Always returns . @param string $url URL ( href ) for the button to link to . @param string $text Text to display in the button . @param string $title Optional title text to display on hover in the title tag . @param boolean $primary ( optional ) Whether or not this is a primary button . Primary buttons are blue and strong where default non - primary is grey and gentle . @param string $additional_class ( optional ) Additional CSS class to apply to button . Useful for thickbox or other JS stuff . @param string $id ( optional ) HTML ID to apply . Useful for JS . @return string HTML string for the button .
public function button( $url, $text, $title = '', $primary = false, $additional_class = '', $id = '' ) {
		if ( $primary === false ) {
			return '<a class="button secondary-button ' . $additional_class . '" style="margin-top: 3px;" id="' . $id . '" title="' . $title . '" href="' . $url . '">' . $text . '</a>';
		} else {
			return '<a class="button button-primary ' . $additional_class . '" style="margin-top: 3px;" id="' . $id . '" title="' . $title . '" href="' . $url . '">' . $text . '</a>';
		}
	}
public function button ( $ url , $ text , $ title = '' , $ primary = false , $ additional_class = '' , $ id = '' ) { if ( $ primary === false ) { return '<a class="button secondary-button ' . $ additional_class . '" style="margin-top: 3px;" id="' . $ id . '" title="' . $ title . '" href="' . $ url . '">' . $ text . '</a>' ; } else { return '<a class="button button-primary ' . $ additional_class . '" style="margin-top: 3px;" id="' . $ id . '" title="' . $ title . '" href="' . $ url . '">' . $ text . '</a>' ; } }
pluginbuddy_ui->button()
pluginbuddy_ui - > button ()