@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * Callback admin/boinc/import/settings |
6 | 6 | */ |
7 | 7 | function boincimport_admin_settings() { |
8 | - global $conf ; |
|
8 | + global $conf; |
|
9 | 9 | global $db_url; |
10 | 10 | global $base_url; |
11 | 11 | $stage = variable_get('boincimport_config_stage', 0); |
@@ -27,17 +27,17 @@ discard block |
||
27 | 27 | |
28 | 28 | $output = ''; |
29 | 29 | if (!variable_get('boincimport_tested', 0)) { |
30 | - $form['test']['#collapsed']= FALSE; |
|
30 | + $form['test']['#collapsed'] = FALSE; |
|
31 | 31 | $output = '<span class="marker">'; |
32 | 32 | $ready_for_migration = 0; |
33 | 33 | } |
34 | - $output .= '<p>' . t('The migration will modify and even destroy some data. You |
|
34 | + $output .= '<p>'.t('The migration will modify and even destroy some data. You |
|
35 | 35 | must test this module on a copy of your data first, several times if necessary. |
36 | 36 | Only use this module on your live data when you are familiar with the procedure |
37 | - and you\'re confident everything will run smoothly.') . '</p><p>' . t('Also, you |
|
37 | + and you\'re confident everything will run smoothly.').'</p><p>'.t('Also, you |
|
38 | 38 | should make a full backup of your database just prior to performing the |
39 | 39 | migration on the live data. It is better to turn off both the BOINC site and the |
40 | - Drupal site during the migration.') . '</p>'; |
|
40 | + Drupal site during the migration.').'</p>'; |
|
41 | 41 | if (!variable_get('boincimport_tested', 0)) { |
42 | 42 | $output .= '</span>'; |
43 | 43 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | // Where is BOINC data? |
57 | 57 | $pre = variable_get('boincimport_table_prefix', ''); |
58 | - $tables = array($pre .'forum', $pre .'post', $pre .'thread', $pre .'user'); |
|
58 | + $tables = array($pre.'forum', $pre.'post', $pre.'thread', $pre.'user'); |
|
59 | 59 | $db = (is_array($db_url) AND isset($db_url['boinc'])) ? 'boinc' : 'default'; |
60 | 60 | $result = _boincimport_check_tables($tables, $db, 0); |
61 | 61 | |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | $default_db_url = is_array($db_url) ? end($db_url) : $db_url; |
80 | 80 | $url = variable_get('boincimport_db_url', $default_db_url); |
81 | 81 | if (!preg_match('{(mysql|pgsql):\/\/(.+):(.*?)@(.+)/(\w+)}i', $url)) { |
82 | - $output = '<p class="marker">'. t('Set the address of the BOINC database |
|
83 | - according to the following format:') . '<br /><pre> |
|
82 | + $output = '<p class="marker">'.t('Set the address of the BOINC database |
|
83 | + according to the following format:').'<br /><pre> |
|
84 | 84 | mysql://boinc_username:boinc_password@localhost/boinc_database |
85 | 85 | </pre></p>'; |
86 | 86 | $ready_for_migration = 0; |
@@ -98,13 +98,13 @@ discard block |
||
98 | 98 | ); |
99 | 99 | } |
100 | 100 | |
101 | - $output = '<p>' . t('Note that due to a limitation within Drupal core, we cannot |
|
101 | + $output = '<p>'.t('Note that due to a limitation within Drupal core, we cannot |
|
102 | 102 | import messages from one database type to another database type. E.g, we |
103 | 103 | cannot import BOINC from a myqsl DB, to a postgresql DB. You need to import |
104 | 104 | the data into the same type of database first (import all the BOINC data, as is, |
105 | - from mysql to postgresql).') . '</p><p>' . t('If both BOINC and Drupal are on |
|
105 | + from mysql to postgresql).').'</p><p>'.t('If both BOINC and Drupal are on |
|
106 | 106 | postgresql, see !this_issue.', array('!this_issue' => l(t('this issue'), |
107 | - 'http://drupal.org/node/64877', array('attributes' => array('target' => '_blank'))))) . '</p>'; |
|
107 | + 'http://drupal.org/node/64877', array('attributes' => array('target' => '_blank'))))).'</p>'; |
|
108 | 108 | $form['boinc_data']['note'] = array('#value' => $output); |
109 | 109 | |
110 | 110 | // BOINC table prefix |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $output = $result['html']; |
122 | 122 | if ($result['result'] != 1) { |
123 | 123 | $ready_for_migration = 0; |
124 | - $form['boinc_data']['#collapsed']= FALSE; |
|
124 | + $form['boinc_data']['#collapsed'] = FALSE; |
|
125 | 125 | $output .= '<span class="marker">'; |
126 | 126 | $output .= t('Some tables couldn\'t be found. Are the database settings correct? |
127 | 127 | Please correct the errors so that the BOINC tables can be accessed.'); |
@@ -169,15 +169,15 @@ discard block |
||
169 | 169 | '#collapsible' => TRUE, |
170 | 170 | '#collapsed' => TRUE |
171 | 171 | ); |
172 | - $output = '<p>'. t('Select which !input_format should be used for the imported |
|
172 | + $output = '<p>'.t('Select which !input_format should be used for the imported |
|
173 | 173 | messages. It is highly-recommended that this value be left as it is, as the |
174 | 174 | Full HTML and PHP code formats can be very dangerous!', |
175 | - array('!input_format' => l(t('input format'), 'admin/settings/filters'))) .'</p>'; |
|
175 | + array('!input_format' => l(t('input format'), 'admin/settings/filters'))).'</p>'; |
|
176 | 176 | $form['input']['intro'] = array('#value' => $output); |
177 | 177 | |
178 | 178 | $formats = db_query('SELECT format, name FROM {filter_formats}'); |
179 | 179 | while ($format = db_fetch_array($formats)) { |
180 | - $input_formats[$format['format']]= $format['name']; |
|
180 | + $input_formats[$format['format']] = $format['name']; |
|
181 | 181 | } |
182 | 182 | |
183 | 183 | // By default, use the format named "Rich text"; fall back to Filtered HTML |
@@ -194,10 +194,10 @@ discard block |
||
194 | 194 | ); |
195 | 195 | if (!$input_format) { |
196 | 196 | $ready_for_migration = 0; |
197 | - $form['input']['#collapsed']= FALSE; |
|
197 | + $form['input']['#collapsed'] = FALSE; |
|
198 | 198 | } |
199 | - $output = '<p><em>'. t('This setting will be applied to all posts and private |
|
200 | - messages.') .'</em></p>'; |
|
199 | + $output = '<p><em>'.t('This setting will be applied to all posts and private |
|
200 | + messages.').'</em></p>'; |
|
201 | 201 | $form['input']['result'] = array('#value' => $output); |
202 | 202 | |
203 | 203 | // BBcode settings |
@@ -208,23 +208,23 @@ discard block |
||
208 | 208 | '#collapsed' => TRUE, |
209 | 209 | ); |
210 | 210 | |
211 | - $output = '<p>' . t('BOINC posts are often formatted in BBcode. During the |
|
212 | - import process, BBcode can be handled in two diffent ways') . ':</p>'; |
|
213 | - $output .= '<ul><li>' . t('Leave the BBcode as is and use the !bbcode_module |
|
211 | + $output = '<p>'.t('BOINC posts are often formatted in BBcode. During the |
|
212 | + import process, BBcode can be handled in two diffent ways').':</p>'; |
|
213 | + $output .= '<ul><li>'.t('Leave the BBcode as is and use the !bbcode_module |
|
214 | 214 | after the migration to filter the imported posts. In this case, the module |
215 | 215 | is not required during the migration, but will need to be installed and |
216 | 216 | configured later.', |
217 | 217 | array('!bbcode_module' => l(t('bbcode module'), 'http://drupal.org/project/bbcode', |
218 | - array('attributes' => array('target' => '_blank'))))) . '</li>'; |
|
219 | - $output .= '<li>' . t('Filter the BBcode now and replace it with plain HTML. |
|
218 | + array('attributes' => array('target' => '_blank'))))).'</li>'; |
|
219 | + $output .= '<li>'.t('Filter the BBcode now and replace it with plain HTML. |
|
220 | 220 | The BBcode module will be required during the migration process, but can |
221 | - be disabled afterwards.') . '</li></ul>'; |
|
222 | - $output .= '<p>' . t('An appropriate input filter should be chosen, as well, |
|
221 | + be disabled afterwards.').'</li></ul>'; |
|
222 | + $output .= '<p>'.t('An appropriate input filter should be chosen, as well, |
|
223 | 223 | as it will affect how the post is displayed. For example, if BBcode is |
224 | 224 | removed and replaced by HTML, some HTML tags will be stripped by the |
225 | 225 | "Filtered HTML" input format unless they are first added to the list of |
226 | 226 | allowed tags in that format. See the !input_formats page.', |
227 | - array('!input_formats' => l(t('input formats'), 'admin/settings/filters'))) . '</p>'; |
|
227 | + array('!input_formats' => l(t('input formats'), 'admin/settings/filters'))).'</p>'; |
|
228 | 228 | |
229 | 229 | $form['bbcode']['intro'] = array('#value' => $output); |
230 | 230 | $form['bbcode']['boincimport_bbcode'] = array( |
@@ -254,28 +254,28 @@ discard block |
||
254 | 254 | $result = db_query($sql, $input_format); |
255 | 255 | if (!db_result($result)) { |
256 | 256 | $form['bbcode']['#collapsed'] = FALSE; |
257 | - $output .= '<p class="marker">'. t('You need to !enable_bbcode_input and |
|
257 | + $output .= '<p class="marker">'.t('You need to !enable_bbcode_input and |
|
258 | 258 | then !configure_bbcode_options', array( |
259 | 259 | '!enable_bbcode_input' => l(t('enable BBcode in the selected input format'), "admin/settings/filters/{$input_format}"), |
260 | - '!configure_bbcode_options' => l(t('configure BBcode options'), "admin/settings/filters/{$input_format}/configure"))) .'</p>'; |
|
260 | + '!configure_bbcode_options' => l(t('configure BBcode options'), "admin/settings/filters/{$input_format}/configure"))).'</p>'; |
|
261 | 261 | } |
262 | - $output .= '<p>'. t('For best results, !disable_all_options', |
|
263 | - array('!disable_all_options' => l(t('all four BBcode configure options should be disabled'), "admin/settings/filters/{$input_format}/configure"))) . '.</p>'; |
|
262 | + $output .= '<p>'.t('For best results, !disable_all_options', |
|
263 | + array('!disable_all_options' => l(t('all four BBcode configure options should be disabled'), "admin/settings/filters/{$input_format}/configure"))).'.</p>'; |
|
264 | 264 | } else { |
265 | 265 | if ($bbcode_disabled) { |
266 | 266 | $form['bbcode']['#collapsed'] = FALSE; |
267 | - $output .= '<p>'. t('The !bbcode_module is recommended, but not required. |
|
267 | + $output .= '<p>'.t('The !bbcode_module is recommended, but not required. |
|
268 | 268 | You may !enable_bbcode after having installed it.', array( |
269 | 269 | '!bbcode_module' => l(t('bbcode module'), 'http://drupal.org/project/bbcode', array('attributes' => array('target' => '_blank'))), |
270 | - '!enable_bbcode' => l(t('enable the bbcode module'), 'admin/build/modules'))) .'</p>'; |
|
270 | + '!enable_bbcode' => l(t('enable the bbcode module'), 'admin/build/modules'))).'</p>'; |
|
271 | 271 | } |
272 | - $output .= '<p>' . t('Don\'t forget to !enable_bbcode_input and then !configure_bbcode_options.', array( |
|
272 | + $output .= '<p>'.t('Don\'t forget to !enable_bbcode_input and then !configure_bbcode_options.', array( |
|
273 | 273 | '!enable_bbcode_input' => l(t('enable BBcode in the selected input format'), "admin/settings/filters/{$input_format}"), |
274 | - '!configure_bbcode_options' => l(t('configure BBcode options'), "admin/settings/filters/{$input_format}/configure"))) . '</p>'; |
|
275 | - $output .= '<p>' . t('You may want to enable it for other input formats, too.') . '</p>'; |
|
274 | + '!configure_bbcode_options' => l(t('configure BBcode options'), "admin/settings/filters/{$input_format}/configure"))).'</p>'; |
|
275 | + $output .= '<p>'.t('You may want to enable it for other input formats, too.').'</p>'; |
|
276 | 276 | } |
277 | - $output .= '<p><em>'. t('This setting will be applied to all posts, private |
|
278 | - messages and the users\' signature.') .'</em></p>'; |
|
277 | + $output .= '<p><em>'.t('This setting will be applied to all posts, private |
|
278 | + messages and the users\' signature.').'</em></p>'; |
|
279 | 279 | |
280 | 280 | $form['bbcode']['result'] = array('#value' => $output); |
281 | 281 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | '#collapsed' => TRUE, |
288 | 288 | ); |
289 | 289 | if (!variable_get('boincimport_base_url_boinc', 0)) { |
290 | - $form['url_transforms']['#collapsed']= FALSE; |
|
290 | + $form['url_transforms']['#collapsed'] = FALSE; |
|
291 | 291 | $output = '<span class="marker">'; |
292 | 292 | $ready_for_migration = 0; |
293 | 293 | } |
@@ -320,11 +320,11 @@ discard block |
||
320 | 320 | ); |
321 | 321 | variable_set('boincimport_ready', $ready_for_migration); |
322 | 322 | if ($ready_for_migration) { |
323 | - $output = '<p>'. t('Check the settings above one more time. If everything |
|
324 | - is ok, !proceed.', array('!proceed' => l(t('you can now proceed with the migration'), 'admin/boinc/import/process'))) .'</p>'; |
|
323 | + $output = '<p>'.t('Check the settings above one more time. If everything |
|
324 | + is ok, !proceed.', array('!proceed' => l(t('you can now proceed with the migration'), 'admin/boinc/import/process'))).'</p>'; |
|
325 | 325 | } else { |
326 | - $output = '<p class="marker">'. t('You are not ready for the migration yet. |
|
327 | - Please check the settings above.') .'</p>'; |
|
326 | + $output = '<p class="marker">'.t('You are not ready for the migration yet. |
|
327 | + Please check the settings above.').'</p>'; |
|
328 | 328 | } |
329 | 329 | |
330 | 330 | $form['migration']['info'] = array('#value' => $output); |
@@ -335,23 +335,23 @@ discard block |
||
335 | 335 | * Callback admin/boinc/import/post_configuration |
336 | 336 | */ |
337 | 337 | function boincimport_post_configuration() { |
338 | - $output = '<p>'. t('This page will help to tie up any loose ends following |
|
338 | + $output = '<p>'.t('This page will help to tie up any loose ends following |
|
339 | 339 | the BOINC data import process. Before continuing, it may be best to have |
340 | - already:') .'</p>'; |
|
340 | + already:').'</p>'; |
|
341 | 341 | $output .= '<ul>'; |
342 | - $output .= '<li>'. t('Imported users, teams, and forums using the BOINC |
|
343 | - import module') .'</li>'; |
|
344 | - $output .= '<li>'. t('Imported any additional data using add on modules if |
|
345 | - available.') .'</li>'; |
|
342 | + $output .= '<li>'.t('Imported users, teams, and forums using the BOINC |
|
343 | + import module').'</li>'; |
|
344 | + $output .= '<li>'.t('Imported any additional data using add on modules if |
|
345 | + available.').'</li>'; |
|
346 | 346 | $output .= '</ul>'; |
347 | 347 | //User Set up |
348 | - $output .= '<h2>'. t('User settings') .'</h2>'; |
|
349 | - $output .= '<p>'. t('Make sure your !user_settings are correct. Specifically, |
|
348 | + $output .= '<h2>'.t('User settings').'</h2>'; |
|
349 | + $output .= '<p>'.t('Make sure your !user_settings are correct. Specifically, |
|
350 | 350 | you can enable or disable signatures there. ', array( |
351 | 351 | '!user_settings' => l(t('user settings'), 'admin/user/settings') |
352 | - )) .'</p>'; |
|
353 | - $output .= '<p>' . t('Note that avatar/picture support is not tied to user |
|
354 | - settings Picture support at this time.') . '</p>'; |
|
352 | + )).'</p>'; |
|
353 | + $output .= '<p>'.t('Note that avatar/picture support is not tied to user |
|
354 | + settings Picture support at this time.').'</p>'; |
|
355 | 355 | /*$output .= '<p>' . t('In order to activate avatar/picture support, you need to |
356 | 356 | enable pictures on this page and also:') . '</p>'; |
357 | 357 | $output .= '<ul>'; |
@@ -366,15 +366,15 @@ discard block |
||
366 | 366 | $output .= '</ul>'; */ |
367 | 367 | |
368 | 368 | // Forum Set up |
369 | - $output .= '<h2>'. t('Forum settings') .'</h2>'; |
|
370 | - $output .= '<p>'. t('Check any additional changes to make on the |
|
369 | + $output .= '<h2>'.t('Forum settings').'</h2>'; |
|
370 | + $output .= '<p>'.t('Check any additional changes to make on the |
|
371 | 371 | !forum_settings page.', array( |
372 | 372 | '!forum_settings' => l(t('forum settings'), 'admin/content/forum/settings') |
373 | - )) .'</p>'; |
|
374 | - $output .= '<p>'. t('It also may be a good idea to look at the !forum_list to |
|
373 | + )).'</p>'; |
|
374 | + $output .= '<p>'.t('It also may be a good idea to look at the !forum_list to |
|
375 | 375 | verify that all necessary containers and forums are in place.', array( |
376 | 376 | '!forum_list' => l(t('forum list'), 'admin/content/forum') |
377 | - )) .'</p>'; |
|
377 | + )).'</p>'; |
|
378 | 378 | /*$output .= '<p>'. t('If need be, set up the private forums as explained in the |
379 | 379 | !documentation.', array( |
380 | 380 | '!documentation' => l(t('documentation'), 'http://drupal.org/node/58969', array('attributes' => array('target' => '_blank'))) |
@@ -390,17 +390,17 @@ discard block |
||
390 | 390 | // BBcode |
391 | 391 | $bbcode = variable_get('boincimport_bbcode', 0); |
392 | 392 | if ($bbcode) { |
393 | - $output .= '<h2>'. t('Remove BBcode module') .'</h2>'; |
|
394 | - $output .= '<p>'. t('The BBcode has been cleaned from the posts. You shouldn\'t |
|
395 | - need the bbcode module anymore. You can disable it.') .'</p>'; |
|
393 | + $output .= '<h2>'.t('Remove BBcode module').'</h2>'; |
|
394 | + $output .= '<p>'.t('The BBcode has been cleaned from the posts. You shouldn\'t |
|
395 | + need the bbcode module anymore. You can disable it.').'</p>'; |
|
396 | 396 | } else { |
397 | - $output .= '<h2>'. t('Configure BBcode module') .'</h2>'; |
|
398 | - $output .= '<p>'. t('Most likely, there are many BOINC forum postings |
|
397 | + $output .= '<h2>'.t('Configure BBcode module').'</h2>'; |
|
398 | + $output .= '<p>'.t('Most likely, there are many BOINC forum postings |
|
399 | 399 | formatted in BBcode. It would be a good idea to verify that BBcode is |
400 | 400 | being formatted correctly in the imported posts. Have a look around |
401 | 401 | !the_forum.', array( |
402 | 402 | '!the_forum' => l(t('the forum'), 'community') |
403 | - )) . '</p>'; |
|
403 | + )).'</p>'; |
|
404 | 404 | } |
405 | 405 | |
406 | 406 | return $output; |
@@ -445,11 +445,11 @@ discard block |
||
445 | 445 | $output .= '</ol>'; |
446 | 446 | |
447 | 447 | // process will die() if the link to the BOINC database is wrong: |
448 | - $output .= '<p>'. t('If the BOINC data is in another database, but you made a |
|
448 | + $output .= '<p>'.t('If the BOINC data is in another database, but you made a |
|
449 | 449 | mistake while setting up the data base url, you may be unable to access the |
450 | 450 | setting page due to some limitations of the core of Drupal. !reset_db_url.', array( |
451 | 451 | '!reset_db_url' => l(t('Click here to reset the database url'), 'admin/boinc/import/reset') |
452 | - )) .'</p>'; |
|
452 | + )).'</p>'; |
|
453 | 453 | |
454 | 454 | return $output; |
455 | 455 | } |
@@ -301,7 +301,7 @@ |
||
301 | 301 | |
302 | 302 | if ($response == '404 NOT FOUND') { |
303 | 303 | form_set_error( |
304 | - 'boinc_translate_transifex_' . ($project == $boinc_name ? 'standard' : 'project') . '_resources', |
|
304 | + 'boinc_translate_transifex_'.($project == $boinc_name ? 'standard' : 'project').'_resources', |
|
305 | 305 | t('Resource %name not found in %project.', |
306 | 306 | array( |
307 | 307 | '%name' => $resource, |
@@ -274,7 +274,7 @@ |
||
274 | 274 | function boincuser_views_handlers() { |
275 | 275 | return array( |
276 | 276 | 'info' => array( |
277 | - 'path' => drupal_get_path('module', 'boincuser') . '/views', |
|
277 | + 'path' => drupal_get_path('module', 'boincuser').'/views', |
|
278 | 278 | ), |
279 | 279 | 'handlers' => array( |
280 | 280 | 'views_handler_argument_boincuser_id' => array( |
@@ -2,7 +2,7 @@ |
||
2 | 2 | // $Id: theme-settings.php,v 1.7 2008/09/11 09:36:50 johnalbin Exp $ |
3 | 3 | |
4 | 4 | // Include the definition of zen_settings() and zen_theme_get_default_settings(). |
5 | -include_once './' . drupal_get_path('theme', 'zen') . '/theme-settings.php'; |
|
5 | +include_once './'.drupal_get_path('theme', 'zen').'/theme-settings.php'; |
|
6 | 6 | |
7 | 7 | |
8 | 8 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | // Render the stylesheets to link elements. |
65 | 65 | $conditional_styles = $conditional_styles_rtl = ''; |
66 | 66 | if (!empty($stylesheets)) { |
67 | - $query_string = '?'. substr(variable_get('css_js_query_string', '0'), 0, 1); |
|
67 | + $query_string = '?'.substr(variable_get('css_js_query_string', '0'), 0, 1); |
|
68 | 68 | $base_path = base_path(); |
69 | 69 | foreach ($stylesheets AS $condition => $css) { |
70 | 70 | // Each condition requires its own set of links. |
@@ -92,17 +92,17 @@ discard block |
||
92 | 92 | // Save the stylesheets for later retrieval. |
93 | 93 | if ($conditional_styles) { |
94 | 94 | if (db_is_active()) { |
95 | - variable_set('conditional_styles_' . $theme, $conditional_styles); |
|
96 | - variable_set('conditional_styles_' . $theme . '_rtl', $conditional_styles_rtl); |
|
95 | + variable_set('conditional_styles_'.$theme, $conditional_styles); |
|
96 | + variable_set('conditional_styles_'.$theme.'_rtl', $conditional_styles_rtl); |
|
97 | 97 | } |
98 | 98 | else { |
99 | - $GLOBALS['conf']['conditional_styles_' . $theme] = $conditional_styles; |
|
100 | - $GLOBALS['conf']['conditional_styles_' . $theme . '_rtl'] = $conditional_styles_rtl; |
|
99 | + $GLOBALS['conf']['conditional_styles_'.$theme] = $conditional_styles; |
|
100 | + $GLOBALS['conf']['conditional_styles_'.$theme.'_rtl'] = $conditional_styles_rtl; |
|
101 | 101 | } |
102 | 102 | } |
103 | 103 | elseif (db_is_active()) { |
104 | - variable_del('conditional_styles_' . $theme); |
|
105 | - variable_del('conditional_styles_' . $theme . '_rtl'); |
|
104 | + variable_del('conditional_styles_'.$theme); |
|
105 | + variable_del('conditional_styles_'.$theme.'_rtl'); |
|
106 | 106 | } |
107 | 107 | } |
108 | 108 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | // Display 'edit block' for custom blocks. |
19 | 19 | if ($block->module == 'block') { |
20 | - $vars['edit_links_array']['block-edit'] = l('<span>' . t('edit block') . '</span>', 'admin/build/block/configure/' . $block->module . '/' . $block->delta, |
|
20 | + $vars['edit_links_array']['block-edit'] = l('<span>'.t('edit block').'</span>', 'admin/build/block/configure/'.$block->module.'/'.$block->delta, |
|
21 | 21 | array( |
22 | 22 | 'attributes' => array( |
23 | 23 | 'title' => t('edit the content of this block'), |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } |
31 | 31 | // Display 'configure' for other blocks. |
32 | 32 | else { |
33 | - $vars['edit_links_array']['block-config'] = l('<span>' . t('configure') . '</span>', 'admin/build/block/configure/' . $block->module . '/' . $block->delta, |
|
33 | + $vars['edit_links_array']['block-config'] = l('<span>'.t('configure').'</span>', 'admin/build/block/configure/'.$block->module.'/'.$block->delta, |
|
34 | 34 | array( |
35 | 35 | 'attributes' => array( |
36 | 36 | 'title' => t('configure this block'), |
@@ -45,14 +45,14 @@ discard block |
||
45 | 45 | // Display 'edit view' for Views blocks. |
46 | 46 | if ($block->module == 'views' && user_access('administer views')) { |
47 | 47 | list($view_name, $view_block) = explode('-block', $block->delta); |
48 | - $vars['edit_links_array']['block-edit-view'] = l('<span>' . t('edit view') . '</span>', 'admin/build/views/edit/' . $view_name, |
|
48 | + $vars['edit_links_array']['block-edit-view'] = l('<span>'.t('edit view').'</span>', 'admin/build/views/edit/'.$view_name, |
|
49 | 49 | array( |
50 | 50 | 'attributes' => array( |
51 | 51 | 'title' => t('edit the view that defines this block'), |
52 | 52 | 'class' => 'block-edit-view', |
53 | 53 | ), |
54 | 54 | 'query' => drupal_get_destination(), |
55 | - 'fragment' => 'views-tab-block' . $view_block, |
|
55 | + 'fragment' => 'views-tab-block'.$view_block, |
|
56 | 56 | 'html' => TRUE, |
57 | 57 | ) |
58 | 58 | ); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | // Display 'edit menu' for Menu blocks. |
61 | 61 | elseif (($block->module == 'menu' || ($block->module == 'user' && $block->delta == 1)) && user_access('administer menu')) { |
62 | 62 | $menu_name = ($block->module == 'user') ? 'navigation' : $block->delta; |
63 | - $vars['edit_links_array']['block-edit-menu'] = l('<span>' . t('edit menu') . '</span>', 'admin/build/menu-customize/' . $menu_name, |
|
63 | + $vars['edit_links_array']['block-edit-menu'] = l('<span>'.t('edit menu').'</span>', 'admin/build/menu-customize/'.$menu_name, |
|
64 | 64 | array( |
65 | 65 | 'attributes' => array( |
66 | 66 | 'title' => t('edit the menu that defines this block'), |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | } |
74 | 74 | // Display 'edit menu' for Menu block blocks. |
75 | 75 | elseif ($block->module == 'menu_block' && user_access('administer menu')) { |
76 | - list($menu_name, ) = split(':', variable_get("menu_block_{$block->delta}_parent", 'navigation:0')); |
|
77 | - $vars['edit_links_array']['block-edit-menu'] = l('<span>' . t('edit menu') . '</span>', 'admin/build/menu-customize/' . $menu_name, |
|
76 | + list($menu_name,) = split(':', variable_get("menu_block_{$block->delta}_parent", 'navigation:0')); |
|
77 | + $vars['edit_links_array']['block-edit-menu'] = l('<span>'.t('edit menu').'</span>', 'admin/build/menu-customize/'.$menu_name, |
|
78 | 78 | array( |
79 | 79 | 'attributes' => array( |
80 | 80 | 'title' => t('edit the menu that defines this block'), |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | function _zen_theme(&$existing, $type, $theme, $path) { |
13 | 13 | // Compute the conditional stylesheets. |
14 | 14 | if (!module_exists('conditional_styles')) { |
15 | - include_once './' . _zen_path() . '/zen-internals/template.conditional-styles.inc'; |
|
15 | + include_once './'._zen_path().'/zen-internals/template.conditional-styles.inc'; |
|
16 | 16 | // _conditional_styles_theme() only needs to be run once. |
17 | 17 | if ($theme == 'zen') { |
18 | 18 | _conditional_styles_theme($existing, $type, $theme, $path); |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | // If we are auto-rebuilding the theme registry, warn about the feature. |
27 | 27 | // Always display the warning in the admin section, otherwise limit to three |
28 | 28 | // warnings per hour. |
29 | - if (function_exists('user_access') && user_access('administer site configuration') && theme_get_setting('zen_rebuild_registry') && $theme == $GLOBALS['theme'] && (arg(0) == 'admin' || flood_is_allowed($GLOBALS['theme'] . '_rebuild_registry_warning', 3))) { |
|
30 | - flood_register_event($GLOBALS['theme'] . '_rebuild_registry_warning'); |
|
31 | - drupal_set_message(t('For easier theme development, the theme registry is being rebuilt on every page request. It is <em>extremely</em> important to <a href="!link">turn off this feature</a> on production websites.', array('!link' => url('admin/build/themes/settings/' . $GLOBALS['theme']))), 'warning', FALSE); |
|
29 | + if (function_exists('user_access') && user_access('administer site configuration') && theme_get_setting('zen_rebuild_registry') && $theme == $GLOBALS['theme'] && (arg(0) == 'admin' || flood_is_allowed($GLOBALS['theme'].'_rebuild_registry_warning', 3))) { |
|
30 | + flood_register_event($GLOBALS['theme'].'_rebuild_registry_warning'); |
|
31 | + drupal_set_message(t('For easier theme development, the theme registry is being rebuilt on every page request. It is <em>extremely</em> important to <a href="!link">turn off this feature</a> on production websites.', array('!link' => url('admin/build/themes/settings/'.$GLOBALS['theme']))), 'warning', FALSE); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | // Keep track of all the base themes. |
@@ -40,27 +40,27 @@ discard block |
||
40 | 40 | foreach (array_keys($existing) as $hook) { |
41 | 41 | // Normally, preprocess functions are added to the registry after |
42 | 42 | // HOOK_theme() returns, but if we add them first, they won't be re-added. |
43 | - if (function_exists($theme . '_preprocess')) { |
|
44 | - $existing[$hook]['preprocess functions'][] = $theme . '_preprocess'; |
|
43 | + if (function_exists($theme.'_preprocess')) { |
|
44 | + $existing[$hook]['preprocess functions'][] = $theme.'_preprocess'; |
|
45 | 45 | } |
46 | - if (function_exists($theme . '_preprocess_' . $hook)) { |
|
47 | - $existing[$hook]['preprocess functions'][] = $theme . '_preprocess_' . $hook; |
|
46 | + if (function_exists($theme.'_preprocess_'.$hook)) { |
|
47 | + $existing[$hook]['preprocess functions'][] = $theme.'_preprocess_'.$hook; |
|
48 | 48 | } |
49 | 49 | // Add base theme process functions. |
50 | 50 | foreach ($base_themes as $base_theme) { |
51 | - if (function_exists($base_theme . '_process')) { |
|
52 | - $existing[$hook]['preprocess functions'][] = $base_theme . '_process'; |
|
51 | + if (function_exists($base_theme.'_process')) { |
|
52 | + $existing[$hook]['preprocess functions'][] = $base_theme.'_process'; |
|
53 | 53 | } |
54 | - if (function_exists($base_theme . '_process_' . $hook)) { |
|
55 | - $existing[$hook]['preprocess functions'][] = $base_theme . '_process_' . $hook; |
|
54 | + if (function_exists($base_theme.'_process_'.$hook)) { |
|
55 | + $existing[$hook]['preprocess functions'][] = $base_theme.'_process_'.$hook; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | // Add the theme process functions. |
59 | - if (function_exists($theme . '_process')) { |
|
60 | - $existing[$hook]['preprocess functions'][] = $theme . '_process'; |
|
59 | + if (function_exists($theme.'_process')) { |
|
60 | + $existing[$hook]['preprocess functions'][] = $theme.'_process'; |
|
61 | 61 | } |
62 | - if (function_exists($theme . '_process_' . $hook)) { |
|
63 | - $existing[$hook]['preprocess functions'][] = $theme . '_process_' . $hook; |
|
62 | + if (function_exists($theme.'_process_'.$hook)) { |
|
63 | + $existing[$hook]['preprocess functions'][] = $theme.'_process_'.$hook; |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | 'region' => array( |
79 | 79 | 'arguments' => array('elements' => NULL), |
80 | 80 | 'pattern' => 'region_', |
81 | - 'path' => drupal_get_path('theme', 'zen') . '/templates', |
|
81 | + 'path' => drupal_get_path('theme', 'zen').'/templates', |
|
82 | 82 | 'template' => 'region', |
83 | 83 | // drupal_find_theme_templates() requires this, so manually add it. |
84 | 84 | 'include files' => array(), |
@@ -118,13 +118,13 @@ discard block |
||
118 | 118 | |
119 | 119 | if (!module_exists('domain_theme') && !empty($defaults)) { |
120 | 120 | // Merge the defaults with the theme settings saved in the database. |
121 | - $settings = array_merge($defaults, variable_get('theme_'. $theme .'_settings', array())); |
|
121 | + $settings = array_merge($defaults, variable_get('theme_'.$theme.'_settings', array())); |
|
122 | 122 | // Save the settings back to the database. |
123 | 123 | if (db_is_active()) { |
124 | - variable_set('theme_'. $theme .'_settings', $settings); |
|
124 | + variable_set('theme_'.$theme.'_settings', $settings); |
|
125 | 125 | } |
126 | 126 | else { |
127 | - $GLOBALS['conf']['theme_'. $theme .'_settings'] = $settings; |
|
127 | + $GLOBALS['conf']['theme_'.$theme.'_settings'] = $settings; |
|
128 | 128 | } |
129 | 129 | // If the active theme has been loaded, force refresh of Drupal internals. |
130 | 130 | if (!empty($GLOBALS['theme_key'])) { |
@@ -14,25 +14,25 @@ |
||
14 | 14 | * If the user is silly and enables Zen as the theme, manually add some stylesheets. |
15 | 15 | */ |
16 | 16 | function _zen_preprocess_page(&$vars, $hook) { |
17 | - $directory = _zen_path() . '/zen-internals/css'; |
|
17 | + $directory = _zen_path().'/zen-internals/css'; |
|
18 | 18 | |
19 | 19 | // Add default styles. |
20 | 20 | if (theme_get_setting('zen_layout') == 'zen-columns-fixed') { |
21 | - drupal_add_css($directory . '/zen-fixed.css', 'theme', 'all'); |
|
21 | + drupal_add_css($directory.'/zen-fixed.css', 'theme', 'all'); |
|
22 | 22 | } |
23 | 23 | else { |
24 | - drupal_add_css($directory . '/zen-liquid.css', 'theme', 'all'); |
|
24 | + drupal_add_css($directory.'/zen-liquid.css', 'theme', 'all'); |
|
25 | 25 | } |
26 | 26 | // Add print styles. |
27 | - drupal_add_css($directory . '/print.css', 'theme', 'print'); |
|
27 | + drupal_add_css($directory.'/print.css', 'theme', 'print'); |
|
28 | 28 | |
29 | 29 | // Regenerate the stylesheets. |
30 | 30 | $vars['css'] = drupal_add_css(); |
31 | 31 | $vars['styles'] = drupal_get_css(); |
32 | 32 | |
33 | 33 | // Add IE styles. |
34 | - $query_string = '?'. substr(variable_get('css_js_query_string', '0'), 0, 1); |
|
35 | - $base_path = base_path() . $directory; |
|
34 | + $query_string = '?'.substr(variable_get('css_js_query_string', '0'), 0, 1); |
|
35 | + $base_path = base_path().$directory; |
|
36 | 36 | $vars['styles'] .= <<< IE_STYLES |
37 | 37 | <!--[if IE]><link type="text/css" rel="stylesheet" media="all" href="$base_path/ie.css$query_string" /><![endif]--> |
38 | 38 | <!--[if lte IE 6]><link type="text/css" rel="stylesheet" media="all" href="$base_path/ie6.css$query_string" /><![endif]--> |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $vars['created'] = $vars['date']; |
18 | 18 | |
19 | 19 | // If comment subjects are disabled, don't display them. |
20 | - if (variable_get('comment_subject_field_' . $vars['node']->type, 1) == 0) { |
|
20 | + if (variable_get('comment_subject_field_'.$vars['node']->type, 1) == 0) { |
|
21 | 21 | $vars['title'] = ''; |
22 | 22 | } |
23 | 23 |