';
// just in case. You never know.
if ( ! isset( $arrNum ) ) {
$this->value = '';
}
// Set the default image. To get the url from the default name,
// we save the array count from the for/each loop, when the default image
// is mark as selected. Since the for/each loop starts at one, we must
// substract one from the saved array number. We then pull the url
// out of the options array, and there we go.
if ( '' == $this->value ) {
echo '

';
} else {
echo '

';
}
// Close the
tag.
echo '
';
} else {
// No options specified. Really?
echo '
' . __( 'No items of this type were found.', 'ascend' ) . '';
}
} //function
/**
* Enqueue Function.
* If this field requires any scripts, or css define this function and register/enqueue the scripts/css
*
* @since ReduxFramework 1.0.0
*/
function enqueue() {
wp_enqueue_style( 'select2-css' );
wp_enqueue_script(
'field-select-image-js',
ReduxFramework::$_url . 'inc/fields/select_image/field_select_image' . Redux_Functions::isMin() . '.js',
array('jquery', 'select2-js', 'redux-js'),
time(),
true
);
if ($this->parent->args['dev_mode']) {
wp_enqueue_style(
'redux-field-select-image-css',
ReduxFramework::$_url . 'inc/fields/select_image/field_select_image.css',
array(),
time(),
'all'
);
}
} //function
} //class
}