Skip to content

Instantly share code, notes, and snippets.

//counties ONTARIO
{
"name": "all",
"north": "56.8565279",
"south": "41.6801344",
"west": "-95.155081",
"east": "-74.34388230000002"
}, {
"name": "Algoma",
"north": "49.7098631",
@vimes1984
vimes1984 / gist:75bcc92e535b36e7e265
Created September 11, 2014 12:09
nivoslider css edits...
/*
* jQuery Nivo Slider v2.5.2
* http://nivo.dev7studios.com
*
* Copyright 2011, Gilbert Pellegrom
* Free to use and abuse under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* March 2010
*/
@vimes1984
vimes1984 / gist:f65062f1bef688d266a3
Created September 11, 2014 12:10
stylesheet.css
html {
overflow-y: scroll;
margin: 0;
padding: 0;
/*max-width:1280px;*/
}
body {
background: url("/image/bg-with-astronaught.jpg") no-repeat scroll 0 0 #000000;
color: #FFFFFF;
@vimes1984
vimes1984 / Wordpress simple theme options menu item
Last active August 29, 2015 14:12
A simple options page for a wordpress theme to be dupmed into the functions file, it's here becuase I always have to google on how to do this
<?php
/**
* Add's menu page and submenu page
*/
function add_theme_menu_pages(){
add_menu_page( 'Main options', 'Theme settings', 'manage_options', 'theme_options_func', 'theme_options_func');
add_submenu_page( 'theme_options_func', 'Additional Theme settings', 'Additional Theme settings', 'manage_options', 'additional-theme-options', 'additional_theme_options_func' );
}
<?php
function add_theme_menu_pages(){
add_menu_page( 'Main options', 'Theme settings', 'manage_options', 'dance_theme_settings', 'dance_theme_settings');
add_submenu_page( 'dance_theme_settings', 'Shop page settings', 'Shop page settings', 'manage_options', 'shop-page-options', 'shop_page_options_func' );
}
function dance_theme_settings(){
echo "dance_theme_settings....";
}
@vimes1984
vimes1984 / List wordpress filters for hook
Created January 2, 2015 18:11
Simple function to print from the filter array
function print_filters_for( $hook = '' ) {
global $wp_filter;
if( empty( $hook ) || !isset( $wp_filter[$hook] ) )
return;
print '<pre>';
print_r( $wp_filter[$hook] );
print '</pre>';
}
//Call it where you need it.
<?php
//add shortcode
add_shortcode( 'properties_list', 'list_porperties_func' );
//short code function
function list_porperties_func( $atts ) {
$a = shortcode_atts( array(
'property_type' => ''
), $atts );
ob_start();
require_once(plugin_dir_path(__FILE__) ."/templates/shortcode-archive-listings.php");
<?php
/**
* OIFN extended
*
* integrates google map into a location based buddypress
*
* @package oifn-extended
* @author Christopher James Chruchill <churchill.c.j@gmail.com>
* @license GPL-2.0+
* @link http://buildawebdoctor.com
<?php
/**
* Dance Energy Generic
*
* @package dance-energy-generic
* @author Christopher Churchill <churchill.c.j@gmail.com>
* @license GPL-2.0+
* @link http://buildawebdoctor.com
* @copyright 8-27-2014 BAWD
*/
<?php
/**
* get_columns_array
*
* Columns for the loop, single function interface (limited)
*
* Copyright (c) 2011 hakre <http://hakre.wordpress.com/>, some rights reserved
*
* USAGE: