Skip to content

Instantly share code, notes, and snippets.

View bangpound's full-sized avatar

Benjamin Doherty bangpound

View GitHub Profile
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:
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;
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's MINECRAFT project Define', 'basic_html', 'admin commented on BenjaminODoherty'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
commit 5c3285427c982408edb8a7363a64e4758b7b1086
Author: Benjamin Doherty <bjd@bangpound.org>
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
commit dd203033dc9fb42fae28eba00066539c87ab3c95
Author: Benjamin Doherty <bjd@bangpound.org>
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
<?php
class RoboFile extends \Robo\Tasks
{
public function buildAssets($input, $output) {
$result = $this->taskExec('sassc')
->arg('-m')
->arg('-t')
->arg('expanded')
->arg('-l')

CAF Badges

This module supports badging.

Configuration

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

diff --git a/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php b/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php
index b8197b2..190e47e 100644
--- a/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php
+++ b/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php
@@ -121,24 +121,14 @@ public function finish(array &$form, FormStateInterface $form_state) {
*/
protected function customizeForm(array $form, FormStateInterface $form_state) {
$form = parent::customizeForm($form, $form_state);
- if ($this->machine_name) {
- $entity = $this->entityTypeManager->getStorage($this->entityTypeId)
commit 3d51895ff8fb2aa8fd0e24448fd5fb6a92ff7145
Author: Benjamin Doherty <bjd@bangpound.org>
Date: Mon Jun 20 18:19:16 2016 -0500
convert profile back into a multisite setup.
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d9b8363
--- /dev/null
<?php
/**
* @file
* Drupal site-specific configuration file.
*
* IMPORTANT NOTE:
* This file may have been set to read-only by the Drupal installation program.
* If you make changes to this file, be sure to protect it again after making
* your modifications. Failure to remove write permissions to this file is a