Skip to content

Instantly share code, notes, and snippets.

<?php
/*******************************
* Adds support in the customizer
*******************************/
function cyprinus_theme_customizer( $wp_customize ) {
//images tab
$wp_customize->add_section( 'cyprinus_images_section', array(
'title' => __( 'Images', 'cyprinus' ),
/*******************************
* Adds support in the customizer
*******************************/
function cyprinus_theme_customizer( $wp_customize ) {
//images tab
$wp_customize->add_section( 'cyprinus_images_section', array(
'title' => __( 'Images', 'cyprinus' ),
'description' => 'Update images banner',
) );
Database:
users
- id
- name
teams
- id
- name
@jackperry
jackperry / gist:69d8c4d7327a135f5cda
Created May 19, 2015 06:52
ACF meta_query Post-Fix
<?php
$today = date('Ymd');
$meta_query = array(
'relation' => 'OR',
array(
'key' => 'custom_date',
'compare' => '>=',
'value' => $today
),
array(
@jackperry
jackperry / gist:7c583ca57b292bf69b9f
Last active August 29, 2015 14:21
ACF meta_query Pre-Fix
<?php
$today = date('Ymd');
$meta_query = array(
'relation' => 'OR',
array(
'key' => 'custom_date',
'compare' => '>=',
'value' => $today
),
array(
{
"Seti_no_bar_undertabs": true,
"Seti_tabs_small": true,
"bold_folder_labels": true,
"caret_extra_bottom": 1,
"caret_extra_top": 1,
"caret_extra_width": 1,
"caret_style": "phase",
"color_scheme": "Packages/Seti_UI/Scheme/Seti_monokai.tmTheme",
"draw_white_space": "selection",
@jackperry
jackperry / SassMeister-input.scss
Created November 4, 2014 07:28
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
#hero-slider {
.controller {
ul li.webinar-mashup{
h1, h2{
@jackperry
jackperry / gist:8280055
Created January 6, 2014 09:00
Enable opening Sublime Text 2 from the command line.
echo 'alias subl="C:/Program\ Files/Sublime\ Text\ 2/sublime_text.exe"' >> ~/.bashrc
{
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Special Boards.tmTheme",
"font_face": "Consolas",
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
<?php
// Your path to simplepie
include_once('/path/to/simplepie/simplepie.inc'); // Include SimplePie
// Feeds you want to aggregate
$feeds = array(
'http://jon.smajda.com/rss.xml',
'http://smajda.tumblr.com/rss',
'http://files.smajda.com/jon/feeds/greader/',