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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<?php | |
/* | |
* output all testimonial posts | |
*/ | |
function stb_arr_all() | |
{ | |
$args= array( | |
'post_type' => 'stb_testimonials' | |
) ; |
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
use strict'; | |
var util = require('util'); | |
var path = require('path'); | |
var yeoman = require('yeoman-generator'); | |
var SimplesiteGenerator = module.exports = function SimplesiteGenerator(args, options, config) { | |
yeoman.generators.Base.apply(this, arguments); | |
this.on('end', function () { |
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
foreach ( (array) $info['data_sources'] as $var => $data_source ) { | |
if ( isset( $this->_data_sources[$var] ) ) { | |
if ( is_callable( array( $this->_data_sources[$var], 'run_import' ) ) ) { | |
if ( ! isset( $settings['data_sources'][$var] ) ) | |
$settings['data_sources'][$var] = array(); | |
else if ( isset( $settings['data_sources'][$var]['method'] ) && ( 'skip' == $settings['data_sources'][$var]['method'] ) ) | |
continue; | |
$db_settings = ( isset( $db_data[$var] ) ) ? $db_data[$var] : false; | |
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
[Wed Nov 26 12:23:28.662643 2014] [:error] [pid 9800] [client 127.0.0.1:43665] PHP Fatal error: Cannot use object of type WP_Error as array in /var/www/defensevids/wp-content/themes/Builder-Base/lib/builder-core/lib/import-export/class.builder-import-export.php on line 444 | |
[Wed Nov 26 12:23:28.662660 2014] [:error] [pid 9800] [client 127.0.0.1:43665] PHP Stack trace: | |
[Wed Nov 26 12:23:28.662667 2014] [:error] [pid 9800] [client 127.0.0.1:43665] PHP 1. {main}() /var/www/defensevids/wp-admin/index.php:0 | |
[Wed Nov 26 12:23:28.662670 2014] [:error] [pid 9800] [client 127.0.0.1:43665] PHP 2. require_once() /var/www/defensevids/wp-admin/index.php:10 | |
[Wed Nov 26 12:23:28.662674 2014] [:error] [pid 9800] [client 127.0.0.1:43665] PHP 3. require_once() /var/www/defensevids/wp-admin/admin.php:31 | |
[Wed Nov 26 12:23:28.662677 2014] [:error] [pid 9800] [client 127.0.0.1:43665] PHP 4. require_once() /var/www/defensevids/wp-load.php:29 | |
[Wed Nov 26 12:23:28.662680 2014] [:error] [pid 9800] [client 127.0.0.1:43665] PHP |
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
'use strict'; | |
module.exports = function(grunt) { | |
// Load all tasks | |
require('load-grunt-tasks')(grunt); | |
// Show elapsed time | |
require('time-grunt')(grunt); | |
var jsFileList = [ | |
'assets/vendor/bootstrap/js/transition.js', | |
'assets/vendor/bootstrap/js/alert.js', |
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
if ( is_plugin_active( 'mailpress/MailPress.php' ) ) { | |
function get_mailpress_count() { | |
global $wpdb; | |
$mailpress_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(id) -1 | |
FROM wp_mailpress_users WHERE status = 'active';")); | |
echo $mailpress_count; | |
} | |
} |
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
-- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (x86_64) | |
-- | |
-- Host: localhost Database: galilee | |
-- ------------------------------------------------------ | |
-- Server version 5.5.40-0ubuntu0.12.04.1 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
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
<?php get_header(); ?> | |
<div id="content"> | |
<div class="archive-title"><h1><?php single_cat_title( '', true ); ?></h1></div> | |
<div id="Posts" class="loop"> | |
<?php | |
$args = array( |
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
<?php | |
/* | |
* Template Name: Direct Actions | |
*/ | |
get_header(); ?> | |
<div id="content"> | |
<header class="section-header"> | |
<h2>Direct Actions</h2> | |
</header> | |