Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.80.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : table-body.php
<?php
/**
 * Display the entry loop when using a table template
 *
 * @package GravityView
 * @subpackage GravityView/templates
 *
 * @global GravityView_View $this
 */
?>
	<tbody>
		<?php

		/**
		 * Inside the `tbody`, before any rows are rendered. Can be used to insert additional rows.
		 *
		 * @since 1.0.7
		 * @param \GravityView_View $this Current GravityView_View object
		 */
		do_action( 'gravityview_table_body_before', $this );

		if ( 0 === $this->getTotalEntries() ) {

			$directory_table_columns = $this->getFields( 'directory_table-columns' );
			?>
			<tr>
				<?php do_action( 'gravityview_table_tr_before', $this ); ?>
				<td colspan="<?php echo $directory_table_columns ? sizeof( $directory_table_columns ) : ''; ?>" class="gv-no-results">
					<?php echo gv_no_results(); ?>
				</td>
				<?php do_action( 'gravityview_table_tr_after', $this ); ?>
			</tr>
			<?php
		} else {

			foreach ( $this->getEntries() as $entry ) :

				$this->setCurrentEntry( $entry );

				// Add `alt` class to alternate rows
				$alt = empty( $alt ) ? 'alt' : '';

				/**
				 * Modify the class applied to the entry row.
				 *
				 * @param string $alt Existing class. Default: if odd row, `alt`, otherwise empty string.
				 * @param array $entry Current entry being displayed
				 * @param \GravityView_View $this Current GravityView_View object
				 */
				$class = apply_filters( 'gravityview_entry_class', $alt, $entry, $this );
				?>
				<tr<?php echo ' class="' . esc_attr( $class ) . '"'; ?>>
				<?php
                    /**
        			 * while rendering each entry in the loop. Can be used to insert additional table cells.
        			 *
        			 * @since 1.0.7
        			 * @param \GravityView_View $this Current GravityView_View object
        			 */
					do_action( 'gravityview_table_cells_before', $this );

					$this->renderZone(
                        'columns',
                        array(
							'markup'     => '<td id="{{ field_id }}" class="{{class}}">{{value}}</td>',
							'hide_empty' => false, // Always show <td>
                        )
                    );

                    /**
        			 * @action gravityview_table_cells_after Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells.
        			 *
        			 * @since 1.0.7
        			 *
        			 * @param \GravityView_View $this Current GravityView_View object
        			 */
					do_action( 'gravityview_table_cells_after', $this );
				?>
				</tr>
				<?php
			endforeach;

		}

		/**
		 * Inside the `tbody`, after all rows are rendered. Can be used to insert additional rows.
		 *
		 * @since 1.0.7
		 */
		do_action( 'gravityview_table_body_after', $this );
		?>
	</tbody>
© 2025 XylotrechusZ