Skip to content

Instantly share code, notes, and snippets.

View IT-Cru's full-sized avatar

Steffen Schlaer IT-Cru

View GitHub Profile
@IT-Cru
IT-Cru / imagepin-shop_the_look_feature_for_two_products-beta4.patch
Last active February 1, 2018 15:00
drupal/imagepin: patches for BurdaStyle projects
diff --git a/css/imagepin.admin.css b/css/imagepin.admin.css
index e92e5c7..fada652 100755
--- a/css/imagepin.admin.css
+++ b/css/imagepin.admin.css
@@ -7,16 +7,23 @@ table .imagepin {
position: static !important;
}
-.imagepin-widget-element-form-table tbody tr td:nth-child(1) {
+.imagepin-widget-element-form-table tbody tr td:nth-child(1),
@IT-Cru
IT-Cru / nexx_integration-fix_hard_coded_tags_vocabulary-2.patch
Last active May 30, 2018 14:01
drupal/nexx_integration: fix hard coded tags vocabulary
diff --git a/src/Controller/OmniaController.php b/src/Controller/OmniaController.php
index 436d635..a3161ca 100644
--- a/src/Controller/OmniaController.php
+++ b/src/Controller/OmniaController.php
@@ -461,7 +461,7 @@ class OmniaController extends ControllerBase {
}
if (!empty($fields['tag_field'])) {
- $mapped_tag_ids = $this->mapMultipleTermIds($tag_ids, 'tags');
+ $mapped_tag_ids = $this->mapMultipleTermIds($tag_ids);
@IT-Cru
IT-Cru / fix-color-field-module.patch
Created October 12, 2017 09:08
drupal/color_field: Fixes missing import declaration and some bad UI stuff
diff --git a/src/Plugin/Field/FieldFormatter/ColorFieldFormatterCss.php b/src/Plugin/Field/FieldFormatter/ColorFieldFormatterCss.php
index 053191a..f55e24d 100644
--- a/src/Plugin/Field/FieldFormatter/ColorFieldFormatterCss.php
+++ b/src/Plugin/Field/FieldFormatter/ColorFieldFormatterCss.php
@@ -8,6 +8,7 @@
namespace Drupal\color_field\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FormatterBase;
+use Drupal\Core\Field\FieldItemInterface;
use Drupal\Core\Field\FieldItemListInterface;
@IT-Cru
IT-Cru / dcx_integration-optimize_file_create.patch
Created September 1, 2017 13:38
DCX Integration: Optimize file create
diff --git a/modules/dcx_migration/src/Plugin/migrate/process/FileFromURL.php b/modules/dcx_migration/src/Plugin/migrate/process/FileFromURL.php
index c753e60..e9266ab 100644
--- a/modules/dcx_migration/src/Plugin/migrate/process/FileFromURL.php
+++ b/modules/dcx_migration/src/Plugin/migrate/process/FileFromURL.php
@@ -124,14 +124,20 @@ class FileFromUrl extends ProcessPluginBase implements ContainerFactoryPluginInt
// Remove.
unlink($tmp_name);
- $file = File::create([
- 'uri' => $uri,
@IT-Cru
IT-Cru / dcx_integration-add_table_exists_check_entity_delete.patch
Last active July 4, 2017 09:58
Add table exists check for DCX Integration module 8.x-2.0-beta2
diff --git a/modules/dcx_migration/dcx_migration.module b/modules/dcx_migration/dcx_migration.module
index c39fb56..d97048a 100644
--- a/modules/dcx_migration/dcx_migration.module
+++ b/modules/dcx_migration/dcx_migration.module
@@ -4,18 +4,19 @@
* @file
*/
-/**
- * Implements hook_ENTITY_TYPE_delete().
@IT-Cru
IT-Cru / INREL-2145-robo-add_drush_nimbus_force_uuid_task.patch
Created May 24, 2017 08:42
Add nimbus-force-uuid drush command to burdamagazinorg/robo
diff --git a/Task/Drush/NimbusForceUuid.php b/Task/Drush/NimbusForceUuid.php
new file mode 100644
index 0000000..0e3fbe1
--- /dev/null
+++ b/Task/Drush/NimbusForceUuid.php
@@ -0,0 +1,20 @@
+<?php
+
+namespace Thunder\Robo\Task\Drush;
+
@IT-Cru
IT-Cru / minimal_share-rendering_tokens_in_block_view-12-1.patch
Created August 11, 2015 13:10
minimal_share-rendering_tokens_in_block_view-12-1.patch
diff --git a/minimal_share.module b/minimal_share.module
index c469409..301420c 100644
--- a/minimal_share.module
+++ b/minimal_share.module
@@ -247,6 +247,11 @@ function minimal_share($url = '', $title = '', $settings = array()) {
$title = drupal_get_title();
}
+ if (arg(0) == 'node') {
+ $entity_type = 'node';
@IT-Cru
IT-Cru / minimal_share-whatsapp_support-12-1.patch
Created August 11, 2015 08:15
WhatsApp support for D7 minimal_share
diff --git a/css/minimal-share.css b/css/minimal-share.css
index 1044c4c..d8bc5d8 100644
--- a/css/minimal-share.css
+++ b/css/minimal-share.css
@@ -50,6 +50,10 @@
background-color: #32506d;
}
+.minimal-share > .whatsapp {
+ background-color: #4dc247;