wordpress/wp-content/themes/basic/themify/themify-utils.php
/**
	 * Post Gallery lightbox/fullscreen and single lightbox definition
	 * @return array Lightbox/Fullscreen galleries initialization parameters
	 */
Post Gallery lightbox/fullscreen and single lightbox definition
@return array Lightbox/Fullscreen galleries initialization parameters
Post Gallery lightbox / fullscreen and single lightbox definition @return array Lightbox / Fullscreen galleries initialization parameters
function themify_lightbox_vars_init(){
		$gallery_lightbox = themify_get('setting-gallery_lightbox','lightbox',true);
		$overlay_args = array();
		if(themify_check('setting-lightbox_content_images',true)){
		    $overlay_args['contentImagesAreas']='.post, .type-page, .type-highlight, .type-slider';
		}
        if(themify_check('setting-lightbox_disable_share',true)){
            $overlay_args['disable_sharing']=true;
        }
		if ( $gallery_lightbox === 'none' ) {
			$overlay_args['gallerySelector'] = '';
		}
		$overlay_args = apply_filters('themify_gallery_plugins_args', $overlay_args);
		if(isset($overlay_args['contentImagesAreas'])){
		    $overlay_args['contentImagesAreas'] = trim( $overlay_args['contentImagesAreas'], ',' );
		}
		$overlay_args['i18n'] = array(
			'tCounter' => __( '%curr% of %total%', 'themify' ),
		);
		return $overlay_args;
	}
function themify_lightbox_vars_init ( ) { $ gallery_lightbox = themify_get ( 'setting-gallery_lightbox' , 'lightbox' , true ) ; $ overlay_args = array ( ) ; if ( themify_check ( 'setting-lightbox_content_images' , true ) ) { $ overlay_args [ 'contentImagesAreas' ] = '.post, .type-page, .type-highlight, .type-slider' ; } if ( themify_check ( 'setting-lightbox_disable_share' , true ) ) { $ overlay_args [ 'disable_sharing' ] = true ; } if ( $ gallery_lightbox === 'none' ) { $ overlay_args [ 'gallerySelector' ] = '' ; } $ overlay_args = apply_filters ( 'themify_gallery_plugins_args' , $ overlay_args ) ; if ( isset ( $ overlay_args [ 'contentImagesAreas' ] ) ) { $ overlay_args [ 'contentImagesAreas' ] = trim ( $ overlay_args [ 'contentImagesAreas' ] , ',' ) ; } $ overlay_args [ 'i18n' ] = array ( 'tCounter' => __ ( '%curr% of %total%' , 'themify' ) , ) ; return $ overlay_args ; }
Post Gallery lightbox/fullscreen and single lightbox definition
 @return array Lightbox/Fullscreen galleries initialization parameters
Post Gallery lightbox / fullscreen and single lightbox definition @return array Lightbox / Fullscreen galleries initialization parameters
// Lightbox default settings // sanitize contentImagesAreas, ensure it's a valid CSS selector