public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/certificate.php
/**
		 * Given a string, write it to the center of the page.
		 *
		 * @param String $str The string to center.
		 * @param Integer $y_pos The Y-coordinate of the string to position.
		 */
Given a string, write it to the center of the page.
@param String $str The string to center.
@param Integer $y_pos The Y-coordinate of the string to position.
Given a string write it to the center of the page . @param String $str The string to center . @param Integer $y_pos The Y - coordinate of the string to position .
public function centerString( $str, $y_pos ) {
			$str_width = $this->pdffile->GetStringWidth( $str );
			$str_x     = $this->getLeftOfCentre( $str_width );
			$this->pdffile->SetXY( $str_x, $y_pos );
			$this->pdffile->Cell( 0, 0, $str, false, false );
		}
public function centerString ( $ str , $ y_pos ) { $ str_width = $ this -> pdffile -> GetStringWidth ( $ str ) ; $ str_x = $ this -> getLeftOfCentre ( $ str_width ) ; $ this -> pdffile -> SetXY ( $ str_x , $ y_pos ) ; $ this -> pdffile -> Cell ( 0 , 0 , $ str , false , false ) ; }
Given a string, write it to the center of the page.
Given a string write it to the center of the page .