added Drupal

This commit is contained in:
Szekeres Bálint
2018-07-26 13:24:00 +02:00
parent f64fd9d036
commit b622b0fd9a
7 changed files with 74 additions and 17 deletions

View File

@@ -61,6 +61,7 @@
php: '7.2',
wordpress: false,
drupal: false,
file_structure: 'unified',
@@ -278,6 +279,7 @@
$scope.setPreset = function(preset) {
$scope.data.php = $scope.defaultData.php;
$scope.data.wordpress = $scope.defaultData.wordpress;
$scope.data.drupal = $scope.defaultData.drupal;
$scope.data.index = $scope.defaultData.index;
$scope.data.fallback_html = $scope.defaultData.fallback_html;
@@ -294,6 +296,9 @@
case 'wordpress':
$scope.data.wordpress = true;
break;
case 'drupal':
$scope.data.drupal = true;
break;
}
gtag('event', preset, {
@@ -394,6 +399,10 @@
return $scope.isPHP() && $scope.data.wordpress;
};
$scope.isDrupal= function() {
return $scope.isPHP() && $scope.data.drupal;
};
$scope.isCSP = function() {
return !!$scope.data.content_security_policy;
};