HEX
Server: LiteSpeed
System: Linux dal1.hostclusters.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User: vslw (1496)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/vslw/public_html/wp-content/plugins/penci-shortcodes/inc/penci_video.php
<?php
/* ------------------------------------------------------- */
/* Video
/* ------------------------------------------------------- */
if ( ! function_exists( 'penci_penci_video_shortcode' ) ) {
	function penci_penci_video_shortcode( $atts, $content ) {
		extract( shortcode_atts( array(
			'width' => '500',
			'align' => 'center',
			'url' => ''
		), $atts ) );

		$return = '';
		if( ! $width || ! is_numeric($width) ): $width = '500'; endif;
		if( ! in_array( $align, array( 'left', 'right', 'center' ) ) ): $align = 'center'; endif;
		global $wp_embed;
		
		$return = '<div class="penci_video_shortcode video-align-'. $align .'" style="max-width: '. $width .'px">'. $wp_embed->run_shortcode('[embed]'. $url .'[/embed]') .'</div>';

		return $return;
	}
}