Skip to content

Instantly share code, notes, and snippets.

View bangpound's full-sized avatar

Benjamin Doherty bangpound

View GitHub Profile

CAF Badges

This module supports badging.

Configuration

Visit /admin/config/services/cafbadges to configure the site's connection to the City of Learning API.

<?php
class RoboFile extends \Robo\Tasks
{
public function buildAssets($input, $output) {
$result = $this->taskExec('sassc')
->arg('-m')
->arg('-t')
->arg('expanded')
->arg('-l')
commit dd203033dc9fb42fae28eba00066539c87ab3c95
Author: Benjamin Doherty <[email protected]>
Date: Mon Jul 11 13:16:38 2016 -0500
add class to adjustable titles page header.
diff --git a/docroot/themes/cflassy/templates/pages/page-title--adjustable.html.twig b/docroot/themes/cflassy/templates/pages/page-title--adjustable.html.twig
index 26850eb..1ccc0d4 100644
--- a/docroot/themes/cflassy/templates/pages/page-title--adjustable.html.twig
+++ b/docroot/themes/cflassy/templates/pages/page-title--adjustable.html.twig
commit 5c3285427c982408edb8a7363a64e4758b7b1086
Author: Benjamin Doherty <[email protected]>
Date: Mon Jul 11 15:31:33 2016 -0500
use label field not title.
diff --git a/docroot/themes/cflassy/templates/pages/node--page--page-title.html.twig b/docroot/themes/cflassy/templates/pages/node--page--page-title.html.twig
index 37274a9..3359b89 100644
--- a/docroot/themes/cflassy/templates/pages/node--page--page-title.html.twig
+++ b/docroot/themes/cflassy/templates/pages/node--page--page-title.html.twig
INSERT INTO `activity` (`id`, `type`, `uuid`, `langcode`, `user_id`, `name`, `summary__value`, `summary__format`, `content__value`, `content__format`, `status`, `created`, `changed`)
VALUES
(1, 'activity', '622593cf-e4ad-4e21-a662-f22272632e38', 'en', 96, 'admin commented on BenjaminODoherty\'s MINECRAFT project Define', 'admin commented on BenjaminODoherty&#039;s MINECRAFT project Define', 'basic_html', 'admin commented on BenjaminODoherty&#039;s MINECRAFT project Define', 'basic_html', 1, 1468592878, 1468592878),
(6, 'activity', '26dac69f-8d1d-4a4b-9118-0d6ab583ed9f', 'en', 1, 'Define on Daisy\'s Bus Shelter is due in 3 days', '<p>Define on <a href=\"/projects/admin/daisys-bus-shelter#step-id-366\">Daisy&#039;s Bus Shelter</a> is due in 3 days</p>', 'basic_html', '<p>Define on <a href=\"/projects/admin/daisys-bus-shelter#step-id-366\">Daisy&#039;s Bus Shelter</a> is due in 3 days</p>', 'basic_html', 1, 1468593872, 1468593872),
(11, 'activity', 'f055a8bf-e991-46c0-9dc7-df9900276bbb', 'en', 96, 'Define on
diff --git a/ajax_comments.module b/ajax_comments.module
index 6f5adba..5252a07 100644
--- a/ajax_comments.module
+++ b/ajax_comments.module
@@ -15,6 +15,7 @@ use Drupal\Component\Utility\Html;
use Drupal\Core\Ajax;
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\Ajax\AlertCommand;
+use Drupal\Core\Ajax\RemoveCommand;
use Drupal\Core\Ajax\CloseDialogCommand;
diff --git a/config/default/block.block.newel_switch_user.yml b/config/default/block.block.newel_switch_user.yml
new file mode 100644
index 0000000..a4a174f
--- /dev/null
+++ b/config/default/block.block.newel_switch_user.yml
@@ -0,0 +1,23 @@
+uuid: 3f828dbd-75e4-4682-9a2b-70c91ad5b635
+langcode: en
+status: true
+dependencies:
<?php
namespace Drush\Drupal;
use Drush\Log\LogLevel;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Reference;
/**
* This compiler pass is added to Drupal's ContainerBuilder by our own
@bangpound
bangpound / workflow.patch
Last active August 26, 2016 16:26
hides error message.
diff --git a/src/Entity/Workflow.php b/src/Entity/Workflow.php
index d484db9..e79c6e0 100644
--- a/src/Entity/Workflow.php
+++ b/src/Entity/Workflow.php
@@ -296,7 +296,7 @@ class Workflow extends ConfigEntityBase implements WorkflowInterface {
}
else {
// This should never happen, but it did during testing.
- drupal_set_message(t('There are no workflow states available. Please notify your site administrator.'), 'error');
+ // drupal_set_message(t('There are no workflow states available. Please notify your site administrator.'), 'error');
diff --git a/docroot/profiles/discoverdesign/themes/newel/templates/content/node--challenge--card.html.twig b/docroot/profiles/discoverdesign/themes/newel/templates/content/node--challenge--card.html.twig
index 90b7f11..a89a530 100644
--- a/docroot/profiles/discoverdesign/themes/newel/templates/content/node--challenge--card.html.twig
+++ b/docroot/profiles/discoverdesign/themes/newel/templates/content/node--challenge--card.html.twig
@@ -74,7 +74,7 @@
{%
set classes = [
'summary-card',
- content.field_competition.isEmpty() ? '': 'flagged',
+ node.field_competition.isEmpty() ? '': 'flagged',