9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
18 if ( empty(
$value ) ) {
return; }
20 if ( ! class_exists(
'GFSignature' ) ) {
21 gravityview()->log->error(
'[fields/signature.php] GFSignature not loaded.' );
26 'src' => GFSignature::get_instance()->get_signature_url(
$value ),
27 'width' => \
GV\Utils::_GET(
'boxWidth', \
GV\Utils::get(
$field,
'boxWidth', 300 ) ),
29 'validate_src' =>
false,
Generic class for generating image tag.
if(empty( $value)) if(! class_exists( 'GFSignature')) $image_atts
if(! isset( $gravityview)||empty( $gravityview->template)) $field
The default signature field output template.
gravityview()
The main GravityView wrapper function.