Here is copy of the code from the file adapter.nextgen_pro_album_form.php
<?php
/*
* This form is meant to be extended by each album type, it provides defaults for common settings
*/
class A_NextGen_Pro_Album_Form extends Mixin_Display_Type_Form
{
/**
* Enqueues static resources required by this form
*/
function enqueue_static_resources()
{
wp_enqueue_script(
'nextgen_pro_albums_settings_script',
$this->object->get_static_url('photocrati-nextgen_pro_albums#settings.js'),
array('jquery.nextgen_radio_toggle')
);
$atp = $this->object->get_registry()->get_utility('I_Attach_To_Post_Controller');
if ($atp != null && $atp->has_method('mark_script')) {
$atp->mark_script('nextgen_pro_albums_settings_script');
}
}
/**
* Returns a list of fields to render on the settings page
*/
function _get_field_names()
{
return array(
'thumbnail_override_settings',
'nextgen_pro_albums_display_type',
'nextgen_pro_albums_caption_color',
'nextgen_pro_albums_caption_size',
'nextgen_pro_albums_border_color',
'nextgen_pro_albums_border_size',
'nextgen_pro_albums_background_color',
'nextgen_pro_albums_padding',
'nextgen_pro_albums_spacing'
);
}
/*
* Let users choose which display type galleries inside albums use
*/
function _render_nextgen_pro_albums_display_type_field($display_type)
{
$mapper = $this->object->get_registry()->get_utility('I_Display_Type_Mapper');
$types = array();
foreach ($mapper->find_by_entity_type('image') as $dt) {
$types[$dt->name] = $dt->title;
}
return $this->_render_select_field(
$display_type,
'gallery_display_type',
'Display galleries as',
$types,
$display_type->settings['gallery_display_type'],
'How would you like galleries to be displayed?'
);
}
function _render_nextgen_pro_albums_caption_color_field($display_type)
{
return $this->_render_color_field(
$display_type,
'caption_color',
'Caption color',
$display_type->settings['caption_color']
);
}
function _render_nextgen_pro_albums_caption_size_field($display_type)
{
return $this->_render_number_field(
$display_type,
'caption_size',
'Caption size',
$display_type->settings['caption_size'],
'',
FALSE,
'',
0
);
[Moderator Note: Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code may now have been permanently damaged by the forum’s parser.]