You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -393,44 +395,10 @@ function kalatheme_backend_check_info(){
393
395
FALSE => t('Kalatheme need FTP, SSH or write access in order to generate a subtheme.'),
394
396
),
395
397
);
396
-
398
+
397
399
return$info;
398
400
}
399
401
400
-
401
-
if (isset($_SERVER['PANTHEON_ENVIRONMENT'])) {
402
-
$form['pantheon_check'] = array(
403
-
'#weight' => -100,
404
-
'#prefix' => '<div class="alert alert-info">',
405
-
'#markup' => t("You are on Pantheon. <strong>You need to set the connection mode to SFTP</strong> to allow for custom Bootstrap libraries and subtheme generation!"),
406
-
'#suffix' => '</div>',
407
-
);
408
-
}
409
-
else {
410
-
if (kalatheme_backend_check()) {
411
-
$form['backend_check'] = array(
412
-
'#weight' => -100,
413
-
'#prefix' => '<div class="alert alert-success">',
414
-
'#markup' => t("Your webserver is correctly configured to allow for custom Bootstrap libraries and subtheme generation!"),
415
-
'#suffix' => '</div>',
416
-
);
417
-
}
418
-
else {
419
-
$form['backend_check'] = array(
420
-
'#weight' => -100,
421
-
'#prefix' => '<div class="alert alert-danger">',
422
-
'#markup' => t("If you want Kalatheme to be able to use custom Bootstrap libraries or generate subthemes automatically please properly configure your webserver."),
423
-
// @todo add link to docs here
424
-
'#suffix' => '</div>',
425
-
);
426
-
}
427
-
}
428
-
429
-
430
-
431
-
432
-
433
-
434
402
/**
435
403
* Check whether Kalatheme has write access to libraries and modules directories.
0 commit comments