9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
18 if ( $gravityview->entry->is_multi() ) {
19 $entry = $gravityview->entry->from_field( $gravityview->field );
22 $entry = $gravityview->entry->as_entry();
29 if ( ! class_exists(
'GravityView_Duplicate_Entry' ) ) {
gravityview_get_link( $href='', $anchor_text='', $atts=array())
Generate an HTML anchor tag with a list of supported attributes.
if(! class_exists( 'GravityView_Duplicate_Entry')) if(! GravityView_Duplicate_Entry::check_user_cap_duplicate_entry( $entry, $field_settings, $gravityview->view->ID)) $link_text
static check_user_cap_duplicate_entry( $entry, $field=array(), $view_id=0)
checks if user has permissions to view the link or duplicate a specific entry
static get_duplicate_link( $entry, $view_id, $post_id=null)
Generate a nonce link with the base URL of the current View embed.
static get_confirm_dialog()
Get the onclick attribute for the confirm dialogs that warns users before they duplicate an entry...
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()
static get( $array, $key, $default=null)
Grab a value from an array or an object or default.
gravityview()
The main GravityView wrapper function.