Skip to content

Instantly share code, notes, and snippets.

View karissademi's full-sized avatar

Karissa Demi karissademi

View GitHub Profile
@timwis
timwis / default.html
Created January 27, 2016 12:30
How to use rows and columns in a Jekyll page
<!DOCTYPE html>
<html>
<body>
<div class="container">
{% assign rows = content | split:"@row" %}
{% for row in rows %}
<div class="row" id="row-{{ forloop.index }}">
{% assign columns = row | split:"@column" %}
@figureone
figureone / gist:43661c51d992d89e56e1
Created May 6, 2015 20:01
Extend WordPress TinyMCE plugin wplink.js to include a checkbox that adds a "required" class when checked.
diff --git a/lib/wplink-required/wplink-required.js b/lib/wplink-required/wplink-required.js
new file mode 100644
index 0000000..af440b2
--- /dev/null
+++ b/lib/wplink-required/wplink-required.js
@@ -0,0 +1,115 @@
+( function ( $ ) {
+ $( document ).ready( function () {
+ // Global: wpLink.
+
@lukaspawlik
lukaspawlik / ai1ec-sample-usage.php
Last active May 15, 2021 05:49
AI1EC usage sample
function ai1ec2_display_events_func( $atts ) {
global $ai1ec_registry;
$content = '<div id="content2"><img src="/wp-content/themes/scio/images/events-header.png" alt="" />';
$time = $ai1ec_registry->get( 'date.system' );
// Get localized time
$timestamp = $time->current_time();
// Set $limit to the specified categories/tags
$limit = array(
//
// this is demo data - please use your own filters
@wpscholar
wpscholar / functions.php
Last active March 1, 2021 13:26
Enqueueing IE conditional stylesheets in WordPress the right way
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' );
/**
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE.
* IE10 and up does not support conditional comments in standards mode.
*
* @uses wp_style_add_data() WordPress function to add the conditional data.
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/