wordpress/wp-content/themes/basic/themify/themify-admin.php
/**
 * Outputs module for user to select whether to use a lightbox or not. The lightbox choices can be filtered using the 'themify_lightbox_module_options' filter in a custom-functions.php file.
 * @param array $data
 * @return string
 * @since 1.2.5
 */
Outputs module for user to select whether to use a lightbox or not. The lightbox choices can be filtered using the 'themify_lightbox_module_options' filter in a custom-functions.php file.
@param array $data
@return string
@since 1.2.5
Outputs module for user to select whether to use a lightbox or not . The lightbox choices can be filtered using the ' themify_lightbox_module_options ' filter in a custom - functions . php file . @param array $data @return string @since 1 . 2 . 5
function themify_gallery_plugins( $data = array() ) {
	$display_options = apply_filters('themify_lightbox_module_options', array(
		__( 'Enable', 'themify' ) => 'lightbox',
		__( 'Disable', 'themify' ) => 'none'
	));
	$gallery_lightbox = themify_get( 'setting-gallery_lightbox',null,true );
	$out = '<p>
				<span class="label">' . __( 'WordPress Gallery', 'themify' ) . ' </span>
				<select class="gallery_lightbox_type" name="setting-gallery_lightbox">';
				foreach ( $display_options as $option => $value ) {
					$out .= '<option value="' . $value . '" '.selected( $value, $gallery_lightbox, false ).'>' . esc_html( $option ) . '</option>';
				}
	$out .= '	</select>
			</p>';
    $out .= '<p>
				<span class="pushlabel"><label for="setting-lightbox_disable_share">
					<input type="checkbox" id="setting-lightbox_disable_share" name="setting-lightbox_disable_share" '. checked( themify_get( 'setting-lightbox_disable_share',false,true ), 'on', false ) .'/> ' . __('Hide social share buttons on lightbox', 'themify') . '</label>
				</span>
			</p>';
	$out .= '<p>
				<span class="pushlabel"><label for="setting-lightbox_content_images">
					<input type="checkbox" id="setting-lightbox_content_images" name="setting-lightbox_content_images" '. checked( themify_get( 'setting-lightbox_content_images',false,true ), 'on', false ) .'/> ' . __('Apply lightbox to image links automatically', 'themify') . '</label>
				</span>
				<small class="pushlabel">'. __( 'All links to jpg, png, and gif will open in lightbox.', 'themify' ) .'</small>
			</p>';
	return $out;
}
function themify_gallery_plugins ( $ data = array ( ) ) { $ display_options = apply_filters ( 'themify_lightbox_module_options' , array ( __ ( 'Enable' , 'themify' ) => 'lightbox' , __ ( 'Disable' , 'themify' ) => 'none' ) ) ; $ gallery_lightbox = themify_get ( 'setting-gallery_lightbox' , null , true ) ; $ out = '<p>
				<span class="label">' . __ ( 'WordPress Gallery' , 'themify' ) . ' </span>
				<select class="gallery_lightbox_type" name="setting-gallery_lightbox">' ; foreach ( $ display_options as $ option => $ value ) { $ out .= '<option value="' . $ value . '" ' . selected ( $ value , $ gallery_lightbox , false ) . '>' . esc_html ( $ option ) . '</option>' ; } $ out .= '	</select>
			</p>' ; $ out .= '<p>
				<span class="pushlabel"><label for="setting-lightbox_disable_share">
					<input type="checkbox" id="setting-lightbox_disable_share" name="setting-lightbox_disable_share" ' . checked ( themify_get ( 'setting-lightbox_disable_share' , false , true ) , 'on' , false ) . '/> ' . __ ( 'Hide social share buttons on lightbox' , 'themify' ) . '</label>
				</span>
			</p>' ; $ out .= '<p>
				<span class="pushlabel"><label for="setting-lightbox_content_images">
					<input type="checkbox" id="setting-lightbox_content_images" name="setting-lightbox_content_images" ' . checked ( themify_get ( 'setting-lightbox_content_images' , false , true ) , 'on' , false ) . '/> ' . __ ( 'Apply lightbox to image links automatically' , 'themify' ) . '</label>
				</span>
				<small class="pushlabel">' . __ ( 'All links to jpg, png, and gif will open in lightbox.' , 'themify' ) . '</small>
			</p>' ; return $ out ; }
Outputs module for user to select whether to use a lightbox or not.
Outputs module for user to select whether to use a lightbox or not .