This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. $ wp scaffold plugin-tests myplugin | |
// 2. bash bin/install-wp-tests.sh wordpress_test root root localhost latest (on plugin directory. Terminal results:) | |
root@b96f5ad58969:/app/public/wp-content/plugins/myplugin# bash bin/install-wp-tests.sh wordpress_test root root localhost latest | |
2017-06-03 00:24:13 URL:http://api.wordpress.org/core/version-check/1.7/ [568] -> "/tmp/wp-latest.json" [1] | |
+ install_wp | |
+ '[' -d /tmp/wordpress/ ']' | |
+ return | |
+ install_test_suite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*~ | |
.DS_Store | |
.svn | |
.cvs | |
*.bak | |
*.swp | |
Thumbs.db | |
wp-content/plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[windsor_strava_athlete_profile] | |
athleteid (required) // The athlete's Strava ID | |
values: // athletes Strava ID | |
default:0 | |
followers // Show athlete's followers? | |
values: 0 or 1 | |
default:1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dependancies | |
var gulp = require('gulp'); | |
var less = require('gulp-less'); | |
var path = require('path'); | |
var rename = require("gulp-rename"); | |
var eventStream = require('event-stream'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var plumber = require('gulp-plumber'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#header.info{display: none !important;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
var MyPlugin = function(element, options) | |
{ | |
var elem = $(element); | |
var obj = this; | |
var settings = $.extend({ | |
param: 'defaultValue' | |
}, options || {}); | |
// Public method - can be called from client code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function() { | |
//jQuery('#banner').after('<div id="static-slide"></div>'); | |
var imgArr = new Array('/thedentalsitecontent/themes/176/images/slider-1.png', '/thedentalsitecontent/themes/176/images/slider-2.png', '/thedentalsitecontent/themes/176/images/slider-3.png', '/thedentalsitecontent/themes/176/images/slider-4.png', '/thedentalsitecontent/themes/176/images/slider-5.png', '/thedentalsitecontent/themes/176/images/slider-6.png', '/thedentalsitecontent/themes/176/images/slider-7.png'); | |
var preloadArr = new Array(); | |
var i; | |
for(i = 0; i < imgArr.length; i++) { | |
preloadArr[i] = new Image(); | |
preloadArr[i].src = imgArr[i]; | |
} | |
var currImg = 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// Current Server Time script (SSI or PHP)- By JavaScriptKit.com (http://www.javascriptkit.com) | |
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/ | |
// This notice must stay intact for use. | |
//Depending on whether your page supports SSI (.shtml) or PHP (.php), UNCOMMENT the line below your page supports and COMMENT the one it does not: | |
//Default is that SSI method is uncommented, and PHP is commented: | |
var currenttime = '<!--#config timefmt="%B %d, %Y %H:%M:%S"--><!--#echo var="DATE_LOCAL" -->' //SSI method of getting server date |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Xlarge screens ----------- */ | |
@media only screen and (max-width : 1260px) { | |
.container{ | |
width:1024px; | |
} | |
} | |
/* Desktops and laptops ----------- */ | |
@media only screen and (max-width : 1024px) { | |
.container{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var eventUtility = { | |
addEvent : function(el, type, fn) { | |
if (typeof addEventListener !== "undefined") { | |
el.addEventListener(type, fn, false); | |
} else if (typeof attachEvent !== "undefined") { | |
el.attachEvent("on" + type, fn); | |
} else { | |
el["on" + type] = fn; | |
} | |
}, |