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

@@ -0,0 +1 @@
<svg aria-labelledby="simpleicons-drupal-icon" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title id="simpleicons-drupal-icon">Drupal icon</title><path d="M20.45 3.552C18.258 1.257 15.233.006 12 .006 5.431.006.007 5.428.007 12S5.43 23.994 12 23.994 23.995 18.572 23.995 12c0-3.233-1.251-6.258-3.546-8.448zM12 19.822c-3.65 0-6.57-2.92-6.57-6.57 0-3.025 2.085-5.111 3.858-6.884 1.252-1.252 2.4-2.4 2.712-3.755.313 1.252 1.46 2.399 2.712 3.65 1.773 1.774 3.859 3.86 3.859 6.884 0 3.65-2.92 6.571-6.571 6.675z"/></svg>

After

Width:  |  Height:  |  Size: 536 B

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;
};