Plugin Directory

Changeset 2691726


Ignore:
Timestamp:
03/10/2022 12:06:34 AM (4 years ago)
Author:
simpleform
Message:

fix: database and JavaScript errors
fix: failure to display the last message when entries have been moved
fix: error when form submission is executed via AJAX
refactor: reorganization of the editor page and the form page
feat: display of the number of moved messages in the entries page

Location:
simpleform
Files:
69 added
18 edited

Legend:

Unmodified
Added
Removed
  • simpleform/trunk/README.txt

    r2689161 r2691726  
    77Tested up to: 5.9
    88Requires PHP: 5.6
    9 Stable tag: 2.1.4
     9Stable tag: 2.1.5
    1010License: GPLv2 or later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    159159
    160160== Changelog ==
     161
     162= 2.1.5 (10 March 2022) =
     163* Fixed: database errors
     164* Fixed: JavaScript errors
     165* Fixed: failure to display the last message when entries have been moved
     166* Fixed: error when form submission is executed via AJAX
     167* Changed: reorganization of the editor page and the form page
     168* Added: display of the number of moved messages in the entries page
    161169
    162170= 2.1.4 (5 March 2022) =
  • simpleform/trunk/admin/class-admin.php

    r2689161 r2691726  
    13701370        global $wpdb;
    13711371        $submission_table = "{$wpdb->prefix}sform_submissions";   
    1372        
    13731372        $where_submissions = defined('SIMPLEFORM_SUBMISSIONS_NAME') ? "AND object != '' AND object != 'not stored'" : '';
    1374 
    13751373        $entries = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = '$form_id' $where_submissions");
    13761374        $confirmation = isset($_POST['confirmation']) ? sanitize_text_field($_POST['confirmation']) : '';
    1377         $hidden_input = '<input type="hidden" id="confirmation" name="confirmation" value="true">
    1378 ';
    1379         $entries_message = sprintf( _n( 'The form contains %s message.', 'The form contains %s messages.', $entries ), $entries ) . '&nbsp;' .
    1380        
    1381        //  __( 'Proceeding with the deletion all messages will also be deleted, and can no longer be restored.', 'simpleform' )
    1382          __( 'By Proceeding, all messages will be moved to trash, and hidden from list tables.', 'simpleform' ) . '&nbsp;' . __( 'If it is permanently deleted, all messages will also be permanently deleted.', 'simpleform' ) . '&nbsp;' . __( 'Are you sure you don’t want to move them to another form first?', 'simpleform' );       
     1375        $hidden_input = '<input type="hidden" id="confirmation" name="confirmation" value="true">';
     1376        $entries_message = sprintf( _n( 'The form contains %s message.', 'The form contains %s messages.', $entries ), $entries ) . '&nbsp;' . __( 'By Proceeding, all messages will be hidden from list tables.', 'simpleform' ) . '&nbsp;' . __( 'If it is permanently deleted, all messages will also be permanently deleted.', 'simpleform' ) . '&nbsp;' . __( 'Are you sure you don’t want to move them to another form first?', 'simpleform' );       
    13831377       
    13841378        if ( $entries && $confirmation == '' ) {
     
    13901384       
    13911385        $table_post = $wpdb->prefix . 'posts';
    1392         // $pages_list = $wpdb->get_var( "SELECT pages FROM {$table} WHERE id = {$form_id}" );
    1393         // $shortcode_pages_list = $wpdb->get_var( "SELECT shortcode_pages FROM {$wpdb->prefix}sform_shortcodes WHERE id = {$form_id}" );
    1394         // $block_pages_list = $wpdb->get_var( "SELECT block_pages FROM {$wpdb->prefix}sform_shortcodes WHERE id = {$form_id}" );
    1395 
    1396 
    13971386        $form_pages_list = $wpdb->get_var( "SELECT form_pages FROM {$wpdb->prefix}sform_shortcodes WHERE id = {$form_id}" );
    1398 
    1399 
    14001387        $widget = $wpdb->get_var( "SELECT widget FROM {$wpdb->prefix}sform_shortcodes WHERE id = {$form_id} AND widget != 0" );
    14011388        $widget_id = $wpdb->get_var( "SELECT widget_id FROM {$wpdb->prefix}sform_shortcodes WHERE id = {$form_id}" );
    1402         // $pages = $pages_list ? explode(',',$pages_list) : array();
    1403         // $shortcode_pages = $shortcode_pages_list ? explode(',',$shortcode_pages_list) : array();
    1404         // $block_pages = $block_pages_list ? explode(',',$block_pages_list) : array();
    1405         // $form_pages = array_unique(array_merge($shortcode_pages,$block_pages,$pages));
    1406         // $form_pages = array_unique(array_merge($shortcode_pages,$block_pages));
    1407        
    14081389        $form_pages = $form_pages_list ? explode(',',$form_pages_list) : array();
    1409        
    1410        
    1411         // $deletion = $wpdb->query($wpdb->prepare("DELETE FROM {$table} WHERE id = '%d'", $form_id));
    14121390        $deletion = $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_shortcodes SET relocation = '0', moveto = '0', to_be_moved = '', onetime_moving = '1', previous_status = status, status = 'trash', deletion = '1' WHERE id = '%d'", $form_id) ); 
    1413            
    14141391        $img = '<span class="dashicons dashicons-saved"></span>';
    14151392       
    14161393        if ( $deletion ) {
    1417 
    14181394          $post_cleaning = '';
    1419           $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_submissions SET previous_status = status, status = 'trash', hidden = '1' WHERE form = %d", $form_id) );
    1420          
     1395          // $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_submissions SET previous_status = status, status = 'trash', hidden = '1' WHERE form = %d", $form_id) );
     1396          $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_submissions SET hidden = '1' WHERE form = %d", $form_id) );
    14211397          if ( $form_pages ) {
    14221398            foreach ($form_pages as $postID) {
     
    14531429            } 
    14541430          }
    1455          
    14561431          if ( $widget ) {
    14571432            $sform_widget = get_option('widget_sform_widget');         
     
    14711446            }
    14721447          }
    1473          
    14741448          if ( $widget_id ) {
    14751449            $widget_block = get_option('widget_block');         
     
    15111485            }
    15121486          }
    1513            
    15141487          if ( ! empty($post_cleaning) ) {
    1515              
    15161488            $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('shortcode_pages' => '', 'block_pages' => '', 'form_pages' => '', 'widget' => '0', 'widget_id' => ''), array('id' => $form_id ));
    1517 
    15181489            $message = sprintf( __( 'Form "%s" moved to trash. All pages containing the form have been cleaned up.', 'simpleform' ), $form_name );
    15191490            echo json_encode(array('error' => false, 'message' => $message, 'img' => $img, 'redirect_url' => admin_url('admin.php?page=sform-forms') ));
     
    15241495            exit;
    15251496          }
    1526 
    15271497        }
     1498       
    15281499        else {
    15291500            echo json_encode(array('error' => true, 'message' => __( 'Oops!', 'simpleform' ) .'<br>'. __( 'Error occurred deleting the form. Try again!', 'simpleform' ) ));
    15301501            exit;
    15311502        }
     1503       
    15321504        }
    15331505        die();
     
    16701642               case $to_be_moved == 'lastyear':
    16711643               $where = $where_year;
    1672                // $timestamp_year = time() - (60 * 60 * 24);
    16731644               $timestamp_msg = strtotime("-1 year");
    16741645               break;
    16751646               case $to_be_moved == 'lastmonth':
    16761647               $where = $where_month;
    1677                // $timestamp_month = time() - (60 * 60 * 24);
    16781648               $timestamp_msg = strtotime("-1 month");
    16791649               break;
    16801650               case $to_be_moved == 'lastweek':
    16811651               $where = $where_week;
    1682                // $timestamp_week = time() - (60 * 60 * 24);
    16831652               $timestamp_msg = strtotime("-1 week");
    16841653               break;
    16851654               case $to_be_moved == 'lastday':
    16861655               $where = $where_day;
    1687                // $timestamp_day = time() - (60 * 60 * 24);
    16881656               $timestamp_msg = strtotime("-1 day");
    16891657               break;
    1690                default: // All messages moved
     1658               default:
    16911659               $where = '';
    16921660               $timestamp_msg = '';
     
    16981666                       
    16991667           }
    1700            
    17011668
    17021669           else {
     
    17091676             
    17101677             if ( $to_be_moved != 'next' ) {
    1711                
    17121678               $count_all = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = '$form_id' $where_submissions");
    17131679               $count_last_day = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = '$form_id' $where_submissions $where_day");
     
    17271693               
    17281694               if ( $forms )  {
    1729                  
    17301695                 foreach($forms as $form) {
    1731                  
    17321696                   $id = $form['id'];
    17331697                   $entries = $form['entries'];
    17341698                   $moved = $form['moved_entries'];
    1735                    // $form_status = $form['status'];
    17361699                   $form_to = $form['moveto'];
    1737                    // $form_to = !empty($form['moveto']) ? $form['moveto'] : array();
    17381700                   $count_moved = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE moved_from = '$id' $where_submissions");
    17391701                   $count_entries = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = '$id' $where_submissions");
    17401702                   $update_to = $count_moved == '0' ? '0' : $form_to;
    1741                    // $update_to = $count_moved == '0' ? '' : $form_to;
    17421703                   $update_moved = $count_moved == '0' ? '0' : $count_moved;
    1743                    
    17441704                   $wpdb->update($table_shortcodes, array('entries' => $count_entries, 'moveto' => $update_to, 'moved_entries' => $update_moved ), array('id' => $id ) );
    1745                
    17461705                 }
    1747                  
    17481706               }
    1749                
    17501707               $be_moved = $onetime == false ? 'next' : '';
    17511708               $onetime = $to_be_moved == 'next' || $onetime == false ? false : true;
     
    17531710               $wpdb->update($table_shortcodes, array('relocation' => $moving_value, 'moveto' => $moveto, 'to_be_moved' => $be_moved, 'onetime_moving' => $onetime, 'entries' => $count_updated_from, 'moved_entries' => $updated_moved_entries, 'deletion' => $deletion ), array('id' => $form_id ) );
    17541711             
    1755                // Move the last message data to the new form
    1756                $last_form_message = get_option("sform_last_{$form_id}_message");
    1757                
    1758                if ( $last_form_message != false ) {
    1759                  update_option("sform_last_in_{$moveto}_message_{$form_id}", $last_form_message);
    1760                }
    1761                
    1762                // Search all last messages imported from other forms
    1763                $search_last_in = 'sform_last_in_'.$id.'_message_';
    1764                $sql_in = "SELECT option_name, option_value FROM $wpdb->options WHERE option_name LIKE '%{$search_last_in}%'";
    1765                $results_in = $wpdb->get_results( $sql_in );
    1766                if ( $results_in ) {
    1767                  $options_to_be_moved = array();
    1768                  foreach ( $results_in as $result_in ) {
    1769                    // $from = explode('_message_', $result_in->option_name)[2];
    1770                     $from = explode('_message_', $result_in->option_name)[1];
    1771                     $timestamp_in = explode('#', $result_in->option_value)[0];
    1772                    if ( $timestamp_in > $timestamp_msg ) {
    1773                       $options_to_be_moved[] = $result_in;
    1774                    }
    1775                  }
    1776                  if ( !empty($options_to_be_moved) ) { 
    1777                     foreach ( $options_to_be_moved as $option ) {
    1778                       update_option("sform_last_in_{$moveto}_message_{$form_id}_from_{$from}", $option);
    1779 
    1780                     }
    1781                  }
    1782                }
    1783                
     1712               $last_message_from = get_option("sform_last_{$form_id}_message");
     1713               $last_message_from_timestamp = $last_message_from != false ? explode('#',$last_message_from)[0] : '';
     1714               $last_message_to =  get_option("sform_last_{$moveto}_message");
     1715               $last_message_to_timestamp = $last_message_to != false ? explode('#',$last_message_to)[0] : '';
     1716               if ( $last_message_from_timestamp > $last_message_to_timestamp ) {
     1717                 update_option("sform_previous_last_{$moveto}_message", $last_message_to);
     1718                 update_option("sform_last_{$moveto}_message", $last_message_from);
     1719               }
     1720
    17841721               $message = $onetime == false ? sprintf( __( 'Messages moved to %s and successfully scheduled', 'simpleform' ), $form_to_name ) : sprintf( __( 'Messages successfully moved to %s', 'simpleform' ), $form_to_name );
    17851722
    17861723               echo json_encode(array('error' => false, 'update' => true, 'moving' => true, 'onetime' => $onetime, 'messages' => $count_updated_from, 'moved' => $updated_moved_entries, 'select' => $select, 'message' => $message ));
    17871724               exit;
    1788                  
    17891725             }
    17901726             
    17911727             else {
    1792                  
    17931728               echo json_encode(array('error' => false, 'update' => true, 'moving' => false, 'onetime' => false, 'message' => $message ));
    17941729               exit;
    1795              
    17961730             }
    17971731             
    17981732           }
     1733           
    17991734           else {
    18001735             
    18011736             if ( $to_be_moved != 'next' ) {
    1802                
    18031737               $entries = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = '$form_id' $where_submissions $where");
    1804              
    18051738               if ( $entries == '0' ) {   
    18061739                 echo json_encode(array('error' => false, 'update' => false, 'message' => __('Messages have already been moved', 'simpleform' ) ));
    18071740                 exit;
    18081741               }
    1809              
    18101742               else {
    18111743                 echo json_encode(array('error' => true, 'message' => __('Error occurred moving the messages. Try again!', 'simpleform' ) ));
    18121744                 exit;
    18131745               }
    1814                  
    18151746             }
    18161747             
    18171748             else {
    1818 
    18191749               $to_be_moved = esc_attr($form_data->to_be_moved);
    18201750               $onetime_moving = esc_attr($form_data->onetime_moving);
    1821 
    18221751               if ( $to_be_moved == 'next' && $onetime_moving == '0' ) {   
    18231752                 echo json_encode(array('error' => false, 'update' => false, 'message' => __('Moving has already been scheduled', 'simpleform' ) ));
    18241753                 exit;
    18251754               }
    1826              
    18271755               else {
    18281756                 echo json_encode(array('error' => true, 'message' => __('Error occurred scheduling the moving. Try again!', 'simpleform' ) ));
    18291757                 exit;
    18301758               }
    1831 
    18321759             }
    18331760             
     
    18401767             
    18411768           $all_forms_to = $wpdb->get_col( "SELECT DISTINCT form FROM {$wpdb->prefix}sform_submissions WHERE moved_from = '$form_id'" );
    1842            
    18431769           $updated_messages = $wpdb->update($table_submissions, array('form' => $form_id, 'moved_from' => '0' ), array('moved_from' => $form_id ) );
    1844 
    18451770           $last_restored_date = $wpdb->get_var("SELECT date FROM {$wpdb->prefix}sform_submissions WHERE form = '$form_id' AND moved_from = '0' ORDER BY date DESC LIMIT 1");
    18461771           
    18471772           if ( $updated_messages ) {
    1848                
    1849              $timestamps = array();
    1850              $last_message = '';
    1851              
    18521773             foreach( $all_forms_to as $restored_from ) {
    18531774                $count_moved = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = '$restored_from' $where_submissions");
    18541775                $wpdb->update($table_shortcodes, array( 'entries' => $count_moved ), array('id' => $restored_from ) );
    1855                // Delete the last message data moved from the form in which the the messages are restored
    1856                $search_last_message_in = 'sform_last_in_'.$restored_from.'_message_'.$form_id;
    1857                $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '%{$search_last_message_in}%'");
    1858                  
    18591776             }
    1860 
    18611777             $count_restored = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = '$form_id' $where_submissions");
    18621778             $count_all = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = '$form_id'");
     
    18721788             $selected = $relocation == true && $moveto != '0' && $to_be_moved == 'next' ? 'selected="selected"' : '';
    18731789             $select = '<option value="">'.__( 'Select messages', 'simpleform' ).'</option>'.$option_all.$option_year.$option_month.$option_week.$option_day.'<option value="next" '.$selected.'>'. __( 'Not received yet', 'simpleform' ).'</option>';
    1874              
    18751790             // Check if a restoration with sheduling is running
    18761791             if ( $relocation == true && $moveto != '0' && $to_be_moved == 'next' ) {
    1877 
    18781792               $wpdb->update($table_shortcodes, array('relocation' => '1', 'moveto' => $moveto, 'to_be_moved' => 'next', 'entries' => $count_restored, 'moved_entries' => '0', 'onetime_moving' => '0', 'deletion' => $deletion ), array('id' => $form_id ));
    1879 
    18801793               $message = esc_attr($form_data->onetime_moving) == '0' ? __( 'Messages successfully restored', 'simpleform' ) : sprintf( __( 'Messages restored and moving to %s successfully scheduled', 'simpleform' ), $form_to_name );
    1881    
    18821794               echo json_encode(array('error' => false, 'update' => true, 'moving' => false, 'restore' => true, 'onetime' => false, 'messages' => $count_restored, 'moved' => '0', 'select' => $select, 'message' => $message ));
    18831795               exit;
    1884              
    18851796             }
    1886              
    18871797             else {
    1888 
    18891798               $wpdb->update($table_shortcodes, array( 'relocation' => $relocation, 'moveto' => '0', 'to_be_moved' => '', 'entries' => $count_restored, 'moved_entries' => '0', 'deletion' => $deletion ), array('id' => $form_id ) );
    1890 
    18911799               echo json_encode(array('error' => false, 'update' => true, 'moving' => false, 'restore' => true, 'messages' => $count_restored, 'moved' => '0', 'select' => $select, 'message' =>  __( 'Messages successfully restored', 'simpleform' ) ));
    18921800               exit;
    1893 
    18941801             }
    1895                  
    18961802           }
    18971803           
    18981804           else {
    1899                
    19001805             $check_moved = $wpdb->get_var( $wpdb->prepare( "SELECT moveto FROM {$wpdb->prefix}sform_shortcodes WHERE id = %d", $form_id) );
    19011806             $to_be_moved = $wpdb->get_var( $wpdb->prepare( "SELECT to_be_moved FROM {$wpdb->prefix}sform_shortcodes WHERE id = %d", $form_id) );
    19021807             $onetime_moving = $wpdb->get_var( $wpdb->prepare( "SELECT onetime_moving FROM {$wpdb->prefix}sform_shortcodes WHERE id = %d", $form_id) );
    1903              
    19041808             if ( $check_moved == '0' || ( $check_moved != '0' && isset($to_be_moved) && $to_be_moved == 'next' && $onetime_moving == '0' ) ) {
    19051809                echo json_encode(array('error' => false, 'update' => false, 'message' => __('Messages have already been restored', 'simpleform' ) ));
    19061810                exit;
    19071811             }
    1908              
    19091812             else {
    19101813                echo json_encode(array('error' => true, 'message' => __('Error occurred restoring the messages. Try again!', 'simpleform' ) ));
    19111814                exit;
    19121815             }
    1913              
    19141816           }
    19151817           
  • simpleform/trunk/admin/class-forms.php

    r2689161 r2691726  
    383383                $success = $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_shortcodes SET status = 'draft', deletion = '0' WHERE id = %d", $id) );
    384384                if ( $success ):   
    385                 $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_submissions SET status = previous_status, previous_status = '', hidden = '0' WHERE form = %d", $id) );
     385                // $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_submissions SET status = previous_status, previous_status = '', hidden = '0' WHERE form = %d", $id) );
     386                $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_submissions SET hidden = '0' WHERE form = %d", $id) );
    386387                $action_notice = '<div class="notice notice-success is-dismissible"><p>' . sprintf( __( '%s successfully restored from the Trash', 'simpleform' ), $form_name ) .'</p></div>';
    387388                set_transient( 'sform_form_action_notice', $action_notice, 5 );
     
    437438                $success = $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_shortcodes SET status = 'draft', deletion = '0' WHERE id IN($placeholders)", $ids) );             
    438439                if ( $success ):
    439                 $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_submissions SET status = previous_status, previous_status = '', hidden = '0' WHERE form = %d", $id) );               
     440                // $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_submissions SET status = previous_status, previous_status = '', hidden = '0' WHERE form IN($placeholders)", $ids) );             
     441                $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}sform_submissions SET hidden = '0' WHERE form IN($placeholders)", $ids) );             
    440442                $form_names = $wpdb->get_col( $wpdb->prepare("SELECT name FROM {$wpdb->prefix}sform_shortcodes WHERE id IN($placeholders)", $ids) );
    441443                $forms = implode(', ', $form_names);
  • simpleform/trunk/admin/class-utilities.php

    r2689161 r2691726  
    130130          // $shortcode_pages = $wpdb->get_col( "SELECT shortcode_pages FROM $table_name" );
    131131          // $block_pages = $wpdb->get_col( "SELECT block_pages FROM $table_name" );
    132           $sform_pages = $wpdb->get_col( "SELECT form_pages FROM FROM {$wpdb->prefix}sform_shortcodes" );
     132          $sform_pages = $wpdb->get_col( "SELECT form_pages FROM {$wpdb->prefix}sform_shortcodes" );
    133133          // foreach ($shortcode_pages as $list) {
    134134          //  if ( ! empty($list) ) {
  • simpleform/trunk/admin/css/admin-min.css

    r2679542 r2691726  
    1 .invisible{visibility:hidden}.removed,.secret,.unseen{display:none!important}#new-release{font-size:13px!important;line-height:1;color:#bbb;padding:14px 0!important;float:left;display:flex;line-height:1.5}#new-release a{color:#bbb;text-decoration:none}#new-release .update a{color:#f6866f}.wrap div.error,.wrap div.notice-success{margin:15px 0 10px}.full-width-bar{margin:0 -9999rem;padding:0 9999rem;clear:both}body,html{overflow-x:hidden}.full-width-bar>h1{margin:0}.sform.wrap>h1>div{float:right}h1.title{color:#fff;line-height:36px;font-size:22px;font-weight:500}h1.title>span{display:inline-block;padding:0 20px 0 0;position:relative;vertical-align:sub;font-size:28px;top:1px}.full-width-bar.default,h1.title.default{background-color:#2271b1!important}.full-width-bar.light,h1.title.light{background-color:#04a4cc!important}.full-width-bar.modern,h1.title.modern{background-color:#4664eb!important}.full-width-bar.blue,h1.title.blue{background-color:#e3af55!important}.full-width-bar.coffee,h1.title.coffee{background-color:#c7a589!important}.full-width-bar.ectoplasm,h1.title.ectoplasm{background-color:#a9bd4f!important}.full-width-bar.midnight,h1.title.midnight{background-color:#e35950!important}.full-width-bar.ocean,h1.title.ocean{background-color:#9ebaa0!important}.full-width-bar.sunrise,h1.title.sunrise{background-color:#dd823b!important}.full-width-bar.foggy,h1.title.foggy{background-color:#8993ab!important}.full-width-bar.polar,h1.title.polar{background-color:#fff!important;color:inherit}div.selector{display:inline-block;float:right}#wrap-selector{font-size:.6em;padding-right:10px;float:left}.form-selector{float:right;padding:0;top:0}select#form{line-height:34px;vertical-align:top}select#form.default{border-color:rgb(34 113 177 / 25%)}select#form.light{border-color:rgb(4 164 204 / 25%)}select#form.modern{border-color:rgb(56 88 233 / 25%)}select#form.blue{border-color:rgb(9 100 132 / 25%)}select#form.coffee{border-color:rgb(199 165 137 / 25%)}select#form.ectoplasm{border-color:rgb(163 183 69 / 25%)}select#form.midnight{border-color:rgb(225 77 67 / 25%)}select#form.ocean{border-color:rgb(158 186 160 / 25%)}select#form.sunrise{border-color:rgb(221 130 59 / 25%)}select#form.foggy{border-color:rgb(34 113 177 / 25%)}select#form.polar{border-color:#8993ab}select.default:focus,select.default:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.light:focus,select.light:hover{color:#04a4cc;border-color:#04a4cc;box-shadow:none}select.modern:focus,select.modern:hover{color:#3858e9;border-color:#3858e9;box-shadow:none}select.blue:focus,select.blue:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.coffee:focus,select.coffee:hover{color:#2271b1;border-color:#c7a589;box-shadow:none}select.ectoplasm:focus,select.ectoplasm:hover{color:#2271b1;border-color:#a3b745;box-shadow:none}select.midnight:focus,select.midnight:hover{color:#2271b1;border-color:#e14d43;box-shadow:none}select.ocean:focus,select.ocean:hover{color:#2271b1;border-color:#9ebaa0;box-shadow:none}select.sunrise:focus,select.sunrise:hover{color:#dd823b;border-color:#dcdfe6;box-shadow:none}select.foggy:focus,select.foggy:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.polar:focus,select.polar:hover{color:#53a0de;border-color:#53a0de;box-shadow:none}#page-description{padding:10px 0}.notice.trwidget{margin-top:30px}#editor-tabs,#settings-tabs{margin-left:15px;position:relative;right:0;left:0;min-height:35px;font-size:0;z-index:1;border-bottom:0}.nav-tab{padding:5px 25px;margin-left:5px;border-bottom:none!important;color:#8993ab!important;background:#dcdfe6}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:hover,.nav-tab.nav-tab-active:hover{background:#fff!important;color:#8993ab!important;border-bottom:1px solid #fff!important;margin-bottom:-1px}.nav-tab:focus,.nav-tab:hover{background-color:#8993ab;color:#fff!important;cursor:pointer}a .dashicons{line-height:26px;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none;text-decoration:none}#editor-tabs a,#settings-tabs a{position:relative;display:inline-block;margin:0;border-bottom:0;margin-bottom:-1px;text-decoration:none;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none}#editor-tabs a.form-button,#settings-tabs a.form-button{margin-right:0;float:right}#editor-tabs a.last,#settings-tabs a.last{margin-right:0!important}.form-button{background:#dcdfe6;color:#8993ab;border-bottom:none!important;border:1px solid #dcdfe6;line-height:24px}.form-button:focus{box-shadow:none;outline:0}.form-button>span{white-space:nowrap}.form-button>span>span.text{margin-left:5px}.form-button.default:hover{background:#f0f0f1;color:#2271b1}.form-button.light:hover{background:#f0f0f1;color:#04a4cc}.form-button.modern:hover{background:#f0f0f1;color:#3858e9}.form-button.blue:hover{background:#f0f0f1;color:#096484}.form-button.coffee:hover{background:#59524c;color:#fff}.form-button.ectoplasm:hover{background:#f0f0f1;color:#829237}.form-button.midnight:hover{background:#f0f0f1;color:#d02c21}.form-button.ocean:hover{background:#738e96;color:#fff}.form-button.sunrise:hover{background:#f0f0f1;color:#dd823b}.form-button.foggy:hover{background:#2271b1;color:#fff}.form-button.polar:hover{background:#53a0de;color:#fff}#attributes,#card,#settings{background:#fff;padding-top:25px}.options-heading span{cursor:pointer}.options-heading span span{padding-left:10px}.toggle.dashicons{color:#dcdfe6}.dashicons-arrow-up-alt2:hover{color:#f6866f}.dashicons-arrow-down-alt2:hover{color:#9bcc79}.options-heading.closed{margin-bottom:1.85em}.icon-button{color:#dcdfe6;font-size:26px;margin:-3px 0;float:right}.icon-button.default:hover{color:#2271b1}.icon-button.light:hover{color:#04a4cc}.icon-button.modern:hover{color:#3858e9}.icon-button.blue:hover{color:#096484}.icon-button.coffee:hover{color:#59524c}.icon-button.ectoplasm:hover{color:#a3b745}.icon-button.midnight:hover{color:#e14d43}.icon-button.ocean:hover{color:#738e96}.icon-button.sunrise:hover{color:#dd823b}.icon-button.foggy:hover{color:#72aee6}.icon-button.polar:hover{color:#53a0de}.settings-page.button,.widgets-page.button{text-align:center;float:right;margin-top:15px!important;padding:0 10px;border-radius:3px;font-size:13px;font-weight:600;cursor:pointer}.section.admin.collapsed,.section.akismet.collapsed,.section.auto.collapsed,.section.custom.collapsed,.section.fields.collapsed,.section.formdescription.collapsed,.section.formfields.collapsed,.section.layout.collapsed,.section.notification.collapsed,.section.recaptcha.collapsed,.section.rules.collapsed,.section.sending.collapsed,.section.smtp.collapsed,.section.spam.collapsed,.section.specifics.collapsed,.section.storage.collapsed,.section.style.collapsed,.section.submission.collapsed,.section.success.collapsed,.section.uninstall.collapsed{font-size:0;margin:0;opacity:0;padding:0;max-height:0;overflow:hidden;transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-webkit-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-moz-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-o-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s}.section.admin,.section.akismet,.section.custom,.section.formdescription,.section.layout,.section.rules,.section.sending,.section.spam,.section.style,.section.submission,.section.success,.section.uninstall{max-height:800px;transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-webkit-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-moz-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-o-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s}.section.auto,.section.notification,.section.recaptcha,.section.smtp,.section.specifics,.section.storage{max-height:1500px;transition:max-height 1.25s linear,opacity 1.5s,font-size 1.5s,margin 1.5s,padding 1.5s}.section.fields{max-height:3500px;transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-webkit-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-moz-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-o-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s}.section.formfields{max-height:5500px;transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-webkit-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-moz-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-o-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s}th>span{cursor:default}.switch-box{display:inline-table;width:100%;position:relative;height:20px;line-height:20px}.switch-input{position:relative;display:inline-block;float:left;margin-right:10px;width:40px;height:20px}.switch-input input{top:2px;left:4px;margin:0;position:absolute;opacity:0!important;width:20px;height:20px}.switch-input input:active+span{outline:0;box-shadow:none}.switch-label{display:inline-block;vertical-align:middle;width:calc(100% - 50px)}.switch-input input+span{position:absolute;z-index:1;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#dcdfe6;-webkit-transition:.4s;transition:.4s;-moz-transition:.4s;-o-transition:.4s;border-radius:20px;border:2px solid #dcdfe6}.switch-input input+span:before{position:absolute;content:"";height:16px;width:16px;background-color:#fff;-webkit-transition:.4s;transition:.4s;-moz-transition:.4s;-o-transition:.4s;border-radius:50%}.switch-input input:checked+span:before{-webkit-transform:translateX(20px);-ms-transform:translateX(20px);transform:translateX(20px)}label.multiselect{position:relative;cursor:pointer;display:inline-block;padding-left:34px;line-height:24px;margin-right:10px;margin-bottom:10px}label.multiselect.last{margin-right:0}input[type=checkbox].multiselect{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark{position:absolute;cursor:pointer;top:0;left:0;height:20px;width:20px;border-radius:4px;background-color:#dcdfe6;border:2px solid #dcdfe6}.checkmark:after{left:7px;top:2px;width:4px;height:10px;border:solid #fff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);content:"";position:absolute;display:none}input[type=checkbox]:checked+.checkmark{background-color:#0d6efd;border:2px solid #0d6efd}input[type=checkbox]:checked+.checkmark:after{display:block}#columns-description.description{margin-top:-3px}form.default .switch-input input:checked+span,form.default input[type=checkbox]:checked+.checkmark{background:#2271b1;border:2px solid #2271b1}form.default .switch-input input:active+span{outline:0;box-shadow:none}form.light .switch-input input:checked+span,form.light input[type=checkbox]:checked+.checkmark{background:#04a4cc;border:2px solid #04a4cc}form.light .switch-input input:active+span{outline:0;box-shadow:none}form.modern .switch-input input:checked+span,form.modern input[type=checkbox]:checked+.checkmark{background:#3858e9;border:2px solid #3858e9}form.modern .switch-input input:active+span{outline:0;box-shadow:none}form.blue .switch-input input:checked+span,form.blue input[type=checkbox]:checked+.checkmark{background:#096484;border:2px solid #096484}form.blue .switch-input input:active+span{outline:0;box-shadow:none}form.coffee .switch-input input:checked+span,form.coffee input[type=checkbox]:checked+.checkmark{background:#c7a589;border:2px solid #c7a589}form.coffee .switch-input input:active+span{outline:0;box-shadow:none}form.ectoplasm .switch-input input:checked+span,form.ectoplasm input[type=checkbox]:checked+.checkmark{background:#a3b745;border:2px solid #a3b745}form.ectoplasm .switch-input input:active+span{outline:0;box-shadow:none}form.midnight .switch-input input:checked+span,form.midnight input[type=checkbox]:checked+.checkmark{background:#e14d43;border:2px solid #e14d43}form.midnight .switch-input input:active+span{outline:0;box-shadow:none}form.ocean .switch-input input:checked+span,form.ocean input[type=checkbox]:checked+.checkmark{background:#9ebaa0;border:2px solid #9ebaa0}form.ocean .switch-input input:active+span{outline:0;box-shadow:none}form.sunrise .switch-input input:checked+span,form.sunrise input[type=checkbox]:checked+.checkmark{background:#dd823b;border:2px solid #dd823b}form.sunrise .switch-input input:active+span{outline:0;box-shadow:none}form.foggy .switch-input input:checked+span,form.foggy input[type=checkbox]:checked+.checkmark{background:#2271b1;border:2px solid #2271b1}form.foggy .switch-input input:active+span{outline:0;box-shadow:none}form.polar .switch-input input:checked+span,form.polar input[type=checkbox]:checked+.checkmark{background:#53a0de;border:2px solid #53a0de}form.polar .switch-input input:active+span{outline:0;box-shadow:none}input[type=radio]{border:2px solid #dcdfe6;height:18px;width:18px;margin-top:-3px!important;margin-right:10px!important}form.default input[type=radio]:checked,form.foggy input[type=radio]:checked{background:#2271b1;border-color:#2271b1}form.default input[type=radio]:active,form.default input[type=radio]:focus,form.foggy input[type=radio]:active,form.foggy input[type=radio]:focus{border-color:#2271b1;outline:0;box-shadow:none}form.light input[type=radio]:active,form.light input[type=radio]:focus{border-color:#04a4cc;outline:0;box-shadow:none}form.light input[type=radio]:checked{background:#04a4cc;border-color:#04a4cc}form.modern input[type=radio]:active,form.modern input[type=radio]:focus{border-color:#3858e9;outline:0;box-shadow:none}form.modern input[type=radio]:checked{background:#3858e9;border-color:#3858e9}form.blue input[type=radio]:active,form.blue input[type=radio]:focus{border-color:#096484;outline:0;box-shadow:none}form.blue input[type=radio]:checked{background:#096484;border-color:#096484}form.coffee input[type=radio]:active,form.coffee input[type=radio]:focus{border-color:#c7a589;outline:0;box-shadow:none}form.coffee input[type=radio]:checked{background:#c7a589;border-color:#c7a589}form.ectoplasm input[type=radio]:active,form.ectoplasm input[type=radio]:focus{border-color:#a3b745;outline:0;box-shadow:none}form.ectoplasm input[type=radio]:checked{background:#a3b745;border-color:#a3b745}form.midnight input[type=radio]:active,form.midnight input[type=radio]:focus{border-color:#e14d43;outline:0;box-shadow:none}form.midnight input[type=radio]:checked{background:#e14d43;border-color:#e14d43}form.ocean input[type=radio]:active,form.ocean input[type=radio]:focus{border-color:#9ebaa0;outline:0;box-shadow:none}form.ocean input[type=radio]:checked{background:#9ebaa0;border-color:#9ebaa0}form.sunrise input[type=radio]:active,input[type=radio]:focus{border-color:#dd823b;outline:0;box-shadow:none}form.sunrise input[type=radio]:checked{background:#dd823b;border-color:#dd823b}form.polar input[type=radio]:active,form.polar input[type=radio]:focus{border-color:#53a0de;outline:0;box-shadow:none}form.polar input[type=radio]:checked{background:#53a0de;border-color:#53a0de}input[type=radio]:checked::before{background-color:#fff}.form-table td fieldset label{margin-right:20px!important}textarea{height:230px!important;width:100%;padding:10px 15px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:#fff!important;border:2px solid #dcdfe6;font-size:14px!important;line-height:24px!important;color:#444}textarea.description{height:148px!important}textarea.labels{height:100px!important}input.sform{width:100%}input.sform[type=number]{width:90px!important;text-align:center}form.default input[type=number]:focus,form.default input[type=text]:focus,form.default select.sform:focus,form.default textarea:focus{border:2px solid #2271b1!important;border-color:#2271b1;outline:0;box-shadow:none}form.light input[type=number]:focus,form.light input[type=text]:focus,form.light select.sform:focus,form.light textarea:focus{border:2px solid #04a4cc!important;border-color:#04a4cc;outline:0;box-shadow:none}form.modern input[type=number]:focus,form.modern input[type=text]:focus,form.modern select.sform:focus,form.modern textarea:focus{border:2px solid #3858e9!important;border-color:#3858e9;outline:0;box-shadow:none}form.blue input[type=number]:focus,form.blue input[type=text]:focus,form.blue select.sform:focus,form.blue textarea:focus{border:2px solid #096484!important;border-color:#096484;outline:0;box-shadow:none}form.coffee input[type=number]:focus,form.coffee input[type=text]:focus,form.coffee select.sform:focus,form.coffee textarea:focus{border:2px solid #c7a589!important;border-color:#c7a589;outline:0;box-shadow:none}form.ectoplasm input[type=number]:focus,form.ectoplasm input[type=text]:focus,form.ectoplasm select.sform:focus,form.ectoplasm textarea:focus{border:2px solid #a3b745!important;border-color:#a3b745;outline:0;box-shadow:none}form.midnight input[type=number]:focus,form.midnight input[type=text]:focus,form.midnight select.sform:focus,form.midnight textarea:focus{border:2px solid #e14d43!important;border-color:#e14d43;outline:0;box-shadow:none}form.ocean input[type=number]:focus,form.ocean input[type=text]:focus,form.ocean select.sform:focus,form.ocean textarea:focus{border:2px solid #9ebaa0!important;border-color:#9ebaa0;outline:0;box-shadow:none}form.sunrise input[type=number]:focus,form.sunrise input[type=text]:focus,form.sunrise select.sform:focus,form.sunrise textarea:focus{border-color:#dd823b;border:2px solid #dd823b!important;color:#dd823b;outline:0;box-shadow:none}form.foggy input[type=number]:focus,form.foggy input[type=text]:focus,form.foggy select.sform:focus,form.foggy textarea:focus{border:2px solid #2271b1!important;border-color:#2271b1;outline:0;box-shadow:none}form.polar input[type=number]:focus,form.polar input[type=text]:focus,form.polar select.sform:focus,form.polar textarea:focus{border:2px solid #53a0de;border-color:#53a0de;outline:0;box-shadow:none}input.sform[type=number],input.sform[type=text],select.sform{height:42px!important;padding:10px 15px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:#fff!important;border:2px solid #dcdfe6;font-size:14px!important;line-height:24px!important;color:#444}select.sform{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:2px 20px 2px 8px!important;padding-right:30px!important}form.default select.sform:focus,form.default select.sform:hover{color:#2271b1}form.light select.sform:focus,form.light select.sform:hover{color:#04a4cc}form.modern select.sform:focus,form.modern select.sform:hover{color:#3858e9}form.blue select.sform:focus,form.modern blue.sform:hover{color:#2271b1}form.coffee select.sform:focus,form.coffee select.sform:hover{color:#2271b1}form.ectoplasm select.sform:focus,form.ectoplasm select.sform:hover{color:#2271b1}form.midnight select.sform:focus,form.midnight select.sform:hover{color:#2271b1}form.ocean select.sform:focus,form.ocean select.sform:hover{color:#2271b1}form.sunrise select.sform:hover{color:#dd823b}form.foggy select.sform:focus,form.foggy select.sform:hover{color:#2271b1}form.polar select.sform:focus,form.polar select.sform:hover{color:#53a0de}td>p.description{margin-bottom:-2px;letter-spacing:-.6px}#deletion-toggle.default,#smpt-warnings.default,form.default .privacy-setting.button,form.default .settings-page.button,form.default .widgets-page.button,span.default.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.light,#smpt-warnings.light,form.light .privacy-setting.button,form.light .settings-page.button,form.light .widgets-page.button,span.light.button.unavailable{color:#04a4cc;border-color:#04a4cc}#deletion-toggle.modern,#smpt-warnings.modern,form.modern .privacy-setting.button,form.modern .settings-page.button,form.modern .widgets-page.button,span.modern.button.unavailable{color:#3858e9;border-color:#3858e9}#deletion-toggle.blue,#smpt-warnings.blue,form.blue .privacy-setting.button,form.blue .settings-page.button,form.blue .widgets-page.button,span.blue.button.unavailable{color:#096484;border-color:#096484}#deletion-toggle.coffee,#smpt-warnings.coffee,form.coffee .privacy-setting.button,form.coffee .settings-page.button,form.coffee .widgets-page.button,span.coffee.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.coffee:hover,#smpt-warnings.coffee:hover,form.coffee .privacy-setting.button:hover,form.coffee .settings-page.button:hover,form.coffee .widgets-page.button:hover,span.coffee.button.unavailable:hover{color:#fff;border-color:#59524c;background-color:#59524c}#deletion-toggle.ectoplasm,#smpt-warnings.ectoplasm,form.ectoplasm .privacy-setting.button,form.ectoplasm .settings-page.button,form.ectoplasm .widgets-page.button,span.ectoplasm.button.unavailable{color:#a3b745;border-color:#a3b745}#deletion-toggle.ectoplasm:hover,#smpt-warnings.ectoplasm:hover,form.ectoplasm .privacy-setting.button:hover,form.ectoplasm .settings-page.button:hover,form.ectoplasm .widgets-page.button:hover,span.ectoplasm.button.unavailable:hover{color:#829237;border-color:#829237}#deletion-toggle.midnight,#smpt-warnings.midnight,form.midnight .privacy-setting.button,form.midnight .settings-page.button,form.midnight .widgets-page.button,span.midnight.button.unavailable{color:#e14d43;border-color:#e14d43}#deletion-toggle.midnight:hover,#smpt-warnings.midnight:hover,form.midnight .privacy-setting.button:hover,form.midnight .settings-page.button:hover,form.midnight .widgets-page.button:hover,span.midnight.button.unavailable:hover{color:#d02c21;border-color:#d02c21}#deletion-toggle.ocean,#smpt-warnings.ocean,form.ocean .privacy-setting.button,form.ocean .settings-page.button,form.ocean .widgets-page.button,span.ocean.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.ocean:hover,#smpt-warnings.ocean:hover,form.ocean .privacy-setting.button:hover,form.ocean .settings-page.button:hover,form.ocean .widgets-page.button:hover,span.ocean.button.unavailable:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}#deletion-toggle.sunrise,#smpt-warnings.sunrise,form.sunrise .privacy-setting.button,form.sunrise .settings-page.button,form.sunrise .widgets-page.button,span.sunrise.button.unavailable{color:#dd823b;border-color:#dd823b}#deletion-toggle.foggy,#smpt-warnings.foggy,form.foggy .privacy-setting.button,form.foggy .settings-page.button,form.foggy .widgets-page.button,span.foggy.button.unavailable{color:#72aee6;border-color:#72aee6}#deletion-toggle.polar,#smpt-warnings.polar,form.polar .privacy-setting.button,form.polar .settings-page.button,form.polar .widgets-page.button,span.polar.button.unavailable{color:#53a0de;border-color:#53a0de}#deletion-toggle.polar:hover,#smpt-warnings.polar:hover,form.polar .privacy-setting.button:hover,form.polar .settings-page.button:hover,form.polar .widgets-page.button:hover,span.polar.button.unavailable:hover{color:#fff;background-color:#53a0de}select.sform:disabled:hover{color:#a7aaad!important}.switch-input input:disabled+span{cursor:default;box-shadow:none!important}label.disabled{cursor:default}.switch-input input:disabled:checked+span{opacity:.7}input[type=radio]:disabled,input[type=radio]:disabled:checked{cursor:default;box-shadow:none!important}input[type=radio]:disabled:active,input[type=radio]:disabled:focus{border-color:#dcdfe6!important}input[type=radio]:disabled:active:checked,input[type=radio]:disabled:focus:checked{border-color:#53a0de!important}input[type=checkbox]:disabled{opacity:0!important}#submit-wrap{margin:0 auto;text-align:center;padding:0 40px 100px}#alert-wrap{position:relative}#noscript{position:absolute;left:0;right:0;color:#fff;border-radius:8px;background:#dc3545;margin:0 75px 25px;line-height:30px;height:30px;padding:9px}#message-wrap{visibility:hidden;color:#909090;border-radius:8px;background:#f2f2f2;margin:0 75px 38px;line-height:30px;height:30px;padding:9px}#message-wrap.error{background:#f6866f;border:0;color:#fff}#message-wrap.success{background:#9bcc79;color:#fff}#message-wrap.unchanged{background:#f8cd5e;color:#fff}#message-wrap.seen{visibility:visible}.submit-button{padding:5px 12px;outline:0;border-radius:8px;font-size:13px;text-transform:uppercase;cursor:pointer;line-height:2.15384615;min-height:30px;border:none}form.default .submit-button{background:#2271b1;color:#fff}form.default .submit-button:hover{background:#135e96;color:#fff}form.default .submit-button:active{background:#135e96;color:#fff}form.light .submit-button{background:#04a4cc;color:#fff}form.light .submit-button:hover{background:#04b0db;color:#fff}form.light .submit-button:active{background:#0490b3;color:#fff}form.modern .submit-button{background:#3858e9;color:#fff}form.modern .submit-button:hover{background:#4664eb;color:#fff}form.modern .submit-button:active{background:#2145e6;color:#fff}form.blue .submit-button{background:#e1a948;color:#fff}form.blue .submit-button:hover{background:#e3af55;color:#fff}form.blue .submit-button:active{background:#dd9f32;color:#fff}form.coffee .submit-button{background:#c7a589;color:#fff}form.coffee .submit-button:hover{background:#ccad93;color:#fff}form.coffee .submit-button:active{background:#bf9878;color:#fff}form.ectoplasm .submit-button{background:#a3b745;color:#fff}form.ectoplasm .submit-button:hover{background:#a9bd4f;color:#fff}form.ectoplasm .submit-button:active{background:#93a43e;color:#fff}form.midnight .submit-button{background:#e14d43;color:#fff}form.midnight .submit-button:hover{background:#e35950;color:#fff}form.midnight .submit-button:active{background:#dd382d;color:#fff}form.ocean .submit-button{background:#9ebaa0;color:#fff}form.ocean .submit-button:hover{background:#a7c0a9;color:#fff}form.ocean .submit-button:active{background:#8faf91;color:#fff}form.sunrise .submit-button{background:#dd823b;color:#fff}form.sunrise .submit-button:hover{background:#c36922;color:#fff}form.sunrise .submit-button:active{background:#d97426;color:#fff}form.foggy .submit-button{background:#2271b1;color:#fff}form.foggy .submit-button:hover{background:#135e96;color:#fff}form.foggy .submit-button:active{background:#135e96;color:#fff}form.polar .submit-button{background:#53a0de;color:#fff}form.polar .submit-button:hover{background:#77b4e5;color:#fff}form.polar .submit-button:active{background:#318dd7;color:#fff}span.button.unavailable{float:left;margin-right:10px}span.button.unavailable a{color:#fff;text-decoration:none}span.button.unavailable:hover a{color:#fff}#set-page-icon.default:hover,span.default.button.unavailable a{color:#2271b1}#set-page-icon.light:hover,span.light.button.unavailable a{color:#04a4cc}#set-page-icon.modern:hover,span.modern.button.unavailable a{color:#3858e9}#set-page-icon.blue:hover,span.blue.button.unavailable a{color:#096484}#set-page-icon.coffee:hover,span.coffee.button.unavailable a{color:#2271b1}span.coffee.button.unavailable:hover a{color:#fff}#set-page-icon.ectoplasm:hover,span.ectoplasm.button.unavailable a{color:#a3b745}span.ectoplasm.button.unavailable:hover a{color:#829237}#set-page-icon.midnight:hover,span.midnight.button.unavailable a{color:#e14d43}#set-page-icon.ocean:hover,span.ocean.button.unavailable a{color:#2271b1}span.ocean.button.unavailable:hover a{color:#fff}#set-page-icon.sunrise:hover,span.sunrise.button.unavailable a{color:#dd823b}#set-page-icon.foggy:hover,span.foggy.button.unavailable a{color:#72aee6}#set-page-icon.polar:hover,span.polar.button.unavailable a{color:#53a0de}span.polar.button.unavailable:hover a{color:#fff}.publish-link{text-decoration:none;color:#9ccc79}.publish-link:hover{color:#9ccc79}input[placeholder]{text-overflow:ellipsis}::-moz-placeholder{text-overflow:ellipsis}input:-moz-placeholder{text-overflow:ellipsis}.head-bracket{font-style:italic;font-weight:400;padding-left:10px}#shortcode-copy{margin-left:5px;border:none;outline:0;background-color:transparent;line-height:inherit;width:40px;height:40px;padding:8px;border-radius:40px;cursor:pointer}#shortcode-copy:hover{background-color:#eee!important}#shortcode-copy:active{background-color:#dcdfe6!important}#shortcode-copy img{vertical-align:middle;width:24px}#shortcode-tooltip{background-color:#8993ab;display:none;color:#fff!important;padding:4px 7px;border-radius:5px;font-size:.75rem;margin-left:5px}.widgets-page.button{text-align:center;float:right;margin-top:6px!important;border-radius:4px;font-size:.9em;font-weight:600;cursor:pointer}.slug{margin-left:10px}.privacy-setting.button{text-align:center;float:none;margin-top:6px!important;border-radius:4px;font-size:.9em;font-weight:600;cursor:pointer}#label-error,.privacy-setting{margin-left:10px!important}#label-error-top{margin-left:10px!important;font-weight:400!important;color:#f6866f}#set-page-icon{float:right;margin-top:-17px;cursor:pointer}#post-status{margin-right:25px}span.description.left{font-size:13px;font-style:italic;padding-left:10px}#form-borders{margin-left:20px}#smpt-warnings{margin-top:15px!important;font-size:13px;text-align:center;float:right;border-radius:4px;font-weight:400;cursor:pointer}tr.smpt-warnings{background-color:#e4e7ec}div.description h4{margin:1.3em 0}tr.smpt-warnings>td{padding:18px 41px 30px 36px;vertical-align:none;border-width:0 0 0 5px;border-style:solid;background:#e5f5fa;border-color:#00a0d2}.description pre{white-space:pre-wrap}#smpt-warnings:hover{background:#f0f0f1}.notice-toggle{white-space:nowrap}.submission-notice>.notice{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:15px}#submissions-data{padding:0;display:flex}#submissions-data li{float:left;padding:20px 0;width:19%;text-align:center;background:#dcdfe6;opacity:.65;padding-bottom:26px}#submissions-data li:hover{opacity:1}.type{margin-right:1.25%}.label{color:#666;text-transform:uppercase;font-size:.8em}.value{display:block;clear:both;font-size:2em;font-weight:300;line-height:40px}#empty-submission,#last-submission,#submissions-notice{padding:30px 30px 50px;margin-top:20px;background:#fff}#empty-submission h3,#last-submission h3,#submissions-notice h3{line-height:30px}#deletion-notice{padding:5px 40px 30px;margin:0 -40px;background:#eb8a84;color:#fff;margin-bottom:-23px}#deletion-notice h3{line-height:30px;color:#fff}#deletion-notice .disclaimer{display:inline-block;padding:6px 0;width:60%}#deletion-notice .delete{display:inline-block;padding:6px 10px;background:#fff;color:#e35950;border-radius:5px;cursor:pointer}#deletion-notice .cancel{margin-right:50px}input.delete{font-size:inherit;margin:0;border:0;line-height:inherit}#deletion-toggle{margin-top:30px;font-size:13px;font-weight:600;text-align:center;float:right;border-radius:4px;font-weight:400;cursor:pointer;padding:6px 10px;background:#fff;border-style:solid;border-width:1px}#deletion-toggle:hover{background:#f0f0f1}#deletion-buttons{float:right;width:auto}@media screen and (max-width:960px){#deletion-notice .disclaimer{width:100%}#deletion-buttons{width:100%;text-align:center;float:none;margin:20px 0 0}}#deletion-notice span.dashicons,#empty-submission span.dashicons,#last-submission span.dashicons,#submissions-notice span.dashicons{font-size:30px;width:30px;height:30px;padding-right:10px}.row{box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-.5rem;margin-left:-.5rem}.columns-body{padding:10px}.columns-body>h4{margin-top:15px;margin-bottom:5px}@media only screen and (min-width:75em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%;box-sizing:border-box;-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:.5rem;padding-left:.5rem}}@media only screen and (min-width:48em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media only screen and (min-width:64em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media only screen and (max-width:36em){.columns-wrap{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}}#visibility-notes{font-size:12px;margin-top:5px;letter-spacing:-.25px}.widget-pages p.first{margin-bottom:5px!important}p.last,p.visibility{margin-bottom:0!important}.widget-alert{margin-top:15px;margin-right:-15px;margin-left:-15px;padding:0 15px;color:#fff;background:#f6866f}.widget-alert div{padding:6px 0}.sform-widget-notes{font-size:12px;margin-top:5px;letter-spacing:-.25px}.sform-widget-boxes{margin-top:30px}.sform-widget-boxes.buttons p label{line-height:40px}.sform-widget-description{font-size:12px;margin-top:5px;letter-spacing:-.25px}.widget-button{padding:6px 10px;background:#007cba;border-color:#007cba;color:#fff;font-size:12px;width:90px;margin-top:6px;text-align:center;cursor:pointer}.widget-button:hover{background:#0071a1;border-color:#0071a1}#widget-button-editor{float:left}#widget-button-settings{float:right}#widget-button-editor,#widget-button-settings{text-align:center;padding:0 10px;border-radius:4px;font-weight:600;cursor:pointer}p#widget-buttons{margin-top:1em;height:42px}#widget-button-editor.default,#widget-button-settings.default,.support.button.default{color:#2271b1;border-color:#2271b1}#widget-button-editor.light,#widget-button-settings.light,.support.button.light{color:#04a4cc;border-color:#04a4cc}#widget-button-editor.modern,#widget-button-settings.modern,.support.button.modern{color:#3858e9;border-color:#3858e9}#widget-button-editor.blue,#widget-button-settings.blue,.support.button.blue{color:#096484;border-color:#096484}#widget-button-editor.coffee,#widget-button-settings.coffee,.support.button.coffee{color:#2271b1;border-color:#2271b1}#widget-button-editor.coffee:hover,#widget-button-settings.coffee:hover,.support.button.coffee:hover{color:#fff;border-color:#59524c;background-color:#59524c}#widget-button-editor.ectoplasm,#widget-button-settings.ectoplasm,.support.button.ectoplasm{color:#a3b745;border-color:#a3b745}#widget-button-editor.ectoplasm:hover,#widget-button-settings.ectoplasm:hover,.support.button.ectoplasm:hover{color:#829237;border-color:#829237}#widget-button-editor.midnight,#widget-button-settings.midnight,.support.button.midnight{color:#e14d43;border-color:#e14d43}#widget-button-editor.midnight:hover,#widget-button-settings.midnight:hover,.support.button.midnight:hover{color:#d02c21;border-color:#d02c21}#widget-button-editor.ocean,#widget-button-settings.ocean,.support.button.ocean{color:#2271b1;border-color:#2271b1}#widget-button-editor.ocean:hover,#widget-button-settings.ocean:hover,.support.button.ocean:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}#widget-button-editor.sunrise,#widget-button-settings.sunrise,.support.button.sunrise{color:#dd823b;border-color:#dd823b}#widget-button-editor.foggy,#widget-button-settings.foggy,.support.button.foggy{color:#72aee6;border-color:#72aee6}#widget-button-editor.polar,#widget-button-settings.polar,.support.button.polar{color:#53a0de;border-color:#53a0de}#widget-button-editor.polar:hover,#widget-button-settings.polar:hover,.support.button.polar:hover{color:#fff;background-color:#53a0de}.checkbox-switch.default:hover p{visibility:visible}.dashicons-lock.red,.lock.notes.red{color:#d63638}.dashicons-lock.orange,.lock.notes.orange{color:orange}.dashicons-unlock,.lock.notes{color:#85c641}.dashicons-lock:hover+span,.dashicons-unlock:hover+span{visibility:visible}#card-submit-wrap{margin:0 auto;padding:0 40px 100px}#alert-wrap,#form-buttons{text-align:center}.button.back-list.default{color:#2271b1;border-color:#2271b1}.button.back-list.light{color:#04a4cc;border-color:#04a4cc}.button.back-list.modern{color:#3858e9;border-color:#3858e9}.button.back-list.blue{color:#096484;border-color:#096484}.button.back-list.coffee{color:#2271b1;border-color:#2271b1}.button.back-list.coffee:hover{color:#fff;border-color:#59524c;background-color:#59524c}.button.back-list.ectoplasm{color:#a3b745;border-color:#a3b745}.button.back-list.ectoplasm:hover{color:#829237;border-color:#829237}.button.back-list.midnight{color:#e14d43;border-color:#e14d43}.button.back-list.midnight:hover{color:#d02c21;border-color:#d02c21}.button.back-list.ocean{color:#2271b1;border-color:#2271b1}.button.back-list.ocean:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}.button.back-list.sunrise{color:#dd823b;border-color:#dd823b}.button.back-list.foggy{color:#72aee6;border-color:#72aee6}.button.back-list.polar{color:#53a0de;border-color:#53a0de}.button.back-list.polar:hover{color:#fff;background-color:#53a0de}.forwarding{padding-right:3px}#deletion-notice.success{text-align:center;background:#75c375}#deletion-notice .disclaimer.success{padding:0;line-height:48px}#deletion-notice .disclaimer.success span{font-size:80px;width:68px;height:48px;line-height:48px;padding-right:0}#deletion-notice.confirm{background:#d63638}div.notice{margin-top:13px!important}@media screen and (max-width:374px){#editor-tabs a,#settings-tabs a{font-size:.75rem}}@media screen and (max-width:520px){.type{margin-right:0!important;border-right:1px solid #8993ab!important}#submissions-data{margin:15px 0!important}#submissions-data li{padding:20px 7px!important;width:calc(20% -1px)!important}.label{font-size:.7em!important;letter-spacing:-.5px}.value{font-size:1.5em!important}#empty-submission,#last-submission,#submissions-notice{padding:10px 15px 30px!important;margin:20px 0!important}#last-submission{overflow:auto}label.multiselect{width:100%}}@media screen and (max-width:782px){#deletion-notice{padding:5px 10px 30px!important;margin:0 -50px!important}.submissions-list .notice{margin:20px}#deletion-toggle{margin:20px;margin-top:30px}#page-description.overview{padding:10px 0!important;margin-left:-10px!important;margin-right:-10px!important}#submissions-data li{width:20%}.type{margin-right:0;border-right:1px solid #8993ab!important}.label{font-size:.75em}#empty-submission,#last-submission,#submissions-notice{padding:30px 20px 50px!important}#sform-wrap{padding-right:10px}#page-description{padding:10px}form{padding:10px}.sform.wrap{margin-top:0}.responsive{display:none!important}h1.title{padding:10px}select#form{padding:0 24px 0 8px;min-height:34px;font-size:13px}.wrap{margin-right:0;padding-right:10px;margin-left:-10px;padding-left:10px}.nav-tab{border:none;line-height:26px}#editor-tabs #card-tabs,#settings-tabs,form#attributes,form#card,form#settings{margin:0 -10px}#editor-tabs,#settings-tabs{overflow:hidden;padding:0 0 0 10px;height:auto;margin-left:-10px!important;margin-right:-10px}.form-button{line-height:25px}#editor-tabs a,#settings-tabs a{margin-right:0!important;padding:5px 8px!important;font-weight:400}#attributes,#card,#settings{border:none}.options-heading{padding:0 10px 10px}.options-heading.closed>a>.icon-button,.options-heading.closed>span>.icon-button{display:none}.options-heading>a>.icon-button,.options-heading>span>.icon-button{display:block}th.option{padding:15px 10px}td.checkbox-switch,td.checkbox-switch.notes,td.multicheckbox.notes,td.plaintext,td.plaintext.last,td.radio,td.radio.notes,td.radio.notes.last,td.select,td.select.notes,td.text,td.text.notes,td.textarea,td.used-page{padding:10px}td.plaintext.icon{padding:0 10px}td.plaintext.widget #edit-widget{margin-top:-11px!important;margin-bottom:0!important}td.checkbox-switch.last,td.checkbox-switch.last.notes,td.last.radio,td.last.select,td.last.select.notes,td.last.text,td.last.text.notes,td.last.textarea,td.last.used-page{padding:10px 10px 40px}#label-error,#set-page{display:none}label-error-top{display:block}label.radio{width:100%}#smpt-warnings.text,.privacy-setting.button,.settings-page.button,.widgets-page.button,a .text{display:none}input[type=radio]:checked::before{width:.5rem;height:.5rem;margin:.1875rem}tr.outside th{padding:45px 10px 15px}tr.outside td.plaintextt{padding:10px}#attributes{margin:0 -10px}#editor-tabs a.form-page{margin-right:5px!important}td.column-locks span{margin-left:-5px;margin-top:-1px}.lock.notes{padding:3px 10px}.icon-button{line-height:46px!important}.button.back-list{display:none}.subsubsub{font-size:13px;width:100%}.tablenav .tablenav-pages{margin:0}.tablenav.top,p.search-box{text-align:center}.tablenav.top{margin:20px 0 12px 0}.tablenav.bottom{margin:8px 20px 0}#forms-table .tablenav .button{margin-bottom:0!important;margin-left:10px;margin-right:0!important}.row-actions{display:flex!important}#forms-table{padding:20px 0 10px 0}.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column,tbody td.check-column{padding:8px 0 0 10px}.widefat td,.widefat th{padding:14px 10px}input[type=checkbox]{margin:2px 0 8px 10px!important}.widefat tfoot td input[type=checkbox],.widefat thead td input[type=checkbox]{margin:0 0 8px 10px!important}.wp-list-table .toggle-row{top:16px}.wp-list-table .is-expanded td:not(.hidden){padding-bottom:10px!important;padding-right:20px!important}.tablenav-pages .pagination-links{font-size:13px}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{display:inline-block;vertical-align:baseline;min-width:30px;min-height:30px;margin:0!important;padding:0 4px;font-size:16px;line-height:1.625;text-align:center;margin-left:10px}.tablenav-pages .pagination-links .current-page{margin:0 2px 0 0;font-size:13px;text-align:center;min-width:30px;min-height:30px;margin:0;padding:0 4px}}@media screen and (min-width:783px){.submissions-list .notice{margin:5px 0 2px}#sform-wrap{padding-right:20px}.sform.wrap{margin:38px 20px 0 2px}h1.title{padding:10px 0}.nav-tab{border:1px solid #dcdfe6;line-height:24px}#editor-tabs a,#settings-tabs a{font-size:14px;margin-right:5px!important;padding:5px 25px}#attributes,#card,#settings{border:1px solid #dcdfe6}.options-heading,.options-heading span span{line-height:60px}.options-heading{padding:0 41px}.options-heading.closed>a>.settings-page,.options-heading.closed>a>.widgets-page,.options-heading.closed>span>#smpt-warnings{display:none}.options-heading>a>.settings-page,.options-heading>a>.widgets-page,.options-heading>span>#smpt-warnings{display:block}#set-page-icon,.icon-button{display:none}th.option{padding:36px 41px 30px;width:275px}td.checkbox-switch.notes{padding:34px 50px 12px 10px}td.checkbox-switch{padding:34px 50px 35px 10px}td.multicheckbox.notes{padding:33px 50px 7px 10px}td.last.select{padding:24px 50px 54px 9px}td.last.radio{padding:30px 50px 60px 10px}td.select.notes{padding:24px 50px 1px 9px}td.checkbox-switch.last.notes{padding:34px 50px 42px 10px}td.checkbox-switch.last{padding:34px 50px 65px 10px}td.text{padding:24px 50px 24px 9px}td.last.text{padding:24px 50px 54px 9px}td.radio{padding:30px 50px 30px 9px}td.last.select.notes{padding:24px 50px 31px 9px}td.textarea{padding:21px 50px 24px 9px}td.text.notes{padding:23px 50px 2px 9px}td.radio.notes{padding:30px 50px 7px 10px}td.radio.notes.last{padding:30px 50px 37px 10px}td.last.text.notes{padding:23px 50px 32px 9px}td.select{padding:24px 50px 24px 9px}td>p.description{padding-right:50px}td.plaintext{padding:36px 50px 36px 9px}td.plaintext.last{padding:36px 50px 66px 9px}td.plaintext.widget{padding:24px 50px 24px 9px;line-height:42px}td.plaintext.icon{padding:26px 50px 24px 9px}td.used-page{padding:36px 50px 36px 9px}td.last.textarea{padding:21px 50px 24px 9px}tr.outside th{padding:66px 41px 30px}tr.outside td.plaintext{padding:56px 50px 24px 9px}td.column-locks,th.column-locks,th.column-status,td.column-status{text-align:center}.dashicons-lock,.dashicons-unlock{width:100%}td.column-entries,td.column-forwarding,th.column-entries,th.column-forwarding{width:100px;text-align:center}td.column-movedentries,th.column-movedentries{width:150px;text-align:center}td.column-target,th.column-target{text-align:center}td.column-creation,th.column-creation{text-align:center}th.column-creation a{display:inline-flex}th.column-creation a span{margin-left:17px}th.column-creation a span.sorting-indicator{margin-left:7px}.button.admin{float:right;padding:3px 10px!important}.button.admin{float:right;padding:3px 10px!important}}#available-widgets [class*=sform] .widget-title:before{content:url("data:image/svg+xml,%3Csvg width='20px' height='20px' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180' %3E%3Cpath fill='currentColor' d='M96.326,111.597c0-18.193-0.167-36.391,0.053-54.58 c0.188-15.525,3.512-29.949,12.957-41.421c9.567-11.622,21.017-11.457,30.737-0.01c7.372,8.682,10.607,19.568,12.215,31.381 c0.732,5.379,0.851,10.786,0.849,16.214c-0.011,29.197-0.002,58.396-0.007,87.595c-0.002,6.48-4.014,10.405-9.378,9.323 c-1.924-0.389-1.816-2.022-1.926-3.624c-0.695-10.047-0.688-10.011-8.982-7.314c-6.804,2.212-13.586,4.543-20.463,6.387 c-3.582,0.962-5.123,2.99-4.787,7.271c0.146,1.889,0.034,3.815-0.05,5.717c-0.121,2.802-1.362,4.579-3.627,5.479 c-6.666,2.648-7.592,1.872-7.592-6.516C96.325,148.864,96.325,130.23,96.326,111.597z'%3E%3C/path%3E%3Cpath fill='currentColor' d='M27.769,107.198c0-15.412-0.03-30.824,0.006-46.234 c0.066-28.643,17.508-50.748,41.681-53.416c10.049-1.108,20.08-0.48,30.118-0.75c0.936-0.025,2.139-0.439,2.631,0.961 c0.478,1.368-0.575,2.092-1.229,2.922c-0.76,0.967-1.845,1.741-2.281,2.873c-2.752,7.121-7.72,7.832-13.544,7.427 c-6.419-0.445-12.871-0.373-19.217,1.558C49.624,27.498,38.989,43.42,39.058,63.261c0.029,8.499,0.51,16.996,0.485,25.493 c-0.039,13.634-0.362,27.268-0.496,40.901c-0.065,6.679,1.043,7.76,6.557,8.476c12.062,1.562,24.085,3.49,36.146,5.019 c3.442,0.438,4.282,2.441,4.271,6.104c-0.025,9.025-0.132,8.982-7.748,7.741c-11.527-1.878-23.107-3.308-34.656-5.002 c-3.365-0.496-4.713,0.846-4.562,5.06c0.346,9.731,0.213,8.388-7.725,7.188c-2.969-0.446-3.621-2.725-3.603-5.963 C27.816,141.25,27.769,124.225,27.769,107.198z'%3E%3C/path%3E%3Cpath fill='currentColor' d='M75.697,51.212c-5.191-0.897-10.416-0.479-15.628-0.553 c-2.054-0.029-2.659-0.985-2.13-3.342c1.504-6.724,6.782-12.072,12.691-12.477c3.083-0.211,6.184-0.019,9.271-0.12 c1.641-0.054,1.945,0.99,1.602,2.487c-0.899,3.906-1.4,7.864-1.404,11.914c-0.002,1.369-0.648,2.056-1.787,2.086 C77.44,51.23,76.568,51.212,75.697,51.212z'%3E%3C/path%3E%3Cpath fill='%23FFF' d='M73.535,48.245c-3.321-0.574-6.665-0.307-10.001-0.354 c-1.313-0.019-1.702-0.63-1.362-2.139c0.963-4.303,4.34-7.726,8.121-7.986c1.975-0.135,3.959-0.012,5.936-0.076 c1.049-0.035,1.244,0.633,1.024,1.592c-0.577,2.5-0.897,5.033-0.899,7.625c0,0.875-0.414,1.316-1.144,1.335 C74.651,48.256,74.094,48.245,73.535,48.245z'%3E%3C/path%3E%3C/svg%3E")}
     1.invisible{visibility:hidden}.removed,.secret,.unseen{display:none!important}#new-release{font-size:13px!important;line-height:1;color:#bbb;padding:14px 0!important;float:left;display:flex;line-height:1.5}#new-release a{color:#bbb;text-decoration:none}#new-release .update a{color:#f6866f}.wrap div.error,.wrap div.notice-success{margin:15px 0 10px}.full-width-bar{margin:0 -9999rem;padding:0 9999rem;clear:both}body,html{overflow-x:hidden}.full-width-bar>h1{margin:0}.sform.wrap>h1>div{float:right}h1.title{color:#fff;line-height:36px;font-size:22px;font-weight:500}h1.title>span{display:inline-block;padding:0 20px 0 0;position:relative;vertical-align:sub;font-size:28px;top:1px}.full-width-bar.default,h1.title.default{background-color:#2271b1!important}.full-width-bar.light,h1.title.light{background-color:#04a4cc!important}.full-width-bar.modern,h1.title.modern{background-color:#4664eb!important}.full-width-bar.blue,h1.title.blue{background-color:#e3af55!important}.full-width-bar.coffee,h1.title.coffee{background-color:#c7a589!important}.full-width-bar.ectoplasm,h1.title.ectoplasm{background-color:#a9bd4f!important}.full-width-bar.midnight,h1.title.midnight{background-color:#e35950!important}.full-width-bar.ocean,h1.title.ocean{background-color:#9ebaa0!important}.full-width-bar.sunrise,h1.title.sunrise{background-color:#dd823b!important}.full-width-bar.foggy,h1.title.foggy{background-color:#8993ab!important}.full-width-bar.polar,h1.title.polar{background-color:#fff!important;color:inherit}div.selector{display:inline-block;float:right}#wrap-selector{font-size:.6em;padding-right:10px;float:left}.form-selector{float:right;padding:0;top:0}select#form{line-height:34px;vertical-align:top}select#form.default{border-color:rgb(34 113 177 / 25%)}select#form.light{border-color:rgb(4 164 204 / 25%)}select#form.modern{border-color:rgb(56 88 233 / 25%)}select#form.blue{border-color:rgb(9 100 132 / 25%)}select#form.coffee{border-color:rgb(199 165 137 / 25%)}select#form.ectoplasm{border-color:rgb(163 183 69 / 25%)}select#form.midnight{border-color:rgb(225 77 67 / 25%)}select#form.ocean{border-color:rgb(158 186 160 / 25%)}select#form.sunrise{border-color:rgb(221 130 59 / 25%)}select#form.foggy{border-color:rgb(34 113 177 / 25%)}select#form.polar{border-color:#8993ab}select.default:focus,select.default:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.light:focus,select.light:hover{color:#04a4cc;border-color:#04a4cc;box-shadow:none}select.modern:focus,select.modern:hover{color:#3858e9;border-color:#3858e9;box-shadow:none}select.blue:focus,select.blue:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.coffee:focus,select.coffee:hover{color:#2271b1;border-color:#c7a589;box-shadow:none}select.ectoplasm:focus,select.ectoplasm:hover{color:#2271b1;border-color:#a3b745;box-shadow:none}select.midnight:focus,select.midnight:hover{color:#2271b1;border-color:#e14d43;box-shadow:none}select.ocean:focus,select.ocean:hover{color:#2271b1;border-color:#9ebaa0;box-shadow:none}select.sunrise:focus,select.sunrise:hover{color:#dd823b;border-color:#dcdfe6;box-shadow:none}select.foggy:focus,select.foggy:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.polar:focus,select.polar:hover{color:#53a0de;border-color:#53a0de;box-shadow:none}#page-description{padding:10px 0}.notice.trwidget{margin-top:30px}#editor-tabs,#settings-tabs{margin-left:15px;position:relative;right:0;left:0;min-height:35px;font-size:0;z-index:1;border-bottom:0}.nav-tab{padding:5px 25px;margin-left:5px;border-bottom:none!important;color:#8993ab!important;background:#dcdfe6}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:hover,.nav-tab.nav-tab-active:hover{background:#fff!important;color:#8993ab!important;border-bottom:1px solid #fff!important;margin-bottom:-1px}.nav-tab:focus,.nav-tab:hover{background-color:#8993ab;color:#fff!important;cursor:pointer}a .dashicons{line-height:26px;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none;text-decoration:none}#editor-tabs a,#settings-tabs a{position:relative;display:inline-block;margin:0;border-bottom:0;margin-bottom:-1px;text-decoration:none;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none}#editor-tabs a.form-button,#settings-tabs a.form-button{margin-right:0;float:right}#editor-tabs a.last,#settings-tabs a.last{margin-right:0!important}.form-button{background:#dcdfe6;color:#8993ab;border-bottom:none!important;border:1px solid #dcdfe6;line-height:24px}.form-button:focus{box-shadow:none;outline:0}.form-button>span{white-space:nowrap}.form-button>span>span.text{margin-left:5px}.form-button.default:hover{background:#f0f0f1;color:#2271b1}.form-button.light:hover{background:#f0f0f1;color:#04a4cc}.form-button.modern:hover{background:#f0f0f1;color:#3858e9}.form-button.blue:hover{background:#f0f0f1;color:#096484}.form-button.coffee:hover{background:#59524c;color:#fff}.form-button.ectoplasm:hover{background:#f0f0f1;color:#829237}.form-button.midnight:hover{background:#f0f0f1;color:#d02c21}.form-button.ocean:hover{background:#738e96;color:#fff}.form-button.sunrise:hover{background:#f0f0f1;color:#dd823b}.form-button.foggy:hover{background:#2271b1;color:#fff}.form-button.polar:hover{background:#53a0de;color:#fff}#attributes,#card,#settings{background:#fff;padding-top:25px}.options-heading span{cursor:pointer}.options-heading span span{padding-left:10px}.toggle.dashicons{color:#dcdfe6}.dashicons-arrow-up-alt2:hover{color:#f6866f}.dashicons-arrow-down-alt2:hover{color:#9bcc79}.options-heading.closed{margin-bottom:1.85em}.icon-button{color:#dcdfe6;font-size:26px;margin:-3px 0;float:right}.icon-button.default:hover{color:#2271b1}.icon-button.light:hover{color:#04a4cc}.icon-button.modern:hover{color:#3858e9}.icon-button.blue:hover{color:#096484}.icon-button.coffee:hover{color:#59524c}.icon-button.ectoplasm:hover{color:#a3b745}.icon-button.midnight:hover{color:#e14d43}.icon-button.ocean:hover{color:#738e96}.icon-button.sunrise:hover{color:#dd823b}.icon-button.foggy:hover{color:#72aee6}.icon-button.polar:hover{color:#53a0de}.settings-page.button,.widgets-page.button{text-align:center;float:right;margin-top:15px!important;padding:0 10px;border-radius:3px;font-size:13px;font-weight:600;cursor:pointer}.section.admin.collapsed,.section.akismet.collapsed,.section.auto.collapsed,.section.custom.collapsed,.section.fields.collapsed,.section.formdescription.collapsed,.section.formfields.collapsed,.section.layout.collapsed,.section.notification.collapsed,.section.recaptcha.collapsed,.section.rules.collapsed,.section.sending.collapsed,.section.smtp.collapsed,.section.spam.collapsed,.section.specifics.collapsed,.section.storage.collapsed,.section.style.collapsed,.section.submission.collapsed,.section.success.collapsed,.section.uninstall.collapsed{font-size:0;margin:0;opacity:0;padding:0;max-height:0;overflow:hidden;transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-webkit-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-moz-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-o-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s}.section.admin,.section.akismet,.section.custom,.section.formdescription,.section.layout,.section.rules,.section.sending,.section.spam,.section.style,.section.submission,.section.success,.section.uninstall{max-height:800px;transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-webkit-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-moz-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-o-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s}.section.auto,.section.notification,.section.recaptcha,.section.smtp,.section.specifics,.section.storage{max-height:1500px;transition:max-height 1.25s linear,opacity 1.5s,font-size 1.5s,margin 1.5s,padding 1.5s}.section.fields{max-height:3500px;transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-webkit-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-moz-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-o-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s}.section.formfields{max-height:5500px;transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-webkit-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-moz-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-o-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s}th>span{cursor:default}.switch-box{display:inline-table;width:100%;position:relative;height:20px;line-height:20px}.switch-input{position:relative;display:inline-block;float:left;margin-right:10px;width:40px;height:20px}.switch-input input{top:2px;left:4px;margin:0;position:absolute;opacity:0!important;width:20px;height:20px}.switch-input input:active+span{outline:0;box-shadow:none}.switch-label{display:inline-block;vertical-align:middle;width:calc(100% - 50px)}.switch-input input+span{position:absolute;z-index:1;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#dcdfe6;-webkit-transition:.4s;transition:.4s;-moz-transition:.4s;-o-transition:.4s;border-radius:20px;border:2px solid #dcdfe6}.switch-input input+span:before{position:absolute;content:"";height:16px;width:16px;background-color:#fff;-webkit-transition:.4s;transition:.4s;-moz-transition:.4s;-o-transition:.4s;border-radius:50%}.switch-input input:checked+span:before{-webkit-transform:translateX(20px);-ms-transform:translateX(20px);transform:translateX(20px)}label.multiselect{position:relative;cursor:pointer;display:inline-block;padding-left:34px;line-height:24px;margin-right:10px;margin-bottom:10px}label.multiselect.last{margin-right:0}input[type=checkbox].multiselect{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark{position:absolute;cursor:pointer;top:0;left:0;height:20px;width:20px;border-radius:4px;background-color:#dcdfe6;border:2px solid #dcdfe6}.checkmark:after{left:7px;top:2px;width:4px;height:10px;border:solid #fff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);content:"";position:absolute;display:none}input[type=checkbox]:checked+.checkmark{background-color:#0d6efd;border:2px solid #0d6efd}input[type=checkbox]:checked+.checkmark:after{display:block}#columns-description.description{margin-top:-3px}form.default .switch-input input:checked+span,form.default input[type=checkbox]:checked+.checkmark{background:#2271b1;border:2px solid #2271b1}form.default .switch-input input:active+span{outline:0;box-shadow:none}form.light .switch-input input:checked+span,form.light input[type=checkbox]:checked+.checkmark{background:#04a4cc;border:2px solid #04a4cc}form.light .switch-input input:active+span{outline:0;box-shadow:none}form.modern .switch-input input:checked+span,form.modern input[type=checkbox]:checked+.checkmark{background:#3858e9;border:2px solid #3858e9}form.modern .switch-input input:active+span{outline:0;box-shadow:none}form.blue .switch-input input:checked+span,form.blue input[type=checkbox]:checked+.checkmark{background:#096484;border:2px solid #096484}form.blue .switch-input input:active+span{outline:0;box-shadow:none}form.coffee .switch-input input:checked+span,form.coffee input[type=checkbox]:checked+.checkmark{background:#c7a589;border:2px solid #c7a589}form.coffee .switch-input input:active+span{outline:0;box-shadow:none}form.ectoplasm .switch-input input:checked+span,form.ectoplasm input[type=checkbox]:checked+.checkmark{background:#a3b745;border:2px solid #a3b745}form.ectoplasm .switch-input input:active+span{outline:0;box-shadow:none}form.midnight .switch-input input:checked+span,form.midnight input[type=checkbox]:checked+.checkmark{background:#e14d43;border:2px solid #e14d43}form.midnight .switch-input input:active+span{outline:0;box-shadow:none}form.ocean .switch-input input:checked+span,form.ocean input[type=checkbox]:checked+.checkmark{background:#9ebaa0;border:2px solid #9ebaa0}form.ocean .switch-input input:active+span{outline:0;box-shadow:none}form.sunrise .switch-input input:checked+span,form.sunrise input[type=checkbox]:checked+.checkmark{background:#dd823b;border:2px solid #dd823b}form.sunrise .switch-input input:active+span{outline:0;box-shadow:none}form.foggy .switch-input input:checked+span,form.foggy input[type=checkbox]:checked+.checkmark{background:#2271b1;border:2px solid #2271b1}form.foggy .switch-input input:active+span{outline:0;box-shadow:none}form.polar .switch-input input:checked+span,form.polar input[type=checkbox]:checked+.checkmark{background:#53a0de;border:2px solid #53a0de}form.polar .switch-input input:active+span{outline:0;box-shadow:none}input[type=radio]{border:2px solid #dcdfe6;height:18px;width:18px;margin-top:-3px!important;margin-right:10px!important}form.default input[type=radio]:checked,form.foggy input[type=radio]:checked{background:#2271b1;border-color:#2271b1}form.default input[type=radio]:active,form.default input[type=radio]:focus,form.foggy input[type=radio]:active,form.foggy input[type=radio]:focus{border-color:#2271b1;outline:0;box-shadow:none}form.light input[type=radio]:active,form.light input[type=radio]:focus{border-color:#04a4cc;outline:0;box-shadow:none}form.light input[type=radio]:checked{background:#04a4cc;border-color:#04a4cc}form.modern input[type=radio]:active,form.modern input[type=radio]:focus{border-color:#3858e9;outline:0;box-shadow:none}form.modern input[type=radio]:checked{background:#3858e9;border-color:#3858e9}form.blue input[type=radio]:active,form.blue input[type=radio]:focus{border-color:#096484;outline:0;box-shadow:none}form.blue input[type=radio]:checked{background:#096484;border-color:#096484}form.coffee input[type=radio]:active,form.coffee input[type=radio]:focus{border-color:#c7a589;outline:0;box-shadow:none}form.coffee input[type=radio]:checked{background:#c7a589;border-color:#c7a589}form.ectoplasm input[type=radio]:active,form.ectoplasm input[type=radio]:focus{border-color:#a3b745;outline:0;box-shadow:none}form.ectoplasm input[type=radio]:checked{background:#a3b745;border-color:#a3b745}form.midnight input[type=radio]:active,form.midnight input[type=radio]:focus{border-color:#e14d43;outline:0;box-shadow:none}form.midnight input[type=radio]:checked{background:#e14d43;border-color:#e14d43}form.ocean input[type=radio]:active,form.ocean input[type=radio]:focus{border-color:#9ebaa0;outline:0;box-shadow:none}form.ocean input[type=radio]:checked{background:#9ebaa0;border-color:#9ebaa0}form.sunrise input[type=radio]:active,input[type=radio]:focus{border-color:#dd823b;outline:0;box-shadow:none}form.sunrise input[type=radio]:checked{background:#dd823b;border-color:#dd823b}form.polar input[type=radio]:active,form.polar input[type=radio]:focus{border-color:#53a0de;outline:0;box-shadow:none}form.polar input[type=radio]:checked{background:#53a0de;border-color:#53a0de}input[type=radio]:checked::before{background-color:#fff}.form-table td fieldset label{margin-right:20px!important}textarea{height:230px!important;width:100%;padding:10px 15px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:#fff!important;border:2px solid #dcdfe6;font-size:14px!important;line-height:24px!important;color:#444}textarea.description{height:148px!important}textarea.labels{height:100px!important}input.sform{width:100%}input.sform[type=number]{width:90px!important;text-align:center}form.default input[type=number]:focus,form.default input[type=text]:focus,form.default select.sform:focus,form.default textarea:focus{border:2px solid #2271b1!important;border-color:#2271b1;outline:0;box-shadow:none}form.light input[type=number]:focus,form.light input[type=text]:focus,form.light select.sform:focus,form.light textarea:focus{border:2px solid #04a4cc!important;border-color:#04a4cc;outline:0;box-shadow:none}form.modern input[type=number]:focus,form.modern input[type=text]:focus,form.modern select.sform:focus,form.modern textarea:focus{border:2px solid #3858e9!important;border-color:#3858e9;outline:0;box-shadow:none}form.blue input[type=number]:focus,form.blue input[type=text]:focus,form.blue select.sform:focus,form.blue textarea:focus{border:2px solid #096484!important;border-color:#096484;outline:0;box-shadow:none}form.coffee input[type=number]:focus,form.coffee input[type=text]:focus,form.coffee select.sform:focus,form.coffee textarea:focus{border:2px solid #c7a589!important;border-color:#c7a589;outline:0;box-shadow:none}form.ectoplasm input[type=number]:focus,form.ectoplasm input[type=text]:focus,form.ectoplasm select.sform:focus,form.ectoplasm textarea:focus{border:2px solid #a3b745!important;border-color:#a3b745;outline:0;box-shadow:none}form.midnight input[type=number]:focus,form.midnight input[type=text]:focus,form.midnight select.sform:focus,form.midnight textarea:focus{border:2px solid #e14d43!important;border-color:#e14d43;outline:0;box-shadow:none}form.ocean input[type=number]:focus,form.ocean input[type=text]:focus,form.ocean select.sform:focus,form.ocean textarea:focus{border:2px solid #9ebaa0!important;border-color:#9ebaa0;outline:0;box-shadow:none}form.sunrise input[type=number]:focus,form.sunrise input[type=text]:focus,form.sunrise select.sform:focus,form.sunrise textarea:focus{border-color:#dd823b;border:2px solid #dd823b!important;color:#dd823b;outline:0;box-shadow:none}form.foggy input[type=number]:focus,form.foggy input[type=text]:focus,form.foggy select.sform:focus,form.foggy textarea:focus{border:2px solid #2271b1!important;border-color:#2271b1;outline:0;box-shadow:none}form.polar input[type=number]:focus,form.polar input[type=text]:focus,form.polar select.sform:focus,form.polar textarea:focus{border:2px solid #53a0de;border-color:#53a0de;outline:0;box-shadow:none}input.sform[type=number],input.sform[type=text],select.sform{height:42px!important;padding:10px 15px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:#fff!important;border:2px solid #dcdfe6;font-size:14px!important;line-height:24px!important;color:#444}select.sform{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:2px 20px 2px 8px!important;padding-right:30px!important}form.default select.sform:focus,form.default select.sform:hover{color:#2271b1}form.light select.sform:focus,form.light select.sform:hover{color:#04a4cc}form.modern select.sform:focus,form.modern select.sform:hover{color:#3858e9}form.blue select.sform:focus,form.modern blue.sform:hover{color:#2271b1}form.coffee select.sform:focus,form.coffee select.sform:hover{color:#2271b1}form.ectoplasm select.sform:focus,form.ectoplasm select.sform:hover{color:#2271b1}form.midnight select.sform:focus,form.midnight select.sform:hover{color:#2271b1}form.ocean select.sform:focus,form.ocean select.sform:hover{color:#2271b1}form.sunrise select.sform:hover{color:#dd823b}form.foggy select.sform:focus,form.foggy select.sform:hover{color:#2271b1}form.polar select.sform:focus,form.polar select.sform:hover{color:#53a0de}td>p.description{margin-bottom:-2px;letter-spacing:-.6px}#deletion-toggle.default,#smpt-warnings.default,form.default .privacy-setting.button,form.default .settings-page.button,form.default .widgets-page.button,span.default.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.light,#smpt-warnings.light,form.light .privacy-setting.button,form.light .settings-page.button,form.light .widgets-page.button,span.light.button.unavailable{color:#04a4cc;border-color:#04a4cc}#deletion-toggle.modern,#smpt-warnings.modern,form.modern .privacy-setting.button,form.modern .settings-page.button,form.modern .widgets-page.button,span.modern.button.unavailable{color:#3858e9;border-color:#3858e9}#deletion-toggle.blue,#smpt-warnings.blue,form.blue .privacy-setting.button,form.blue .settings-page.button,form.blue .widgets-page.button,span.blue.button.unavailable{color:#096484;border-color:#096484}#deletion-toggle.coffee,#smpt-warnings.coffee,form.coffee .privacy-setting.button,form.coffee .settings-page.button,form.coffee .widgets-page.button,span.coffee.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.coffee:hover,#smpt-warnings.coffee:hover,form.coffee .privacy-setting.button:hover,form.coffee .settings-page.button:hover,form.coffee .widgets-page.button:hover,span.coffee.button.unavailable:hover{color:#fff;border-color:#59524c;background-color:#59524c}#deletion-toggle.ectoplasm,#smpt-warnings.ectoplasm,form.ectoplasm .privacy-setting.button,form.ectoplasm .settings-page.button,form.ectoplasm .widgets-page.button,span.ectoplasm.button.unavailable{color:#a3b745;border-color:#a3b745}#deletion-toggle.ectoplasm:hover,#smpt-warnings.ectoplasm:hover,form.ectoplasm .privacy-setting.button:hover,form.ectoplasm .settings-page.button:hover,form.ectoplasm .widgets-page.button:hover,span.ectoplasm.button.unavailable:hover{color:#829237;border-color:#829237}#deletion-toggle.midnight,#smpt-warnings.midnight,form.midnight .privacy-setting.button,form.midnight .settings-page.button,form.midnight .widgets-page.button,span.midnight.button.unavailable{color:#e14d43;border-color:#e14d43}#deletion-toggle.midnight:hover,#smpt-warnings.midnight:hover,form.midnight .privacy-setting.button:hover,form.midnight .settings-page.button:hover,form.midnight .widgets-page.button:hover,span.midnight.button.unavailable:hover{color:#d02c21;border-color:#d02c21}#deletion-toggle.ocean,#smpt-warnings.ocean,form.ocean .privacy-setting.button,form.ocean .settings-page.button,form.ocean .widgets-page.button,span.ocean.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.ocean:hover,#smpt-warnings.ocean:hover,form.ocean .privacy-setting.button:hover,form.ocean .settings-page.button:hover,form.ocean .widgets-page.button:hover,span.ocean.button.unavailable:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}#deletion-toggle.sunrise,#smpt-warnings.sunrise,form.sunrise .privacy-setting.button,form.sunrise .settings-page.button,form.sunrise .widgets-page.button,span.sunrise.button.unavailable{color:#dd823b;border-color:#dd823b}#deletion-toggle.foggy,#smpt-warnings.foggy,form.foggy .privacy-setting.button,form.foggy .settings-page.button,form.foggy .widgets-page.button,span.foggy.button.unavailable{color:#72aee6;border-color:#72aee6}#deletion-toggle.polar,#smpt-warnings.polar,form.polar .privacy-setting.button,form.polar .settings-page.button,form.polar .widgets-page.button,span.polar.button.unavailable{color:#53a0de;border-color:#53a0de}#deletion-toggle.polar:hover,#smpt-warnings.polar:hover,form.polar .privacy-setting.button:hover,form.polar .settings-page.button:hover,form.polar .widgets-page.button:hover,span.polar.button.unavailable:hover{color:#fff;background-color:#53a0de}select.sform:disabled:hover{color:#a7aaad!important}.switch-input input:disabled+span{cursor:default;box-shadow:none!important}label.disabled{cursor:default}.switch-input input:disabled:checked+span{opacity:.7}input[type=radio]:disabled,input[type=radio]:disabled:checked{cursor:default;box-shadow:none!important}input[type=radio]:disabled:active,input[type=radio]:disabled:focus{border-color:#dcdfe6!important}input[type=radio]:disabled:active:checked,input[type=radio]:disabled:focus:checked{border-color:#53a0de!important}input[type=checkbox]:disabled{opacity:0!important}#submit-wrap{margin:0 auto;text-align:center;padding:0 40px 100px}#alert-wrap{position:relative}#noscript{position:absolute;left:0;right:0;color:#fff;border-radius:8px;background:#dc3545;margin:0 75px 25px;line-height:30px;height:30px;padding:9px}#message-wrap{visibility:hidden;color:#909090;border-radius:8px;background:#f2f2f2;margin:0 75px 38px;line-height:30px;height:30px;padding:9px}#message-wrap.error{background:#f6866f;border:0;color:#fff}#message-wrap.success{background:#9bcc79;color:#fff}#message-wrap.unchanged{background:#f8cd5e;color:#fff}#message-wrap.seen{visibility:visible}.submit-button{padding:5px 12px;outline:0;border-radius:8px;font-size:13px;text-transform:uppercase;cursor:pointer;line-height:2.15384615;min-height:30px;border:none}form.default .submit-button{background:#2271b1;color:#fff}form.default .submit-button:hover{background:#135e96;color:#fff}form.default .submit-button:active{background:#135e96;color:#fff}form.light .submit-button{background:#04a4cc;color:#fff}form.light .submit-button:hover{background:#04b0db;color:#fff}form.light .submit-button:active{background:#0490b3;color:#fff}form.modern .submit-button{background:#3858e9;color:#fff}form.modern .submit-button:hover{background:#4664eb;color:#fff}form.modern .submit-button:active{background:#2145e6;color:#fff}form.blue .submit-button{background:#e1a948;color:#fff}form.blue .submit-button:hover{background:#e3af55;color:#fff}form.blue .submit-button:active{background:#dd9f32;color:#fff}form.coffee .submit-button{background:#c7a589;color:#fff}form.coffee .submit-button:hover{background:#ccad93;color:#fff}form.coffee .submit-button:active{background:#bf9878;color:#fff}form.ectoplasm .submit-button{background:#a3b745;color:#fff}form.ectoplasm .submit-button:hover{background:#a9bd4f;color:#fff}form.ectoplasm .submit-button:active{background:#93a43e;color:#fff}form.midnight .submit-button{background:#e14d43;color:#fff}form.midnight .submit-button:hover{background:#e35950;color:#fff}form.midnight .submit-button:active{background:#dd382d;color:#fff}form.ocean .submit-button{background:#9ebaa0;color:#fff}form.ocean .submit-button:hover{background:#a7c0a9;color:#fff}form.ocean .submit-button:active{background:#8faf91;color:#fff}form.sunrise .submit-button{background:#dd823b;color:#fff}form.sunrise .submit-button:hover{background:#c36922;color:#fff}form.sunrise .submit-button:active{background:#d97426;color:#fff}form.foggy .submit-button{background:#2271b1;color:#fff}form.foggy .submit-button:hover{background:#135e96;color:#fff}form.foggy .submit-button:active{background:#135e96;color:#fff}form.polar .submit-button{background:#53a0de;color:#fff}form.polar .submit-button:hover{background:#77b4e5;color:#fff}form.polar .submit-button:active{background:#318dd7;color:#fff}span.button.unavailable{float:left;margin-right:10px}span.button.unavailable a{color:#fff;text-decoration:none}span.button.unavailable:hover a{color:#fff}#set-page-icon.default:hover,span.default.button.unavailable a{color:#2271b1}#set-page-icon.light:hover,span.light.button.unavailable a{color:#04a4cc}#set-page-icon.modern:hover,span.modern.button.unavailable a{color:#3858e9}#set-page-icon.blue:hover,span.blue.button.unavailable a{color:#096484}#set-page-icon.coffee:hover,span.coffee.button.unavailable a{color:#2271b1}span.coffee.button.unavailable:hover a{color:#fff}#set-page-icon.ectoplasm:hover,span.ectoplasm.button.unavailable a{color:#a3b745}span.ectoplasm.button.unavailable:hover a{color:#829237}#set-page-icon.midnight:hover,span.midnight.button.unavailable a{color:#e14d43}#set-page-icon.ocean:hover,span.ocean.button.unavailable a{color:#2271b1}span.ocean.button.unavailable:hover a{color:#fff}#set-page-icon.sunrise:hover,span.sunrise.button.unavailable a{color:#dd823b}#set-page-icon.foggy:hover,span.foggy.button.unavailable a{color:#72aee6}#set-page-icon.polar:hover,span.polar.button.unavailable a{color:#53a0de}span.polar.button.unavailable:hover a{color:#fff}.publish-link{text-decoration:none;color:#9ccc79}.publish-link:hover{color:#9ccc79}input[placeholder]{text-overflow:ellipsis}::-moz-placeholder{text-overflow:ellipsis}input:-moz-placeholder{text-overflow:ellipsis}.head-bracket{font-style:italic;font-weight:400;padding-left:10px}#shortcode-copy{margin-left:5px;border:none;outline:0;background-color:transparent;line-height:inherit;width:40px;height:40px;padding:8px;border-radius:40px;cursor:pointer}#shortcode-copy:hover{background-color:#eee!important}#shortcode-copy:active{background-color:#dcdfe6!important}#shortcode-copy img{vertical-align:middle;width:24px}#shortcode-tooltip{background-color:#8993ab;color:#fff!important;padding:4px 7px;border-radius:5px;font-size:.75rem;margin-left:5px}.widgets-page.button{text-align:center;float:right;margin-top:6px!important;border-radius:4px;font-size:.9em;font-weight:600;cursor:pointer}.slug{margin-left:10px}.privacy-setting.button{text-align:center;float:none;margin-top:6px!important;border-radius:4px;font-size:.9em;font-weight:600;cursor:pointer}#label-error,.privacy-setting{margin-left:10px!important}#label-error-top{margin-left:10px!important;font-weight:400!important;color:#f6866f}#set-page-icon{float:right;margin-top:-17px;cursor:pointer}#post-status{margin-right:25px}span.description.left{font-size:13px;font-style:italic;padding-left:10px}#form-borders{margin-left:20px}#smpt-warnings{margin-top:15px!important;font-size:13px;text-align:center;float:right;border-radius:4px;font-weight:400;cursor:pointer}tr.smpt-warnings{background-color:#e4e7ec}div.description h4{margin:1.3em 0}tr.smpt-warnings>td{padding:18px 41px 30px 36px;vertical-align:none;border-width:0 0 0 5px;border-style:solid;background:#e5f5fa;border-color:#00a0d2}.description pre{white-space:pre-wrap}#smpt-warnings:hover{background:#f0f0f1}.notice-toggle{white-space:nowrap}.submission-notice>.notice{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:15px}#submissions-data{padding:0;display:flex}#submissions-data li{float:left;padding:20px 0;width:19%;text-align:center;background:#dcdfe6;opacity:.65;padding-bottom:26px}#submissions-data li:hover{opacity:1}.type{margin-right:1.25%}.label{color:#666;text-transform:uppercase;font-size:.8em}.value{display:block;clear:both;font-size:1.75em;font-weight:300;line-height:40px}#empty-submission,#last-submission,#submissions-notice{padding:30px 30px 50px;margin-top:20px;background:#fff}#empty-submission h3,#last-submission h3,#submissions-notice h3{line-height:30px}#deletion-notice{padding:5px 40px 30px;margin:0 -40px;background:#eb8a84;color:#fff;margin-bottom:-23px}#deletion-notice h3{line-height:30px;color:#fff}#deletion-notice .disclaimer{display:inline-block;padding:6px 0;width:60%}#deletion-notice .delete{display:inline-block;padding:6px 10px;background:#fff;color:#e35950;border-radius:5px;cursor:pointer}#deletion-notice .cancel{margin-right:50px}input.delete{font-size:inherit;margin:0;border:0;line-height:inherit}#deletion-toggle{margin-top:30px;font-size:13px;font-weight:600;text-align:center;float:right;border-radius:4px;font-weight:400;cursor:pointer;padding:6px 10px;background:#fff;border-style:solid;border-width:1px}#deletion-toggle:hover{background:#f0f0f1}#deletion-buttons{float:right;width:auto}@media screen and (max-width:960px){#deletion-notice .disclaimer{width:100%}#deletion-buttons{width:100%;text-align:center;float:none;margin:20px 0 0}}#deletion-notice span.dashicons,#empty-submission span.dashicons,#last-submission span.dashicons,#submissions-notice span.dashicons{font-size:30px;width:30px;height:30px;padding-right:10px}.row{box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-.5rem;margin-left:-.5rem}.columns-body{padding:10px}.columns-body>h4{margin-top:15px;margin-bottom:5px}@media only screen and (min-width:75em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%;box-sizing:border-box;-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:.5rem;padding-left:.5rem}}@media only screen and (min-width:48em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media only screen and (min-width:64em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media only screen and (max-width:36em){.columns-wrap{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}}#visibility-notes{font-size:12px;margin-top:5px;letter-spacing:-.25px}.widget-pages p.first{margin-bottom:5px!important}p.last,p.visibility{margin-bottom:0!important}.widget-alert{margin-top:15px;margin-right:-15px;margin-left:-15px;padding:0 15px;color:#fff;background:#f6866f}.widget-alert div{padding:6px 0}.sform-widget-notes{font-size:12px;margin-top:5px;letter-spacing:-.25px}.sform-widget-boxes{margin-top:30px}.sform-widget-boxes.buttons p label{line-height:40px}.sform-widget-description{font-size:12px;margin-top:5px;letter-spacing:-.25px}.widget-button{padding:6px 10px;background:#007cba;border-color:#007cba;color:#fff;font-size:12px;width:90px;margin-top:6px;text-align:center;cursor:pointer}.widget-button:hover{background:#0071a1;border-color:#0071a1}#widget-button-editor{float:left}#widget-button-settings{float:right}#widget-button-editor,#widget-button-settings{text-align:center;padding:0 10px;border-radius:4px;font-weight:600;cursor:pointer}p#widget-buttons{margin-top:1em;height:42px}#widget-button-editor.default,#widget-button-settings.default,.support.button.default{color:#2271b1;border-color:#2271b1}#widget-button-editor.light,#widget-button-settings.light,.support.button.light{color:#04a4cc;border-color:#04a4cc}#widget-button-editor.modern,#widget-button-settings.modern,.support.button.modern{color:#3858e9;border-color:#3858e9}#widget-button-editor.blue,#widget-button-settings.blue,.support.button.blue{color:#096484;border-color:#096484}#widget-button-editor.coffee,#widget-button-settings.coffee,.support.button.coffee{color:#2271b1;border-color:#2271b1}#widget-button-editor.coffee:hover,#widget-button-settings.coffee:hover,.support.button.coffee:hover{color:#fff;border-color:#59524c;background-color:#59524c}#widget-button-editor.ectoplasm,#widget-button-settings.ectoplasm,.support.button.ectoplasm{color:#a3b745;border-color:#a3b745}#widget-button-editor.ectoplasm:hover,#widget-button-settings.ectoplasm:hover,.support.button.ectoplasm:hover{color:#829237;border-color:#829237}#widget-button-editor.midnight,#widget-button-settings.midnight,.support.button.midnight{color:#e14d43;border-color:#e14d43}#widget-button-editor.midnight:hover,#widget-button-settings.midnight:hover,.support.button.midnight:hover{color:#d02c21;border-color:#d02c21}#widget-button-editor.ocean,#widget-button-settings.ocean,.support.button.ocean{color:#2271b1;border-color:#2271b1}#widget-button-editor.ocean:hover,#widget-button-settings.ocean:hover,.support.button.ocean:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}#widget-button-editor.sunrise,#widget-button-settings.sunrise,.support.button.sunrise{color:#dd823b;border-color:#dd823b}#widget-button-editor.foggy,#widget-button-settings.foggy,.support.button.foggy{color:#72aee6;border-color:#72aee6}#widget-button-editor.polar,#widget-button-settings.polar,.support.button.polar{color:#53a0de;border-color:#53a0de}#widget-button-editor.polar:hover,#widget-button-settings.polar:hover,.support.button.polar:hover{color:#fff;background-color:#53a0de}.checkbox-switch.default:hover p{visibility:visible}.dashicons-lock.red,.lock.notes.red{color:#d63638}.dashicons-lock.orange,.lock.notes.orange{color:orange}.dashicons-unlock,.lock.notes{color:#85c641}.dashicons-lock:hover+span,.dashicons-unlock:hover+span{visibility:visible}#card-submit-wrap{margin:0 auto;padding:0 40px 100px}#alert-wrap,#form-buttons{text-align:center}.button.back-list.default{color:#2271b1;border-color:#2271b1}.button.back-list.light{color:#04a4cc;border-color:#04a4cc}.button.back-list.modern{color:#3858e9;border-color:#3858e9}.button.back-list.blue{color:#096484;border-color:#096484}.button.back-list.coffee{color:#2271b1;border-color:#2271b1}.button.back-list.coffee:hover{color:#fff;border-color:#59524c;background-color:#59524c}.button.back-list.ectoplasm{color:#a3b745;border-color:#a3b745}.button.back-list.ectoplasm:hover{color:#829237;border-color:#829237}.button.back-list.midnight{color:#e14d43;border-color:#e14d43}.button.back-list.midnight:hover{color:#d02c21;border-color:#d02c21}.button.back-list.ocean{color:#2271b1;border-color:#2271b1}.button.back-list.ocean:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}.button.back-list.sunrise{color:#dd823b;border-color:#dd823b}.button.back-list.foggy{color:#72aee6;border-color:#72aee6}.button.back-list.polar{color:#53a0de;border-color:#53a0de}.button.back-list.polar:hover{color:#fff;background-color:#53a0de}.forwarding{padding-right:3px}#deletion-notice.success{text-align:center;background:#75c375}#deletion-notice .disclaimer.success{padding:0;line-height:48px}#deletion-notice .disclaimer.success span{font-size:80px;width:68px;height:48px;line-height:48px;padding-right:0}#deletion-notice.confirm{background:#d63638}div.notice{margin-top:13px!important}@media screen and (max-width:374px){#editor-tabs a,#settings-tabs a{font-size:.75rem}}@media screen and (max-width:520px){.type{margin-right:0!important;border-right:1px solid #8993ab!important}#submissions-data{margin:15px 0!important}#submissions-data li{padding:20px 7px!important;width:calc(20% -1px)!important}.label{font-size:.7em!important;letter-spacing:-.5px}.value{font-size:1.25em!important}#empty-submission,#last-submission,#submissions-notice{padding:10px 15px 30px!important;margin:20px 0!important}#last-submission{overflow:auto}label.multiselect{width:100%}}@media screen and (max-width:782px){#deletion-notice{padding:5px 10px 30px!important;margin:0 -50px!important}.submissions-list .notice{margin:20px}#deletion-toggle{margin:20px;margin-top:30px}#page-description.overview{padding:10px 0!important;margin-left:-10px!important;margin-right:-10px!important}#submissions-data li{width:20%}.type{margin-right:0;border-right:1px solid #8993ab!important}.label{font-size:.75em}#empty-submission,#last-submission,#submissions-notice{padding:30px 20px 50px!important}#sform-wrap{padding-right:10px}#page-description{padding:10px}form{padding:10px}.sform.wrap{margin-top:0}.responsive{display:none!important}h1.title{padding:10px}select#form{padding:0 24px 0 8px;min-height:34px;font-size:13px}.wrap{margin-right:0;padding-right:10px;margin-left:-10px;padding-left:10px}.nav-tab{border:none;line-height:26px}#editor-tabs #card-tabs,#settings-tabs,form#attributes,form#card,form#settings{margin:0 -10px}#editor-tabs,#settings-tabs{overflow:hidden;padding:0 0 0 10px;height:auto;margin-left:-10px!important;margin-right:-10px}.form-button{line-height:25px}#editor-tabs a,#settings-tabs a{margin-right:0!important;padding:5px 8px!important;font-weight:400}#attributes,#card,#settings{border:none}.options-heading{padding:0 10px 10px}.options-heading.closed>a>.icon-button,.options-heading.closed>span>.icon-button{display:none}.options-heading>a>.icon-button,.options-heading>span>.icon-button{display:block}th.option{padding:15px 10px}td.checkbox-switch,td.checkbox-switch.notes,td.multicheckbox.notes,td.plaintext,td.plaintext.last,td.radio,td.radio.notes,td.radio.notes.last,td.select,td.select.notes,td.text,td.text.notes,td.textarea,td.used-page{padding:10px}td.plaintext.icon{padding:0 10px}td.plaintext.widget #edit-widget{margin-top:-11px!important;margin-bottom:0!important}td.checkbox-switch.last,td.checkbox-switch.last.notes,td.last.radio,td.last.select,td.last.select.notes,td.last.text,td.last.text.notes,td.last.textarea,td.last.used-page{padding:10px 10px 40px}#label-error,#set-page{display:none}label-error-top{display:block}label.radio{width:100%}#smpt-warnings.text,.privacy-setting.button,.settings-page.button,.widgets-page.button,a .text{display:none}input[type=radio]:checked::before{width:.5rem;height:.5rem;margin:.1875rem}tr.outside th{padding:45px 10px 15px}tr.outside td.plaintextt{padding:10px}#attributes{margin:0 -10px}#editor-tabs a.form-page{margin-right:5px!important}td.column-locks span{margin-left:-5px;margin-top:-1px}.lock.notes{padding:3px 10px}.icon-button{line-height:46px!important}.button.back-list{display:none}.subsubsub{font-size:13px;width:100%}.tablenav .tablenav-pages{margin:0}.tablenav.top,p.search-box{text-align:center}.tablenav.top{margin:20px 0 12px 0}.tablenav.bottom{margin:8px 20px 0}#forms-table .tablenav .button{margin-bottom:0!important;margin-left:10px;margin-right:0!important}.row-actions{display:flex!important}#forms-table{padding:20px 0 10px 0}.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column,tbody td.check-column{padding:8px 0 0 10px}.widefat td,.widefat th{padding:14px 10px}input[type=checkbox]{margin:2px 0 8px 10px!important}.widefat tfoot td input[type=checkbox],.widefat thead td input[type=checkbox]{margin:0 0 8px 10px!important}.wp-list-table .toggle-row{top:16px}.wp-list-table .is-expanded td:not(.hidden){padding-bottom:10px!important;padding-right:20px!important}.tablenav-pages .pagination-links{font-size:13px}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{display:inline-block;vertical-align:baseline;min-width:30px;min-height:30px;margin:0!important;padding:0 4px;font-size:16px;line-height:1.625;text-align:center;margin-left:10px}.tablenav-pages .pagination-links .current-page{margin:0 2px 0 0;font-size:13px;text-align:center;min-width:30px;min-height:30px;margin:0;padding:0 4px}}@media screen and (min-width:783px){.submissions-list .notice{margin:5px 0 2px}#sform-wrap{padding-right:20px}.sform.wrap{margin:38px 20px 0 2px}h1.title{padding:10px 0}.nav-tab{border:1px solid #dcdfe6;line-height:24px}#editor-tabs a,#settings-tabs a{font-size:14px;margin-right:5px!important;padding:5px 12px}#attributes,#card,#settings{border:1px solid #dcdfe6}.options-heading,.options-heading span span{line-height:60px}.options-heading{padding:0 41px}.options-heading.closed>a>.settings-page,.options-heading.closed>a>.widgets-page,.options-heading.closed>span>#smpt-warnings{display:none}.options-heading>a>.settings-page,.options-heading>a>.widgets-page,.options-heading>span>#smpt-warnings{display:block}#set-page-icon,.icon-button{display:none}th.option{padding:36px 41px 30px;width:275px}td.checkbox-switch.notes{padding:34px 50px 12px 10px}td.checkbox-switch{padding:34px 50px 35px 10px}td.multicheckbox.notes{padding:33px 50px 7px 10px}td.last.select{padding:24px 50px 54px 9px}td.last.radio{padding:30px 50px 60px 10px}td.select.notes{padding:24px 50px 1px 9px}td.checkbox-switch.last.notes{padding:34px 50px 42px 10px}td.checkbox-switch.last{padding:34px 50px 65px 10px}td.text{padding:24px 50px 24px 9px}td.last.text{padding:24px 50px 54px 9px}td.radio{padding:30px 50px 30px 9px}td.last.select.notes{padding:24px 50px 31px 9px}td.textarea{padding:21px 50px 24px 9px}td.text.notes{padding:23px 50px 2px 9px}td.radio.notes{padding:30px 50px 7px 10px}td.radio.notes.last{padding:30px 50px 37px 10px}td.last.text.notes{padding:23px 50px 32px 9px}td.select{padding:24px 50px 24px 9px}td>p.description{padding-right:50px}td.plaintext{padding:36px 50px 36px 9px}td.plaintext.last{padding:36px 50px 66px 9px}td.plaintext.widget{padding:24px 50px 24px 9px;line-height:42px}td.plaintext.icon{padding:26px 50px 24px 9px}td.used-page{padding:36px 50px 36px 9px}td.last.textarea{padding:21px 50px 24px 9px}tr.outside th{padding:66px 41px 30px}tr.outside td.plaintext{padding:56px 50px 24px 9px}td.column-locks,th.column-locks,th.column-status,td.column-status{text-align:center}.dashicons-lock,.dashicons-unlock{width:100%}td.column-entries,td.column-forwarding,th.column-entries,th.column-forwarding{width:100px;text-align:center}td.column-movedentries,th.column-movedentries{width:150px;text-align:center}td.column-target,th.column-target{text-align:center}td.column-creation,th.column-creation{text-align:center}th.column-creation a{display:inline-flex}th.column-creation a span{margin-left:17px}th.column-creation a span.sorting-indicator{margin-left:7px}.button.admin{float:right;padding:3px 10px!important}.button.admin{float:right;padding:3px 10px!important}}#available-widgets [class*=sform] .widget-title:before{content:url("data:image/svg+xml,%3Csvg width='20px' height='20px' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180' %3E%3Cpath fill='currentColor' d='M96.326,111.597c0-18.193-0.167-36.391,0.053-54.58 c0.188-15.525,3.512-29.949,12.957-41.421c9.567-11.622,21.017-11.457,30.737-0.01c7.372,8.682,10.607,19.568,12.215,31.381 c0.732,5.379,0.851,10.786,0.849,16.214c-0.011,29.197-0.002,58.396-0.007,87.595c-0.002,6.48-4.014,10.405-9.378,9.323 c-1.924-0.389-1.816-2.022-1.926-3.624c-0.695-10.047-0.688-10.011-8.982-7.314c-6.804,2.212-13.586,4.543-20.463,6.387 c-3.582,0.962-5.123,2.99-4.787,7.271c0.146,1.889,0.034,3.815-0.05,5.717c-0.121,2.802-1.362,4.579-3.627,5.479 c-6.666,2.648-7.592,1.872-7.592-6.516C96.325,148.864,96.325,130.23,96.326,111.597z'%3E%3C/path%3E%3Cpath fill='currentColor' d='M27.769,107.198c0-15.412-0.03-30.824,0.006-46.234 c0.066-28.643,17.508-50.748,41.681-53.416c10.049-1.108,20.08-0.48,30.118-0.75c0.936-0.025,2.139-0.439,2.631,0.961 c0.478,1.368-0.575,2.092-1.229,2.922c-0.76,0.967-1.845,1.741-2.281,2.873c-2.752,7.121-7.72,7.832-13.544,7.427 c-6.419-0.445-12.871-0.373-19.217,1.558C49.624,27.498,38.989,43.42,39.058,63.261c0.029,8.499,0.51,16.996,0.485,25.493 c-0.039,13.634-0.362,27.268-0.496,40.901c-0.065,6.679,1.043,7.76,6.557,8.476c12.062,1.562,24.085,3.49,36.146,5.019 c3.442,0.438,4.282,2.441,4.271,6.104c-0.025,9.025-0.132,8.982-7.748,7.741c-11.527-1.878-23.107-3.308-34.656-5.002 c-3.365-0.496-4.713,0.846-4.562,5.06c0.346,9.731,0.213,8.388-7.725,7.188c-2.969-0.446-3.621-2.725-3.603-5.963 C27.816,141.25,27.769,124.225,27.769,107.198z'%3E%3C/path%3E%3Cpath fill='currentColor' d='M75.697,51.212c-5.191-0.897-10.416-0.479-15.628-0.553 c-2.054-0.029-2.659-0.985-2.13-3.342c1.504-6.724,6.782-12.072,12.691-12.477c3.083-0.211,6.184-0.019,9.271-0.12 c1.641-0.054,1.945,0.99,1.602,2.487c-0.899,3.906-1.4,7.864-1.404,11.914c-0.002,1.369-0.648,2.056-1.787,2.086 C77.44,51.23,76.568,51.212,75.697,51.212z'%3E%3C/path%3E%3Cpath fill='%23FFF' d='M73.535,48.245c-3.321-0.574-6.665-0.307-10.001-0.354 c-1.313-0.019-1.702-0.63-1.362-2.139c0.963-4.303,4.34-7.726,8.121-7.986c1.975-0.135,3.959-0.012,5.936-0.076 c1.049-0.035,1.244,0.633,1.024,1.592c-0.577,2.5-0.897,5.033-0.899,7.625c0,0.875-0.414,1.316-1.144,1.335 C74.651,48.256,74.094,48.245,73.535,48.245z'%3E%3C/path%3E%3C/svg%3E")}
  • simpleform/trunk/admin/css/admin.css

    r2679542 r2691726  
    298298#shortcode-copy:active { background-color: #dcdfe6 !important; }
    299299#shortcode-copy img { vertical-align: middle; width: 24px; }
    300 #shortcode-tooltip { background-color: #8993ab; display: none; color: #fff !important; padding: 4px 7px; border-radius: 5px; font-size: 0.75rem; margin-left: 5px; }
     300#shortcode-tooltip { background-color: #8993ab; color: #fff !important; padding: 4px 7px; border-radius: 5px; font-size: 0.75rem; margin-left: 5px; }
    301301.widgets-page.button { text-align: center; float: right; margin-top: 6px !important; border-radius: 4px; font-size: 0.9em; font-weight: 600; cursor: pointer; }
    302302.slug { margin-left: 10px; }
     
    325325.type { margin-right: 1.25%; }
    326326.label { color: #666; text-transform: uppercase; font-size: .8em; }
    327 .value { display: block; clear: both; font-size: 2em; font-weight: 300; line-height: 40px; }
     327.value { display: block; clear: both; font-size: 1.75em; font-weight: 300; line-height: 40px; }
    328328#empty-submission, #last-submission, #submissions-notice { padding: 30px 30px 50px; margin-top: 20px; background: #fff; }
    329329#empty-submission h3, #last-submission h3, #submissions-notice h3 { line-height: 30px; }
     
    435435#submissions-data li { padding: 20px 7px !important; width: calc(20% -1px) !important; }
    436436.label { font-size: .7em !important; letter-spacing: -.5px; }
    437 .value { font-size: 1.5em !important; }
     437.value { font-size: 1.25em !important; }
    438438#empty-submission, #last-submission, #submissions-notice { padding: 10px 15px 30px !important; margin: /* 10px -10px 10px -10px */ 20px 0 !important; }
    439439#last-submission { overflow: auto; }
     
    510510h1.title { padding: 10px 0; }
    511511.nav-tab { border:1px solid #dcdfe6; line-height: 24px; }
    512 #settings-tabs a, #editor-tabs a { font-size: 14px; margin-right: 5px !important; padding: 5px 25px; }
     512#settings-tabs a, #editor-tabs a { font-size: 14px; margin-right: 5px !important; padding: 5px 12px; }
    513513#settings, #attributes, #card { border: 1px solid #dcdfe6; }
    514514.options-heading, .options-heading span span { line-height: 60px; }
  • simpleform/trunk/admin/js/admin-min.js

    r2689161 r2691726  
    1 !function(m){"use strict";m(window).on("load",function(){var e;m("ul#submissions-data").on("mouseenter mouseleave",function(){m("#last-submission").addClass("unseen"),m("#submissions-notice").removeClass("unseen")},function(){m("#last-submission").removeClass("unseen"),m("#submissions-notice").addClass("unseen")}),m("#shortcode-copy").on("click",function(){event.preventDefault();var e=document.createElement("input");e.style="position: absolute; left: -1000px; top: -1000px",document.body.appendChild(e),e.value=m("#shortcode").text(),e.select(),document.execCommand("copy"),document.body.removeChild(e),m("#shortcode-tooltip").text(ajax_sform_settings_options_object.copied),setTimeout(function(){m("#shortcode-tooltip").hide()},1500)}),m("#shortcode-copy").on("mouseenter mouseleave",function(){m("#shortcode-tooltip").text(ajax_sform_settings_options_object.copy),m("#shortcode-tooltip").show()},function(){m("#shortcode-tooltip").hide()}),m("#show-for").on("change",function(){var e=m(this).val(),e=m(location).attr("href")+"&showfor="+e;document.location.href=e}),m("#name-field").on("change",function(){"hidden"==m("#name-field option:selected").val()?m(".trname").addClass("unseen"):(m(".trname").removeClass("unseen"),1==m("#namelabel").prop("checked")?m("tr.namelabel").addClass("unseen"):m("tr.namelabel").removeClass("unseen"))}),m("#lastname-field").on("change",function(){"hidden"==m("#lastname-field option:selected").val()?m(".trlastname").addClass("unseen"):(m(".trlastname").removeClass("unseen"),1==m("#lastnamelabel").prop("checked")?m("tr.lastnamelabel").addClass("unseen"):m("tr.lastnamelabel").removeClass("unseen"))}),m("#email-field").on("change",function(){"hidden"==m("#email-field option:selected").val()?m(".tremail").addClass("unseen"):(m(".tremail").removeClass("unseen"),1==m("#emaillabel").prop("checked")?m("tr.emaillabel").addClass("unseen"):m("tr.emaillabel").removeClass("unseen"))}),m("#phone-field").on("change",function(){"hidden"==m("#phone-field option:selected").val()?m(".trphone").addClass("unseen"):(m(".trphone").removeClass("unseen"),1==m("#phonelabel").prop("checked")?m("tr.phonelabel").addClass("unseen"):m("tr.phonelabel").removeClass("unseen"))}),m("#subject-field").on("change",function(){"hidden"==m("#subject-field option:selected").val()?m(".trsubject").addClass("unseen"):(m(".trsubject").removeClass("unseen"),1==m("#subjectlabel").prop("checked")?m("tr.subjectlabel").addClass("unseen"):m("tr.subjectlabel").removeClass("unseen"))}),m("#captcha-field").on("change",function(){"hidden"==m("#captcha-field option:selected").val()?m(".trcaptchalabel").addClass("unseen"):m(".trcaptchalabel").removeClass("unseen")}),m("#preference-field").on("change",function(){"hidden"==m("#preference-field option:selected").val()?m(".trpreference").addClass("unseen"):m(".trpreference").removeClass("unseen")}),m("#consent-field").on("change",function(){"hidden"==m("#consent-field option:selected").val()?m(".trconsent").addClass("unseen"):(m(".trconsent").removeClass("unseen"),1==m("#privacy-link").prop("checked")?m(".trpage").removeClass("unseen"):m(".trpage").addClass("unseen"))}),m("#privacy-link").on("click",function(){var e,s=m("#consent-label").val(),t=ajax_sform_settings_options_object.privacy;1==m(this).prop("checked")?m(".trpage").removeClass("unseen"):(m(".trpage").addClass("unseen"),e=new RegExp("<a [^>]*>"+t+"</a>","i"),t=s.replace(e,t),m("#consent-label").val(t),m("#privacy-page").val(""),m("#set-page, #set-page-icon").addClass("unseen"),m("#set-page, #set-page-icon").attr("page",0),m("#post-status").html("&nbsp;"))}),m("#privacy-page").on("change",function(){var e=m(this).val(),s=m("#set-page").attr("page");""!=e?(m("#page-id").val(e),e==s?m("#set-page, #set-page-icon").addClass("unseen"):m("#set-page, #set-page-icon").removeClass("unseen")):(m("#set-page, #set-page-icon").addClass("unseen"),m("#privacy-link").trigger("click"))}),m("#set-page").on("click",function(e){m("#label-error").html("");var s=m('textarea[name="consent-label"]').val(),t=m('input[name="page-id"]').val(),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"setting_privacy",verification_nonce:n,"page-id":t,"consent-label":s},success:function(e){!0===e.error&&m("#label-error").html("Error occurred during creation of the link"),!1===e.error&&(m("#consent-label").val(e.label),m("#set-page").addClass("unseen"),m("#set-page").attr("page",t))},error:function(e){m("#label-error").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m("#set-page-icon").on("click",function(e){var s=m('textarea[name="consent-label"]').val(),t=m('input[name="page-id"]').val(),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"setting_privacy",verification_nonce:n,"page-id":t,"consent-label":s},success:function(e){!0===e.error&&m("#label-error-top").html("Error occurred during creation of the link"),!1===e.error&&(m("#consent-label").val(e.label),m("#set-page-icon").addClass("unseen"),m("#set-page-icon").attr("page",t))},error:function(e){m("#label-error-top").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m(".field-label").on("click",function(){var e=m(this).attr("id");1==m(this).prop("checked")?m("tr."+e).addClass("unseen"):m("tr."+e).removeClass("unseen")}),m("#required-sign").on("click",function(){1==m(this).prop("checked")?m(".trsign").addClass("unseen"):m(".trsign").removeClass("unseen")}),m("#optional-labelling").on("click",function(){m("#required-word").val()==ajax_sform_settings_options_object.required&&m("#required-word").val(ajax_sform_settings_options_object.optional)}),m("#required-labelling").on("click",function(){m("#required-word").val()==ajax_sform_settings_options_object.optional&&m("#required-word").val(ajax_sform_settings_options_object.required)}),m(".nav-tab").on("click",function(){var e=m(this).attr("id");m(".nav-tab-active").removeClass("nav-tab-active"),m(".navtab").addClass("unseen"),m("#tab-"+e).removeClass("unseen"),m(this).addClass("nav-tab-active"),"appearance"==e?m(".editorpage").text(ajax_sform_settings_options_object.appearance):m(".editorpage").text(ajax_sform_settings_options_object.builder)}),m("#widget-editor").on("click",function(){1==m(this).prop("checked")?m(".trwidget").addClass("unseen"):m(".trwidget").removeClass("unseen")}),m("#form-template").on("change",function(){var e=m("#form-template option:selected").val();"transparent"==e?m("#form-borders").removeClass("unseen"):m("#form-borders").addClass("unseen"),"customized"==e?m("#template-notice").text(ajax_sform_settings_options_object.notes):m("#template-notice").html("&nbsp;")}),m("#stylesheet").on("click",function(){1==m(this).prop("checked")?m(".trstylesheet").removeClass("unseen"):m(".trstylesheet").addClass("unseen")}),m("#stylesheet-file").on("click",function(){1==m(this).prop("checked")?m("#stylesheet-description").html(ajax_sform_settings_options_object.cssenabled):m("#stylesheet-description").html(ajax_sform_settings_options_object.cssdisabled)}),m("#javascript").on("click",function(){1==m(this).prop("checked")?m("#javascript-description").html(ajax_sform_settings_options_object.jsenabled):m("#javascript-description").html(ajax_sform_settings_options_object.jsdisabled)}),m("#outside-error").on("change",function(){var n=m("#outside-error option:selected").val(),e=m("label#focusout").html();"none"!=n&&m(".out").each(function(e,s){var t,s=m(s);"top"==n&&(t=s.attr("placeholder").replace(ajax_sform_settings_options_object.bottom,ajax_sform_settings_options_object.top)),"bottom"==n&&(t=s.attr("placeholder").replace(ajax_sform_settings_options_object.top,ajax_sform_settings_options_object.bottom)),console.log(s.attr("placeholder")),s.attr("placeholder",t)}),"top"==n?(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.nofocus,ajax_sform_settings_options_object.focusout)),m("#outside-notice").text(ajax_sform_settings_options_object.topnotes),m(".trout").removeClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).removeClass("last")):"bottom"==n?(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.nofocus,ajax_sform_settings_options_object.focusout)),m("#outside-notice").text(ajax_sform_settings_options_object.bottomnotes),m(".trout").removeClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).removeClass("last")):(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.focusout,ajax_sform_settings_options_object.nofocus)),m("#outside-notice").html("&nbsp;"),m(".trout").addClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).addClass("last"))}),m("#characters-length").on("click",function(){1==m(this).prop("checked")?(m("#characters-description").html(ajax_sform_settings_options_object.showcharacters),m("#incomplete-name").val(ajax_sform_settings_options_object.numnamer),m("#incomplete-lastname").val(ajax_sform_settings_options_object.numlster),m("#incomplete-subject").val(ajax_sform_settings_options_object.numsuber),m("#incomplete-message").val(ajax_sform_settings_options_object.nummsger)):(m("#characters-description").html(ajax_sform_settings_options_object.hidecharacters),m("#incomplete-name").val(ajax_sform_settings_options_object.gennamer),m("#incomplete-lastname").val(ajax_sform_settings_options_object.genlster),m("#incomplete-subject").val(ajax_sform_settings_options_object.gensuber),m("#incomplete-message").val(ajax_sform_settings_options_object.genmsger))}),m("#ajax-submission").on("click",function(){1==m(this).prop("checked")?m(".trajax").removeClass("unseen"):m(".trajax").addClass("unseen")}),m("#confirmation-message").on("click",function(){1==m(this).prop("checked")&&(m(".trsuccessmessage").removeClass("unseen"),m(".trsuccessredirect").addClass("unseen"),m("#confirmation-page").val(""),m("#post-status").html("&nbsp;"))}),m("#success-redirect").on("click",function(){1==m(this).prop("checked")&&(m(".trsuccessmessage").addClass("unseen"),m(".trsuccessredirect").removeClass("unseen"))}),m("#confirmation-page, #privacy-page").on("change",function(){var e=m(this).find("option:selected"),s=e.attr("value");"draft"==e.attr("Tag")?m("#post-status").html(ajax_sform_settings_options_object.status+' - <strong><a href="'+ajax_sform_settings_options_object.adminurl+"post.php?post="+s+'&action=edit" target="_blank" style="text-decoration: none; color: #9ccc79;">'+ajax_sform_settings_options_object.publish+"</a></strong>"):""!=s?(e='<strong><a href="'+ajax_sform_settings_options_object.adminurl+"post.php?post="+s+'&action=edit" target="_blank" style="text-decoration: none;">'+ajax_sform_settings_options_object.edit+"</a></strong>",s='<strong><a href="'+ajax_sform_settings_options_object.pageurl+"/?page_id="+s+'" target="_blank" style="text-decoration: none;">'+ajax_sform_settings_options_object.view+"</a></strong>",s=ajax_sform_settings_options_object.pagelinks.replace(ajax_sform_settings_options_object.edit,e).replace(ajax_sform_settings_options_object.view,s),m("#post-status").html(s)):m("#post-status").html("&nbsp;")}),m(".notice-toggle").on("click",function(){m(".smpt-warnings").hasClass("unseen")?(m("#smpt-warnings").text(ajax_sform_settings_options_object.hide),m(".smpt-settings").addClass("unseen"),m(".smpt-warnings").removeClass("unseen")):(m("#smpt-warnings").text(ajax_sform_settings_options_object.show),m("#trsmtpon").removeClass("unseen"),m(".smpt-warnings").addClass("unseen"),1==m("#server-smtp").prop("checked")?(m(".trsmtp").removeClass("unseen"),1==m("#smtp-authentication").prop("checked")?m(".trauthentication").removeClass("unseen"):m(".trauthentication").addClass("unseen")):m(".trsmtp").addClass("unseen"))}),m("#server-smtp").on("click",function(){1==m(this).prop("checked")?(m(".trsmtp").removeClass("unseen"),m("#tdsmtp").removeClass("last"),m("#smtp-notice").text(ajax_sform_settings_options_object.smtpnotes),1==m("#smtp-authentication").prop("checked")?m(".trauthentication").removeClass("unseen"):m(".trauthentication").addClass("unseen")):(m(".trsmtp").addClass("unseen"),m("#tdsmtp").addClass("last"),m("#smtp-notice").text(""))}),m("#smtp-authentication").on("click",function(){1==m(this).prop("checked")?(m("#tdauthentication").removeClass("last"),m(".trauthentication").removeClass("unseen")):(m("#tdauthentication").addClass("last"),m(".trauthentication").addClass("unseen"))}),m("#notification").on("click",function(){1==m(this).prop("checked")?(m(".trnotification").removeClass("unseen"),m("#tdnotification").removeClass("last"),1==m("#custom-name").prop("checked")?m(".trcustomname").removeClass("unseen"):m(".trcustomname").addClass("unseen"),1==m("#default-subject").prop("checked")?m(".trcustomsubject").removeClass("unseen"):m(".trcustomsubject").addClass("unseen")):(m(".trnotification").addClass("unseen"),m("#tdnotification").addClass("last"))}),m("#requester-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").addClass("unseen"):m(".trcustomname").removeClass("unseen")}),m("#form-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").addClass("unseen"):m(".trcustomname").removeClass("unseen")}),m("#custom-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").removeClass("unseen"):m(".trcustomname").addClass("unseen")}),m("#request-subject").on("click",function(){1==m(this).prop("checked")?m(".trcustomsubject").addClass("unseen"):m(".trcustomsubject").removeClass("unseen")}),m("#default-subject").on("click",function(){1==m(this).prop("checked")?m(".trcustomsubject").removeClass("unseen"):m(".trcustomsubject").addClass("unseen")}),m("#autoresponder").on("click",function(){1==m(this).prop("checked")?(m(".trauto").removeClass("unseen"),m("#tdconfirmation").removeClass("last")):(m(".trauto").addClass("unseen"),m("#tdconfirmation").addClass("last"))}),m("#save-settings").on("click",function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").html(ajax_sform_settings_options_object.loading);var s=m("form#settings").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=sform_edit_options",success:function(e){var s=e.error,t=(e.message,e.update);!0===s&&(m(".message").addClass("error"),m(".message").html(e.message)),!1===s&&(m(".message").html(e.message),!1===t&&m(".message").addClass("unchanged"),!0===t&&m(".message").addClass("success"))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),m(document).on("change","input[type=checkbox], input[type=radio], select",function(){m(".message").removeClass("seen error success unchanged")}),m(document).on("input","input[type=text], input[type=email], textarea",function(){m(".message").removeClass("seen error success unchanged")}),m("#save-attributes").on("click",function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").text(ajax_sform_settings_options_object.saving);var s=m("form#attributes").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=shortcode_costruction",success:function(e){var s=e.error,t=(e.message,e.update),n=e.redirect,a=e.url;!0===s&&(m(".message").addClass("error"),m(".message").html(e.message)),!1===s&&(m(".message").html(e.message),!1===t&&m(".message").addClass("unchanged"),!0===t&&(!0===n?document.location.href=a:m(".message").addClass("success")))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),m(document).on("change",".sform-target",function(){var e=m(this).val(),s=m(this).attr("field");"in"===e?m("p#usertype.role-"+s).removeClass("unseen"):m("p#usertype.role-"+s).addClass("unseen")}),m(document).on("change",".sfwidget",function(){var e=m(this).attr("box"),s=m(this).val();"all"===s?(m("div#sform-widget-hidden-pages."+e).addClass("unseen"),m("div#sform-widget-visible-pages."+e).addClass("unseen"),m("p#visibility-notes").removeClass("unseen"),m("p#visibility").addClass("visibility")):(m("p#visibility-notes").addClass("unseen"),m("p#visibility").removeClass("visibility"),"hidden"===s?(m("div#sform-widget-hidden-pages."+e).removeClass("unseen"),m("div#sform-widget-visible-pages."+e).addClass("unseen")):(m("div#sform-widget-hidden-pages."+e).addClass("unseen"),m("div#sform-widget-visible-pages."+e).removeClass("unseen")))}),m("#form").on("change",function(){var e=m(this).val(),s=m(location).attr("href"),t=new URLSearchParams(s),n=t.get("form");s=-1<s.indexOf("form=")?e?s.replace("&form="+n,"&form="+e):s.replace("&form="+n,""):e?s+"&form="+e:s;t=t.get("paged");s=-1<s.indexOf("paged=")?s.replace("&paged="+t,""):s,document.location.href=s}),m(".cbfield").on("click",function(){var e=m(this).attr("field");1==m(this).prop("checked")?m(".tr"+e).addClass("secret"):(m(".tr"+e).removeClass("secret"),1==m("#"+e+"label").prop("checked")?m("tr."+e+"label").addClass("unseen"):m("tr."+e+"label").removeClass("unseen"))}),m("#admin-notices").on("click",function(){1==m(this).prop("checked")?m(".admin-notices").addClass("invisible"):m(".admin-notices").removeClass("invisible")}),m("#duplicate").on("click",function(){1==m(this).prop("checked")?m(".trduplicate").removeClass("unseen"):m(".trduplicate").addClass("unseen")}),m(".sform-switch").on("click",function(){0==m(this).prop("checked")?m(this).val("false"):m(this).val("true")}),m("#admin-color").on("change",function(e){var s=m(this).val(),t=m("#settings").attr("class"),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"admin_color_scheme",verification_nonce:n,"admin-color":s},success:function(e){e.error;var s=e.color;!0===e.error&&m("#label-error").html("Error occurred during creation of the link"),!1===e.error&&(m(".full-width-bar, h1.title, select#form, .form-button, #settings, #smpt-warnings, .icon-button").removeClass(t),m(".full-width-bar, h1.title, select#form, .form-button, #settings, #smpt-warnings, .icon-button").addClass(s))},error:function(e){m("#label-error").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m("span.heading").on("click",function(){var e=m(this).attr("section");m(".section."+e).toggleClass("collapsed"),m(".section."+e).hasClass("collapsed")?(m("span.toggle."+e).removeClass("dashicons-arrow-up-alt2"),m("span.toggle."+e).addClass("dashicons-arrow-down-alt2"),m("#h2-"+e).addClass("closed")):(m("span.toggle."+e).removeClass("dashicons-arrow-down-alt2"),m("span.toggle."+e).addClass("dashicons-arrow-up-alt2"),m("#h2-"+e).removeClass("closed"))}),-1<window.location.href.indexOf("#css")&&(document.getElementById("appearance").trigger("click"),document.getElementById("additional-css").trigger("focus")),m("#deletion-toggle, .cancel.delete").on("click",function(){m("#deletion-notice").hasClass("unseen")?(m("#alert-wrap").addClass("unseen"),m("#form-buttons").addClass("unseen"),m("#deletion-toggle").addClass("unseen"),m("#deletion-notice").removeClass("unseen"),m("span#confirm").addClass("unseen")):(m("#alert-wrap").removeClass("unseen"),m("#form-buttons").removeClass("unseen"),m("#deletion-toggle").removeClass("unseen"),m("#deletion-notice").addClass("unseen"),m("span#default").removeClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#confirmation").val(""))}),m("#deletion-form").on("click",function(){1==m(this).prop("checked")?m("#deletion-toggle").removeClass("unseen"):(m("#deletion-toggle").addClass("unseen"),m("#alert-wrap").removeClass("unseen"),m("#form-buttons").removeClass("unseen"),m("#deletion-notice").addClass("unseen"),m("span#default").removeClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#confirmation").val(""))}),m("#deletion-confirm").on("click",function(e){var s=m("form#deletion").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=sform_delete_form",success:function(e){e.error;var s=e.message,t=e.redirect_url,n=e.img,a=e.confirm;!0===e.error&&(m("span#default").addClass("unseen"),m("span#confirm").removeClass("unseen"),m("span#confirm").html(s),a&&(m("#deletion-notice").addClass("confirm"),m("#hidden-confirm").html(a))),!1===e.error&&(m(".disclaimer").html(s),m("#deletion-buttons").addClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#deletion-notice, .disclaimer").addClass("success"),m("h3.deletion").text(s),m(".disclaimer").html(n),setTimeout(function(){document.location.href=t},3e3))},error:function(e){m(".disclaimer").html("AJAX call failed")}}),e.preventDefault(),!1}),m("#relocation").on("click",function(){1==m(this).prop("checked")?(m(".trmoving").removeClass("unseen"),""!=m("#moveto").val()&&(m(".trmoveto").removeClass("unseen"),""!=m("#starting").val()&&"next"!=m("#starting").val()&&m(".tronetime").removeClass("unseen"))):(m(".trmoving").addClass("unseen"),m(".trmoveto").addClass("unseen"),m(".tronetime").addClass("unseen"))}),m("#moveto").on("change",function(){var e=m(this).val(),s=m('#moveto option[value="'+e+'"]').text();m("#starting").val(""),m("#onetime").prop("checked",!0),m(".description.onetime").addClass("invisible"),m(".tronetime").addClass("unseen"),""==e?(m(".trmoveto").addClass("unseen"),m("#starting").val(""),m("#onetime").prop("checked",!0)):(m("#form-to").val(s),m(".trmoveto").removeClass("unseen"))}),m("#starting").on("change",function(){var e=m(this).val();"next"==e||""==e?(m(".tronetime").addClass("unseen"),m("#onetime").prop("checked",!1),m(".description.onetime").removeClass("invisible")):(m(".tronetime").removeClass("unseen"),m("#onetime").prop("checked",!0),m(".description.onetime").addClass("invisible"))}),m("#onetime").on("click",function(){1==m(this).prop("checked")?m(".description.onetime").addClass("invisible"):m(".description.onetime").removeClass("invisible")}),m("#save-card").on("click",function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").text(ajax_sform_settings_options_object.saving);var s=m("form#card").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=form_update",success:function(e){var s=e.error,t=(e.message,e.update),n=e.redirect,a=e.moving,o=e.restore,r=e.messages,i=e.moved,c=e.select,l=e.onetime,d=e.url;!0===s&&(m(".message").addClass("error"),m(".message").html(e.message),!0===n&&setTimeout(function(){document.location.href=d},1e3)),!1===s&&(m(".message").html(e.message),!1===t?m(".message").addClass("unchanged"):(m(".message").addClass("success"),!0===a&&(m("#starting").html(c),m("#tdentries").removeClass("last"),m(".trmoved, .trrestore").removeClass("unseen"),m("#entries").text(r),m("#submissions").val(r),m("#moved-entries").text(i),m("#moved-submissions").val(i),!1===l?(m("#starting").val("next"),m(".tronetime").addClass("unseen")):(m("#relocation").prop("checked",!1),m("#moveto").val(""),m("#starting").val(""),m(".trmoving, .trmoveto, .tronetime").addClass("unseen"))),!1===a&&(!0===o&&(m("#starting").html(c),m("#tdentries").addClass("last"),m(".trrestore").removeClass("unseen"),m("#entries").text(r),m("#submissions").val(r),m("#moved-entries").text(i),m("#moved-submissions").val(i),m("#restore").prop("checked",!1),m(".trmoved, .trrestore").addClass("unseen")),!1===l&&m("#starting").val("next"))))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),null!=document.getElementById("new-release")&&(e=document.getElementById("new-release").innerHTML,m("#storing-notice").on("click",function(){document.getElementById("new-release").innerHTML===e?document.getElementById("new-release").innerHTML=ajax_sform_settings_options_object.storing_notice:document.getElementById("new-release").innerHTML=e}))})}(jQuery);
     1!function(m){"use strict";m(window).on("load",function(){var e;m("ul#submissions-data").on("mouseenter",function(){m("#last-submission").addClass("unseen"),m("#submissions-notice").removeClass("unseen")}),m("ul#submissions-data").on("mouseleave",function(){m("#last-submission").removeClass("unseen"),m("#submissions-notice").addClass("unseen")}),m("#shortcode-copy").on("click",function(){event.preventDefault();var e=document.createElement("input");e.style="position: absolute; left: -1000px; top: -1000px",document.body.appendChild(e),e.value=m("#shortcode").text(),e.select(),document.execCommand("copy"),document.body.removeChild(e),m("#shortcode-tooltip").text(ajax_sform_settings_options_object.copied),m("#shortcode-tooltip").removeClass("unseen"),setTimeout(function(){m("#shortcode-tooltip").addClass("unseen"),m("#shortcode-tooltip").text(ajax_sform_settings_options_object.copy)},2e3)}),m("#shortcode-copy").on("mouseenter",function(){m("#shortcode-tooltip").removeClass("unseen")}),m("#shortcode-copy").on("mouseleave",function(){m("#shortcode-tooltip").addClass("unseen")}),m("#show-for").on("change",function(){var e=m(this).val(),e=m(location).attr("href")+"&showfor="+e;document.location.href=e}),m("#name-field").on("change",function(){"hidden"==m("#name-field option:selected").val()?m(".trname").addClass("unseen"):(m(".trname").removeClass("unseen"),1==m("#namelabel").prop("checked")?m("tr.namelabel").addClass("unseen"):m("tr.namelabel").removeClass("unseen"))}),m("#lastname-field").on("change",function(){"hidden"==m("#lastname-field option:selected").val()?m(".trlastname").addClass("unseen"):(m(".trlastname").removeClass("unseen"),1==m("#lastnamelabel").prop("checked")?m("tr.lastnamelabel").addClass("unseen"):m("tr.lastnamelabel").removeClass("unseen"))}),m("#email-field").on("change",function(){"hidden"==m("#email-field option:selected").val()?m(".tremail").addClass("unseen"):(m(".tremail").removeClass("unseen"),1==m("#emaillabel").prop("checked")?m("tr.emaillabel").addClass("unseen"):m("tr.emaillabel").removeClass("unseen"))}),m("#phone-field").on("change",function(){"hidden"==m("#phone-field option:selected").val()?m(".trphone").addClass("unseen"):(m(".trphone").removeClass("unseen"),1==m("#phonelabel").prop("checked")?m("tr.phonelabel").addClass("unseen"):m("tr.phonelabel").removeClass("unseen"))}),m("#subject-field").on("change",function(){"hidden"==m("#subject-field option:selected").val()?m(".trsubject").addClass("unseen"):(m(".trsubject").removeClass("unseen"),1==m("#subjectlabel").prop("checked")?m("tr.subjectlabel").addClass("unseen"):m("tr.subjectlabel").removeClass("unseen"))}),m("#captcha-field").on("change",function(){"hidden"==m("#captcha-field option:selected").val()?m(".trcaptchalabel").addClass("unseen"):m(".trcaptchalabel").removeClass("unseen")}),m("#preference-field").on("change",function(){"hidden"==m("#preference-field option:selected").val()?m(".trpreference").addClass("unseen"):m(".trpreference").removeClass("unseen")}),m("#consent-field").on("change",function(){"hidden"==m("#consent-field option:selected").val()?m(".trconsent").addClass("unseen"):(m(".trconsent").removeClass("unseen"),1==m("#privacy-link").prop("checked")?m(".trpage").removeClass("unseen"):m(".trpage").addClass("unseen"))}),m("#privacy-link").on("click",function(){var e,s=m("#consent-label").val(),t=ajax_sform_settings_options_object.privacy;1==m(this).prop("checked")?m(".trpage").removeClass("unseen"):(m(".trpage").addClass("unseen"),e=new RegExp("<a [^>]*>"+t+"</a>","i"),t=s.replace(e,t),m("#consent-label").val(t),m("#privacy-page").val(""),m("#set-page, #set-page-icon").addClass("unseen"),m("#set-page, #set-page-icon").attr("page",0),m("#post-status").html("&nbsp;"))}),m("#privacy-page").on("change",function(){var e=m(this).val(),s=m("#set-page").attr("page");""!=e?(m("#page-id").val(e),e==s?m("#set-page, #set-page-icon").addClass("unseen"):m("#set-page, #set-page-icon").removeClass("unseen")):(m("#set-page, #set-page-icon").addClass("unseen"),m("#privacy-link").trigger("click"))}),m("#set-page").on("click",function(e){m("#label-error").html("");var s=m('textarea[name="consent-label"]').val(),t=m('input[name="page-id"]').val(),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"setting_privacy",verification_nonce:n,"page-id":t,"consent-label":s},success:function(e){!0===e.error&&m("#label-error").html("Error occurred during creation of the link"),!1===e.error&&(m("#consent-label").val(e.label),m("#set-page").addClass("unseen"),m("#set-page").attr("page",t))},error:function(e){m("#label-error").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m("#set-page-icon").on("click",function(e){var s=m('textarea[name="consent-label"]').val(),t=m('input[name="page-id"]').val(),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"setting_privacy",verification_nonce:n,"page-id":t,"consent-label":s},success:function(e){!0===e.error&&m("#label-error-top").html("Error occurred during creation of the link"),!1===e.error&&(m("#consent-label").val(e.label),m("#set-page-icon").addClass("unseen"),m("#set-page-icon").attr("page",t))},error:function(e){m("#label-error-top").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m(".field-label").on("click",function(){var e=m(this).attr("id");1==m(this).prop("checked")?m("tr."+e).addClass("unseen"):m("tr."+e).removeClass("unseen")}),m("#required-sign").on("click",function(){1==m(this).prop("checked")?m(".trsign").addClass("unseen"):m(".trsign").removeClass("unseen")}),m("#optional-labelling").on("click",function(){m("#required-word").val()==ajax_sform_settings_options_object.required&&m("#required-word").val(ajax_sform_settings_options_object.optional)}),m("#required-labelling").on("click",function(){m("#required-word").val()==ajax_sform_settings_options_object.optional&&m("#required-word").val(ajax_sform_settings_options_object.required)}),m(".nav-tab").on("click",function(){var e=m(this).attr("id");m(".nav-tab-active").removeClass("nav-tab-active"),m(".navtab").addClass("unseen"),m("#tab-"+e).removeClass("unseen"),m(this).addClass("nav-tab-active"),"appearance"==e?m(".editorpage").text(ajax_sform_settings_options_object.appearance):m(".editorpage").text(ajax_sform_settings_options_object.builder)}),m("#widget-editor").on("click",function(){1==m(this).prop("checked")?m(".trwidget").addClass("unseen"):m(".trwidget").removeClass("unseen")}),m("#form-template").on("change",function(){var e=m("#form-template option:selected").val();"transparent"==e?m("#form-borders").removeClass("unseen"):m("#form-borders").addClass("unseen"),"customized"==e?m("#template-notice").text(ajax_sform_settings_options_object.notes):m("#template-notice").html("&nbsp;")}),m("#stylesheet").on("click",function(){1==m(this).prop("checked")?m(".trstylesheet").removeClass("unseen"):m(".trstylesheet").addClass("unseen")}),m("#stylesheet-file").on("click",function(){1==m(this).prop("checked")?m("#stylesheet-description").html(ajax_sform_settings_options_object.cssenabled):m("#stylesheet-description").html(ajax_sform_settings_options_object.cssdisabled)}),m("#javascript").on("click",function(){1==m(this).prop("checked")?m("#javascript-description").html(ajax_sform_settings_options_object.jsenabled):m("#javascript-description").html(ajax_sform_settings_options_object.jsdisabled)}),m("#outside-error").on("change",function(){var n=m("#outside-error option:selected").val(),e=m("label#focusout").html();"none"!=n&&m(".out").each(function(e,s){var t,s=m(s);"top"==n&&(t=s.attr("placeholder").replace(ajax_sform_settings_options_object.bottom,ajax_sform_settings_options_object.top)),"bottom"==n&&(t=s.attr("placeholder").replace(ajax_sform_settings_options_object.top,ajax_sform_settings_options_object.bottom)),console.log(s.attr("placeholder")),s.attr("placeholder",t)}),"top"==n?(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.nofocus,ajax_sform_settings_options_object.focusout)),m("#outside-notice").text(ajax_sform_settings_options_object.topnotes),m(".trout").removeClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).removeClass("last")):"bottom"==n?(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.nofocus,ajax_sform_settings_options_object.focusout)),m("#outside-notice").text(ajax_sform_settings_options_object.bottomnotes),m(".trout").removeClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).removeClass("last")):(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.focusout,ajax_sform_settings_options_object.nofocus)),m("#outside-notice").html("&nbsp;"),m(".trout").addClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).addClass("last"))}),m("#characters-length").on("click",function(){1==m(this).prop("checked")?(m("#characters-description").html(ajax_sform_settings_options_object.showcharacters),m("#incomplete-name").val(ajax_sform_settings_options_object.numnamer),m("#incomplete-lastname").val(ajax_sform_settings_options_object.numlster),m("#incomplete-subject").val(ajax_sform_settings_options_object.numsuber),m("#incomplete-message").val(ajax_sform_settings_options_object.nummsger)):(m("#characters-description").html(ajax_sform_settings_options_object.hidecharacters),m("#incomplete-name").val(ajax_sform_settings_options_object.gennamer),m("#incomplete-lastname").val(ajax_sform_settings_options_object.genlster),m("#incomplete-subject").val(ajax_sform_settings_options_object.gensuber),m("#incomplete-message").val(ajax_sform_settings_options_object.genmsger))}),m("#ajax-submission").on("click",function(){1==m(this).prop("checked")?m(".trajax").removeClass("unseen"):m(".trajax").addClass("unseen")}),m("#confirmation-message").on("click",function(){1==m(this).prop("checked")&&(m(".trsuccessmessage").removeClass("unseen"),m(".trsuccessredirect").addClass("unseen"),m("#confirmation-page").val(""),m("#post-status").html("&nbsp;"))}),m("#success-redirect").on("click",function(){1==m(this).prop("checked")&&(m(".trsuccessmessage").addClass("unseen"),m(".trsuccessredirect").removeClass("unseen"))}),m("#confirmation-page, #privacy-page").on("change",function(){var e=m(this).find("option:selected"),s=e.attr("value");"draft"==e.attr("Tag")?m("#post-status").html(ajax_sform_settings_options_object.status+' - <strong><a href="'+ajax_sform_settings_options_object.adminurl+"post.php?post="+s+'&action=edit" target="_blank" style="text-decoration: none; color: #9ccc79;">'+ajax_sform_settings_options_object.publish+"</a></strong>"):""!=s?(e='<strong><a href="'+ajax_sform_settings_options_object.adminurl+"post.php?post="+s+'&action=edit" target="_blank" style="text-decoration: none;">'+ajax_sform_settings_options_object.edit+"</a></strong>",s='<strong><a href="'+ajax_sform_settings_options_object.pageurl+"/?page_id="+s+'" target="_blank" style="text-decoration: none;">'+ajax_sform_settings_options_object.view+"</a></strong>",s=ajax_sform_settings_options_object.pagelinks.replace(ajax_sform_settings_options_object.edit,e).replace(ajax_sform_settings_options_object.view,s),m("#post-status").html(s)):m("#post-status").html("&nbsp;")}),m(".notice-toggle").on("click",function(){m(".smpt-warnings").hasClass("unseen")?(m("#smpt-warnings").text(ajax_sform_settings_options_object.hide),m(".smpt-settings").addClass("unseen"),m(".smpt-warnings").removeClass("unseen")):(m("#smpt-warnings").text(ajax_sform_settings_options_object.show),m("#trsmtpon").removeClass("unseen"),m(".smpt-warnings").addClass("unseen"),1==m("#server-smtp").prop("checked")?(m(".trsmtp").removeClass("unseen"),1==m("#smtp-authentication").prop("checked")?m(".trauthentication").removeClass("unseen"):m(".trauthentication").addClass("unseen")):m(".trsmtp").addClass("unseen"))}),m("#server-smtp").on("click",function(){1==m(this).prop("checked")?(m(".trsmtp").removeClass("unseen"),m("#tdsmtp").removeClass("last"),m("#smtp-notice").text(ajax_sform_settings_options_object.smtpnotes),1==m("#smtp-authentication").prop("checked")?m(".trauthentication").removeClass("unseen"):m(".trauthentication").addClass("unseen")):(m(".trsmtp").addClass("unseen"),m("#tdsmtp").addClass("last"),m("#smtp-notice").text(""))}),m("#smtp-authentication").on("click",function(){1==m(this).prop("checked")?(m("#tdauthentication").removeClass("last"),m(".trauthentication").removeClass("unseen")):(m("#tdauthentication").addClass("last"),m(".trauthentication").addClass("unseen"))}),m("#notification").on("click",function(){1==m(this).prop("checked")?(m(".trnotification").removeClass("unseen"),m("#tdnotification").removeClass("last"),1==m("#custom-name").prop("checked")?m(".trcustomname").removeClass("unseen"):m(".trcustomname").addClass("unseen"),1==m("#default-subject").prop("checked")?m(".trcustomsubject").removeClass("unseen"):m(".trcustomsubject").addClass("unseen")):(m(".trnotification").addClass("unseen"),m("#tdnotification").addClass("last"))}),m("#requester-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").addClass("unseen"):m(".trcustomname").removeClass("unseen")}),m("#form-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").addClass("unseen"):m(".trcustomname").removeClass("unseen")}),m("#custom-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").removeClass("unseen"):m(".trcustomname").addClass("unseen")}),m("#request-subject").on("click",function(){1==m(this).prop("checked")?m(".trcustomsubject").addClass("unseen"):m(".trcustomsubject").removeClass("unseen")}),m("#default-subject").on("click",function(){1==m(this).prop("checked")?m(".trcustomsubject").removeClass("unseen"):m(".trcustomsubject").addClass("unseen")}),m("#autoresponder").on("click",function(){1==m(this).prop("checked")?(m(".trauto").removeClass("unseen"),m("#tdconfirmation").removeClass("last")):(m(".trauto").addClass("unseen"),m("#tdconfirmation").addClass("last"))}),m("#save-settings").on("click",function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").html(ajax_sform_settings_options_object.loading);var s=m("form#settings").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=sform_edit_options",success:function(e){var s=e.error,t=(e.message,e.update);!0===s&&(m(".message").addClass("error"),m(".message").html(e.message)),!1===s&&(m(".message").html(e.message),!1===t&&m(".message").addClass("unchanged"),!0===t&&m(".message").addClass("success"))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),m(document).on("change","input[type=checkbox], input[type=radio], select",function(){m(".message").removeClass("seen error success unchanged")}),m(document).on("input","input[type=text], input[type=email], textarea",function(){m(".message").removeClass("seen error success unchanged")}),m("#save-attributes").on("click",function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").text(ajax_sform_settings_options_object.saving);var s=m("form#attributes").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=shortcode_costruction",success:function(e){var s=e.error,t=(e.message,e.update),n=e.redirect,a=e.url;!0===s&&(m(".message").addClass("error"),m(".message").html(e.message)),!1===s&&(m(".message").html(e.message),!1===t&&m(".message").addClass("unchanged"),!0===t&&(!0===n?document.location.href=a:m(".message").addClass("success")))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),m(document).on("change",".sform-target",function(){var e=m(this).val(),s=m(this).attr("field");"in"===e?m("p#usertype.role-"+s).removeClass("unseen"):m("p#usertype.role-"+s).addClass("unseen")}),m(document).on("change",".sfwidget",function(){var e=m(this).attr("box"),s=m(this).val();"all"===s?(m("div#sform-widget-hidden-pages."+e).addClass("unseen"),m("div#sform-widget-visible-pages."+e).addClass("unseen"),m("p#visibility-notes").removeClass("unseen"),m("p#visibility").addClass("visibility")):(m("p#visibility-notes").addClass("unseen"),m("p#visibility").removeClass("visibility"),"hidden"===s?(m("div#sform-widget-hidden-pages."+e).removeClass("unseen"),m("div#sform-widget-visible-pages."+e).addClass("unseen")):(m("div#sform-widget-hidden-pages."+e).addClass("unseen"),m("div#sform-widget-visible-pages."+e).removeClass("unseen")))}),m("#form").on("change",function(){var e=m(this).val(),s=m(location).attr("href"),t=new URLSearchParams(s),n=t.get("form");s=-1<s.indexOf("form=")?e?s.replace("&form="+n,"&form="+e):s.replace("&form="+n,""):e?s+"&form="+e:s;t=t.get("paged");s=-1<s.indexOf("paged=")?s.replace("&paged="+t,""):s,document.location.href=s}),m(".cbfield").on("click",function(){var e=m(this).attr("field");1==m(this).prop("checked")?m(".tr"+e).addClass("secret"):(m(".tr"+e).removeClass("secret"),1==m("#"+e+"label").prop("checked")?m("tr."+e+"label").addClass("unseen"):m("tr."+e+"label").removeClass("unseen"))}),m("#admin-notices").on("click",function(){1==m(this).prop("checked")?m(".admin-notices").addClass("invisible"):m(".admin-notices").removeClass("invisible")}),m("#duplicate").on("click",function(){1==m(this).prop("checked")?m(".trduplicate").removeClass("unseen"):m(".trduplicate").addClass("unseen")}),m(".sform-switch").on("click",function(){0==m(this).prop("checked")?m(this).val("false"):m(this).val("true")}),m("#admin-color").on("change",function(e){var s=m(this).val(),t=m("#settings").attr("class"),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"admin_color_scheme",verification_nonce:n,"admin-color":s},success:function(e){e.error;var s=e.color;!0===e.error&&m("#label-error").html("Error occurred during creation of the link"),!1===e.error&&(m(".full-width-bar, h1.title, select#form, .form-button, #settings, #smpt-warnings, .icon-button").removeClass(t),m(".full-width-bar, h1.title, select#form, .form-button, #settings, #smpt-warnings, .icon-button").addClass(s))},error:function(e){m("#label-error").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m("span.heading").on("click",function(){var e=m(this).attr("section");m(".section."+e).toggleClass("collapsed"),m(".section."+e).hasClass("collapsed")?(m("span.toggle."+e).removeClass("dashicons-arrow-up-alt2"),m("span.toggle."+e).addClass("dashicons-arrow-down-alt2"),m("#h2-"+e).addClass("closed")):(m("span.toggle."+e).removeClass("dashicons-arrow-down-alt2"),m("span.toggle."+e).addClass("dashicons-arrow-up-alt2"),m("#h2-"+e).removeClass("closed"))}),-1<window.location.href.indexOf("#css")&&(document.getElementById("appearance").trigger("click"),document.getElementById("additional-css").trigger("focus")),m("#deletion-toggle, .cancel.delete").on("click",function(){m("#deletion-notice").hasClass("unseen")?(m("#alert-wrap").addClass("unseen"),m("#form-buttons").addClass("unseen"),m("#deletion-toggle").addClass("unseen"),m("#deletion-notice").removeClass("unseen"),m("span#confirm").addClass("unseen")):(m("#alert-wrap").removeClass("unseen"),m("#form-buttons").removeClass("unseen"),m("#deletion-toggle").removeClass("unseen"),m("#deletion-notice").addClass("unseen"),m("span#default").removeClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#confirmation").val(""))}),m("#deletion-form").on("click",function(){1==m(this).prop("checked")?m("#deletion-toggle").removeClass("unseen"):(m("#deletion-toggle").addClass("unseen"),m("#alert-wrap").removeClass("unseen"),m("#form-buttons").removeClass("unseen"),m("#deletion-notice").addClass("unseen"),m("span#default").removeClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#confirmation").val(""))}),m("#deletion-confirm").on("click",function(e){var s=m("form#deletion").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=sform_delete_form",success:function(e){e.error;var s=e.message,t=e.redirect_url,n=e.img,a=e.confirm;!0===e.error&&(m("span#default").addClass("unseen"),m("span#confirm").removeClass("unseen"),m("span#confirm").html(s),a&&(m("#deletion-notice").addClass("confirm"),m("#hidden-confirm").html(a))),!1===e.error&&(m(".disclaimer").html(s),m("#deletion-buttons").addClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#deletion-notice, .disclaimer").addClass("success"),m("h3.deletion").text(s),m(".disclaimer").html(n),setTimeout(function(){document.location.href=t},3e3))},error:function(e){m(".disclaimer").html("AJAX call failed")}}),e.preventDefault(),!1}),m("#relocation").on("click",function(){1==m(this).prop("checked")?(m(".trmoving").removeClass("unseen"),""!=m("#moveto").val()&&(m(".trmoveto").removeClass("unseen"),""!=m("#starting").val()&&"next"!=m("#starting").val()&&m(".tronetime").removeClass("unseen"))):(m(".trmoving").addClass("unseen"),m(".trmoveto").addClass("unseen"),m(".tronetime").addClass("unseen"))}),m("#moveto").on("change",function(){var e=m(this).val(),s=m('#moveto option[value="'+e+'"]').text();m("#starting").val(""),m("#onetime").prop("checked",!0),m(".description.onetime").addClass("invisible"),m(".tronetime").addClass("unseen"),""==e?(m(".trmoveto").addClass("unseen"),m("#starting").val(""),m("#onetime").prop("checked",!0)):(m("#form-to").val(s),m(".trmoveto").removeClass("unseen"))}),m("#starting").on("change",function(){var e=m(this).val();"next"==e||""==e?(m(".tronetime").addClass("unseen"),m("#onetime").prop("checked",!1),m(".description.onetime").removeClass("invisible")):(m(".tronetime").removeClass("unseen"),m("#onetime").prop("checked",!0),m(".description.onetime").addClass("invisible"))}),m("#onetime").on("click",function(){1==m(this).prop("checked")?m(".description.onetime").addClass("invisible"):m(".description.onetime").removeClass("invisible")}),m("#save-card").on("click",function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").text(ajax_sform_settings_options_object.saving);var s=m("form#card").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=form_update",success:function(e){var s=e.error,t=(e.message,e.update),n=e.redirect,a=e.moving,o=e.restore,r=e.messages,i=e.moved,c=e.select,l=e.onetime,d=e.url;!0===s&&(m(".message").addClass("error"),m(".message").html(e.message),!0===n&&setTimeout(function(){document.location.href=d},1e3)),!1===s&&(m(".message").html(e.message),!1===t?m(".message").addClass("unchanged"):(m(".message").addClass("success"),!0===a&&(m("#starting").html(c),m("#tdentries").removeClass("last"),m(".trmoved, .trrestore").removeClass("unseen"),m("#entries").text(r),m("#submissions").val(r),m("#moved-entries").text(i),m("#moved-submissions").val(i),!1===l?(m("#starting").val("next"),m(".tronetime").addClass("unseen")):(m("#relocation").prop("checked",!1),m("#moveto").val(""),m("#starting").val(""),m(".trmoving, .trmoveto, .tronetime").addClass("unseen"))),!1===a&&(!0===o&&(m("#starting").html(c),m("#tdentries").addClass("last"),m(".trrestore").removeClass("unseen"),m("#entries").text(r),m("#submissions").val(r),m("#moved-entries").text(i),m("#moved-submissions").val(i),m("#restore").prop("checked",!1),m(".trmoved, .trrestore").addClass("unseen")),!1===l&&m("#starting").val("next"))))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),null!=document.getElementById("new-release")&&(e=document.getElementById("new-release").innerHTML,m("#storing-notice").on("click",function(){document.getElementById("new-release").innerHTML===e?document.getElementById("new-release").innerHTML=ajax_sform_settings_options_object.storing_notice:document.getElementById("new-release").innerHTML=e}))})}(jQuery);
  • simpleform/trunk/admin/js/admin.js

    r2689161 r2691726  
    44     $( window ).on('load', function() {
    55
    6        $("ul#submissions-data").on('mouseenter mouseleave', function() {
     6       $("ul#submissions-data").on('mouseenter', function() {
    77          $('#last-submission').addClass('unseen');
    88          $('#submissions-notice').removeClass('unseen');
    9           }, function () {
     9       });
     10       
     11       $("ul#submissions-data").on('mouseleave', function() {
    1012          $('#last-submission').removeClass('unseen');
    1113          $('#submissions-notice').addClass('unseen');
     
    2224         document.body.removeChild(tempInput);
    2325         $('#shortcode-tooltip').text(ajax_sform_settings_options_object.copied);
    24          setTimeout(function(){ $('#shortcode-tooltip').hide(); }, 1500);
     26         $('#shortcode-tooltip').removeClass('unseen');
     27         setTimeout(function(){ $('#shortcode-tooltip').addClass('unseen'); $('#shortcode-tooltip').text(ajax_sform_settings_options_object.copy); }, 2000);
    2528       }); 
    2629       
    27        $( "#shortcode-copy" ).on('mouseenter mouseleave', function() {
    28            $('#shortcode-tooltip').text(ajax_sform_settings_options_object.copy); 
    29            $('#shortcode-tooltip').show();
    30          }, function() {
    31            $('#shortcode-tooltip').hide();
    32          }         
    33        );       
     30       $( "#shortcode-copy" ).on('mouseenter', function() { $('#shortcode-tooltip').removeClass('unseen'); } );     
     31       
     32       $( "#shortcode-copy" ).on('mouseleave', function() { $('#shortcode-tooltip').addClass('unseen'); } );     
    3433       
    3534       $('#show-for').on('change', function() {
  • simpleform/trunk/admin/partials/editor.php

    r2679542 r2691726  
    3535<div id="page-description"><p><?php _e( 'Change easily the way your contact form is displayed. Choose which fields to use and who should see them:','simpleform') ?></p></div>
    3636
    37 <div id="editor-tabs"><a class="nav-tab nav-tab-active" id="builder"><?php _e( 'Form Builder','simpleform') ?></a><a class="nav-tab" id="appearance"><?php _e( 'Form Appearance','simpleform') ?></a><a class="form-button last <?php echo $color ?>" href="<?php $arg = $id != '1' ? '&form='. $id : ''; echo admin_url('admin.php?page=sform-settings') . $arg; ?>" target="_blank"><span><span class="dashicons dashicons-admin-settings"></span><span class="text"><?php _e( 'Settings', 'simpleform' ) ?></span></span></a></div>
     37<div id="editor-tabs"><a class="nav-tab nav-tab-active" id="builder"><?php _e( 'Form Builder','simpleform') ?></a><a class="nav-tab" id="appearance"><?php _e( 'Form Appearance','simpleform') ?></a><a class="form-button last <?php echo $color ?>" href="<?php $arg = $id != '1' ? '&form='. $id : ''; echo admin_url('admin.php?page=sform-settings') . $arg; ?>" target="_blank"><span><span class="dashicons dashicons-admin-settings"></span><span class="text"><?php _e( 'Settings', 'simpleform' ) ?></span></span></a><a class="form-button form-page <?php echo $color ?>" href="<?php $arg = $id != '1' ? '&id='. $id : ''; echo admin_url('admin.php?page=sform-form') . $arg; ?>" target="_blank"><span><span class="dashicons dashicons-tag"></span><span class="text"><?php _e( 'More specifics', 'simpleform' ) ?></span></span></a></div>
    3838                       
    3939<form id="attributes" method="post" class="<?php echo $color ?>">
     
    115115// Contact forms embedded in page
    116116if ( in_array($id, $page_ids) ) {
     117
    117118$show_for_value = isset($_GET['showfor']) ? $_GET['showfor'] : 'all';
    118119$show_for = ! empty( $attributes['show_for'] ) && !isset($_GET['showfor']) ? esc_attr($attributes['show_for']) : $show_for_value;
     
    123124<tr><th class="option"><span><?php _e('Form Name','simpleform') ?></span></th><td class="text"><input class="sform" name="form-name" placeholder="<?php esc_attr_e('Enter a name for this Form','simpleform') ?>" id="form-name" type="text" value="<?php echo $contact_form_name; ?>"></td></tr>
    124125
    125 <?php /*
    126 <tr><th class="option"><span><?php _e('Shortcode','simpleform') ?></span></th><td class="plaintext icon"><span id="shortcode">[<?php echo $shortcode ?>]</span><button id="shortcode-copy"><img src="<?php echo $icon ?>"></button><span id="shortcode-tooltip"><?php _e('Copy shortcode','simpleform') ?></span></td></tr>
    127 */ ?>
    128 
    129 <tr><th class="option"><span><?php _e('Visible to','simpleform') ?></span></th><td class="select"><select name="show-for" id="show-for" class="sform"><option value="all" <?php selected( $show_for, 'all'); ?>><?php _e('Everyone','simpleform') ?></option><option value="in" <?php selected( $show_for, 'in'); ?>><?php _e('Logged-in users','simpleform') ?></option><option value="out" <?php selected( $show_for, 'out'); ?>><?php _e('Logged-out users','simpleform') ?></option></select></td></tr>
    130 
    131 <tr class="trlevel <?php if ( $show_for !='in') {echo 'unseen';} ?>"><th class="option"><span><?php _e('Restricted to','simpleform') ?></span></th><td class="select"><select name="user-role" id="user-role" class="sform"><option value="any" <?php selected( $user_role, 'any'); ?>><?php _e('Any','simpleform') ?></option><?php wp_dropdown_roles($user_role); ?></select></td></tr>
    132 
    133 <tr><th class="option"><span><?php _e('Visible on','simpleform') ?></span></th><td class="used-page last"> 
    134 
    135 <?php
    136 $util = new SimpleForm_Util();
    137 $ids_array = $util->form_pages($id);
    138 $ordered_list = array_intersect($allpagesid,$ids_array);
    139 $pages = '';   
    140 
    141 if( !empty($ordered_list) ) {
    142 foreach ($ordered_list as $page) {
    143 if( get_post_status($page) == 'draft' || get_post_status($page) == 'publish' ) {
    144 $publish_link = '<strong><a href="' . get_edit_post_link($page) . '" target="_blank" class="publish-link">' . __( 'Publish now','simpleform') . '</a></strong>';   
    145 $post_status = get_post_status($page) == 'draft' ? __( 'Page in draft status not yet published','simpleform').'&nbsp;-&nbsp;' . $publish_link : sprintf( __('%1$s or %2$s the page content', 'simpleform'), '<strong><a href="' . get_edit_post_link($page) .'" target="_blank" style="text-decoration: none;">'. $edit .'</a></strong>', '<strong><a href="' . get_page_link($page) . '" target="_blank" style="text-decoration: none;">'. $view .'</a></strong>' );
    146 $pages .= '<span>' . get_the_title($page) . '</span><span class="">&nbsp;[&nbsp;' . $post_status . '&nbsp;]<br>';
    147 }
    148 }
    149 }
    150 
    151 $widget_block = get_option("widget_block") != false ? get_option("widget_block") : array();
    152 if ( !empty($widget_block) ) {     
    153 $sql = "SELECT widget_id FROM `$table_name` WHERE id = %d";
    154 $block_id_list = $wpdb->get_var( $wpdb->prepare( $sql, $id ) );
    155 $block_id_array = $block_id_list ? explode(',',$block_id_list) : array();
    156 if ($block_id_array) {
    157    foreach($block_id_array as $item) {
    158    $split_key = ! empty($item) ? explode('block-', $item) : '';
    159    $block_key = isset($split_key[1]) ? $split_key[1] : '0';
    160    // Remove any non-existent ids
    161    if ( !in_array($block_key,array_keys($widget_block)) ) {
    162     $remove_id = array($item);
    163     $new_ids = implode(",", array_diff($block_id_array,$remove_id));
    164     $wpdb->update($table_name, array('widget_id' => $new_ids), array('id' => $id ));
    165    }
    166    else {
    167     $widget_area = $util->widget_area_name($block_key);
    168     $pages .=  $widget_area ? $widget_area .'&nbsp;'.__('widget area','simpleform').'&nbsp;[&nbsp;<strong><a href="' . self_admin_url('widgets.php') . '" target="_blank" style="text-decoration: none;">'. __( 'Edit widget','simpleform') .'</a></strong>&nbsp;]<br>' : '';
    169    }
    170    }
    171 }   
    172 }
    173  
    174 if ( empty($pages) ) { $pages = '<span>' . __('Still not used. Create a new page or choose an existing one and add the shortcode','simpleform') . '</span>'; }
    175 
    176 echo $pages . '</td></tr>';
    177 
     126<tr><th class="option"><span><?php _e('Visible to','simpleform') ?></span></th><td class="select <?php if ( $show_for != 'in' ) { echo 'last'; } ?>"><select name="show-for" id="show-for" class="sform"><option value="all" <?php selected( $show_for, 'all'); ?>><?php _e('Everyone','simpleform') ?></option><option value="in" <?php selected( $show_for, 'in'); ?>><?php _e('Logged-in users','simpleform') ?></option><option value="out" <?php selected( $show_for, 'out'); ?>><?php _e('Logged-out users','simpleform') ?></option></select></td></tr>
     127
     128<tr class="trlevel <?php if ( $show_for !='in') {echo 'unseen';} ?>"><th class="option"><span><?php _e('Restricted to','simpleform') ?></span></th><td class="select <?php if ( $show_for == 'in' ) { echo 'last'; } ?>"><select name="user-role" id="user-role" class="sform"><option value="any" <?php selected( $user_role, 'any'); ?>><?php _e('Any','simpleform') ?></option><?php wp_dropdown_roles($user_role); ?></select></td></tr>
     129
     130<?php
    178131}
    179132
     
    183136$widget_id = $wpdb->get_var( "SELECT widget FROM $table_name WHERE id = {$id}" );
    184137if ( in_array($widget_id, array_keys($sform_widget)) ) {
    185 $widget_area = $wpdb->get_var( "SELECT area FROM $table_name WHERE id = {$id}" );
    186138$widget_for = ! empty($sform_widget[$widget_id]['sform_widget_audience']) ? $sform_widget[$widget_id]['sform_widget_audience'] : 'all';
    187139$role = ! empty($sform_widget[$widget_id]['sform_widget_role']) ? $sform_widget[$widget_id]['sform_widget_role'] : 'any';
     140
    188141global $wp_roles;
    189142$role_name = $role == 'any' ? __( 'Any','simpleform') : translate_user_role($wp_roles->roles[$role]['name']);
     
    199152$audience = __( 'Everyone','simpleform');
    200153}
    201 
    202 $widget_visibility = ! empty($sform_widget[$widget_id]['sform_widget_visibility']) ? $sform_widget[$widget_id]['sform_widget_visibility'] : 'all';
    203 $hidden_pages = ! empty($sform_widget[$widget_id]['sform_widget_hidden_pages']) ? $sform_widget[$widget_id]['sform_widget_hidden_pages'] : '';       
    204 $visible_pages = ! empty($sform_widget[$widget_id]['sform_widget_visible_pages']) ? $sform_widget[$widget_id]['sform_widget_visible_pages'] : '';
    205        
    206 if ( $widget_visibility == 'hidden' ) {
    207    if ( ! empty($hidden_pages)) {
    208      $pages_array = explode(',',$hidden_pages);
    209      $ordered_pages_array = array_intersect( $allpagesid, $pages_array);
    210      $hidden_list = '';
    211      foreach ($ordered_pages_array as $post) {
    212      if ( get_post_status($post) == 'draft' || get_post_status($post) == 'publish' ) {
    213          $publish_link = '<strong><a href="' . get_edit_post_link($post) . '" target="_blank" class="publish-link">' . __( 'Publish now','simpleform') . '</a></strong>';   
    214          $post_status = get_post_status($post) == 'draft' ? __( 'Page in draft status not yet published','simpleform').'&nbsp;-&nbsp;' . $publish_link : sprintf( __('%1$s or %2$s the page content', 'simpleform'), '<strong><a href="' . get_edit_post_link($post) .'" target="_blank" style="text-decoration: none;">'. $edit .'</a></strong>', '<strong><a href="' . get_page_link($post) . '" target="_blank" style="text-decoration: none;">'. $view .'</a></strong>' );
    215          $hidden_list .= '<span>' . get_the_title($post). '</span><span class="">&nbsp;[&nbsp;' . $post_status . '&nbsp;]<br>';
    216      }
    217      }
    218      $widget_pages = '<span>' . __( 'Not visible in:','simpleform') . '</span><br>' . $hidden_list;
    219    }
    220    else { $widget_pages = __( 'Visible in all pages','simpleform'); }
    221 }
    222 elseif ( $widget_visibility == 'visible' ) {
    223    if ( ! empty($visible_pages)) {
    224      $pages_array = explode(',',$visible_pages);
    225      $ordered_pages_array = array_intersect( $allpagesid, $pages_array);
    226      $visible_list = '';           
    227      foreach ($ordered_pages_array as $post) {
    228      if( get_post_status($post) == 'draft' || get_post_status($post) == 'publish' ) {
    229          $publish_link = '<strong><a href="' . get_edit_post_link($post) . '" target="_blank" class="publish-link">' . __( 'Publish now','simpleform') . '</a></strong>';   
    230          $post_status = get_post_status($post) == 'draft' ? __( 'Page in draft status not yet published','simpleform').'&nbsp;-&nbsp;' . $publish_link : sprintf( __('%1$s or %2$s the page content', 'simpleform'), '<strong><a href="' . get_edit_post_link($post) .'" target="_blank" style="text-decoration: none;">'. $edit .'</a></strong>', '<strong><a href="' . get_page_link($post) . '" target="_blank" style="text-decoration: none;">'. $view .'</a></strong>' );
    231          $visible_list .= '<span>' . get_the_title($post). '</span><span class="">&nbsp;[&nbsp;' . $post_status . '&nbsp;]<br>';
    232      }
    233      }
    234      $widget_pages = __( 'Visible only in:','simpleform') . '<br>' . $visible_list;
    235    }
    236    else { $widget_pages = __( 'No page selected yet','simpleform'); }
    237 }
    238 else {
    239    $widget_pages = __( 'Visible in all pages','simpleform');
    240 } ?>     
     154?> 
    241155
    242156<tr><th class="option"><span><?php _e('Form Name','simpleform') ?></span></th><td class="text"><input class="sform" name="form-name" placeholder="<?php esc_attr_e('Enter a name for this Form','simpleform') ?>" id="form-name" type="text" value="<?php echo $contact_form_name; ?>"></td></tr>
    243157
    244 <?php /*
    245 <tr><th class="option"><span><?php _e('Widget Area','simpleform') ?></span></th><td class="plaintext widget"><span><?php echo $widget_area; ?></span>&nbsp;[&nbsp;<a href="<?php echo self_admin_url('widgets.php') ?>" target="_blank" style="text-decoration: none"><b><span class=""><?php _e( 'Edit', 'simpleform' ) ?></b></span></a>&nbsp;]</td></tr>
    246 */ ?>
    247    
    248158<tr class="textbutton"><th class="option"><span><?php _e('Visible to','simpleform') ?></span></th><td class="plaintext"><?php echo $audience; ?></td></tr>
    249159
     
    251161<tr class="textbutton"><th class="option"><span><?php _e('Restricted to','simpleform') ?></span></th><td class="plaintext"><?php echo $role_name; ?></td></tr>
    252162<?php } ?>
    253 
    254 <tr><th class="option"><span><?php _e('Visible on','simpleform') ?></span></th><td class="plaintext widget"><?php echo $widget_area .'&nbsp;'.__('widget area','simpleform'); ?>&nbsp;[&nbsp;<a href="<?php echo self_admin_url('widgets.php') ?>" target="_blank" style="text-decoration: none"><b><?php _e( 'Edit widget', 'simpleform' ) ?></b></a>&nbsp;]</td></tr>
    255 
    256 <tr><th class="option"><span><?php _e('Widget Visibility Rules','simpleform') ?></span></th><td class="used-page last"><?php echo $widget_pages; ?></td></tr>
    257163
    258164<input type="hidden" id="widget-id" name="widget-id" value="<?php echo $widget_id ?>">
  • simpleform/trunk/admin/partials/entries.php

    r2689161 r2691726  
    66$color = ! empty( $settings['admin_color'] ) ? esc_attr($settings['admin_color']) : 'default';
    77$notice = '';
    8 $id = isset( $_REQUEST['form'] ) ? absint($_REQUEST['form']) : ''; 
     8$id = isset( $_REQUEST['form'] ) ? absint($_REQUEST['form']) : '';
    99global $wpdb;
    1010$count_stored = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_shortcodes WHERE storing = '1' AND status != 'trash'");
     
    1515<div id="sform-wrap" class="sform">
    1616
    17 <div id="new-release"><?php 
    18   if ( !empty($update_notice) && $admin_notices == 'false' ) { echo $update_notice; }   
     17<div id="new-release"><?php
     18  if ( !empty($update_notice) && $admin_notices == 'false' ) { echo $update_notice; }
    1919  else { echo '&nbsp;'; }?>
    2020</div>
    21    
     21
    2222<div class="full-width-bar <?php echo $color ?>">
    2323<h1 class="title <?php echo $color ?>"><span class="dashicons dashicons-email-alt responsive"></span><?php _e( 'Entries', 'simpleform' );
     
    2828$shortcode_ids = array_merge($page_ids, $widget_ids);
    2929$all_forms = count($page_forms) + count($widget_forms);
    30 
    31 if ( $all_forms > 1 ) {
     30if ( $all_forms > 1 ) {
    3231echo apply_filters( 'hidden_submissions', $notice, $id );?>
    3332<div class="selector"><div id="wrap-selector" class="responsive"><?php echo _e( 'Select Form', 'simpleform' ) ?>:</div><div class="form-selector"><select name="form" id="form" class="<?php echo $color ?>"><option value="" <?php selected( $id, '' ); ?>><?php echo _e( 'All Forms', 'simpleform' ); ?></option><?php if ( $page_forms && $widget_forms ) {  echo '<optgroup label="'.esc_attr__( 'Embedded in page', 'simpleform' ).'">'; } foreach($page_forms as $form) { $form_id = $form['id']; $form_name = $form['name']; echo '<option value="'.$form_id.'" '.selected( $id, $form_id ) .'>'.$form_name.'</option>'; } if ( $page_forms && $widget_forms ) {  echo '</optgroup>'; } if ( $page_forms && $widget_forms ) {  echo '<optgroup label="'.esc_attr__( 'Embedded in widget area', 'simpleform' ).'">'; } foreach($widget_forms as $form) { $form_id = $form['id']; $form_name = $form['name']; echo '<option value="'.$form_id.'" '.selected( $id, $form_id ) .'>'.$form_name.'</option>'; } if ( $page_forms && $widget_forms ) {  echo '</optgroup>'; }?></select></div></div>
    3433<?php } ?>
    35 
    3634</h1>
    3735</div>
     
    4139$where_form = " WHERE form != '0'";
    4240$last_message = get_option('sform_last_message');
    43 } else {
     41}
     42else {
    4443$where_form = " WHERE form = '". $id ."'";
    45 
    46 $form_entries = $wpdb->get_var( $wpdb->prepare( "SELECT entries FROM {$wpdb->prefix}sform_shortcodes WHERE id = %d", $id) );
    47 
    48 // Option created after using the form for the first time
    4944$last_form_message = get_option("sform_last_{$id}_message");
    5045$last_message_timestamp = $last_form_message != false ? explode('#',$last_form_message)[0] : '';
    5146$last_message_data = $last_form_message != false ? explode('#',$last_form_message)[1] : '';
    52 // Search all last messages imported from other forms
    53 $search_last_in = 'sform_last_in_'.$id.'_message_';
    54 $results_in = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE option_name LIKE '%{$search_last_in}%'" );
    55 $lasts_in = array($last_message_timestamp);
    56 // $most_recent_message = $last_message_data;
    57 foreach ( $results_in as $result_in ) {
    58   $timestamp_in = explode('#', $result_in->option_value)[0];
    59   $lasts_in[] = $timestamp_in;
    60   if ( $timestamp_in == max($lasts_in) ) {
    61     $last_message_in = explode('#', $result_in->option_value)[1];
    62     $last_message_data = $last_message_in;
     47$last_date = $wpdb->get_var("SELECT date FROM {$wpdb->prefix}sform_submissions WHERE form = '$id' ORDER BY date DESC LIMIT 1");
     48$timestamp_last_date = strtotime($last_date);
     49  if ( $timestamp_last_date == $last_message_timestamp ) { $last_message = $last_message_data; }
     50  // Check if a forwarding or a moving was made and related messages were restored
     51  else {
     52    $last_form_direct_message = get_option("sform_last_{$id}_direct_message");
     53    $last_direct_message_timestamp = $last_form_direct_message != false ? explode('#',$last_form_direct_message)[0] : '';
     54    $last_direct_message_data = $last_form_direct_message != false ? explode('#',$last_form_direct_message)[1] : '';
     55    $previous_last_message = get_option("sform_previous_last_{$id}_message");
     56    $previous_last_message_timestamp = $previous_last_message != false ? explode('#',$previous_last_message)[0] : '';
     57    $previous_last_message_data = $previous_last_message != false ? explode('#',$previous_last_message)[1] : '';
     58    if ( $timestamp_last_date == $last_direct_message_timestamp ) { $last_message = $last_direct_message_data; }
     59    elseif ( $timestamp_last_date == $previous_last_message_timestamp ) { $last_message = $previous_last_message_data; }
     60    else { $last_message = $last_date ? '<div style="line-height:18px;">' . __('Data not available due to entries moved to other form', 'simpleform') . '</div>' : ''; }
    6361  }
    6462}
    6563
    66 $last_date = $wpdb->get_var("SELECT date FROM {$wpdb->prefix}sform_submissions WHERE form = '$id' ORDER BY date DESC LIMIT 1");
    67 $timestamp_last_date = strtotime($last_date);
    68 $last_message = max($lasts_in) == $timestamp_last_date ? $last_message_data : '<div style="line-height:18px;">' . __('Data not available due to moving messages', 'simpleform') . '</div>';
    69 }   
     64echo '<div id="page-description" class="submissions-list overview">';
    7065
    71 echo '<div id="page-description" class="submissions-list overview">';
    72    
    7366if ( has_action( 'submissions_list' ) ):
    7467  do_action( 'submissions_list', $id, $shortcode_ids, $last_message );
    7568else:
    76 
    77 
    78 
    79 
    8069 if ( $id == '' || in_array($id, $shortcode_ids) ) {
    81      
    82    
    83 
    84      
    85      
    86      
    87      
    8870      global $wpdb;
    8971      $where_day = 'AND date >= UTC_TIMESTAMP() - INTERVAL 24 HOUR';
     
    9375      $where_submissions = defined('SIMPLEFORM_SUBMISSIONS_NAME') ? "AND object != '' AND object != 'not stored'" : '';
    9476      $count_all = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $where_form $where_submissions AND hidden = '0'");
    95       $count_last_day = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $where_form $where_day $where_submissions AND hidden = '0'");
    96       $count_last_week = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $where_form $where_week $where_submissions AND hidden = '0'");
    97       $count_last_month = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $where_form $where_month $where_submissions AND hidden = '0'");
    98       $count_last_year = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $where_form $where_year $where_submissions AND hidden = '0'");
     77      $count_last_year = $count_all ? $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $where_form $where_year $where_submissions AND hidden = '0'") : '0';
     78      $count_last_month = $count_last_year ? $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $where_form $where_month $where_submissions AND hidden = '0'") : '0';
     79      $count_last_week = $count_last_month ? $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $where_form $where_week $where_submissions AND hidden = '0'") : '0';
     80      $count_last_day = $count_last_week ? $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $where_form $where_day $where_submissions AND hidden = '0'") : '0';
    9981      $total_received = $count_all;
    10082      $string1 = __('Submissions data is not stored in the WordPress database by default.', 'simpleform' );
     
    10890      $string9 = __('You can enable this feature by activating the <b>SimpleForm Contact Form Submissions</b> addon.', 'simpleform' );
    10991      $string10 = __(' Go to the Plugins page.', 'simpleform' );
     92      $moved_from = " WHERE moved_from = '". $id ."'";
     93      $count_moved_all = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $moved_from $where_submissions AND hidden = '0'");
     94      $total_received .= $id != '' && $count_moved_all ? '&nbsp;+&nbsp;' . $count_moved_all . '<span class="dashicons dashicons-migrate" style="line-height: 40px; padding-left: 3px;"></span>' : '';
     95      $count_moved_last_year = $count_moved_all ? $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $moved_from $where_year $where_submissions AND hidden = '0'") : '';
     96      $count_last_year .= $id != '' && $count_moved_last_year ? '&nbsp;+&nbsp;' . $count_moved_last_year . '<span class="dashicons dashicons-migrate" style="line-height: 40px; padding-left: 3px;"></span>' : '';
     97      $count_moved_last_month = $count_moved_last_year ? $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $moved_from $where_month $where_submissions AND hidden = '0'") : '';
     98      $count_last_month .= $id != '' && $count_moved_last_month ? '&nbsp;+&nbsp;' . $count_moved_last_month . '<span class="dashicons dashicons-migrate" style="line-height: 40px; padding-left: 3px;"></span>' : '';
     99      $count_moved_last_week = $count_moved_last_month ? $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $moved_from $where_week $where_submissions AND hidden = '0'") : '';
     100      $count_last_week .= $id != '' && $count_moved_last_week ? '&nbsp;+&nbsp;' . $count_moved_last_week . '<span class="dashicons dashicons-migrate" style="line-height: 40px; padding-left: 3px;"></span>' : '';
     101      $count_moved_last_day = $count_moved_last_week ? $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions $moved_from $where_day $where_submissions AND hidden = '0'") : '';
     102      $count_last_day .= $id != '' && $count_moved_last_day ? '&nbsp;+&nbsp;' . $count_moved_last_day . '<span class="dashicons dashicons-migrate" style="line-height: 40px; padding-left: 3px;"></span>' : '';
    110103?>
    111104     
    112 <div><ul id="submissions-data"><li class="type"><span class="label"><?php _e( 'Received', 'simpleform' ); ?></span><span class="value"><?php echo $total_received; ?></span></li><li class="type"><span class="label"><?php _e( 'This Year', 'simpleform' ); ?></span><span class="value"><?php echo $count_last_year; ?></span></li><li class="type"><span class="label"><?php _e( 'Last Month', 'simpleform' ); ?></span><span class="value"><?php echo $count_last_month; ?></span></li><li class="type"><span class="label"><?php _e( 'Last Week', 'simpleform' ); ?></span><span class="value"><?php echo $count_last_week; ?></span></li><li><span class="label"><?php _e( 'Last Day', 'simpleform' ); ?></span><span class="value"><?php echo $count_last_day; ?></span></li></ul></div>
     105<div><ul id="submissions-data"><li class="type"><span class="label"><?php _e( 'Received', 'simpleform' ); ?></span><span class="value"><?php echo $total_received ?></span></li><li class="type"><span class="label"><?php _e( 'This Year', 'simpleform' ); ?></span><span class="value"><?php echo $count_last_year ?></span></li><li class="type"><span class="label"><?php _e( 'Last Month', 'simpleform' ); ?></span><span class="value"><?php echo $count_last_month ?></span></li><li class="type"><span class="label"><?php _e( 'Last Week', 'simpleform' ); ?></span><span class="value"><?php echo $count_last_week ?></span></li><li><span class="label"><?php _e( 'Last Day', 'simpleform' ); ?></span><span class="value"><?php echo $count_last_day ?></span></li></ul></div>
    113106
    114107<?php
    115108    $plugin_file = 'simpleform-contact-form-submissions/simpleform-submissions.php';
    116109    $admin_url = is_network_admin() ? network_admin_url( 'plugins.php' ) : admin_url( 'plugins.php' );
    117    
    118110    if ( $last_message ) {
    119111    echo '<div id="last-submission"><h3><span class="dashicons dashicons-buddicons-pm"></span>'.__('Last Message Received', 'simpleform' ).'</h3>'.$last_message . '</div>';
     
    128120    }
    129121    else  {
     122    $empty_message = $count_moved_all ? sprintf( _n( '%s message has been moved to other form', '%s messages have been moved to other form', $count_moved_all, 'simpleform' ), $count_moved_all ) : __('So far, no message has been received yet!', 'simpleform' );
    130123    if ( ! file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) ) {       
    131     echo '<div id="empty-submission"><h3><span class="dashicons dashicons-info"></span>'. __('Empty Inbox', 'simpleform' ).'</h3>'. __('So far, no message has been received yet!', 'simpleform' ).'<p>'. sprintf( __('Please note that submissions data is not stored in the WordPress database by default. We have designed SimpleForm to be a minimal, lightweight, fast and privacy-respectful plugin, so that it does not interfere with your site performance and can be easily managed. If you want to keep a copy of your messages, you can add this feature with the <a href="%s" target="_blank">SimpleForm Contact Form Submissions</a> addon. You can find it in the WordPress.org plugin repository.', 'simpleform' ), esc_url( 'https://wordpress.org/plugins/simpleform-contact-form-submissions/' ) ).'</div>';
     124    echo '<div id="empty-submission"><h3><span class="dashicons dashicons-info"></span>'. __('Empty Inbox', 'simpleform' ).'</h3><b>'. $empty_message .'</b><p>'. sprintf( __('Please note that submissions data is not stored in the WordPress database by default. We have designed SimpleForm to be a minimal, lightweight, fast and privacy-respectful plugin, so that it does not interfere with your site performance and can be easily managed. If you want to keep a copy of your messages, you can add this feature with the <a href="%s" target="_blank">SimpleForm Contact Form Submissions</a> addon. You can find it in the WordPress.org plugin repository.', 'simpleform' ), esc_url( 'https://wordpress.org/plugins/simpleform-contact-form-submissions/' ) ).'</div>';
    132125    }
    133126    else {
    134127    if ( ! class_exists( 'SimpleForm_Submissions' ) ) {
    135      echo '<div id="empty-submission"><h3><span class="dashicons dashicons-info"></span>'. __('Empty Inbox', 'simpleform' ).'</h3>'. __('So far, no message has been received yet!', 'simpleform' ).'<p>'.sprintf( __('Submissions data is not stored in the WordPress database by default. We have designed SimpleForm to be a minimal, lightweight, fast and privacy-respectful plugin, so that it does not interfere with your site performance and can be easily managed. You can enable this feature with the <b>SimpleForm Contact Form Submissions</b> addon activation. Go to the <a href="%s">Plugins</a> page.', 'simpleform' ), esc_url( $admin_url ) ) . '</div>';
     128     echo '<div id="empty-submission"><h3><span class="dashicons dashicons-info"></span>'. __('Empty Inbox', 'simpleform' ).'</h3>'. $empty_message .'<p>'.sprintf( __('Submissions data is not stored in the WordPress database by default. We have designed SimpleForm to be a minimal, lightweight, fast and privacy-respectful plugin, so that it does not interfere with your site performance and can be easily managed. You can enable this feature with the <b>SimpleForm Contact Form Submissions</b> addon activation. Go to the <a href="%s">Plugins</a> page.', 'simpleform' ), esc_url( $admin_url ) ) . '</div>';
    136129    }
    137130    }
  • simpleform/trunk/admin/partials/form.php

    r2689161 r2691726  
    4444/* translators: It is used in place of placeholder %2$s in the string: "%1$s or %2$s the page content" */
    4545$view = __( 'view','simpleform');
    46 $allpagesid = $wpdb->get_col( "SELECT id FROM {$wpdb->prefix}posts WHERE post_type != 'attachment' AND post_type != 'revision' AND post_status != 'trash' AND post_title != '' AND post_content != '' ORDER BY post_title ASC" );
    47 
    4846$show_for = ! empty( $attributes['show_for'] ) && !isset($_GET['showfor']) ? esc_attr($attributes['show_for']) : 'all';
    4947if ( $show_for == 'out' ) { $target = __( 'Logged-out users','simpleform'); }
     
    5351global $wp_roles;
    5452$role_name = $role == 'any' ? __( 'Any','simpleform') : translate_user_role($wp_roles->roles[$role]['name']);
     53
     54// Get a pages list sorted by name where the form is used
     55$allpagesid = $wpdb->get_col( "SELECT id FROM {$wpdb->prefix}posts WHERE post_type != 'attachment' AND post_type != 'revision' AND post_status != 'trash' AND post_title != '' AND post_content != '' ORDER BY post_title ASC" );
    5556$util = new SimpleForm_Util();
    5657$ids_array = $util->form_pages($id);
    5758$ordered_list = array_intersect($allpagesid,$ids_array);
    5859$pages = '';
    59 // $page_status = '';
    6060if( !empty($ordered_list) ) {
    6161foreach ($ordered_list as $page) {
    62 // if( get_post_status($page) == 'publish' ) { $page_status .= '1'; }
    6362if( get_post_status($page) == 'draft' || get_post_status($page) == 'publish' ) {
    6463$publish_link = '<strong><a href="' . get_edit_post_link($page) . '" target="_blank" class="publish-link">' . __( 'Publish now','simpleform') . '</a></strong>';   
    6564$post_status = get_post_status($page) == 'draft' ? __( 'Page in draft status not yet published','simpleform').'&nbsp;-&nbsp;' . $publish_link : sprintf( __('%1$s or %2$s the page content', 'simpleform'), '<strong><a href="' . get_edit_post_link($page) .'" target="_blank" style="text-decoration: none;">'. $edit .'</a></strong>', '<strong><a href="' . get_page_link($page) . '" target="_blank" style="text-decoration: none;">'. $view .'</a></strong>' );
    6665$pages .= '<span>' . get_the_title($page) . '</span><span class="">&nbsp;[&nbsp;' . $post_status . '&nbsp;]<br>';
     66}
     67}
     68}
    6769$widget_block = get_option("widget_block") != false ? get_option("widget_block") : array();
    68 }
    69 }
    70 }
    71 
    72 $table_name = "{$wpdb->prefix}sform_shortcodes";
    73 $widget_id = $wpdb->get_var( "SELECT widget FROM $table_name WHERE id = {$id}" );
    74 
    7570if ( !empty($widget_block) ) {
    7671$block_id_list = esc_attr($form_data->widget_id) ? esc_attr($form_data->widget_id) : '';
     
    8479    $remove_id = array($item);
    8580    $new_ids = implode(",", array_diff($block_id_array,$remove_id));
    86     $wpdb->update($table_name, array('widget_id' => $new_ids), array('id' => $id ));
     81    $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('widget_id' => $new_ids), array('id' => $id ));
    8782   }
    8883   else {
     
    9388}   
    9489}
    95 if ( empty($pages) ) {
    96 
    9790// Check for form embedded in widget area
    98 
    99 $sform_widget = get_option('widget_sform_widget');
    100 if ( $widget_id != '0' && in_array($widget_id, array_keys($sform_widget)) ) {
     91$sform_widget = get_option("widget_sform_widget") != false ? get_option("widget_sform_widget") : array();
     92$widget_id = $wpdb->get_var( "SELECT widget FROM {$wpdb->prefix}sform_shortcodes WHERE id = {$id}" );
     93if ( !empty($sform_widget) && $widget_id != '0' && in_array($widget_id, array_keys($sform_widget)) ) {
    10194$widget_visibility = ! empty($sform_widget[$widget_id]['sform_widget_visibility']) ? $sform_widget[$widget_id]['sform_widget_visibility'] : 'all';
    10295$hidden_pages = ! empty($sform_widget[$widget_id]['sform_widget_hidden_pages']) ? $sform_widget[$widget_id]['sform_widget_hidden_pages'] : '';       
    10396$visible_pages = ! empty($sform_widget[$widget_id]['sform_widget_visible_pages']) ? $sform_widget[$widget_id]['sform_widget_visible_pages'] : '';
    104 
    10597$show_for = ! empty($sform_widget[$widget_id]['sform_widget_audience']) ? $sform_widget[$widget_id]['sform_widget_audience'] : 'all';
    10698if ( $show_for == 'out' ) { $target = __( 'Logged-out users','simpleform'); }
     
    109101$role = ! empty($sform_widget[$widget_id]['sform_widget_role']) ? $sform_widget[$widget_id]['sform_widget_role'] : 'any';
    110102global $wp_roles;
    111 $role_name = $role == 'any' ? __( 'Any','simpleform') : translate_user_role($wp_roles->roles[$role]['name']);
    112        
     103$role_name = $role == 'any' ? __( 'Any','simpleform') : translate_user_role($wp_roles->roles[$role]['name']);     
    113104if ( $widget_visibility == 'hidden' ) {
    114105   if ( ! empty($hidden_pages)) {
     
    123114     }
    124115     }
    125      $pages = '<span>' . __( 'Not visible in:','simpleform') . '</span><br>' . $hidden_list;
    126    }
    127    else { $pages = __( 'Visible in all pages','simpleform'); }
     116     $pages .= empty($pages) ? '<span>' . __( 'Visible in all pages where the widget area is present except for the pages listed:','simpleform') . '</span><br>' . $hidden_list : '<br>' . '<span>' . __( 'Visible in all pages where the widget area is present except for the pages listed:','simpleform') . '</span><br>' . $hidden_list;
     117   }
     118   else { $pages .= empty($pages) ? __( 'Visible in all pages where the widget area is present','simpleform') : '<br>' . __( 'Visible in all pages where the widget area is present','simpleform'); }
    128119}
    129120elseif ( $widget_visibility == 'visible' ) {
     
    139130     }
    140131     }
    141      $pages = __( 'Visible only in:','simpleform') . '<br>' . $visible_list;
    142    }
    143    else { $pages = __( 'No page selected yet','simpleform'); }
     132     $pages .=  empty($pages) ? __( 'Visible only in the listed pages where the widget area is present:','simpleform') . '<br>' . $visible_list : '<br>' . __( 'Visible only in the listed pages where the widget area is present:','simpleform') . '<br>' . $visible_list;
     133   }
     134   else { $pages .=  empty($pages) ? __( 'No page selected yet where the widget area is present','simpleform') : '<br>' . __( 'No page selected yet where the widget area is present','simpleform'); }
    144135}
    145136else {
    146    $pages = __( 'Visible in all pages','simpleform');
    147 }
    148 
    149 }
    150 
    151    else {
    152     $pages = '<span>' . __('Still not used','simpleform') . '</span>';
    153 }
    154 
    155 }
    156 
     137   $pages .= empty($pages) ? __( 'Visible in all pages where the widget area is present','simpleform') : '<br>' . __( 'Visible in all pages where the widget area is present','simpleform');
     138}
     139}
     140if ( empty($pages) ) {
     141    $prebuilt_page = '<b>' . __( 'pre-built page','simpleform') . '</b>';
     142    $form_page_ID = ! empty( $settings['form_pageid'] ) ? esc_attr($settings['form_pageid']) : '';
     143    $prebuilt_page_link = ! empty($form_page_ID) ? '<a href="' . get_edit_post_link($form_page_ID) .'" target="_blank" style="text-decoration: none;">'. $prebuilt_page .'</a>' : '';
     144    $default_message_starting = __('The form has not yet been published','simpleform');
     145    $default_message_ending = ! empty($prebuilt_page_link) && $id == '1' ? '.&nbsp;' . sprintf('Get started with the %s!', $prebuilt_page_link ) : '';
     146    $pages = '<span>' . $default_message_starting . $default_message_ending . '</span>';   
     147}
    157148$icon = SIMPLEFORM_URL . 'admin/img/copy_icon.png';
    158149$tzcity = get_option('timezone_string');
     
    173164$where_year = ' AND date >= UTC_TIMESTAMP() - INTERVAL 1 YEAR';
    174165$where_submissions = defined('SIMPLEFORM_SUBMISSIONS_NAME') && $storing == 'true' ? "AND object != '' AND object != 'not stored'" : '';
     166// USE MOVING CHECK FOR REDUCE QUERIES
    175167$count_all = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = $id $where_submissions");
    176168$count_last_day = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = $id $where_submissions $where_day");
     
    209201else { ?>
    210202
    211 <tr class=""><th class="option"><span><?php _e('Shortcode','simpleform') ?></span></th><td class="plaintext icon"><span id="shortcode">[<?php echo $shortcode ?>]</span><button id="shortcode-copy"><img src="<?php echo $icon ?>"></button><span id="shortcode-tooltip"><?php _e('Copy shortcode','simpleform') ?></span></td></tr>
     203<tr class=""><th class="option"><span><?php _e('Shortcode','simpleform') ?></span></th><td class="plaintext icon"><span id="shortcode">[<?php echo $shortcode ?>]</span><button id="shortcode-copy"><img src="<?php echo $icon ?>"></button><span id="shortcode-tooltip" class="unseen"><?php _e('Copy shortcode','simpleform') ?></span></td></tr>
    212204
    213205<?php } ?>
     
    221213<tr class="trmoved <?php if ( $form_data->entries == '0' && $form_data->moved_entries == '0' ) { echo 'unseen'; } ?>"><th class="option"><span><?php _e('Moved Entries','simpleform') ?></span></th><td class="plaintext"><span id="moved-entries"><?php esc_attr_e($form_data->moved_entries) ?></span></td></tr>
    222214
    223 <?php if ( esc_attr($form_data->status) == 'published' ) { ?>
     215<?php // if ( esc_attr($form_data->status) == 'published' ) { ?>
    224216
    225217<tr><th class="option"><span><?php _e('Visible to','simpleform') ?></span></th><td class="plaintext"><?php echo $target ?></td></tr>
     
    241233<?php }
    242234   
    243  } ?>
     235// } ?>
    244236
    245237</tbody></table></div>
     
    305297echo '&nbsp;';
    306298//  _e( 'Note that the deleted form will be moved to the trash folder, and will be purged after 30 days.', 'simpleform' )
    307 _e( 'That gives you a chance to restore the form in case you change your mind.', 'simpleform' )
     299_e( 'That gives you a chance to restore the form in case you change your mind, but you\'ll need to re-insert it into a page or widget to make it visible again.', 'simpleform' )
    308300?>
    309301</span><span id="confirm"></span></div><div id="deletion-buttons"><div class="delete cancel"><?php _e( 'Cancel', 'simpleform' ) ?></div><input type="submit" class="delete" id="deletion-confirm" name="deletion-confirm" value="<?php esc_attr_e( 'Continue with deletion', 'simpleform' ) ?>"></div><?php wp_nonce_field( 'sform_nonce_deletion', 'sform_nonce'); ?>
  • simpleform/trunk/admin/partials/settings.php

    r2679542 r2691726  
    4141<div id="page-description"><p><?php _e( 'Customize messages and whatever settings you want to better match your needs:','simpleform') ?></p></div>
    4242
    43 <div id="settings-tabs"><a class="nav-tab nav-tab-active" id="general"><?php _e( 'General','simpleform') ?></a><a class="nav-tab" id="messages"><?php _e( 'Validation','simpleform') ?></a><a class="nav-tab" id="email"><?php _e( 'Notifications','simpleform') ?></a><a class="nav-tab" id="spam"><?php _e( 'Anti-Spam','simpleform') ?></a><?php echo apply_filters( 'sform_itab', $extra_option ) ?><a class="form-button last <?php echo $color ?>" href="<?php $arg = $id != '1' ? '&form='. $id : ''; echo admin_url('admin.php?page=sform-editor') . $arg; ?>" target="_blank"><span><span class="dashicons dashicons-editor-table"></span><span class="text"><?php _e( 'Editor', 'simpleform' ) ?></span></span></a></div>
     43<div id="settings-tabs"><a class="nav-tab nav-tab-active" id="general"><?php _e( 'General','simpleform') ?></a><a class="nav-tab" id="messages"><?php _e( 'Validation','simpleform') ?></a><a class="nav-tab" id="email"><?php _e( 'Notifications','simpleform') ?></a><a class="nav-tab" id="spam"><?php _e( 'Anti-Spam','simpleform') ?></a><?php echo apply_filters( 'sform_itab', $extra_option ) ?><a class="form-button last <?php echo $color ?>" href="<?php $arg = $id != '1' ? '&form='. $id : ''; echo admin_url('admin.php?page=sform-editor') . $arg; ?>" target="_blank"><span><span class="dashicons dashicons-editor-table"></span><span class="text"><?php _e( 'Editor', 'simpleform' ) ?></span></span></a><a class="form-button form-page <?php echo $color ?>" href="<?php $arg = $id != '1' ? '&id='. $id : ''; echo admin_url('admin.php?page=sform-form') . $arg; ?>" target="_blank"><span><span class="dashicons dashicons-tag"></span><span class="text"><?php _e( 'Specifics', 'simpleform' ) ?></span></span></a></div>
    4444                       
    4545<form id="settings" method="post" class="<?php echo $color ?>">
  • simpleform/trunk/changelog.txt

    r2689161 r2691726  
    11== Changelog ==
     2
     3= 2.1.5 (10 March 2022) =
     4* Fixed: database errors
     5* Fixed: JavaScript errors
     6* Fixed: failure to display the last message when entries have been moved
     7* Fixed: error when form submission is executed via AJAX
     8* Changed: reorganization of the editor page and the form page
     9* Added: display of the number of moved messages in the entries page
    210
    311= 2.1.4 (5 March 2022) =
  • simpleform/trunk/includes/class-activator.php

    r2689161 r2691726  
    155155            foreach ($forms as $form) {
    156156              $form_data = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}sform_shortcodes WHERE id = %d", $form) );
    157               if ( esc_attr($form_data->status) == 'used' || ( esc_attr($form_data->form_pages) == '' && ( esc_attr($form_data->shortcode_pages) != '' || esc_attr($form_data->block_pages) != '' || esc_attr($form_data->widget_id) != '' ) ) ) {
     157              if ( esc_attr($form_data->status) == 'used' || esc_attr($form_data->status) == 'unused' || ( esc_attr($form_data->form_pages) == '' && ( esc_attr($form_data->shortcode_pages) != '' || esc_attr($form_data->block_pages) != '' || esc_attr($form_data->widget_id) != '' ) ) ) {
    158158                $status = esc_attr($form_data->shortcode_pages) != '' || esc_attr($form_data->block_pages) != '' || esc_attr($form_data->widget_id) != '' ? 'published' : 'draft';
    159159                $form_pages_separator = esc_attr($form_data->shortcode_pages) != '' && esc_attr($form_data->block_pages) != '' ? ',' : '';
  • simpleform/trunk/includes/class-core.php

    r2689161 r2691726  
    4242       
    4343        if ( defined( 'SIMPLEFORM_VERSION' ) ) { $this->version = SIMPLEFORM_VERSION; }
    44         else { $this->version = '2.1.3'; }
     44        else { $this->version = '2.1.5'; }
    4545        $this->plugin_name = 'simpleform';
    4646        $this->load_dependencies();
  • simpleform/trunk/public/class-public.php

    r2689161 r2691726  
    7373      wp_register_script('sform_form_script', plugins_url( 'js/script-min.js', __FILE__ ), array( 'jquery' ), filemtime( plugin_dir_path( __FILE__ ) . 'js/script-min.js' ) );
    7474      wp_register_script('sform_public_script', plugins_url( 'js/public-min.js', __FILE__ ), array( 'jquery' ), filemtime( plugin_dir_path( __FILE__ ) . 'js/public-min.js' ) );
     75      wp_localize_script('sform_public_script', 'ajax_sform_processing', array('ajaxurl' => admin_url('admin-ajax.php')) );
    7576     
    7677    }
     
    177178      $multiple_spaces = ! empty( $settings['multiple_spaces'] ) ? esc_attr($settings['multiple_spaces']) : 'false';
    178179     
    179       wp_localize_script('sform_public_script', 'ajax_sform_processing', array('ajaxurl' => admin_url('admin-ajax.php'), 'ajax_error' => $ajax_error, 'outside' => $outside ));
    180 
    181180      wp_enqueue_script( 'sform_form_script');
    182181      if( $ajax == 'true' ) {
    183182       wp_enqueue_script( 'sform_public_script');
     183       wp_localize_script('sform_public_script', 'ajax_sform_processing', array('ajax_error' => $ajax_error, 'outside' => $outside ));
    184184      }
    185185
     
    692692    $save_as = $moving == true ? $moveto : $form_id;
    693693    $moved_from = $moving == true ? $form_id : '0';
    694    
    695    
    696    
    697     // FIX HERE: "form" =>
    698    
    699    
     694   
    700695    $sform_default_values = array( "form" => $save_as, "moved_from" => $moved_from, "date" => $submission_date, "requester_type" => $requester_type, "requester_id" => $user_ID );       
    701696    $extra_fields = array('notes' => '');
     
    759754    $message_data = $timestamp . '#' . $last_message;
    760755   
    761    
    762    
    763     // FIX HERE:
    764    
    765    
    766     update_option('sform_last_'.$save_as.'_message', $message_data);
     756    // Chek if forwarding is in progress
     757    if ( $moving == true ) {
     758      update_option('sform_last_'.$form_id.'_direct_message', $message_data);
     759      $previous_last_message = get_option("sform_last_{$moveto}_message") != false ? get_option("sform_last_{$moveto}_message") : '';
     760      if ( ! empty($previous_last_message) ) {
     761        update_option('sform_previous_last_'.$moveto.'_message', $previous_last_message);
     762      }
     763      update_option('sform_last_'.$moveto.'_message', $message_data);
     764    }
     765    else {
     766      update_option('sform_last_'.$form_id.'_direct_message', $message_data);
     767      $previous_last_message = get_option("sform_last_{$form_id}_message") != false ? get_option("sform_last_{$form_id}_message") : '';
     768      if ( ! empty($previous_last_message) ) {
     769        update_option('sform_previous_last_'.$form_id.'_message', $previous_last_message);
     770      }
     771      update_option('sform_last_'.$form_id.'_message', $message_data);
     772    }
    767773
    768774    $notification = ! empty( $settings['notification'] ) ? esc_attr($settings['notification']) : 'true';
     
    12781284      $moved_from = $moving == true ? $form_id : '0';
    12791285     
    1280    
    1281     // FIX HERE: "form" =>
    1282    
    1283      
    1284      
    1285 
    12861286      $sform_default_values = array( "form" => $save_as, "moved_from" => $moved_from, "requester_type" => $requester_type, "requester_id" => $user_ID, "date" => $submission_date );   
    12871287     
     
    13751375       $timestamp = strtotime($submission_date);
    13761376       $message_data = $timestamp . '#' . $last_message;
    1377        
    1378        
    1379    
    1380    
    1381     // FIX HERE:
    1382    
    1383    
    1384        
    1385        
    1386        
    1387        update_option('sform_last_'.$save_as.'_message', $message_data);
     1377             
     1378       // Chek if forwarding is in progress
     1379       if ( $moving == true ) {
     1380         update_option('sform_last_'.$form_id.'_direct_message', $message_data);
     1381         $previous_last_message = get_option("sform_last_{$moveto}_message") != false ? get_option("sform_last_{$moveto}_message") : '';
     1382         if ( ! empty($previous_last_message) ) {
     1383           update_option('sform_previous_last_'.$moveto.'_message', $previous_last_message);
     1384         }
     1385         update_option('sform_last_'.$moveto.'_message', $message_data);
     1386       }
     1387       else {
     1388         update_option('sform_last_'.$form_id.'_direct_message', $message_data);
     1389         $previous_last_message = get_option("sform_last_{$form_id}_message") != false ? get_option("sform_last_{$form_id}_message") : '';
     1390         if ( ! empty($previous_last_message) ) {
     1391           update_option('sform_previous_last_'.$form_id.'_message', $previous_last_message);
     1392         }
     1393         update_option('sform_last_'.$form_id.'_message', $message_data);
     1394       }
    13881395       
    13891396       if ($sent):
  • simpleform/trunk/public/css/block-style.css

    r2689161 r2691726  
    1 /*1*/#form-wrap-1 {background-color: transparent;}#form-wrap-1 label.sform {color: #000000;}#submission-1 {background-color: #FFA500;}#submission-1 {border-color: #FFA500;}#submission-1 {color: #F0F0F1;}#submission-1:hover {background-color: transparent;}#submission-1:hover {border-color: #FFA500;}#submission-1:hover {color: #C51162;}/* END 1*//*58*/#form-wrap-58 {background-color: #D1D1E4;}#form-wrap-58 label.sform {color: #000000;}#submission-58 {background-color: #85C641;}#submission-58 {border-color: #85C641;}#submission-58 {color: #FFFFFF;}#submission-58:hover {background-color: transparent;}#submission-58:hover {border-color: #85C641;}#submission-58:hover {color: #85C641;}/* END 58*/
  • simpleform/trunk/simpleform.php

    r2689161 r2691726  
    66 * Plugin URI:        https://wpsform.com
    77 * Description:       Create a basic contact form for your website. Lightweight and very simple to manage, SimpleForm is immediately ready to use.
    8  * Version:           2.1.4
     8 * Version:           2.1.5
    99 * Requires at least: 5.6
    1010 * Requires PHP:      5.6
     
    2626 
    2727define( 'SIMPLEFORM_NAME', 'SimpleForm' );
    28 define( 'SIMPLEFORM_VERSION', '2.1.4' );
    29 define( 'SIMPLEFORM_DB_VERSION', '2.1.4' );
     28define( 'SIMPLEFORM_VERSION', '2.1.5' );
     29define( 'SIMPLEFORM_DB_VERSION', '2.1.5' );
    3030define( 'SIMPLEFORM_PATH', plugin_dir_path( __FILE__ ) );
    3131define( 'SIMPLEFORM_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.