public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/certificate.php
/**
		 * Renders the logo provided by the user.
		 */
Renders the logo provided by the user.
Renders the logo provided by the user .
public function render_handleLogo() {
			$logoShow = WPCW_arrays_getValue( $this->settingsList, 'cert_logo_enabled' );
			$logoImg  = WPCW_arrays_getValue( $this->settingsList, 'cert_logo_url' );
			if ( 'cert_logo' != $logoShow || ! $logoImg ) {
				return;
			}
			$logoWidth  = WPCW_Certificate::px2mm( WPCW_CERTIFICATE_LOGO_WIDTH_PX );
			$logoHeight = WPCW_Certificate::px2mm( WPCW_CERTIFICATE_LOGO_HEIGHT_PX );
			$logoImg = $this->pdf_link_path( $logoImg );
			$this->pdffile->Image( $logoImg, $this->getLeftOfCentre( $logoWidth ), 134, $logoWidth ); 
		}
public function render_handleLogo ( ) { $ logoShow = WPCW_arrays_getValue ( $ this -> settingsList , 'cert_logo_enabled' ) ; $ logoImg = WPCW_arrays_getValue ( $ this -> settingsList , 'cert_logo_url' ) ; if ( 'cert_logo' != $ logoShow || ! $ logoImg ) { return ; } $ logoWidth = WPCW_Certificate :: px2mm ( WPCW_CERTIFICATE_LOGO_WIDTH_PX ) ; $ logoHeight = WPCW_Certificate :: px2mm ( WPCW_CERTIFICATE_LOGO_HEIGHT_PX ) ; $ logoImg = $ this -> pdf_link_path ( $ logoImg ) ; $ this -> pdffile -> Image ( $ logoImg , $ this -> getLeftOfCentre ( $ logoWidth ) , 134 , $ logoWidth ) ; }
Renders the logo provided by the user.
Renders the logo provided by the user .
// No logo to work with, abort. // Image is fetched using URL, and resized to match the space. // Only force width