Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/file_entity/file_entity.file_api.inc | ||
---|---|---|
250 | 250 |
if ($langcode != $GLOBALS['language_content']->language) { |
251 | 251 |
$languages = language_list(); |
252 | 252 |
if (isset($languages[$langcode])) { |
253 |
if (!function_exists('file_entity_set_title_alt_properties')) { |
|
254 |
module_load_include('file.inc', 'file_entity'); |
|
255 |
} |
|
253 | 256 |
file_entity_set_title_alt_properties(array($file), $languages[$langcode]); |
254 | 257 |
} |
255 | 258 |
} |
drupal7/sites/all/modules/file_entity/file_entity.info | ||
---|---|---|
32 | 32 |
; We have to add a fake version so Git checkouts do not fail Media dependencies |
33 | 33 |
version = 7.x-2.x-dev |
34 | 34 |
|
35 |
; Information added by Drupal.org packaging script on 2018-04-01
|
|
36 |
version = "7.x-2.17"
|
|
35 |
; Information added by Drupal.org packaging script on 2018-04-11
|
|
36 |
version = "7.x-2.20"
|
|
37 | 37 |
core = "7.x" |
38 | 38 |
project = "file_entity" |
39 |
datestamp = "1522617794" |
|
40 |
|
|
39 |
datestamp = "1523461700" |
drupal7/sites/all/modules/file_entity/file_entity.pages.inc | ||
---|---|---|
35 | 35 |
if (!is_file($file->uri)) { |
36 | 36 |
return MENU_NOT_FOUND; |
37 | 37 |
} |
38 |
// @todo Remove this once drupal_basename is fixed for PHP versions greater |
|
39 |
// than '5.3.29'. |
|
40 |
$basename_function = version_compare(PHP_VERSION,'5.3.29','>') ? 'basename' : 'drupal_basename'; |
|
38 |
// @todo Why basename? Why not drupal_basename which was working up until recently. |
|
41 | 39 |
$headers = array( |
42 | 40 |
'Content-Type' => mime_header_encode($file->filemime), |
43 |
'Content-Disposition' => 'attachment; filename="' . mime_header_encode($basename_function($file->uri)) . '"',
|
|
41 |
'Content-Disposition' => 'attachment; filename="' . mime_header_encode(basename($file->uri)) . '"',
|
|
44 | 42 |
'Content-Length' => $file->filesize, |
45 | 43 |
'Content-Transfer-Encoding' => 'binary', |
46 | 44 |
'Pragma' => 'no-cache', |
drupal7/sites/all/modules/file_entity/tests/file_entity_test.info | ||
---|---|---|
5 | 5 |
dependencies[] = file_entity |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2018-04-01
|
|
9 |
version = "7.x-2.17"
|
|
8 |
; Information added by Drupal.org packaging script on 2018-04-11
|
|
9 |
version = "7.x-2.20"
|
|
10 | 10 |
core = "7.x" |
11 | 11 |
project = "file_entity" |
12 |
datestamp = "1522617794" |
|
13 |
|
|
12 |
datestamp = "1523461700" |
drupal7/sites/all/modules/views/css/views-admin.bartik-rtl.css | ||
---|---|---|
3 | 3 |
* in the Bartik theme. |
4 | 4 |
*/ |
5 | 5 |
|
6 |
/* @group Lists */
|
|
6 |
/* @group Lists */ |
|
7 | 7 |
|
8 | 8 |
.views-display-top .secondary .action-list { |
9 | 9 |
padding-right: 0; |
drupal7/sites/all/modules/views/css/views-admin.bartik.css | ||
---|---|---|
42 | 42 |
} |
43 | 43 |
|
44 | 44 |
.views-displays .secondary .open > a:hover { |
45 |
color: #0071B3;
|
|
45 |
color: #0071b3;
|
|
46 | 46 |
} |
47 | 47 |
|
48 | 48 |
.views-displays .secondary input.form-submit { |
... | ... | |
57 | 57 |
*/ |
58 | 58 |
|
59 | 59 |
.views-filterable-options .even .form-type-checkbox { |
60 |
background-color: #F9F9F9;
|
|
60 |
background-color: #f9f9f9;
|
|
61 | 61 |
} |
62 | 62 |
|
63 | 63 |
.views-ui-dialog .ui-dialog-titlebar-close, |
... | ... | |
83 | 83 |
/* @group Buttons */ |
84 | 84 |
|
85 | 85 |
.ctools-button-processed { |
86 |
background-image: |
|
87 |
-moz-linear-gradient( |
|
88 |
-90deg, |
|
89 |
#ffffff 0px, |
|
90 |
#f9f9f9 100%); |
|
91 |
background-image: |
|
92 |
-webkit-gradient( |
|
93 |
linear, |
|
94 |
left top, |
|
95 |
left bottom, |
|
96 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
97 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
98 |
); |
|
99 |
background-image: |
|
100 |
-webkit-linear-gradient( |
|
101 |
-90deg, |
|
102 |
#ffffff 0px, |
|
103 |
#f9f9f9 100%); |
|
104 |
background-image: |
|
105 |
linear-gradient( |
|
106 |
-90deg, |
|
107 |
#ffffff 0px, |
|
108 |
#f9f9f9 100%); |
|
86 |
background-image: -moz-linear-gradient( |
|
87 |
-90deg, |
|
88 |
#fff 0px, |
|
89 |
#f9f9f9 100% |
|
90 |
); |
|
91 |
background-image: -webkit-gradient( |
|
92 |
linear, |
|
93 |
left top, |
|
94 |
left bottom, |
|
95 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
96 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
97 |
); |
|
98 |
background-image: -webkit-linear-gradient( |
|
99 |
-90deg, |
|
100 |
#fff 0px, |
|
101 |
#f9f9f9 100% |
|
102 |
); |
|
103 |
background-image: linear-gradient( |
|
104 |
-90deg, |
|
105 |
#fff 0px, |
|
106 |
#f9f9f9 100% |
|
107 |
); |
|
109 | 108 |
-moz-border-radius: 5px; |
110 | 109 |
-webkit-border-radius: 5px; |
111 | 110 |
border-radius: 5px; |
... | ... | |
114 | 113 |
} |
115 | 114 |
|
116 | 115 |
.ctools-button-processed:hover { |
117 |
background-image: |
|
118 |
-moz-linear-gradient( |
|
119 |
-90deg, |
|
120 |
#ffffff 0px, |
|
121 |
#f1f1f1 100%); |
|
122 |
background-image: |
|
123 |
-webkit-gradient( |
|
124 |
linear, |
|
125 |
left top, |
|
126 |
left bottom, |
|
127 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
128 |
color-stop(1.0, rgba(241, 241, 241, 1.0)) |
|
129 |
); |
|
130 |
background-image: |
|
131 |
-webkit-linear-gradient( |
|
132 |
-90deg, |
|
133 |
#ffffff 0px, |
|
134 |
#f1f1f1 100%); |
|
135 |
background-image: |
|
136 |
linear-gradient( |
|
137 |
-90deg, |
|
138 |
#ffffff 0px, |
|
139 |
#f1f1f1 100%); |
|
116 |
background-image: -moz-linear-gradient( |
|
117 |
-90deg, |
|
118 |
#fff 0px, |
|
119 |
#f1f1f1 100% |
|
120 |
); |
|
121 |
background-image: -webkit-gradient( |
|
122 |
linear, |
|
123 |
left top, |
|
124 |
left bottom, |
|
125 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
126 |
color-stop(1.0, rgba(241, 241, 241, 1.0)) |
|
127 |
); |
|
128 |
background-image: -webkit-linear-gradient( |
|
129 |
-90deg, |
|
130 |
#fff 0px, |
|
131 |
#f1f1f1 100% |
|
132 |
); |
|
133 |
background-image: linear-gradient( |
|
134 |
-90deg, |
|
135 |
#fff 0px, |
|
136 |
#f1f1f1 100% |
|
137 |
); |
|
140 | 138 |
} |
141 | 139 |
|
142 | 140 |
.ctools-button-processed li a, |
... | ... | |
150 | 148 |
} |
151 | 149 |
|
152 | 150 |
.ctools-dropbutton-processed.open:hover { |
153 |
background-image: |
|
154 |
-moz-linear-gradient( |
|
155 |
-90deg, |
|
156 |
#ffffff 0px, |
|
157 |
#f9f9f9 100%); |
|
158 |
background-image: |
|
159 |
-webkit-gradient( |
|
160 |
linear, |
|
161 |
left top, |
|
162 |
left bottom, |
|
163 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
164 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
165 |
); |
|
166 |
background-image: |
|
167 |
-webkit-linear-gradient( |
|
168 |
-90deg, |
|
169 |
#ffffff 0px, |
|
170 |
#f9f9f9 100%); |
|
171 |
background-image: |
|
172 |
linear-gradient( |
|
173 |
-90deg, |
|
174 |
#ffffff 0px, |
|
175 |
#f9f9f9 100%); |
|
151 |
background-image: -moz-linear-gradient( |
|
152 |
-90deg, |
|
153 |
#fff 0px, |
|
154 |
#f9f9f9 100% |
|
155 |
); |
|
156 |
background-image: -webkit-gradient( |
|
157 |
linear, |
|
158 |
left top, |
|
159 |
left bottom, |
|
160 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
161 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
162 |
); |
|
163 |
background-image: -webkit-linear-gradient( |
|
164 |
-90deg, |
|
165 |
#fff 0px, |
|
166 |
#f9f9f9 100% |
|
167 |
); |
|
168 |
background-image: linear-gradient( |
|
169 |
-90deg, |
|
170 |
#fff 0px, |
|
171 |
#f9f9f9 100% |
|
172 |
); |
|
176 | 173 |
} |
177 | 174 |
|
178 | 175 |
.ctools-dropbutton-processed.open { |
... | ... | |
220 | 217 |
} |
221 | 218 |
|
222 | 219 |
.views-ui-display-tab-actions .ctools-button input { |
223 |
color: #0071B3;
|
|
220 |
color: #0071b3;
|
|
224 | 221 |
} |
225 | 222 |
|
226 | 223 |
.views-ui-display-tab-actions .ctools-button input:hover, |
227 | 224 |
.views-ui-display-tab-actions .ctools-button input:focus { |
228 |
color: #018FE2;
|
|
225 |
color: #018fe2;
|
|
229 | 226 |
} |
230 | 227 |
|
231 | 228 |
/* @end */ |
drupal7/sites/all/modules/views/css/views-admin.css | ||
---|---|---|
117 | 117 |
* |
118 | 118 |
* The tabs that switch between sections |
119 | 119 |
*/ |
120 |
.views-displays .secondary {
|
|
121 |
border-bottom: 0 none;
|
|
122 |
margin: 0;
|
|
123 |
overflow: visible;
|
|
124 |
padding: 0;
|
|
125 |
}
|
|
120 |
.views-displays .secondary { |
|
121 |
border-bottom: 0 none; |
|
122 |
margin: 0; |
|
123 |
overflow: visible; |
|
124 |
padding: 0; |
|
125 |
} |
|
126 | 126 |
|
127 | 127 |
.views-displays .secondary > li { |
128 | 128 |
border-right: 0 none; |
drupal7/sites/all/modules/views/css/views-admin.ctools-rtl.css | ||
---|---|---|
10 | 10 |
} |
11 | 11 |
|
12 | 12 |
.ctools-dropbutton .ctools-link { |
13 |
border-right: 1px solid #ffffff;
|
|
13 |
border-right: 1px solid #fff; |
|
14 | 14 |
} |
15 | 15 |
|
16 | 16 |
.ctools-dropbutton li { |
drupal7/sites/all/modules/views/css/views-admin.ctools.css | ||
---|---|---|
1 | 1 |
/* @group Buttons */ |
2 | 2 |
|
3 | 3 |
.ctools-button-processed { |
4 |
background-color: #ffffff;
|
|
5 |
border-color: #cccccc;
|
|
4 |
background-color: #fff; |
|
5 |
border-color: #ccc; |
|
6 | 6 |
font-size: 11px; |
7 | 7 |
padding-bottom: 2px; |
8 | 8 |
padding-top: 2px; |
... | ... | |
46 | 46 |
} |
47 | 47 |
|
48 | 48 |
.ctools-dropbutton-processed.open:hover { |
49 |
border-color: #D0D0D0;
|
|
49 |
border-color: #d0d0d0;
|
|
50 | 50 |
} |
51 | 51 |
|
52 | 52 |
.ctools-dropbutton-processed.open { |
... | ... | |
54 | 54 |
} |
55 | 55 |
|
56 | 56 |
.ctools-dropbutton-processed .ctools-link { |
57 |
border-left: 1px solid #ffffff;
|
|
57 |
border-left: 1px solid #fff; |
|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
.ctools-dropbutton-processed.open .ctools-content { |
61 |
padding-bottom: 4px;
|
|
61 |
padding-bottom: 4px; |
|
62 | 62 |
} |
63 | 63 |
|
64 | 64 |
.ctools-dropbutton-processed li a, |
... | ... | |
132 | 132 |
|
133 | 133 |
.ctools-toggle.ctools-toggle-collapsed { |
134 | 134 |
border-bottom-color: transparent; |
135 |
border-left: 4px solid;
|
|
135 |
border-left: 4px solid; |
|
136 | 136 |
border-right-color: transparent; |
137 | 137 |
border-top-color: transparent; |
138 | 138 |
border-width: 5px 0 5px 5px; |
... | ... | |
158 | 158 |
} |
159 | 159 |
|
160 | 160 |
.views-display-settings .ctools-toggle { |
161 |
color: #000000;
|
|
161 |
color: #000; |
|
162 | 162 |
} |
163 | 163 |
|
164 | 164 |
.views-display-column > .ctools-toggle { |
... | ... | |
173 | 173 |
} |
174 | 174 |
|
175 | 175 |
.views-display-column > .ctools-collapsible-handle { |
176 |
border-color: #F3F3F3;
|
|
176 |
border-color: #f3f3f3;
|
|
177 | 177 |
border-style: solid; |
178 | 178 |
border-width: 1px 1px 0; |
179 | 179 |
font-size: 13px; |
... | ... | |
225 | 225 |
|
226 | 226 |
/* @group Jump list */ |
227 | 227 |
|
228 |
#views-live-preview .ctools-jump-menu-select{ |
|
228 |
#views-live-preview .ctools-jump-menu-select {
|
|
229 | 229 |
max-width: 450px; |
230 | 230 |
} |
231 | 231 |
|
drupal7/sites/all/modules/views/css/views-admin.garland-rtl.css | ||
---|---|---|
3 | 3 |
* in the Garland theme. |
4 | 4 |
*/ |
5 | 5 |
|
6 |
/* @group Lists */
|
|
6 |
/* @group Lists */ |
|
7 | 7 |
|
8 | 8 |
.views-displays .secondary .action-list { |
9 | 9 |
left: auto; |
10 | 10 |
right: 1px; |
11 | 11 |
} |
12 | 12 |
|
13 |
/* @end */ |
|
13 |
/* @end */ |
drupal7/sites/all/modules/views/css/views-admin.garland.css | ||
---|---|---|
54 | 54 |
.views-displays .secondary .open > a:hover { |
55 | 55 |
border-color: #e9e9e9 #e9e9e9 #f1f1f1 #e9e9e9; |
56 | 56 |
border-width: 1px 1px 1px 1px; |
57 |
color: #0071B3;
|
|
57 |
color: #0071b3;
|
|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
.views-displays .secondary input.form-submit { |
... | ... | |
84 | 84 |
} |
85 | 85 |
|
86 | 86 |
.views-filterable-options .even .form-type-checkbox { |
87 |
background-color: #F9F9F9;
|
|
87 |
background-color: #f9f9f9;
|
|
88 | 88 |
} |
89 | 89 |
|
90 | 90 |
.views-ui-dialog .ui-dialog-titlebar-close, |
... | ... | |
101 | 101 |
/* @group Buttons */ |
102 | 102 |
|
103 | 103 |
.ctools-button-processed { |
104 |
background-image: |
|
105 |
-moz-linear-gradient( |
|
106 |
-90deg, |
|
107 |
#ffffff 0px, |
|
108 |
#f9f9f9 100%); |
|
109 |
background-image: |
|
110 |
-webkit-gradient( |
|
111 |
linear, |
|
112 |
left top, |
|
113 |
left bottom, |
|
114 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
115 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
116 |
); |
|
117 |
background-image: |
|
118 |
-webkit-linear-gradient( |
|
119 |
-90deg, |
|
120 |
#ffffff 0px, |
|
121 |
#f9f9f9 100%); |
|
122 |
background-image: |
|
123 |
linear-gradient( |
|
124 |
-90deg, |
|
125 |
#ffffff 0px, |
|
126 |
#f9f9f9 100%); |
|
104 |
background-image: -moz-linear-gradient( |
|
105 |
-90deg, |
|
106 |
#fff 0px, |
|
107 |
#f9f9f9 100% |
|
108 |
); |
|
109 |
background-image: -webkit-gradient( |
|
110 |
linear, |
|
111 |
left top, |
|
112 |
left bottom, |
|
113 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
114 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
115 |
); |
|
116 |
background-image: -webkit-linear-gradient( |
|
117 |
-90deg, |
|
118 |
#fff 0px, |
|
119 |
#f9f9f9 100% |
|
120 |
); |
|
121 |
background-image: linear-gradient( |
|
122 |
-90deg, |
|
123 |
#fff 0px, |
|
124 |
#f9f9f9 100% |
|
125 |
); |
|
127 | 126 |
-moz-border-radius: 5px; |
128 | 127 |
-webkit-border-radius: 5px; |
129 | 128 |
border-radius: 5px; |
... | ... | |
132 | 131 |
} |
133 | 132 |
|
134 | 133 |
.ctools-button-processed:hover { |
135 |
background-image: |
|
136 |
-moz-linear-gradient( |
|
137 |
-90deg, |
|
138 |
#ffffff 0px, |
|
139 |
#f1f1f1 100%); |
|
140 |
background-image: |
|
141 |
-webkit-gradient( |
|
142 |
linear, |
|
143 |
left top, |
|
144 |
left bottom, |
|
145 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
146 |
color-stop(1.0, rgba(241, 241, 241, 1.0)) |
|
147 |
); |
|
148 |
background-image: |
|
149 |
-webkit-linear-gradient( |
|
150 |
-90deg, |
|
151 |
#ffffff 0px, |
|
152 |
#f1f1f1 100%); |
|
153 |
background-image: |
|
154 |
linear-gradient( |
|
155 |
-90deg, |
|
156 |
#ffffff 0px, |
|
157 |
#f1f1f1 100%); |
|
134 |
background-image: -moz-linear-gradient( |
|
135 |
-90deg, |
|
136 |
#fff 0px, |
|
137 |
#f1f1f1 100% |
|
138 |
); |
|
139 |
background-image: -webkit-gradient( |
|
140 |
linear, |
|
141 |
left top, |
|
142 |
left bottom, |
|
143 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
144 |
color-stop(1.0, rgba(241, 241, 241, 1.0)) |
|
145 |
); |
|
146 |
background-image: -webkit-linear-gradient( |
|
147 |
-90deg, |
|
148 |
#fff 0px, |
|
149 |
#f1f1f1 100% |
|
150 |
); |
|
151 |
background-image: linear-gradient( |
|
152 |
-90deg, |
|
153 |
#fff 0px, |
|
154 |
#f1f1f1 100% |
|
155 |
); |
|
158 | 156 |
} |
159 | 157 |
|
160 | 158 |
.ctools-button-processed ol li, |
... | ... | |
172 | 170 |
} |
173 | 171 |
|
174 | 172 |
.ctools-dropbutton-processed.open:hover { |
175 |
background-image: |
|
176 |
-moz-linear-gradient( |
|
177 |
-90deg, |
|
178 |
#ffffff 0px, |
|
179 |
#f9f9f9 100%); |
|
180 |
background-image: |
|
181 |
-webkit-gradient( |
|
182 |
linear, |
|
183 |
left top, |
|
184 |
left bottom, |
|
185 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
186 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
187 |
); |
|
188 |
background-image: |
|
189 |
-webkit-linear-gradient( |
|
190 |
-90deg, |
|
191 |
#ffffff 0px, |
|
192 |
#f9f9f9 100%); |
|
193 |
background-image: |
|
194 |
linear-gradient( |
|
195 |
-90deg, |
|
196 |
#ffffff 0px, |
|
197 |
#f9f9f9 100%); |
|
173 |
background-image: -moz-linear-gradient( |
|
174 |
-90deg, |
|
175 |
#fff 0px, |
|
176 |
#f9f9f9 100% |
|
177 |
); |
|
178 |
background-image: -webkit-gradient( |
|
179 |
linear, |
|
180 |
left top, |
|
181 |
left bottom, |
|
182 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
183 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
184 |
); |
|
185 |
background-image: -webkit-linear-gradient( |
|
186 |
-90deg, |
|
187 |
#fff 0px, |
|
188 |
#f9f9f9 100% |
|
189 |
); |
|
190 |
background-image: linear-gradient( |
|
191 |
-90deg, |
|
192 |
#fff 0px, |
|
193 |
#f9f9f9 100% |
|
194 |
); |
|
198 | 195 |
} |
199 | 196 |
|
200 | 197 |
.ctools-dropbutton-processed.open { |
... | ... | |
249 | 246 |
} |
250 | 247 |
|
251 | 248 |
.views-ui-display-tab-actions .ctools-button input { |
252 |
color: #027AC6;
|
|
249 |
color: #027ac6;
|
|
253 | 250 |
font-size: 12px; |
254 | 251 |
} |
255 | 252 |
|
256 | 253 |
.views-ui-display-tab-actions .ctools-button input:hover, |
257 | 254 |
.views-ui-display-tab-actions .ctools-button input:focus { |
258 |
color: #0062A0;
|
|
255 |
color: #0062a0;
|
|
259 | 256 |
} |
260 | 257 |
|
261 | 258 |
/* @end */ |
drupal7/sites/all/modules/views/css/views-admin.seven.css | ||
---|---|---|
213 | 213 |
/* Override for input elements that are themed like ctools-buttons */ |
214 | 214 |
.ctools-button-processed input.form-submit:hover { |
215 | 215 |
background-image: none; |
216 |
color: #0074BD;
|
|
216 |
color: #0074bd;
|
|
217 | 217 |
text-shadow: none; |
218 | 218 |
} |
219 | 219 |
|
220 | 220 |
.ctools-button-processed input.form-submit:active { |
221 | 221 |
background: none; |
222 | 222 |
border: medium none; |
223 |
color: #0074BD;
|
|
223 |
color: #0074bd;
|
|
224 | 224 |
text-shadow: none; |
225 | 225 |
} |
226 | 226 |
|
... | ... | |
238 | 238 |
/* @group Attachment details */ |
239 | 239 |
|
240 | 240 |
#edit-display-settings-title { |
241 |
color: #008BCB;
|
|
241 |
color: #008bcb;
|
|
242 | 242 |
} |
243 | 243 |
|
244 | 244 |
/* @end */ |
... | ... | |
249 | 249 |
*/ |
250 | 250 |
|
251 | 251 |
.views-displays .secondary { |
252 |
text-align: left; /* LTR */ |
|
252 |
text-align: left; /* LTR */
|
|
253 | 253 |
} |
254 | 254 |
|
255 | 255 |
.views-displays .secondary > li:first-child { |
256 |
padding-left: 0; |
|
256 |
padding-left: 0;
|
|
257 | 257 |
} |
258 | 258 |
|
259 | 259 |
.views-admin .icon.add { |
... | ... | |
265 | 265 |
-moz-border-radius: 7px; |
266 | 266 |
-webkit-border-radius: 7px; |
267 | 267 |
border-radius: 7px; |
268 |
color: #008BCB;
|
|
268 |
color: #008bcb;
|
|
269 | 269 |
} |
270 | 270 |
|
271 | 271 |
.views-displays .secondary a:hover > .icon.add { |
... | ... | |
280 | 280 |
|
281 | 281 |
.views-displays .secondary .open > a:hover { |
282 | 282 |
background-color: #f1f1f1; |
283 |
color: #008BCB;
|
|
283 |
color: #008bcb;
|
|
284 | 284 |
} |
285 | 285 |
|
286 | 286 |
.views-displays .secondary .action-list li:first-child { |
... | ... | |
299 | 299 |
-moz-border-radius: 0; |
300 | 300 |
-webkit-border-radius: 0; |
301 | 301 |
border-radius: 0; |
302 |
color: #008BCB;
|
|
302 |
color: #008bcb;
|
|
303 | 303 |
} |
304 | 304 |
|
305 | 305 |
/* @end */ |
... | ... | |
349 | 349 |
} |
350 | 350 |
|
351 | 351 |
#views-ui-rearrange-filter-form tr.drag td { |
352 |
background-color: #FFEE77 !important;
|
|
352 |
background-color: #ffee77 !important;
|
|
353 | 353 |
} |
354 | 354 |
|
355 | 355 |
#views-ui-rearrange-filter-form tr.drag-previous td { |
356 |
background-color: #FFFFBB !important;
|
|
356 |
background-color: #ffffbb !important;
|
|
357 | 357 |
} |
358 | 358 |
|
359 | 359 |
/* @end */ |
... | ... | |
402 | 402 |
-moz-box-shadow: none; |
403 | 403 |
-webkit-box-shadow: none; |
404 | 404 |
box-shadow: none; |
405 |
border-color: #cccccc;
|
|
405 |
border-color: #ccc; |
|
406 | 406 |
right: -27px; |
407 | 407 |
top: -1px; |
408 | 408 |
} |
... | ... | |
429 | 429 |
/* @group Buttons */ |
430 | 430 |
|
431 | 431 |
.ctools-button-processed { |
432 |
background-image: |
|
433 |
-moz-linear-gradient( |
|
434 |
-90deg, |
|
435 |
#ffffff 0px, |
|
436 |
#f9f9f9 100%); |
|
437 |
background-image: |
|
438 |
-webkit-gradient( |
|
439 |
linear, |
|
440 |
left top, |
|
441 |
left bottom, |
|
442 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
443 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
444 |
); |
|
445 |
background-image: |
|
446 |
-webkit-linear-gradient( |
|
447 |
-90deg, |
|
448 |
#ffffff 0px, |
|
449 |
#f9f9f9 100%); |
|
450 |
background-image: |
|
451 |
linear-gradient( |
|
452 |
-90deg, |
|
453 |
#ffffff 0px, |
|
454 |
#f9f9f9 100%); |
|
432 |
background-image: -moz-linear-gradient( |
|
433 |
-90deg, |
|
434 |
#fff 0px, |
|
435 |
#f9f9f9 100% |
|
436 |
); |
|
437 |
background-image: -webkit-gradient( |
|
438 |
linear, |
|
439 |
left top, |
|
440 |
left bottom, |
|
441 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
442 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
443 |
); |
|
444 |
background-image: -webkit-linear-gradient( |
|
445 |
-90deg, |
|
446 |
#fff 0px, |
|
447 |
#f9f9f9 100% |
|
448 |
); |
|
449 |
background-image: linear-gradient( |
|
450 |
-90deg, |
|
451 |
#fff 0px, |
|
452 |
#f9f9f9 100% |
|
453 |
); |
|
455 | 454 |
-moz-border-radius: 11px 11px 11px 11px; |
456 | 455 |
-webkit-border-radius: 11px 11px 11px 11px; |
457 | 456 |
border-radius: 11px 11px 11px 11px; |
458 | 457 |
} |
459 | 458 |
|
460 | 459 |
.ctools-button-processed:hover { |
461 |
background-image: |
|
462 |
-moz-linear-gradient( |
|
463 |
-90deg, |
|
464 |
#ffffff 0px, |
|
465 |
#f1f1f1 100%); |
|
466 |
background-image: |
|
467 |
-webkit-gradient( |
|
468 |
linear, |
|
469 |
left top, |
|
470 |
left bottom, |
|
471 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
472 |
color-stop(1.0, rgba(241, 241, 241, 1.0)) |
|
473 |
); |
|
474 |
background-image: |
|
475 |
-webkit-linear-gradient( |
|
476 |
-90deg, |
|
477 |
#ffffff 0px, |
|
478 |
#f1f1f1 100%); |
|
479 |
background-image: |
|
480 |
linear-gradient( |
|
481 |
-90deg, |
|
482 |
#ffffff 0px, |
|
483 |
#f1f1f1 100%); |
|
460 |
background-image: -moz-linear-gradient( |
|
461 |
-90deg, |
|
462 |
#fff 0px, |
|
463 |
#f1f1f1 100% |
|
464 |
); |
|
465 |
background-image: -webkit-gradient( |
|
466 |
linear, |
|
467 |
left top, |
|
468 |
left bottom, |
|
469 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
470 |
color-stop(1.0, rgba(241, 241, 241, 1.0)) |
|
471 |
); |
|
472 |
background-image: -webkit-linear-gradient( |
|
473 |
-90deg, |
|
474 |
#fff 0px, |
|
475 |
#f1f1f1 100% |
|
476 |
); |
|
477 |
background-image: linear-gradient( |
|
478 |
-90deg, |
|
479 |
#fff 0px, |
|
480 |
#f1f1f1 100% |
|
481 |
); |
|
484 | 482 |
} |
485 | 483 |
|
486 | 484 |
.ctools-dropbutton-processed.open:hover { |
487 |
background-image: |
|
488 |
-moz-linear-gradient( |
|
489 |
-90deg, |
|
490 |
#ffffff 0px, |
|
491 |
#f9f9f9 100%); |
|
492 |
background-image: |
|
493 |
-webkit-gradient( |
|
494 |
linear, |
|
495 |
left top, |
|
496 |
left bottom, |
|
497 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
498 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
499 |
); |
|
500 |
background-image: |
|
501 |
-webkit-linear-gradient( |
|
502 |
-90deg, |
|
503 |
#ffffff 0px, |
|
504 |
#f9f9f9 100%); |
|
505 |
background-image: |
|
506 |
linear-gradient( |
|
507 |
-90deg, |
|
508 |
#ffffff 0px, |
|
509 |
#f9f9f9 100%); |
|
485 |
background-image: -moz-linear-gradient( |
|
486 |
-90deg, |
|
487 |
#fff 0px, |
|
488 |
#f9f9f9 100% |
|
489 |
); |
|
490 |
background-image: -webkit-gradient( |
|
491 |
linear, |
|
492 |
left top, |
|
493 |
left bottom, |
|
494 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
495 |
color-stop(1.0, rgba(249, 249, 249, 1.0)) |
|
496 |
); |
|
497 |
background-image: -webkit-linear-gradient( |
|
498 |
-90deg, |
|
499 |
#fff 0px, |
|
500 |
#f9f9f9 100% |
|
501 |
); |
|
502 |
background-image: linear-gradient( |
|
503 |
-90deg, |
|
504 |
#fff 0px, |
|
505 |
#f9f9f9 100% |
|
506 |
); |
|
510 | 507 |
} |
511 | 508 |
|
512 | 509 |
.ctools-dropbutton-processed.open { |
... | ... | |
528 | 525 |
} |
529 | 526 |
|
530 | 527 |
.views-display-settings .ctools-toggle { |
531 |
color: #008BCB;
|
|
528 |
color: #008bcb;
|
|
532 | 529 |
} |
533 | 530 |
|
534 | 531 |
.views-display-column > .ctools-toggle { |
... | ... | |
540 | 537 |
} |
541 | 538 |
|
542 | 539 |
.views-display-column > .ctools-collapsible-handle { |
543 |
color: #008BCB;
|
|
540 |
color: #008bcb;
|
|
544 | 541 |
} |
545 | 542 |
|
546 | 543 |
.views-ui-display-tab-actions .ctools-button-processed input { |
547 |
color: #0074BD;
|
|
544 |
color: #0074bd;
|
|
548 | 545 |
} |
549 | 546 |
|
550 | 547 |
/* @end */ |
drupal7/sites/all/modules/views/css/views-admin.theme.css | ||
---|---|---|
39 | 39 |
.views-admin .icon, |
40 | 40 |
.views-admin .icon-text { |
41 | 41 |
background-attachment: scroll; |
42 |
background-image: url("../images/sprites.png");
|
|
42 |
background-image: url('../images/sprites.png');
|
|
43 | 43 |
background-position: left top; /* LTR */ |
44 | 44 |
background-repeat: no-repeat; |
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
.views-admin a.icon { |
48 |
background-image: |
|
49 |
url("../images/sprites.png"), |
|
50 |
-moz-linear-gradient( |
|
51 |
-90deg, |
|
52 |
#ffffff 0px, |
|
53 |
#e8e8e8 100%); |
|
54 |
background-image: |
|
55 |
url("../images/sprites.png"), |
|
56 |
-webkit-gradient( |
|
57 |
linear, |
|
58 |
left top, |
|
59 |
left bottom, |
|
60 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
61 |
color-stop(1.0, rgba(232, 232, 232, 1.0)) |
|
62 |
); |
|
63 |
background-image: |
|
64 |
url("../images/sprites.png"), |
|
65 |
-webkit-linear-gradient( |
|
66 |
-90deg, |
|
67 |
#ffffff 0px, |
|
68 |
#e8e8e8 100%); |
|
48 |
background-image: url('../images/sprites.png'), |
|
49 |
-moz-linear-gradient( |
|
50 |
-90deg, |
|
51 |
#fff 0px, |
|
52 |
#e8e8e8 100% |
|
53 |
); |
|
54 |
background-image: url('../images/sprites.png'), |
|
55 |
-webkit-gradient( |
|
56 |
linear, |
|
57 |
left top, |
|
58 |
left bottom, |
|
59 |
color-stop(0.0, rgba(255, 255, 255, 1.0)), |
|
60 |
color-stop(1.0, rgba(232, 232, 232, 1.0)) |
|
61 |
); |
|
62 |
background-image: url('../images/sprites.png'), |
|
63 |
-webkit-linear-gradient( |
|
64 |
-90deg, |
|
65 |
#fff 0px, |
|
66 |
#e8e8e8 100% |
|
67 |
); |
|
69 | 68 |
background-repeat: no-repeat, repeat-y; |
70 |
border: 1px solid #dddddd;
|
|
69 |
border: 1px solid #ddd; |
|
71 | 70 |
-moz-border-radius: 4px; |
72 | 71 |
-webkit-border-radius: 4px; |
73 | 72 |
border-radius: 4px; |
... | ... | |
206 | 205 |
|
207 | 206 |
/* Hide 'remove' checkboxes. */ |
208 | 207 |
.views-remove-checkbox { |
209 |
display: none;
|
|
208 |
display: none; |
|
210 | 209 |
} |
211 | 210 |
|
212 | 211 |
/* sizes the labels of checkboxes and radio button to the height of the text */ |
... | ... | |
406 | 405 |
/* @group Attachments */ |
407 | 406 |
|
408 | 407 |
.views-displays { |
409 |
border: 1px solid #CCC;
|
|
408 |
border: 1px solid #ccc;
|
|
410 | 409 |
padding-bottom: 36px; |
411 | 410 |
} |
412 | 411 |
|
413 | 412 |
.views-display-top { |
414 |
background-color: #F9F9F9;
|
|
415 |
border-bottom: 1px solid #CCCCCC;
|
|
413 |
background-color: #f9f9f9;
|
|
414 |
border-bottom: 1px solid #ccc;
|
|
416 | 415 |
padding: 8px 8px 8px; /* LTR */ |
417 | 416 |
position: relative; |
418 | 417 |
} |
... | ... | |
453 | 452 |
margin-bottom: 5px; |
454 | 453 |
} |
455 | 454 |
|
456 |
ul#views-display-menu-tabs li.add ul.action-list li{ |
|
455 |
ul#views-display-menu-tabs li.add ul.action-list li {
|
|
457 | 456 |
margin: 0; |
458 | 457 |
} |
459 | 458 |
|
... | ... | |
470 | 469 |
*/ |
471 | 470 |
.views-displays ul.secondary li.active a.active.error, |
472 | 471 |
.views-displays .secondary a.error { |
473 |
border: 2px solid #ED541D;
|
|
472 |
border: 2px solid #ed541d;
|
|
474 | 473 |
padding: 1px 6px; |
475 | 474 |
} |
476 | 475 |
|
... | ... | |
480 | 479 |
|
481 | 480 |
.views-displays .secondary a:hover, |
482 | 481 |
.views-displays .secondary .active a { |
483 |
background-color: #666666;
|
|
484 |
color: #ffffff;
|
|
482 |
background-color: #666; |
|
483 |
color: #fff; |
|
485 | 484 |
border-bottom-width: 1px; |
486 | 485 |
} |
487 | 486 |
|
... | ... | |
523 | 522 |
} |
524 | 523 |
|
525 | 524 |
.views-displays .secondary .action-list li:hover { |
526 |
background-color: #dddddd;
|
|
525 |
background-color: #ddd; |
|
527 | 526 |
} |
528 | 527 |
|
529 | 528 |
/* @end */ |
... | ... | |
556 | 555 |
*/ |
557 | 556 |
|
558 | 557 |
.views-display-column + .views-display-column { |
559 |
margin-top: 0;
|
|
560 |
}
|
|
558 |
margin-top: 0; |
|
559 |
} |
|
561 | 560 |
|
562 |
/* @end */
|
|
561 |
/* @end */ |
|
563 | 562 |
|
564 | 563 |
/* @group Auto preview |
565 | 564 |
* |
... | ... | |
683 | 682 |
*/ |
684 | 683 |
|
685 | 684 |
.views-ui-display-tab-bucket .views-display-setting { |
686 |
color: #666666;
|
|
685 |
color: #666; |
|
687 | 686 |
font-size: 12px; |
688 | 687 |
padding-bottom: 2px; |
689 | 688 |
} |
... | ... | |
753 | 752 |
} |
754 | 753 |
|
755 | 754 |
.views-ui-dialog .ui-dialog-titlebar-close { |
756 |
background: url("../images/close.png") no-repeat scroll 6px 3px #F3F4EE;
|
|
757 |
border-color: #aaaaaa;
|
|
755 |
background: url('../images/close.png') no-repeat scroll 6px 3px #f3f4ee;
|
|
756 |
border-color: #aaa; |
|
758 | 757 |
-moz-border-radius: 0 10px 12px 0; |
759 | 758 |
-webkit-border-radius: 0 10px 12px 0; |
760 | 759 |
border-radius: 0 10px 12px 0; |
... | ... | |
774 | 773 |
} |
775 | 774 |
|
776 | 775 |
.views-filterable-options .form-type-checkbox { |
777 |
border: 1px solid #CCC;
|
|
776 |
border: 1px solid #ccc;
|
|
778 | 777 |
padding: 5px 8px; |
779 | 778 |
border-top: none; |
780 | 779 |
} |
781 | 780 |
|
782 | 781 |
.views-filterable-options { |
783 |
border-top: 1px solid #CCC;
|
|
782 |
border-top: 1px solid #ccc;
|
|
784 | 783 |
} |
785 | 784 |
|
786 | 785 |
.views-filterable-options .even .form-type-checkbox { |
787 |
background-color: #F3F4EE;
|
|
786 |
background-color: #f3f4ee;
|
|
788 | 787 |
} |
789 | 788 |
|
790 | 789 |
.filterable-option .form-item { |
... | ... | |
830 | 829 |
|
831 | 830 |
.views-ui-dialog #views-ajax-title, |
832 | 831 |
.views-ui-dialog .views-override { |
833 |
background-color: #F3F4EE;
|
|
832 |
background-color: #f3f4ee;
|
|
834 | 833 |
} |
835 | 834 |
|
836 | 835 |
.views-ui-dialog .views-override { |
... | ... | |
862 | 861 |
} |
863 | 862 |
|
864 | 863 |
.views-ui-dialog .scroll { |
865 |
border: 1px solid #CCC;
|
|
864 |
border: 1px solid #ccc;
|
|
866 | 865 |
border-width: 1px 0; |
867 | 866 |
padding: 8px 13px; |
868 | 867 |
} |
... | ... | |
872 | 871 |
} |
873 | 872 |
|
874 | 873 |
.views-ui-dialog .form-buttons { |
875 |
background-color: #F3F4EE;
|
|
874 |
background-color: #f3f4ee;
|
|
876 | 875 |
padding: 8px 13px; |
877 | 876 |
} |
878 | 877 |
.views-ui-dialog .form-buttons input { |
... | ... | |
888 | 887 |
/* @todo Make this a class to be used anywhere there's node types? */ |
889 | 888 |
.form-type-checkboxes #edit-options-value, |
890 | 889 |
.form-type-checkboxes #edit-options-validate-options-node-types { |
891 |
border-color: #CCCCCC;
|
|
890 |
border-color: #ccc;
|
|
892 | 891 |
border-style: solid; |
893 | 892 |
border-width: 1px; |
894 | 893 |
max-height: 210px; |
... | ... | |
907 | 906 |
} |
908 | 907 |
|
909 | 908 |
#views-ui-rearrange-filter-form tr td[rowspan] { |
910 |
border-color: #CDCDCD;
|
|
909 |
border-color: #cdcdcd;
|
|
911 | 910 |
border-style: solid; |
912 | 911 |
border-width: 0 1px 1px 1px; |
913 | 912 |
} |
914 | 913 |
|
915 | 914 |
#views-ui-rearrange-filter-form tr[id^="views-row"] { |
916 |
border-right: 1px solid #CDCDCD;
|
|
915 |
border-right: 1px solid #cdcdcd;
|
|
917 | 916 |
} |
918 | 917 |
|
919 | 918 |
#views-ui-rearrange-filter-form tr[id^="views-row"].even td { |
920 |
background-color: #F3F4ED;
|
|
919 |
background-color: #f3f4ed;
|
|
921 | 920 |
} |
922 | 921 |
|
923 | 922 |
#views-ui-rearrange-filter-form .views-group-title { |
924 |
border-top: 1px solid #CDCDCD;
|
|
923 |
border-top: 1px solid #cdcdcd;
|
|
925 | 924 |
} |
926 | 925 |
|
927 | 926 |
#views-ui-rearrange-filter-form .group-empty { |
928 |
border-bottom: 1px solid #CDCDCD;
|
|
927 |
border-bottom: 1px solid #cdcdcd;
|
|
929 | 928 |
} |
930 | 929 |
|
931 | 930 |
/* @end */ |
... | ... | |
945 | 944 |
/* @group Live preview elements */ |
946 | 945 |
|
947 | 946 |
#views-preview-wrapper { |
948 |
border: 1px solid #CCC;
|
|
949 |
border-top: 2px solid #CCC;
|
|
947 |
border: 1px solid #ccc;
|
|
948 |
border-top: 2px solid #ccc;
|
|
950 | 949 |
padding-bottom: 12px; |
951 | 950 |
padding-top: 12px; |
952 | 951 |
} |
... | ... | |
979 | 978 |
} |
980 | 979 |
|
981 | 980 |
#views-live-preview .preview-section { |
982 |
border: 1px dashed #DEDEDE;
|
|
981 |
border: 1px dashed #dedede;
|
|
983 | 982 |
margin: 0 -5px; |
984 | 983 |
padding: 3px 5px; |
985 | 984 |
} |
... | ... | |
997 | 996 |
|
998 | 997 |
.views-query-info table { |
999 | 998 |
border-collapse: separate; |
1000 |
border-color: #dddddd;
|
|
999 |
border-color: #ddd; |
|
1001 | 1000 |
border-spacing: 0; |
1002 | 1001 |
margin: 10px 0; |
1003 | 1002 |
} |
... | ... | |
1008 | 1007 |
|
1009 | 1008 |
.views-query-info table th, |
1010 | 1009 |
.views-query-info table td { |
1011 |
color: #666666;
|
|
1010 |
color: #666; |
|
1012 | 1011 |
padding: 4px 10px; |
1013 | 1012 |
} |
1014 | 1013 |
|
... | ... | |
1058 | 1057 |
|
1059 | 1058 |
.ajax-progress-throbber { |
1060 | 1059 |
background-color: #232323; |
1061 |
background-image: url("../images/loading-small.gif");
|
|
1060 |
background-image: url('../images/loading-small.gif');
|
|
1062 | 1061 |
background-position: center center; |
1063 | 1062 |
background-repeat: no-repeat; |
1064 | 1063 |
-moz-border-radius: 7px; |
drupal7/sites/all/modules/views/css/views-rtl.css | ||
---|---|---|
1 |
|
|
2 | 1 |
.views-exposed-form .views-exposed-widget { |
3 | 2 |
float: right; /* RTL */ |
4 | 3 |
padding: .5em 1em 0 0; /* RTL */ |
drupal7/sites/all/modules/views/drush/views.drush.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* Drush integration of views.
|
|
5 |
* Drush integration for Views.
|
|
6 | 6 |
* |
7 |
* drush cache-clear views - Clears the views specific caches. |
|
8 |
* views-revert - Drush command to revert views overridden in the system. |
|
7 |
* Useful commands: |
|
8 |
* - drush cache-clear views - Clears the views specific caches. |
|
9 |
* - views-revert - Drush command to revert views overridden in the system. |
|
9 | 10 |
*/ |
10 | 11 |
|
11 | 12 |
/** |
12 |
* Implement hook_drush_help(). |
|
13 |
* Implements hook_drush_help().
|
|
13 | 14 |
*/ |
14 | 15 |
function views_drush_help($section) { |
15 | 16 |
switch ($section) { |
... | ... | |
18 | 19 |
$help .= dt('If no view names are specified, you will be presented with a list of overridden views to choose from. '); |
19 | 20 |
$help .= dt('To revert all views, do not specify any view names, and choose the option "All" from the options presented.'); |
20 | 21 |
return $help; |
22 |
|
|
21 | 23 |
case 'drush:views-list': |
22 | 24 |
return dt('Show a list of available views with information about them.'); |
25 |
|
|
23 | 26 |
case 'drush:views-enable': |
24 | 27 |
return dt('Enable the specified views. Follow the command with a space delimited list of view names'); |
28 |
|
|
25 | 29 |
case 'drush:views-disable': |
26 | 30 |
return dt('Disable the specified views. Follow the command with a space delimited list of view names'); |
27 | 31 |
} |
28 | 32 |
} |
29 | 33 |
|
30 | 34 |
/** |
31 |
* Implement hook_drush_command(). |
|
35 |
* Implements hook_drush_command().
|
|
32 | 36 |
*/ |
33 | 37 |
function views_drush_command() { |
34 | 38 |
$items = array(); |
... | ... | |
70 | 74 |
'tags' => 'A comma-separated list of views tags by which to filter the results.', |
71 | 75 |
'status' => 'Status of the views by which to filter the results. Choices: enabled, disabled.', |
72 | 76 |
'type' => 'Type of the views by which to filter the results. Choices: normal, default or overridden.', |
73 |
),
|
|
77 |
), |
|
74 | 78 |
'examples' => array( |
75 | 79 |
'drush vl' => 'Show a list of all available views.', |
76 | 80 |
'drush vl --name=blog' => 'Show a list of views which names contain "blog".', |
... | ... | |
143 | 147 |
// If the user specified a list of views on the CLI, revert those. |
144 | 148 |
elseif (!empty($viewnames)) { |
145 | 149 |
foreach ($viewnames as $key => $viewname) { |
146 |
$is_overridden = key_exists($viewname, $overridden); |
|
150 |
$is_overridden = array_key_exists($viewname, $overridden);
|
|
147 | 151 |
|
148 |
// Check if the provided view name is in the system |
|
149 |
if ($viewname && !key_exists($viewname, $views)) { |
|
152 |
// Check if the provided view name is in the system.
|
|
153 |
if ($viewname && !array_key_exists($viewname, $views)) {
|
|
150 | 154 |
drush_set_error(dt("'@viewname' view is not present in the system.", array('@viewname' => $viewname))); |
151 | 155 |
} |
152 | 156 |
// Check if the provided view is overridden. |
... | ... | |
158 | 162 |
views_revert_view($views[$viewname]); |
159 | 163 |
$i++; |
160 | 164 |
} |
161 |
// We should never get here but well...
|
|
165 |
// We should never get here but well. |
|
162 | 166 |
else { |
163 | 167 |
drush_set_error(dt( |
164 | 168 |
"The view specified '@viewname' is not provided in code, and thus cannot be reverted.", |
... | ... | |
168 | 172 |
} |
169 | 173 |
} |
170 | 174 |
|
171 |
// The user neither selected the "--all" option, nor provided a list of views to revert.
|
|
172 |
// Prompt the user. |
|
175 |
// The user neither selected the "--all" option, nor provided a list of views |
|
176 |
// to revert. Prompt the user.
|
|
173 | 177 |
else { |
174 |
// list of choices for the user |
|
175 |
$overridden['all'] = dt('Revert all overridden views'); // add a choice at the end |
|
176 |
$choice = drush_choice($overridden, 'Enter a number to choose which view to revert.', '!key'); // prompt the user |
|
177 |
|
|
178 |
// List of choices for the user. |
|
179 |
$overridden['all'] = dt('Revert all overridden views'); |
|
180 |
// Add a choice at the end. |
|
181 |
$choice = drush_choice($overridden, 'Enter a number to choose which view to revert.', '!key'); |
|
182 |
// Prompt the user. |
|
178 | 183 |
if ($choice !== FALSE) { |
179 |
// revert all views option
|
|
184 |
// Revert all views option.
|
|
180 | 185 |
if ($choice == 'all') { |
181 | 186 |
$i = views_revert_allviews($views); |
182 | 187 |
} |
183 |
// else the user specified a single view
|
|
188 |
// Else the user specified a single view.
|
|
184 | 189 |
else { |
185 | 190 |
views_revert_view($views[$choice]); |
186 | 191 |
$i++; |
... | ... | |
189 | 194 |
|
190 | 195 |
} |
191 | 196 |
|
192 |
// final results output
|
|
197 |
// Final results output.
|
|
193 | 198 |
if ($i == 0) { |
194 | 199 |
drush_log(dt('No views were reverted.'), 'ok'); |
195 | 200 |
} |
... | ... | |
199 | 204 |
} |
200 | 205 |
|
201 | 206 |
/** |
202 |
* Reverts all views |
|
203 |
* @param $views |
|
204 |
* All views in the system as provided by views_get_all_views(). |
|
207 |
* Reverts all views. |
|
208 |
* |
|
209 |
* @param array $views |
|
210 |
* All views in the system as provided by views_get_all_views(). |
|
205 | 211 |
*/ |
206 | 212 |
function views_revert_allviews($views) { |
207 | 213 |
$i = 0; |
... | ... | |
219 | 225 |
} |
220 | 226 |
|
221 | 227 |
/** |
222 |
* Revert a specified view |
|
223 |
* @param $view |
|
224 |
* The view object to be reverted |
|
228 |
* Revert a specified view. |
|
229 |
* |
|
230 |
* Checks on wether or not the view is overridden is handled in |
|
231 |
* views_revert_views_revert(). We perform a check here anyway in case someone |
|
232 |
* somehow calls this function on their own... |
|
225 | 233 |
* |
226 |
* Checks on wether or not the view is overridden is handled in views_revert_views_revert()
|
|
227 |
* We perform a check here anyway in case someone somehow calls this function on their own...
|
|
234 |
* @param object $view
|
|
235 |
* The view object to be reverted.
|
|
228 | 236 |
*/ |
229 | 237 |
function views_revert_view($view) { |
230 |
// check anyway just in case
|
|
238 |
// Check anyway just in case.
|
|
231 | 239 |
if ($view->type == t('Overridden')) { |
232 | 240 |
// Revert the view. |
233 | 241 |
$view->delete(); |
... | ... | |
269 | 277 |
* Callback function for views-list command. |
270 | 278 |
*/ |
271 | 279 |
function drush_views_list() { |
272 |
// Initialize stuf |
|
280 |
// Initialize stuff.
|
|
273 | 281 |
$rows = array(); |
274 | 282 |
$disabled_views = array(); |
275 | 283 |
$enabled_views = array(); |
... | ... | |
281 | 289 |
|
282 | 290 |
$views = views_get_all_views(); |
283 | 291 |
|
284 |
// get the --name option
|
|
285 |
// TODO : take into account the case off a comma-separated list of names
|
|
292 |
// Get the --name option.
|
|
293 |
// @todo Take into account the case off a comma-separated list of names.
|
|
286 | 294 |
$name = drush_get_option_list('name'); |
287 | 295 |
$with_name = !empty($name) ? TRUE : FALSE; |
288 | 296 |
|
289 |
// get the --tags option
|
|
297 |
// Get the --tags option.
|
|
290 | 298 |
$tags = drush_get_option_list('tags'); |
291 | 299 |
$with_tags = !empty($tags) ? TRUE : FALSE; |
292 | 300 |
|
293 |
// get the --status option |
|
294 |
// store user input appart to reuse it after |
|
301 |
// Get the --status option. Store user input appart to reuse it after. |
|
295 | 302 |
$status_opt = drush_get_option_list('status'); |
296 |
// use the same logic than $view->disabled
|
|
303 |
// Use the same logic than $view->disabled.
|
|
297 | 304 |
if (in_array('disabled', $status_opt)) { |
298 | 305 |
$status = TRUE; |
299 | 306 |
$with_status = TRUE; |
... | ... | |
304 | 311 |
} |
305 | 312 |
else { |
306 | 313 |
$status = NULL; |
307 |
// wrong or empty --status option
|
|
314 |
// Wrong or empty --status option.
|
|
308 | 315 |
$with_status = FALSE; |
309 | 316 |
} |
310 | 317 |
|
311 |
// get the --type option
|
|
318 |
// Get the --type option.
|
|
312 | 319 |
$type = drush_get_option_list('type'); |
313 |
// use the same logic than $view->type
|
|
320 |
// Use the same logic than $view->type.
|
|
314 | 321 |
$with_type = FALSE; |
315 | 322 |
if (in_array('normal', $type) || in_array('default', $type)|| in_array('overridden', $type)) { |
316 | 323 |
$with_type = TRUE; |
317 | 324 |
} |
318 | 325 |
|
319 |
// set the table headers
|
|
326 |
// Set the table headers.
|
|
320 | 327 |
$header = array( |
321 | 328 |
dt('Machine name'), |
322 | 329 |
dt('Description'), |
... | ... | |
325 | 332 |
dt('Tag'), |
326 | 333 |
); |
327 | 334 |
|
328 |
// setup a row for each view
|
|
329 |
foreach($views as $id => $view){
|
|
330 |
// if options were specified, check that first
|
|
331 |
// mismatch push the loop to the next view
|
|
335 |
// Setup a row for each view.
|
|
336 |
foreach ($views as $id => $view) {
|
|
337 |
// If options were specified, check that first mismatch push the loop to
|
|
338 |
// the next view.
|
|
332 | 339 |
if ($with_tags && !in_array($view->tag, $tags)) { |
333 | 340 |
continue; |
334 | 341 |
} |
... | ... | |
343 | 350 |
} |
344 | 351 |
|
345 | 352 |
$row = array(); |
346 |
// each row entry should be in the same order as the header
|
|
353 |
// Each row entry should be in the same order as the header.
|
|
347 | 354 |
$row[] = $view->name; |
348 | 355 |
$row[] = $view->description; |
349 | 356 |
$row[] = $view->type; |
350 | 357 |
$row[] = $view->disabled ? dt('Disabled') : dt('Enabled'); |
351 | 358 |
$row[] = $view->tag; |
352 | 359 |
|
353 |
// place the row in the appropiate array,
|
|
354 |
// so we can have disabled views at the bottom
|
|
355 |
if($view->disabled) { |
|
360 |
// Place the row in the appropiate array so we can have disabled views at
|
|
361 |
// the bottom.
|
|
362 |
if ($view->disabled) {
|
|
356 | 363 |
$disabled_views[] = $row; |
357 |
}
|
|
358 |
else{ |
|
364 |
} |
|
365 |
else {
|
|
359 | 366 |
$enabled_views[] = $row; |
360 | 367 |
} |
361 | 368 |
unset($row); |
362 | 369 |
|
363 |
// gather some statistics
|
|
364 |
switch($view->type) { |
|
370 |
// Gather some statistics.
|
|
371 |
switch ($view->type) {
|
|
365 | 372 |
case dt('Normal'): |
366 | 373 |
$indb++; |
367 | 374 |
break; |
... | ... | |
379 | 386 |
|
380 | 387 |
$disabled = count($disabled_views); |
381 | 388 |
|
382 |
// sort alphabeticaly
|
|
389 |
// Sort alphabeticaly.
|
|
383 | 390 |
asort($disabled_views); |
384 | 391 |
asort($enabled_views); |
385 | 392 |
|
386 |
// if options were used
|
|
393 |
// If options were used.
|
|
387 | 394 |
$summary = ""; |
388 | 395 |
if ($with_name || $with_tags || $with_status || $with_type) { |
389 | 396 |
$summary = "Views"; |
... | ... | |
412 | 419 |
drush_print($summary . "\n"); |
413 | 420 |
} |
414 | 421 |
|
415 |
// print all rows as a table
|
|
422 |
// Print all rows as a table.
|
|
416 | 423 |
if ($total > 0) { |
417 | 424 |
$rows = array_merge($enabled_views, $disabled_views); |
418 |
// put the headers as first row
|
|
425 |
// Put the headers as first row.
|
|
419 | 426 |
array_unshift($rows, $header); |
420 | 427 |
|
421 | 428 |
drush_print_table($rows, TRUE); |
422 | 429 |
} |
423 | 430 |
|
424 |
// print the statistics messages
|
|
431 |
// Print the statistics messages.
|
|
425 | 432 |
drush_print(dt("A total of @total views were found in this Drupal installation:", array('@total' => $total))); |
426 |
drush_print(dt(" @indb views reside only in the database", array('@indb' => $indb )));
|
|
433 |
drush_print(dt(" @indb views reside only in the database", array('@indb' => $indb))); |
|
427 | 434 |
drush_print(dt(" @over views are overridden", array('@over' => $overridden))); |
428 | 435 |
drush_print(dt(" @incode views are in their default state", array('@incode' => $incode))); |
429 | 436 |
drush_print(dt(" @dis views are disabled\n", array('@dis' => $disabled))); |
430 | 437 |
} |
431 | 438 |
|
439 |
/** |
|
440 |
* Analyze all installed views. |
|
441 |
*/ |
|
432 | 442 |
function drush_views_analyze() { |
433 | 443 |
views_include('analyze'); |
434 | 444 |
$messages_count = 0; |
... | ... | |
440 | 450 |
drush_print($view_name); |
441 | 451 |
foreach ($messages as $message) { |
442 | 452 |
$messages_count++; |
443 |
drush_print($message['type'] .': '. $message['message'], 2);
|
|
453 |
drush_print($message['type'] . ': ' . $message['message'], 2);
|
|
444 | 454 |
} |
445 | 455 |
} |
446 | 456 |
} |
... | ... | |
448 | 458 |
} |
449 | 459 |
|
450 | 460 |
/** |
451 |
* Enables views |
|
461 |
* Enables views.
|
|
452 | 462 |
*/ |
453 | 463 |
function drush_views_enable() { |
454 | 464 |
$viewnames = _convert_csv_to_array(func_get_args()); |
... | ... | |
460 | 470 |
} |
461 | 471 |
|
462 | 472 |
/** |
Formats disponibles : Unified diff
Weekly update of contrib modules