Skip to content

Instantly share code, notes, and snippets.

View MrKarlDilkington's full-sized avatar

Karl Dilkington MrKarlDilkington

  • Sexy Metal Pants Inc.
  • Cheshire, UK
View GitHub Profile
@MrKarlDilkington
MrKarlDilkington / site.php
Created August 31, 2017 06:57
Example site.php for adding custom CKEditor configuration options - application\config\site.php
<?php
return [
'sites' => [
'default' => [
'editor' => [
'ckeditor4' => [
// add custom configuration options
// https://docs.ckeditor.com/#!/api/CKEDITOR.config
'custom_config_options' => [
// define what formatting tags to use
@MrKarlDilkington
MrKarlDilkington / twitterFetcher.js
Created July 7, 2016 07:14
ideas to prevent: unwanted image requests and downloads, empty tweets when images are not displayed, and images displayed with undefined source
/*********************************************************************
* #### Twitter Post Fetcher v16.0.1 ####
* Coded by Jason Mayes 2015. A present to all the developers out there.
* www.jasonmayes.com
* Please keep this disclaimer with my code if you use it. Thanks. :-)
* Got feedback or questions, ask here:
* http://www.jasonmayes.com/projects/twitterApi/
* Github: https://github.com/jasonmayes/Twitter-Post-Fetcher
* Updates will be posted to this site.
*********************************************************************/
@MrKarlDilkington
MrKarlDilkington / add.php
Created June 25, 2016 05:30
application\views\panels\add.php
<?php
use Concrete\Core\Page\Stack\Pile\PileContent;
defined('C5_EXECUTE') or die("Access Denied.");
?>
<section>
<div data-panel-menu="accordion" class="ccm-panel-header-accordion">
<nav>
@MrKarlDilkington
MrKarlDilkington / add.php
Last active August 29, 2015 14:28
application\views\panels\add.php - test (all styles inlined for demonstration only)
<?php
use Concrete\Core\Page\Stack\Pile\PileContent;
defined('C5_EXECUTE') or die("Access Denied.");
?>
<style>
/*temp override for height:0px;*/
div.ccm-panel-header-accordion nav ul.ccm-panel-header-accordion-dropdown {
height: 45px;
@MrKarlDilkington
MrKarlDilkington / edit_toolbar-page_settings_add-content.css
Created August 25, 2015 09:08
WCAG 2.0 contrast accessible text and controls - Edit Toolbar, Page Settings, and Add Content
/* 1. Edit Toolbar */
/*edit toolbar text and icons
compliant color: #575757
background color: #FEFEFE
CSS:*/
div#ccm-toolbar>ul>li>a {
color: #575757;
}