HEX
Server: nginx/1.16.1
System: Linux VM-0-14-centos 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User: www (1000)
PHP: 8.3.31
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.sceybwg.com/wp-content/themes/Modular/template/module-page/theme-video.php
<?php
/**
 * Template: 视频
 * @Author: 大胡子
 * @Email:  dahuzi@xintheme.com
 * @Link:   www.xintheme.com
 * @Date:   2023-08-01 07:27:28
 * @Last Modified by:   dahuzi
 * @Last Modified time: 2024-04-20 20:23:32
 */
?>
<div class="section video-wrapper<?php if (!empty($module_content['video_transition'])) { echo ' video-transition';}?>">
	<div class="container">
		<?php
		if( !empty($module_setting['title_display']) ){?>
		<div class="section-title <?php echo $wow_style;?><?php if( !empty($module_setting['module_bg']) ){ echo ' text-colour-white';}?>">
			<?php
			if( !empty($module_title) ){
				echo '<strong>'.$module_title.'</strong>';
			}
			if( !empty($module_desc) ){
				echo '<p>'.$module_desc.'</p>';
			}
			?>
		</div>
		<?php }

		//限制视频高度
		$video_h_pc = $module_content['video_pc_h'] ? '--video_h_pc:'.$module_content['video_pc_h'].'px;' : '--video_h_pc:auto;';
		$video_h_mb = $module_content['video_mb_h'] ? '--video_h_mb:'.$module_content['video_mb_h'].'px;' : '--video_h_mb:auto;';
		$video_h = 'style="'.$video_h_pc.$video_h_mb.'"';
		?>
		<div class="video-box <?php echo $wow_style;?>" <?php echo $video_h;?>>
			<video 
				<?php 
				if (!empty($module_content['video_url'])) {
					echo 'src="'.esc_url($module_content['video_url']).'" ';
				}
				?>
				preload="none" 
				loop 
				muted 
				playsinline 
				<?php 
				// 设置视频封面图(poster)
				if (!empty($module_content['video_bg'])) {
					echo 'poster="'.esc_url($module_content['video_bg']).'" ';
				}
				// 设置自动播放(autoplay)
				if (!empty($module_content['video_autoplay'])) {
					echo 'autoplay ';
				}
				?>
			></video>
			<?php 
			if (!empty($module_content['video_url'])) {
				echo '<div class="video-fancybox">';
				echo '<a data-fancybox href="'.esc_url($module_content['video_url']).'">';
				echo '<i class="ri-play-large-line"></i>';
				echo '</a>';
				echo '</div>';
			}
			?>
		</div>
	</div>
</div>

<?php
//echo wpjam_print_r( $module_setting );
//echo wpjam_print_r( $module_content );
//echo wpjam_print_r( $module_style );