HEX
Server: nginx/1.18.0
System: Linux iZj6c1ieg2jrpk1z5tzi19Z 6.3.9-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 21 22:18:40 EDT 2023 x86_64
User: www (1001)
PHP: 8.2.4
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.cytocare.cn/wp-content/plugins/gwolle-gb/functions/gb-single-view.php
<?php


if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly



/*
 * Give a single view of the entry.
 * Uses the template 'gwolle_gb-entry.php', either in the themedir or the plugin.
 *
 * @param object $entry instance of the class gb_entry.
 * @param bool $first if it is the first entry in the list
 * @param int $counter the number in the list.
 * @return string with html formatted entry.
 *
 * @since 2.3.0
 */
function gwolle_gb_single_view( $entry, $first = false, $counter = 0 ) {

	// Try to load and require_once the template from the themes folders.
	if ( locate_template( array( 'gwolle_gb-entry.php' ), true, true ) === '') {

		$output = '<!-- Gwolle-GB Entry: Default Template Loaded -->
			';

		// No template found and loaded in the theme folders.
		// Load the template from the plugin folder.
		require_once GWOLLE_GB_DIR . '/frontend/gwolle_gb-entry.php';

	} else {

		$output = '<!-- Gwolle-GB Entry: Custom Template Loaded -->
			';

	}

	// Run the function from the template to get the entry.
	$entry_output = gwolle_gb_entry_template( $entry, $first, $counter );

	// Add a filter for each entry, so devs can add or remove parts.
	$output .= apply_filters( 'gwolle_gb_entry_read', $entry_output, $entry );

	return $output;

}