Current File : /home/kelaby89/muzza.fit/wp-content/themes/deadlift/inc/customizer/mods/videos.php
<?php
/**
 * Deadlift videos
 *
 * @package WordPress
 * @subpackage Deadlift
 * @version 1.8.2
 */

defined( 'ABSPATH' ) || exit;

/**
 * Video mods
 *
 * @param array $mods Array of mods.
 * @return array
 */
function deadlift_set_video_mods( $mods ) {

	if ( class_exists( 'Wolf_Videos' ) ) {
		$mods['wolf_videos'] = array(
			'id'      => 'wolf_videos',
			'title'   => esc_html__( 'Videos', 'deadlift' ),
			'icon'    => 'editor-video',
			'options' => array(

				'video_layout'         => array(
					'id'          => 'video_layout',
					'label'       => esc_html__( 'Layout', 'deadlift' ),
					'type'        => 'select',
					'choices'     => array(
						'standard'      => esc_html__( 'Standard', 'deadlift' ),
						'fullwidth'     => esc_html__( 'Full width', 'deadlift' ),
						'sidebar-right' => esc_html__( 'Sidebar at right', 'deadlift' ),
						'sidebar-left'  => esc_html__( 'Sidebar at left', 'deadlift' ),
					),
					'description' => esc_html__( 'For "Sidebar" layouts, the sidebar will be visible if it contains widgets.', 'deadlift' ),
				),

				'video_grid_padding'   => array(
					'id'        => 'video_grid_padding',
					'label'     => esc_html__( 'Padding', 'deadlift' ),
					'type'      => 'select',
					'choices'   => array(
						'yes' => esc_html__( 'Yes', 'deadlift' ),
						'no'  => esc_html__( 'No', 'deadlift' ),
					),
					'transport' => 'postMessage',
				),

				'video_display'        => array(
					'id'      => 'video_display',
					'label'   => esc_html__( 'Display', 'deadlift' ),
					'type'    => 'select',
					/**
					 * Filters video post display options
					 *
					 * @since 1.0.0
					 */
					'choices' => apply_filters(
						'deadlift_video_display_options',
						array(
							'grid' => esc_html__( 'Grid', 'deadlift' ),
						)
					),
				),

				'video_item_animation' => array(
					'label'   => esc_html__( 'Video Archive Item Animation', 'deadlift' ),
					'id'      => 'video_item_animation',
					'type'    => 'select',
					'choices' => deadlift_get_animations(),
				),

				'video_onclick'        => array(
					'label'   => esc_html__( 'On Click', 'deadlift' ),
					'id'      => 'video_onclick',
					'type'    => 'select',
					/**
					 * Filters video "on click" option
					 *
					 * @since 1.0.0
					 */
					'choices' => apply_filters(
						'deadlift_video_onclick',
						array(
							'lightbox' => esc_html__( 'Open Video in Lightbox', 'deadlift' ),
							'default'  => esc_html__( 'Go to the Video Page', 'deadlift' ),
						)
					),
				),

				'video_pagination'     => array(
					'id'          => 'video_pagination',
					'label'       => esc_html__( 'Video Archive Pagination', 'deadlift' ),
					'type'        => 'select',
					'choices'     => array(
						'none'                => esc_html__( 'None', 'deadlift' ),
						'standard_pagination' => esc_html__( 'Numeric Pagination', 'deadlift' ),
						'load_more'           => esc_html__( 'Load More Button', 'deadlift' ),
					),
				),

				'videos_per_page'      => array(
					'label'       => esc_html__( 'Videos per Page', 'deadlift' ),
					'id'          => 'videos_per_page',
					'type'        => 'text',
					'placeholder' => 6,
				),

				'video_single_layout'  => array(
					'id'      => 'video_single_layout',
					'label'   => esc_html__( 'Single Post Layout', 'deadlift' ),
					'type'    => 'select',
					'choices' => array(
						'sidebar-right' => esc_html__( 'Sidebar Right', 'deadlift' ),
						'sidebar-left'  => esc_html__( 'Sidebar Left', 'deadlift' ),
						'no-sidebar'    => esc_html__( 'No Sidebar', 'deadlift' ),
						'fullwidth'     => esc_html__( 'Full width', 'deadlift' ),
					),
				),

				/*
				'video_columns' => [
					'id' => 'video_columns',
					'label' => esc_html__( 'Columns', 'deadlift' ),
					'type' => 'select',
					'choices' => [
						3 => 3,
						2 => 2,
						4 => 4,
						5 => 5,
						6 => 6,
					),
					'transport' => 'postMessage',
				),*/
			),
		);
	}

	return $mods;
}
add_filter( 'deadlift_customizer_mods', 'deadlift_set_video_mods' );
Page not found – Hello World !