WordPress.org

Plugin Directory

Changeset 600237


Ignore:
Timestamp:
09/17/12 20:36:22 (19 months ago)
Author:
TobiasBg
Message:

Update 0.5-alpha slightly, without changing the version number;
Fix bug with WP-Table Reloaded import from DB, Dump file currently disabled here

Location:
tablepress/trunk
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • tablepress/trunk/admin/common.css

    r598765 r600237  
    1212    background-image: url( 'tablepress-icon.png' ); 
    1313} 
    14 /* Retina Screen icon */ 
     14/* Retina images */ 
    1515@media only screen and (-webkit-min-device-pixel-ratio: 1.5) { 
     16    /* Screen icon */ 
    1617    #icon-tablepress { 
    1718        background-image: url( 'tablepress-icon-2x.png' ); 
    1819        background-size: 36px 36px; 
     20    } 
     21    /* Admin Menu icon */ 
     22    #toplevel_page_tablepress .wp-menu-image { 
     23        background-image: url( 'tablepress-icon-small-2x.png' ); 
     24        background-size: 16px 16px; 
     25        background-position: 7px 7px; 
     26    } 
     27    #toplevel_page_tablepress .wp-menu-image img { 
     28        display: none; 
    1929    } 
    2030} 
     
    210220} 
    211221/* some left margin on radio buttons */ 
    212 #tablepress_import-import-form .column-2 input[type="radio"] { 
     222#tablepress_import-import-form .column-2 input[type="radio"], 
     223#tablepress_import-import-wp-table-reloaded .column-2 input[type="radio"] { 
    213224    margin-left: 5px; 
    214225} 
  • tablepress/trunk/admin/common.min.css

    r598765 r600237  
    1 #icon-tablepress{background-image:url('tablepress-icon.png')}@media only screen and (-webkit-min-device-pixel-ratio:1.5){#icon-tablepress{background-image:url('tablepress-icon-2x.png');background-size:36px 36px}}#icon-tablepress_options_invisible{display:none}#tablepress-page div.updated,#tablepress-page div.error{margin:10px 0 0}#tablepress-nav .separator{margin:6px}#tablepress-nav .nav-tab{color:#21759b}#tablepress-nav .nav-tab:hover{color:#d54e21}#tablepress-nav .nav-tab-active{padding-bottom:5px;text-shadow:1px 1px 1px #fff;color:#333}#tablepress-nav .nav-tab-active:hover{color:#464646}#tablepress_add-add-table div.inside{margin:6px;padding:0}#tablepress_add-add-table .form-wrap{max-width:500px}#tablepress_add-add-table .form-field{margin:0;padding:5px}#tablepress_add-add-table .form-field-small{float:left;width:150px;margin-right:20px}.js #tablepress-page .placeholder-active{color:#bbb}.tablepress-all-tables thead .column-table_id{width:50px}.tablepress-all-tables thead .column-table_name{width:30%}.tablepress-all-tables thead .column-table_author{width:12%}.tablepress-all-tables thead .column-table_last_modified{width:15%}.tablepress-all-tables tbody .column-table_id{font-weight:bold}.tablenav #bulk-action-top,.tablenav #bulk-action-bottom{width:130px}#tablepress-page .subtitle{float:left;padding-left:0}#tablepress-page textarea{outline:0}#tablepress-page .table-shortcode-inline{background:transparent;border:0;color:#333;width:90px;margin:0;padding:0;font-weight:bold;-webkit-box-shadow:none;box-shadow:none}#tablepress-page .table-shortcode{cursor:text}.no-js .postbox:hover .handlediv{background-image:none!important;cursor:auto}.no-js .postbox .hndle{cursor:auto;color:#464646}#tables-export{width:100%}#tablepress-page form :invalid,#tablepress-page form .invalid{border-color:#c00!important}.tablepress-postbox-table{border-spacing:0;width:800px}.tablepress-postbox-table .column-1{width:175px}.tablepress-postbox-table .column-2{width:625px}.tablepress-postbox-table th{text-align:left;font-weight:normal}.tablepress-postbox-table .top-align{vertical-align:top;padding-top:7px}.tablepress-postbox-table th,.tablepress-postbox-table td{padding:6px 6px 2px 2px;border-spacing:0;word-wrap:break-word}.tablepress-postbox-table .top-border th,.tablepress-postbox-table .top-border td{padding:6px 6px 2px 2px;border-top:1px solid #fff}.tablepress-postbox-table .bottom-border th,.tablepress-postbox-table .bottom-border td{padding:2px 6px 6px 2px;border-bottom:1px solid #dfdfdf}.tablepress-postbox-table .no-border th,.tablepress-postbox-table .no-border td{padding:2px 6px 2px 2px}.tablepress-postbox-table .top-border.bottom-border th,.tablepress-postbox-table .top-border.bottom-border td{padding:6px 6px 6px 2px}.tablepress-postbox-table .top-align{vertical-align:top;padding-top:7px}.tablepress-postbox-table .top-border .top-align{padding-top:7px}.tablepress-postbox-table .bottom-border .top-align{padding-top:4px}#tablepress_export-export-form .column-2 label,#tablepress_import-import-form .column-2 label{vertical-align:top}#tables-import-url,#tables-import-server{margin-bottom:4px}#tablepress_import-import-form .column-2 input[type="radio"]{margin-left:5px} 
     1#icon-tablepress{background-image:url('tablepress-icon.png')}@media only screen and (-webkit-min-device-pixel-ratio:1.5){#icon-tablepress{background-image:url('tablepress-icon-2x.png');background-size:36px 36px}#toplevel_page_tablepress .wp-menu-image{background-image:url('tablepress-icon-small-2x.png');background-size:16px 16px;background-position:7px 7px}#toplevel_page_tablepress .wp-menu-image img{display:none}}#icon-tablepress_options_invisible{display:none}#tablepress-page div.updated,#tablepress-page div.error{margin:10px 0 0}#tablepress-nav .separator{margin:6px}#tablepress-nav .nav-tab{color:#21759b}#tablepress-nav .nav-tab:hover{color:#d54e21}#tablepress-nav .nav-tab-active{padding-bottom:5px;text-shadow:1px 1px 1px #fff;color:#333}#tablepress-nav .nav-tab-active:hover{color:#464646}#tablepress_add-add-table div.inside{margin:6px;padding:0}#tablepress_add-add-table .form-wrap{max-width:500px}#tablepress_add-add-table .form-field{margin:0;padding:5px}#tablepress_add-add-table .form-field-small{float:left;width:150px;margin-right:20px}.js #tablepress-page .placeholder-active{color:#bbb}.tablepress-all-tables thead .column-table_id{width:50px}.tablepress-all-tables thead .column-table_name{width:30%}.tablepress-all-tables thead .column-table_author{width:12%}.tablepress-all-tables thead .column-table_last_modified{width:15%}.tablepress-all-tables tbody .column-table_id{font-weight:bold}.tablenav #bulk-action-top,.tablenav #bulk-action-bottom{width:130px}#tablepress-page .subtitle{float:left;padding-left:0}#tablepress-page textarea{outline:0}#tablepress-page .table-shortcode-inline{background:transparent;border:0;color:#333;width:90px;margin:0;padding:0;font-weight:bold;-webkit-box-shadow:none;box-shadow:none}#tablepress-page .table-shortcode{cursor:text}.no-js .postbox:hover .handlediv{background-image:none!important;cursor:auto}.no-js .postbox .hndle{cursor:auto;color:#464646}#tables-export{width:100%}#tablepress-page form :invalid,#tablepress-page form .invalid{border-color:#c00!important}.tablepress-postbox-table{border-spacing:0;width:800px}.tablepress-postbox-table .column-1{width:175px}.tablepress-postbox-table .column-2{width:625px}.tablepress-postbox-table th{text-align:left;font-weight:normal}.tablepress-postbox-table .top-align{vertical-align:top;padding-top:7px}.tablepress-postbox-table th,.tablepress-postbox-table td{padding:6px 6px 2px 2px;border-spacing:0;word-wrap:break-word}.tablepress-postbox-table .top-border th,.tablepress-postbox-table .top-border td{padding:6px 6px 2px 2px;border-top:1px solid #fff}.tablepress-postbox-table .bottom-border th,.tablepress-postbox-table .bottom-border td{padding:2px 6px 6px 2px;border-bottom:1px solid #dfdfdf}.tablepress-postbox-table .no-border th,.tablepress-postbox-table .no-border td{padding:2px 6px 2px 2px}.tablepress-postbox-table .top-border.bottom-border th,.tablepress-postbox-table .top-border.bottom-border td{padding:6px 6px 6px 2px}.tablepress-postbox-table .top-align{vertical-align:top;padding-top:7px}.tablepress-postbox-table .top-border .top-align{padding-top:7px}.tablepress-postbox-table .bottom-border .top-align{padding-top:4px}#tablepress_export-export-form .column-2 label,#tablepress_import-import-form .column-2 label{vertical-align:top}#tables-import-url,#tables-import-server{margin-bottom:4px}#tablepress_import-import-form .column-2 input[type="radio"],#tablepress_import-import-wp-table-reloaded .column-2 input[type="radio"]{margin-left:5px} 
  • tablepress/trunk/admin/edit.css

    r598765 r600237  
    8787/* cells of currently focussed row/autogrow */ 
    8888#edit-form-body .focus td { 
    89     height: 60px; 
     89    height: 64px; 
    9090} 
    9191 
  • tablepress/trunk/admin/edit.min.css

    r598765 r600237  
    1 body.wait *{cursor:wait!important}.hidden-container{display:none}.hidden-help-box-container p{margin:6px}#TB_HideSelect{z-index:301099}#TB_overlay{z-index:301100}#TB_window{z-index:301102}#TB_load{z-index:301103}#table-preview-iframe{width:100%;height:100%;margin:0;border:0}#advanced-editor{padding:0 3px 3px}#advanced-editor .submitbox{padding:6px 6px 0;font-size:11px;overflow:auto;height:28px}#advanced-editor-confirm{float:right}#advanced-editor-cancel{line-height:25px}.animation-saving,.animation-preview{display:inline-block;background:url(../../../../wp-admin/images/wpspin_light.gif);height:16px;width:16px;margin:4px 0 0 5px;vertical-align:top}#tablepress-page div.save-changes-success,#tablepress-page div.save-changes-error,#tablepress-page div.preview-error{margin:0 0 15px}#edit-form-body td{padding:2px 2px 2px 0;height:32px}#edit-form-body .focus td{height:60px}#edit-form-body .odd{background-color:#eee}#edit-form-body textarea{display:block;width:150px;height:100%}#edit-form-body textarea:focus{border-color:#000}#edit-form-body input[type="checkbox"]{margin-right:3px}#edit-form-foot input[type="checkbox"]{margin-top:6px}#edit-form{border-collapse:collapse}#edit-form .move-handle{display:block;margin:auto;width:16px;height:16px;cursor:move;text-align:center;font-weight:bold}.no-js #edit-form .move-handle{cursor:auto}#edit-form-body .move-handle{margin:auto 3px;min-width:16px;width:auto}#edit-form .move-hover{position:absolute;z-index:1000;height:26px}#edit-form .focus .move-hover{height:54px}#edit-form-body .head-row,#edit-form-body .foot-row{background-color:#d9edf7}#edit-form-head th{height:16px;vertical-align:top}#edit-form-head .sort-control{display:none;float:right;width:12px;height:12px;cursor:pointer;margin:2px 3px 0 0}.js #edit-form-head .head:hover .sort-control{display:block}.js #edit-form-head .ui-sortable-helper:hover .sort-control{display:none}#edit-form-head .sort-asc{background:url(img/sort-asc.gif) no-repeat center center}#edit-form-head .sort-desc{background:url(img/sort-desc.gif) no-repeat center center}#edit-form .row-hidden td,#edit-form .row-hidden textarea,#edit-form .column-hidden,#edit-form .column-hidden textarea{background-color:#ffe0e0}#tablepress_edit-table-manipulation td{width:50%} 
     1body.wait *{cursor:wait!important}.hidden-container{display:none}.hidden-help-box-container p{margin:6px}#TB_HideSelect{z-index:301099}#TB_overlay{z-index:301100}#TB_window{z-index:301102}#TB_load{z-index:301103}#table-preview-iframe{width:100%;height:100%;margin:0;border:0}#advanced-editor{padding:0 3px 3px}#advanced-editor .submitbox{padding:6px 6px 0;font-size:11px;overflow:auto;height:28px}#advanced-editor-confirm{float:right}#advanced-editor-cancel{line-height:25px}.animation-saving,.animation-preview{display:inline-block;background:url(../../../../wp-admin/images/wpspin_light.gif);height:16px;width:16px;margin:4px 0 0 5px;vertical-align:top}#tablepress-page div.save-changes-success,#tablepress-page div.save-changes-error,#tablepress-page div.preview-error{margin:0 0 15px}#edit-form-body td{padding:2px 2px 2px 0;height:32px}#edit-form-body .focus td{height:64px}#edit-form-body .odd{background-color:#eee}#edit-form-body textarea{display:block;width:150px;height:100%}#edit-form-body textarea:focus{border-color:#000}#edit-form-body input[type="checkbox"]{margin-right:3px}#edit-form-foot input[type="checkbox"]{margin-top:6px}#edit-form{border-collapse:collapse}#edit-form .move-handle{display:block;margin:auto;width:16px;height:16px;cursor:move;text-align:center;font-weight:bold}.no-js #edit-form .move-handle{cursor:auto}#edit-form-body .move-handle{margin:auto 3px;min-width:16px;width:auto}#edit-form .move-hover{position:absolute;z-index:1000;height:26px}#edit-form .focus .move-hover{height:54px}#edit-form-body .head-row,#edit-form-body .foot-row{background-color:#d9edf7}#edit-form-head th{height:16px;vertical-align:top}#edit-form-head .sort-control{display:none;float:right;width:12px;height:12px;cursor:pointer;margin:2px 3px 0 0}.js #edit-form-head .head:hover .sort-control{display:block}.js #edit-form-head .ui-sortable-helper:hover .sort-control{display:none}#edit-form-head .sort-asc{background:url(img/sort-asc.gif) no-repeat center center}#edit-form-head .sort-desc{background:url(img/sort-desc.gif) no-repeat center center}#edit-form .row-hidden td,#edit-form .row-hidden textarea,#edit-form .column-hidden,#edit-form .column-hidden textarea{background-color:#ffe0e0}#tablepress_edit-table-manipulation td{width:50%} 
  • tablepress/trunk/admin/import.js

    r598765 r600237  
    2828        $( '#row-import-source-file-upload, #row-import-source-url, #row-import-source-server, #row-import-source-form-field' ).hide(); 
    2929        $( '#row-import-source-' + $(this).val() ).show(); 
     30    } ) 
     31    .find( 'input:checked' ).change(); 
     32 
     33    /** 
     34     * Show only the WP-Table Reloaded import source field that was selected with the radio button 
     35     * 
     36     * @since 1.0.0 
     37     */ 
     38    $( '#row-import-wp-table-reloaded-source' ).on( 'change', 'input', function() { 
     39        $( '#row-import-wp-table-reloaded-source-dump-file, #row-import-wp-table-reloaded-source-db' ).hide(); 
     40        $( '#row-import-wp-table-reloaded-source-' + $(this).val() ).show(); 
    3041    } ) 
    3142    .find( 'input:checked' ).change(); 
     
    106117    $( '#tablepress-page' ).find( '#submit_wp_table_reloaded_import' ).on( 'click', function() { 
    107118        $( '#tablepress-page' ).find( 'form' ).off( 'submit.tablepress' ); 
     119 
     120        /* File upload must have a file, if Dump File is selected as the source */ 
     121        if ( $( '#import-wp-table-reloaded-source-dump-file' ).prop( 'checked' ) && '' == $( '#tables-import-wp-table-reloaded-dump-file' ).val() ) { 
     122            $( '#tables-import-wp-table-reloaded-dump-file' ) 
     123                .addClass( 'invalid' ) 
     124                .one( 'change', function() { $(this).removeClass( 'invalid' ); } ) 
     125                .focus().select(); 
     126            return false; 
     127        } 
    108128    } ); 
    109129 
  • tablepress/trunk/admin/import.min.js

    r598765 r600237  
    11jQuery(document).ready(function(a){function d(){var c=a(this).val(),b,d="";b=c.lastIndexOf("\\");-1!=b?c.substr(b+1):(b=c.lastIndexOf("/"),-1!=b&&c.substr(b+1));b=c.lastIndexOf(".");-1!=b&&(d=c.substr(b+1).toLowerCase());a("#tables-import-format").val(d)}a("#row-import-add_replace").on("change","input",function(){a("#tables-import-replace-table").prop("disabled","replace"!=a(this).val())}).find("input:checked").change();a("#row-import-source").on("change","input",function(){a("#row-import-source-file-upload, #row-import-source-url, #row-import-source-server, #row-import-source-form-field").hide(); 
    2 a("#row-import-source-"+a(this).val()).show()}).find("input:checked").change();a("#tables-import-file-upload").on("change",d);a("#tables-import-url, #tables-import-server").on("blur",d);a("#tablepress-page").find("form").on("submit.tablepress",function(){var c=a("#row-import-source").find("input:checked").val(),c=a("#tables-import-"+c).get(0),b=!0;c.defaultValue==c.value&&(a(c).addClass("invalid").one("change",function(){a(this).removeClass("invalid")}).focus().select(),b=!1);"replace"==a("#row-import-add_replace").find("input:checked").val()&& 
    3 ""==a("#tables-import-replace-table").val()&&(a("#row-import-add_replace").one("change","input",function(){a("#tables-import-replace-table").removeClass("invalid")}),a("#tables-import-replace-table").addClass("invalid").one("change",function(){a(this).removeClass("invalid")}).focus().select(),b=!1);if(!b)return!1});a("#tablepress-page").find("#submit_wp_table_reloaded_import").on("click",function(){a("#tablepress-page").find("form").off("submit.tablepress")})}); 
     2a("#row-import-source-"+a(this).val()).show()}).find("input:checked").change();a("#row-import-wp-table-reloaded-source").on("change","input",function(){a("#row-import-wp-table-reloaded-source-dump-file, #row-import-wp-table-reloaded-source-db").hide();a("#row-import-wp-table-reloaded-source-"+a(this).val()).show()}).find("input:checked").change();a("#tables-import-file-upload").on("change",d);a("#tables-import-url, #tables-import-server").on("blur",d);a("#tablepress-page").find("form").on("submit.tablepress", 
     3function(){var c=a("#row-import-source").find("input:checked").val(),c=a("#tables-import-"+c).get(0),b=!0;c.defaultValue==c.value&&(a(c).addClass("invalid").one("change",function(){a(this).removeClass("invalid")}).focus().select(),b=!1);"replace"==a("#row-import-add_replace").find("input:checked").val()&&""==a("#tables-import-replace-table").val()&&(a("#row-import-add_replace").one("change","input",function(){a("#tables-import-replace-table").removeClass("invalid")}),a("#tables-import-replace-table").addClass("invalid").one("change", 
     4function(){a(this).removeClass("invalid")}).focus().select(),b=!1);if(!b)return!1});a("#tablepress-page").find("#submit_wp_table_reloaded_import").on("click",function(){a("#tablepress-page").find("form").off("submit.tablepress");if(a("#import-wp-table-reloaded-source-dump-file").prop("checked")&&""==a("#tables-import-wp-table-reloaded-dump-file").val())return a("#tables-import-wp-table-reloaded-dump-file").addClass("invalid").one("change",function(){a(this).removeClass("invalid")}).focus().select(), 
     5!1})}); 
  • tablepress/trunk/classes/class-render.php

    r598765 r600237  
    619619            'print_description' => null, 
    620620            'cache_table_output' => true, 
    621             'extra_css_classes' => '', 
     621            'extra_css_classes' => null, 
    622622            'use_datatables' => null, 
    623623            'datatables_sort' => null, 
  • tablepress/trunk/controllers/controller-admin.php

    r598765 r600237  
    367367                $data['import_form_field'] = ( ! empty( $_GET['import_form_field'] ) ) ? $_GET['import_form_field'] : ''; 
    368368                $data['wp_table_reloaded_installed'] = ( false !== get_option( 'wp_table_reloaded_options', false ) && false !== get_option( 'wp_table_reloaded_tables', false ) ); 
     369                $data['import_wp_table_reloaded_source'] = ( ! empty( $_GET['import_wp_table_reloaded_source'] ) ) ? $_GET['import_wp_table_reloaded_source'] : ( $data['wp_table_reloaded_installed'] ? 'db' : 'dump-file' ); 
    369370                break; 
    370371        } 
     
    872873 
    873874        // Determine if this is a regular import or an import from WP-Table Reloaded 
    874         if ( isset( $_POST['submit_wp_table_reloaded_import'] ) ) 
    875             $this->_handle_post_action_import_wp_table_reloaded( $import ); 
    876         else 
     875        if ( isset( $_POST['submit_wp_table_reloaded_import'] ) && isset( $import['wp_table_reloaded'] ) && isset( $import['wp_table_reloaded']['source'] ) ) { 
     876            if ( 'db' == $import['wp_table_reloaded']['source'] ) 
     877                $this->_handle_post_action_import_wp_table_reloaded_db( $import ); 
     878            else 
     879                $this->_handle_post_action_import_wp_table_reloaded_dump_file( $import ); 
     880        } else { 
    877881            $this->_handle_post_action_import_regular( $import ); 
     882        } 
    878883    } 
    879884 
     
    10191024 
    10201025    /** 
    1021      * Import data from WP-Table Reloaded 
     1026     * Import data from WP-Table Reloaded from the WordPress database 
    10221027     * 
    10231028     * @since 1.0.0 
     
    10251030     * @param array $import Submitted form data 
    10261031     */ 
    1027     protected function _handle_post_action_import_wp_table_reloaded( $import ) { 
     1032    protected function _handle_post_action_import_wp_table_reloaded_db( $import ) { 
    10281033        if ( false === get_option( 'wp_table_reloaded_options', false ) || false === get_option( 'wp_table_reloaded_tables', false ) ) 
    10291034            TablePress::redirect( array( 'action' => 'import', 'message' => 'error_wp_table_reloaded_not_installed' ) ); 
     
    10541059                    continue; 
    10551060                } 
     1061 
     1062                $wptr_table = stripslashes_deep( $wptr_table ); // slashed in WP-Table Reloaded 
    10561063 
    10571064                // Table was loaded, import the data, table options, and visibility 
     
    11841191 
    11851192    /** 
     1193     * Import data from WP-Table Reloaded from a WP-Table Reloaded Dump File 
     1194     * 
     1195     * @since 1.0.0 
     1196     * 
     1197     * @param array $import Submitted form data 
     1198     */ 
     1199    protected function _handle_post_action_import_wp_table_reloaded_dump_file( $import ) { 
     1200        //@TODO: Yet to implement 
     1201        TablePress::redirect( array( 'action' => 'list', 'message' => 'success_import_wp_table_reloaded' ) ); 
     1202    } 
     1203 
     1204    /** 
    11861205     * Import a table by either replacing an existing table or adding it as a new table 
    11871206     * 
  • tablepress/trunk/readme.txt

    r598765 r600237  
    33Donate link: http://tablepress.org/donate/ 
    44Tags: html,table,data,editor,csv,excel,import,export 
    5 Requires at least: 3.4.2 
     5Requires at least: 3.4 
    66Tested up to: 3.5 
    77License: GPLv2 
     
    5959= Requirements? = 
    6060 
    61 In short: WordPress 3.4.2 or higher, while the latest version of WordPress is always recommended. 
     61In short: WordPress 3.4 or higher, while the latest version of WordPress is always recommended. 
    6262 
    6363= Languages and Localization? = 
  • tablepress/trunk/views/view-import.php

    r598765 r600237  
    2222 
    2323    /** 
     24     * List of WP feature pointers for this view 
     25     * 
     26     * @since 1.0.0 
     27     * 
     28     * @var array 
     29     */ 
     30    protected $wp_pointers = array( 'tp100_wp_table_reloaded_import' ); 
     31 
     32    /** 
    2433     * Set up the view with data and do things that are specific for this view 
    2534     * 
     
    4554        $this->add_text_box( 'head', array( &$this, 'textbox_head' ), 'normal' ); 
    4655        $this->add_meta_box( 'import-form', __( 'Import Tables', 'tablepress' ), array( &$this, 'postbox_import_form' ), 'normal' ); 
    47         if ( $data['wp_table_reloaded_installed'] ) 
    48             $this->add_meta_box( 'import-wp-table-reloaded', __( 'Import from WP-Table Reloaded', 'tablepress' ), array( &$this, 'postbox_wp_table_reloaded_import' ), 'additional' ); 
     56        $this->add_meta_box( 'import-wp-table-reloaded', __( 'Import from WP-Table Reloaded', 'tablepress' ), array( &$this, 'postbox_wp_table_reloaded_import' ), 'additional' ); 
    4957    } 
    5058 
     
    175183<table class="tablepress-postbox-table fixed"> 
    176184<tbody> 
    177     <tr class="no-border"> 
     185    <tr id="row-import-wp-table-reloaded-source"> 
     186        <th class="column-1" scope="row"><?php _e( 'Import Source', 'tablepress' ); ?>:</th> 
     187        <td class="column-2"> 
     188            <input name="import[wp_table_reloaded][source]" id="import-wp-table-reloaded-source-db" type="radio" value="db"<?php checked( $data['import_wp_table_reloaded_source'], 'db', true ); disabled( $data['wp_table_reloaded_installed'], false, true ); ?> /> <label for="import-wp-table-reloaded-source-db"><?php _e( 'WordPress database', 'tablepress' ); ?></label> 
     189            <input name="import[wp_table_reloaded][source]" id="import-wp-table-reloaded-source-dump-file" type="radio" value="dump-file" disabled="disabled"<?php checked( $data['import_wp_table_reloaded_source'], 'dump-file', true ); ?> /> <label for="import-wp-table-reloaded-source-dump-file"><?php _e( 'WP-Table Reloaded Dump File', 'tablepress' ); ?></label> 
     190        </td> 
     191    </tr> 
     192    <tr id="row-import-wp-table-reloaded-source-dump-file" class="bottom-border"> 
     193        <th class="column-1 top-align" scope="row"><label for="tables-import-wp-table-reloaded-dump-file"><?php _e( 'Select file', 'tablepress' ); ?>:</label></th> 
     194        <td class="column-2"> 
     195            <input name="import_wp_table_reloaded_file_upload" id="tables-import-wp-table-reloaded-dump-file" type="file" class="large-text" style="box-sizing: border-box;" /> 
     196        </td> 
     197    </tr> 
     198    <tr id="row-import-wp-table-reloaded-source-db" class="bottom-border"> 
     199        <th class="column-1 top-align" scope="row" style="padding:2px;"></th> 
     200        <td class="column-2" style="padding:2px;"></td> 
     201    </tr> 
     202    <tr class="top-border"> 
    178203        <th class="column-1" scope="row"><?php _e( 'Tables', 'tablepress' ); ?>:</th> 
    179204        <td class="column-2"><label for="import-wp-table-reloaded-tables"> <input type="checkbox" id="import-wp-table-reloaded-tables" name="import[wp_table_reloaded][tables]" value="true" checked="checked" /> <?php _e( 'Import all tables and their settings from WP-Table Reloaded.', 'tablepress' ); ?> <?php _e( '<span class="description">(recommended)</span>', 'tablepress' ); ?></label></td> 
     
    201226    } 
    202227 
     228    /** 
     229     * Set the content for the WP feature pointer about the WP-Table Reloaded import feature 
     230     * 
     231     * @since 1.0.0 
     232     */ 
     233    public function wp_pointer_tp100_wp_table_reloaded_import() { 
     234        $content  = '<h3>' . __( 'TablePress Feature: Import from WP-Table Reloaded', 'tablepress' ) . '</h3>'; 
     235        $content .= '<p>' .  __( 'You can import your existing tables and "Custom CSS" from WP-Table Reloaded into TablePress.', 'tablepress' ) . '</p>'; 
     236 
     237        $this->admin_page->print_wp_pointer_js( 'tp100_wp_table_reloaded_import', '#tablepress_import-import-wp-table-reloaded', array( 
     238            'content'  => $content, 
     239            'position' => array( 'edge' => 'bottom', 'align' => 'left', 'offset' => '16 -16' ), 
     240        ) ); 
     241    } 
     242 
    203243} // class TablePress_Import_View 
Note: See TracChangeset for help on using the changeset viewer.