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

defined( 'ABSPATH' ) || exit;

/**
 * Attachment/photos mods
 *
 * @param array $mods Array of mods.
 * @return array
 */
function deadlift_set_attachment_mods( $mods ) {

	if ( class_exists( 'Wolf_Photos' ) ) {
		$mods['photos'] = array(
			'priority' => 45,
			'id'       => 'photos',
			'title'    => esc_html__( 'Stock Photos', 'deadlift' ),
			'icon'     => 'camera',
			'options'  => array(

				'attachment_layout'                  => array(
					'id'        => 'attachment_layout',
					'label'     => esc_html__( 'Layout', 'deadlift' ),
					'type'      => 'select',
					'choices'   => array(
						'standard'  => esc_html__( 'Standard', 'deadlift' ),
						'fullwidth' => esc_html__( 'Full width', 'deadlift' ),
					),
					'transport' => 'postMessage',
				),

				'attachment_display'                 => array(
					'id'      => 'attachment_display',
					'label'   => esc_html__( 'Photos Display', 'deadlift' ),
					'type'    => 'select',
					'choices' => apply_filters(
						'deadlift_attachment_display_options',
						array(
							'grid' => esc_html__( 'Grid', 'deadlift' ),
						)
					),
				),

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

				'attachment_author'                  => array(
					'id'    => 'attachment_author',
					'label' => esc_html__( 'Display Author on Single Page', 'deadlift' ),
					'type'  => 'checkbox',
				),

				'attachment_likes'                   => array(
					'id'    => 'attachment_likes',
					'label' => esc_html__( 'Display Likes', 'deadlift' ),
					'type'  => 'checkbox',
				),

				'attachment_multiple_sizes_download' => array(
					'id'    => 'attachment_multiple_sizes_download',
					'label' => esc_html__( 'Allow multiple sizes options for downloadable photos.', 'deadlift' ),
					'type'  => 'checkbox',
				),

				'attachments_per_page'               => array(
					'label' => esc_html__( 'Photos per Page', 'deadlift' ),
					'id'    => 'attachments_per_page',
					'type'  => 'text',
				),

				'attachments_pagination'             => array(
					'id'        => 'attachments_pagination',
					'label'     => esc_html__( 'Pagination Type', 'deadlift' ),
					'type'      => 'select',
					'choices'   => array(
						'infinitescroll' => esc_html__( 'Infinite Scroll', 'deadlift' ),
						'numbers'        => esc_html__( 'Numbers', 'deadlift' ),
					),
					'transport' => 'postMessage',
				),
			),
		);
	}

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