/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/libraries
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/libraries/give-pdf.php (1910B)
SetY( - 15 );
$this->SetFont( 'Helvetica', 'I', 8 );
$this->Cell( 0, 10, 'Page ' . $this->PageNo(), 0, 0, 'C' );
}
/**
* Set Width.
*
* @param array $w Cell Width.
*/
function SetWidths( $w ) {
$this->widths = $w;
}
/**
* Set Alignment.
*
* @param string $a Cell Alignment.
*/
function SetAligns( $a ) {
$this->aligns = $a;
}
/**
* Set Table Row.
*
* @param array $data Set data in a row.
*/
function Row( $data ) {
$nb = 0;
$get_height = array();
for ( $i = 0; $i < count( $data ); $i ++ ) {
$get_height[] = max( $nb, $this->getNumLines( $data[ $i ], $this->widths[ $i ] ) );
}
// Get max height from the all column.
$max_height = max( $get_height );
for ( $i = 0; $i < count( $data ); $i ++ ) {
$h = 7 * $max_height;
$this->checkPageBreak( $h, '', true );
$w = $this->widths[ $i ];
$a = isset( $this->aligns[ $i ] ) ? $this->aligns[ $i ] : 'L';
$x = $this->GetX();
$y = $this->GetY();
$this->Rect( $x, $y, $w, $h );
$this->MultiCell( $w, $h, $data[ $i ], 0, $a, false, 1, '', '', true, 0, false, true, 0, 'M', false );
$this->SetXY( $x + $w, $y );
}
$this->Ln( $max_height * 7 );
}
}