/**
  * Enable the merge tags functionality
  *
  * @since 1.6
  */
 function admin_enqueue_scripts()
 {
     global $pagenow;
     if ($pagenow === 'widgets.php') {
         $script_debug = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
         GravityView_Admin_Views::enqueue_gravity_forms_scripts();
         wp_enqueue_script('gravityview_widgets', plugins_url('assets/js/admin-widgets' . $script_debug . '.js', GRAVITYVIEW_FILE), array('jquery', 'gform_gravityforms'), GravityView_Plugin::version);
         wp_localize_script('gravityview_widgets', 'GVWidgets', array('nonce' => wp_create_nonce('gravityview_ajax_widget')));
         wp_enqueue_style('gravityview_views_styles', plugins_url('assets/css/admin-views.css', GRAVITYVIEW_FILE), array('dashicons'), GravityView_Plugin::version);
     }
 }
 /**
  * Generate the title for Data Source, which includes the Action Links once configured.
  *
  * @since 1.8
  *
  * @param int $post_id ID of the current post
  *
  * @return string "Data Source", plus links if any
  */
 private function get_data_source_header($post_id)
 {
     //current value
     $current_form = gravityview_get_form_id($post_id);
     $links = GravityView_Admin_Views::get_connected_form_links($current_form, false);
     if (!empty($links)) {
         $links = '<span class="alignright gv-form-links">' . $links . '</span>';
     }
     return __('Data Source', 'gravityview') . $links;
 }