wordpress/wp-content/themes/basic/themify/themify-admin.php
/**
 * Outputs Image Script module in theme settings.
 */
Outputs Image Script module in theme settings.
Outputs Image Script module in theme settings .
function themify_img_settings( $data = array() ) {
	$feature_sizes = themify_get_image_sizes_list();
	$checked_use = '';
	if (themify_is_image_script_disabled() ) {
		$checked_use = "checked='checked'";
	}
	$size = themify_get( 'setting-img_php_base_size', 'large',true );
	$global = themify_get( 'setting-global_feature_size','',true );
	$output = '
	<div class="module">
		<div class="themify-info-link">' . sprintf( __( 'The image script is used to generate featured images dynamically in any dimension. If your images are cropped manually, disable it for faster performance. For more info about the image script, refer to the <a href="%s">Image Script</a> documentation.', 'themify' ), 'https://themify.me/docs/image-script' ) . '
		</div>
		<fieldset>
		<div class="label">' . __( 'Disable', 'themify' ) .themify_help(__( 'Default WordPress image sizes or original images will be used.', 'themify' )) . '</div> 
		<div class="row">
			<label for="setting-img_settings_use"><input type="checkbox" id="setting-img_settings_use" name="setting-img_settings_use" class="disable_img_php" ' . $checked_use . '/> ' . __( 'Disable image script globally', 'themify' ) . '</label>
		</div>
		<div class="show_if_enabled_img_php">
			<div class="label">' . __('Base Image Size', 'themify') .themify_help(__( 'Select the image size that image script will resize thumbnails from. If you\'re not sure, leave it as "Large".', 'themify' )) . '</div>
			<div class="row">
				<select name="setting-img_php_base_size">';
					foreach ( $feature_sizes as $option ) {
					    $selected = $option['value'] === $size?' selected="selected"':'';
					    $output .= '<option'.$selected.' value="' . esc_attr( $option['value'] ) . '">' . $option['name'] . '</option>';
					}
					$output .= '
				</select>
			</div>
		</div>
		<div class="show_if_disabled_img_php">
			<div class="label">' . __('Default Featured Image Size', 'themify') . '</div>
			<div class="show_if_disabled_img_php row">
				<select name="setting-global_feature_size">';
					foreach ( $feature_sizes as $option ) {
						$selected = $option['value'] === $global?' selected="selected"':'';
						$output .= '<option'. $selected.' value="' . esc_attr( $option['value'] ) . '">' . $option['name'] . '</option>';
					}
					$output .= '
				</select>
			</div>
		</div>
		</fieldset>
	</div>';
	return $output;
}
function themify_img_settings ( $ data = array ( ) ) { $ feature_sizes = themify_get_image_sizes_list ( ) ; $ checked_use = '' ; if ( themify_is_image_script_disabled ( ) ) { $ checked_use = " checked='checked' " ; } $ size = themify_get ( 'setting-img_php_base_size' , 'large' , true ) ; $ global = themify_get ( 'setting-global_feature_size' , '' , true ) ; $ output = '
	<div class="module">
		<div class="themify-info-link">' . sprintf ( __ ( 'The image script is used to generate featured images dynamically in any dimension. If your images are cropped manually, disable it for faster performance. For more info about the image script, refer to the <a href="%s">Image Script</a> documentation.' , 'themify' ) , 'https://themify.me/docs/image-script' ) . '
		</div>
		<fieldset>
		<div class="label">' . __ ( 'Disable' , 'themify' ) . themify_help ( __ ( 'Default WordPress image sizes or original images will be used.' , 'themify' ) ) . '</div> 
		<div class="row">
			<label for="setting-img_settings_use"><input type="checkbox" id="setting-img_settings_use" name="setting-img_settings_use" class="disable_img_php" ' . $ checked_use . '/> ' . __ ( 'Disable image script globally' , 'themify' ) . '</label>
		</div>
		<div class="show_if_enabled_img_php">
			<div class="label">' . __ ( 'Base Image Size' , 'themify' ) . themify_help ( __ ( 'Select the image size that image script will resize thumbnails from. If you\'re not sure, leave it as "Large".' , 'themify' ) ) . '</div>
			<div class="row">
				<select name="setting-img_php_base_size">' ; foreach ( $ feature_sizes as $ option ) { $ selected = $ option [ 'value' ] === $ size ? ' selected="selected"' : '' ; $ output .= '<option' . $ selected . ' value="' . esc_attr ( $ option [ 'value' ] ) . '">' . $ option [ 'name' ] . '</option>' ; } $ output .= '
				</select>
			</div>
		</div>
		<div class="show_if_disabled_img_php">
			<div class="label">' . __ ( 'Default Featured Image Size' , 'themify' ) . '</div>
			<div class="show_if_disabled_img_php row">
				<select name="setting-global_feature_size">' ; foreach ( $ feature_sizes as $ option ) { $ selected = $ option [ 'value' ] === $ global ? ' selected="selected"' : '' ; $ output .= '<option' . $ selected . ' value="' . esc_attr ( $ option [ 'value' ] ) . '">' . $ option [ 'name' ] . '</option>' ; } $ output .= '
				</select>
			</div>
		</div>
		</fieldset>
		
	</div>' ; return $ output ; }
Outputs Image Script module in theme settings.
Outputs Image Script module in theme settings .