9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
15 $form = $gravityview->view->form->form;
16 $entry = $gravityview->entry->as_entry();
32 $link =
'mailto:'.$value;
39 $subject = wp_strip_all_tags( trim( do_shortcode( $subject ) ) );
41 $params[] =
'subject='.str_replace(
'+',
'%20', urlencode( $subject ) );
49 $body = wp_strip_all_tags( trim( do_shortcode( $body ) ) );
51 $params[] =
'body='.str_replace(
'+',
'%20', urlencode( $body ) );
55 if ( !empty( $params) ) {
56 $link .=
'?'.implode(
'&', $params );
73 $prevent_encrypt = apply_filters(
'gravityview_email_prevent_encrypt',
false, $gravityview );
static js_encrypt( $content, $message='')
Encrypt content using Javascript so that it's hidden when JS is disabled.
gravityview_get_link( $href='', $anchor_text='', $atts=array())
Generate an HTML anchor tag with a list of supported attributes.
if( $add_query_args) $link
if(! isset( $gravityview)||empty( $gravityview->template)) $value
The default email field output template.
static replace_variables( $text, $form=array(), $entry=array(), $url_encode=false, $esc_html=true, $nl2br=true, $format='html', $aux_data=array())
Alias for GravityView_Merge_Tags::replace_variables()
if(empty( $value)) $output
gravityview()
The main GravityView wrapper function.