forked from timbowhite/woo-product-importer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwoo-product-importer-common.php
180 lines (154 loc) · 5.83 KB
/
woo-product-importer-common.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?php /*
This file is part of Woo Product Importer.
Woo Product Importer is Copyright 2012-2013 Web Presence Partners LLC.
Woo Product Importer is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Woo Product Importer is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Woo Product Importer. If not, see <http://www.gnu.org/licenses/>.
*/ ?>
<style type="text/css">
.woo_product_importer_wrapper form { padding: 20px 0; }
.woo_product_importer_wrapper #advanced_settings { display: none; }
.woo_product_importer_wrapper .import_error_messages {
margin: 6px 0;
padding: 0;
}
.woo_product_importer_wrapper .import_error_messages li {
margin: 2px 0;
padding: 4px;
background-color: #f9dede;
border: 1px solid #ff8e8e;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.woo_product_importer_wrapper #import_status {
padding: 8px 8px 8px 82px;
min-height: 66px;
position: relative;
margin: 6px 0;
background-color: #fff5d1;
border: 1px solid #ffc658;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.woo_product_importer_wrapper #import_status.complete {
background-color: #ecfdbe;
border: 1px solid #a1dd00;
}
.woo_product_importer_wrapper #import_status img {
position: absolute;
top: 8px;
left: 8px;
}
.woo_product_importer_wrapper #import_status strong {
font-size: 18px;
line-height: 1.2em;
padding: 6px 0;
display: block;
}
.woo_product_importer_wrapper #import_status #import_in_progress { display: block; }
.woo_product_importer_wrapper #import_status.complete #import_in_progress { display: none; }
.woo_product_importer_wrapper #import_status #import_complete { display: none; }
.woo_product_importer_wrapper #import_status.complete #import_complete { display: block; }
.woo_product_importer_wrapper #import_status td,
.woo_product_importer_wrapper #import_status th {
text-align: left;
font-size: 13px;
line-height: 1em;
padding: 4px 10px 4px 0;
}
.woo_product_importer_wrapper table th { vertical-align: top; }
.woo_product_importer_wrapper table.super_wide th,
.woo_product_importer_wrapper table.super_wide td {
width: 120px;
min-width: 120px;
}
.woo_product_importer_wrapper table.super_wide th.narrow,
.woo_product_importer_wrapper table.super_wide td.narrow
.woo_product_importer_wrapper table th.narrow,
.woo_product_importer_wrapper table td.narrow {
width: 65px;
}
.woo_product_importer_wrapper table input { margin: 1px 0; }
.woo_product_importer_wrapper table tr.header_row th {
background-color: #DCEEF8;
background-image: none;
vertical-align: middle;
}
.woo_product_importer_wrapper .map_to_settings {
margin: 2px 0;
padding: 2px;
overflow: hidden;
}
.woo_product_importer_wrapper .map_to_settings select { width: 98%; }
.woo_product_importer_wrapper .field_settings {
display: none;
margin: 2px 0;
padding: 4px;
background-color: #e0e0e0;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.woo_product_importer_wrapper .field_settings h4 {
margin: 0;
font-size: 0.9em;
line-height: 1.2em;
}
.woo_product_importer_wrapper .field_settings p {
margin: 4px 0;
overflow: hidden;
font-size: .9em;
line-height: 1.3em;
}
.woo_product_importer_wrapper .field_settings select { width: 98%; }
.woo_product_importer_wrapper .field_settings input[type="text"] { width: 98%; }
.woo_product_importer_wrapper #inserted_rows tr.error td { background-color: #FFF6D3; }
.woo_product_importer_wrapper #inserted_rows tr.fail td { background-color: #FFA8A8; }
.woo_product_importer_wrapper #inserted_rows .icon {
display: block;
width: 16px;
height: 16px;
background-position: 0 0;
background-repeat: no-repeat;
}
.woo_product_importer_wrapper #inserted_rows tr.success .icon { background-image: url('<?php echo plugin_dir_url(__FILE__); ?>img/accept.png'); }
.woo_product_importer_wrapper #inserted_rows tr.error .icon { background-image: url('<?php echo plugin_dir_url(__FILE__); ?>img/error.png'); }
.woo_product_importer_wrapper #inserted_rows tr.fail .icon { background-image: url('<?php echo plugin_dir_url(__FILE__); ?>img/exclamation.png'); }
.woo_product_importer_wrapper #debug {
display: none;
font-family: monospace;
font-size: 14px;
line-height: 16px;
color: #333;
background-color: #f5f5f5;
border: 1px solid #efefef;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
padding: 0 10px;
}
.woo_product_importer_wrapper #credits {
margin: 20px 0 6px;
}
.woo_product_importer_wrapper #credits p {
margin: 2px 0;
}
.woo_product_importer_wrapper #donate_form {
float: left;
margin: 0 6px;
padding: 0;
}
.woo_product_importer_wrapper #donate_form form {
margin: 0;
padding: 0;
}
</style>