1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00

delete old stuff

This commit is contained in:
Sarah Etter 2015-09-17 16:22:40 -06:00
parent 9994b59a31
commit a6a6fec023
29 changed files with 1 additions and 604 deletions

View File

@ -1,3 +0,0 @@
{
"directory": "bower_components"
}

8
.gitignore vendored
View File

@ -1,10 +1,4 @@
node_modules
release
vendor
composer.lock
phpunit.xml
.idea
.ftppass
# Created by .ignore support plugin (hsz.mobi)
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion

View File

@ -1,20 +0,0 @@
{
"curly": true,
"eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"sub": true,
"undef": true,
"boss": true,
"eqnull": true,
"validthis": true,
"globals": {
"exports": true,
"module": false,
"console": true,
"document": true,
"window": true,
}
}

View File

@ -1,172 +0,0 @@
module.exports = function( grunt ) {
// Project configuration
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
concat: {
options: {
stripBanners: true
},
main: {
src: [
'assets/js/vendor/*/*.min.js',
'assets/js/vendor/*/*.js',
'assets/js/src/ascribeio.js'
],
dest: 'assets/js/ascribeio.js'
}
},
jshint: {
all: [
'Gruntfile.js',
'assets/js/src/**/*.js',
'assets/js/test/**/*.js'
]
},
uglify: {
all: {
files: {
'assets/js/ascribeio.min.js': ['assets/js/ascribeio.js']
},
options: {
mangle: {
except: ['jQuery']
}
}
}
},
less: {
all: {
options: {
sourceMap: false
},
files: {
'assets/css/ascribeio.css': 'assets/css/less/ascribeio.less'
}
}
},
postcss: {
dist: {
options: {
processors: [
require('autoprefixer-core')({browsers: 'last 2 versions'})
]
},
files: {
'assets/css/ascribeio.css': [ 'assets/css/ascribeio.css' ]
}
}
},
cssmin: {
minify: {
expand: true,
cwd: 'assets/css/',
src: ['ascribeio.css'],
dest: 'assets/css/',
ext: '.min.css'
}
},
watch: {
livereload: {
files: ['assets/css/*.css'],
options: {
livereload: true
}
},
styles: {
files: ['assets/css/less/**/*.less'],
tasks: ['less', 'autoprefixer', 'cssmin'],
options: {
debounceDelay: 500
}
},
scripts: {
files: ['assets/js/src/**/*.js', 'assets/js/vendor/**/*.js'],
tasks: ['jshint', 'concat', 'uglify'],
options: {
debounceDelay: 500
}
}
},
'sftp-deploy': {
build: {
auth: {
host: 'server.territorial.ca',
port: 22,
authKey: 'key1'
},
cache: 'sftpCache.json',
src: '/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/',
dest: '/home/ascribe/public_html/wp-content/themes/ascribe/',
exclusions: ['/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/node_modules',
'/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/release',
'/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/vendor',
'/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/.git',
'/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/.idea',
'/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/**/.DS_Store'],
serverSep: '/',
concurrency: 4,
progress: true
},
css: {
auth: {
host: 'server.territorial.ca',
port: 22,
authKey: 'key1'
},
cache: 'sftpCache.json',
src: '/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css/',
dest: '/home/ascribe/public_html/wp-content/themes/ascribe/assets/css',
serverSep: '/',
concurrency: 4,
progress: true
},
js: {
auth: {
host: 'server.territorial.ca',
port: 22,
authKey: 'key1'
},
cache: 'sftpCache.json',
src: '/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js/',
dest: '/home/ascribe/public_html/wp-content/themes/ascribe/assets/js',
serverSep: '/',
concurrency: 4,
progress: true
},
controller: {
auth: {
host: 'server.territorial.ca',
port: 22,
authKey: 'key1'
},
src: '/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/controller/',
dest: '/home/ascribe/public_html/wp-content/themes/ascribe/controller/',
serverSep: '/',
concurrency: 4,
progress: true
}
}
} );
// Load tasks
require('load-grunt-tasks')(grunt);
// Register tasks
grunt.registerTask( 'css', ['less', 'postcss', 'cssmin', 'sftp-deploy:css'] );
grunt.registerTask( 'js', ['jshint', 'concat', 'uglify', 'sftp-deploy:js'] );
grunt.registerTask( 'controller', ['sftp-deploy:controller'] );
grunt.registerTask( 'default', ['css', 'js', 'controller'] );
grunt.util.linefeed = '\n';
};

View File

@ -1,3 +0,0 @@
h1 {
color: blue;
}

View File

@ -1 +0,0 @@
h1{color:#00f}

View File

@ -1,3 +0,0 @@
h1 {
color: blue;
}

View File

@ -1,3 +0,0 @@
# Styles
Only final CSS styles should exist in this folder. If you are using SASS, LESS, autoprefixer, or some other pre-processor, please place your raw source files in a subdirectory.

View File

@ -1,5 +0,0 @@
( function( window, undefined ) {
'use strict';
} )( this );

View File

@ -1 +0,0 @@
!function(a,b){"use strict"}(this);

View File

@ -1,13 +0,0 @@
/**
* ascribe
* http://wordpress.org/themes
*
* Copyright (c) 2015 Territorial
* Licensed under the GPLv2+ license.
*/
( function( window, undefined ) {
'use strict';
} )( this );

View File

@ -1,31 +0,0 @@
<?php
if ( ! defined( 'PROJECT' ) ) {
define( 'PROJECT', __DIR__ . '/includes/' );
}
if ( ! defined( 'TTL_DIR' ) ) {
define( 'TTL_DIR', __DIR__ . '/' );
}
// Place any additional bootstrapping requirements here for PHP Unit.
if ( ! defined( 'WP_LANG_DIR' ) ) {
define( 'WP_LANG_DIR', 'lang_dir' );
}
if ( ! defined( 'TTL_PATH' ) ) {
define( 'TTL_PATH', 'path' );
}
if ( ! file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
throw new PHPUnit_Framework_Exception(
'ERROR' . PHP_EOL . PHP_EOL .
'You must use Composer to install the test suite\'s dependencies!' . PHP_EOL
);
}
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/tests/phpunit/test-tools/TestCase.php';
WP_Mock::setUsePatchwork( true );
WP_Mock::bootstrap();
WP_Mock::tearDown();

View File

@ -1,23 +0,0 @@
{
"name": "ascribeio",
"version": "0.0.1",
"main": "/",
"license": "GPLv2+",
"ignore": [
"**/.*",
"*.md",
"assets/css/sass/*",
"assets/css/src/*",
"assets/js/src/*",
"assets/js/vendor/*",
"images/src/*",
"tests",
"bootstrap.php",
"Gruntfile.js",
"package.json",
"composer.json",
"phpunit.xml.dist"
],
"devDependencies": {},
"keywords": []
}

View File

@ -1,27 +0,0 @@
{
"name": "ascribeio",
"description": "ascribe theme by Territorial",
"version": "0.0.1",
"type": "wordpress-theme",
"keywords": [],
"homepage": "http://wordpress.org/themes",
"license": "GPLv2.0+",
"authors": [
{
"name": "Territorial",
"email": "us@territorial.ca",
"homepage": "http://territorial.ca",
"role": "Developer"
}
],
"minimum-stability": "dev",
"require": {
"php": ">=5.4"
},
"require-dev": {
"antecedent/patchwork": "1.2.*",
"phpunit/phpunit" : "*@stable",
"brianium/paratest" : "dev-master",
"10up/wp_mock" : "dev-master"
}
}

View File

@ -1,12 +0,0 @@
<?php
/**
* The template for displaying the footer.
*
* @package ascribe
* @since 0.1.0
*/
?>
<?php wp_footer(); ?>
</body>
</html>

View File

@ -1,29 +0,0 @@
<?php
/**
* ascribe functions and definitions
*
* When using a child theme (see http://codex.wordpress.org/Theme_Development and
* http://codex.wordpress.org/Child_Themes), you can override certain functions
* (those wrapped in a function_exists() call) by defining them first in your child theme's
* functions.php file. The child theme's functions.php file is included before the parent
* theme's file, so the child theme functions would be used.
*
* @package ascribe
* @since 0.1.0
*/
// Useful global constants
define( 'TTL_VERSION', '0.1.0' );
define( 'TTL_URL', get_stylesheet_directory_uri() );
define( 'TTL_TEMPLATE_URL', get_template_directory_uri() );
define( 'TTL_PATH', get_template_directory() . '/' );
define( 'TTL_INC', TTL_PATH . 'includes/' );
// Include compartmentalized functions
require_once TTL_INC . 'functions/core.php';
// Include lib classes
// Run the setup functions
TenUp\ascribe\Core\setup();

View File

@ -1,15 +0,0 @@
<?php
/**
* The template for displaying the header.
*
* @package ascribe
* @since 0.1.0
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<?php wp_head(); ?>
</head>
<body>

View File

@ -1,21 +0,0 @@
/* TEAM */
Developer: Territorial
Contact: us@territorial.ca
URI: http://territorial.ca
/* THANKS */
Template Design: 10up
URI: http://10up.com
Twitter: @10up
Template Design: Eric Mann
URI: https://eamann.com
Twitter: @ericmann
Template Design: Luke Woodward
URI: http://lkwdwrd.com
Twitter: @lkwdwrd
/* SITE */
Created: Wed Sep 16 2015
Template: https://github.com/10up/generator-wp-make

View File

@ -1,3 +0,0 @@
# Project Images
Only images in-use by the project should be placed in this folder. Wherever possible, combine multiple small images into sprites to be used by CSS. Original (non-sprite) images should be placed in the `/src` subdirectory.

View File

@ -1,3 +0,0 @@
# Project Images
Only source images (i.e. non-sprites, PSDs, raw photos) should be placed in this directory. Source files are meant to serve as a backup for any images that can be edited by an end user.

View File

@ -1,94 +0,0 @@
<?php
/**
* Set up theme defaults and register supported WordPress features.
*
* @since 0.1.0
*
* @uses add_action()
*
* @return void.
*/
function setup() {
$n = function( $function ) {
return __NAMESPACE__ . "\\$function";
};
add_action( 'after_setup_theme', $n( 'i18n' ) );
add_action( 'wp_head', $n( 'header_meta' ) );
add_action( 'wp_enqueue_scripts', $n( 'scripts' ) );
add_action( 'wp_enqueue_scripts', $n( 'styles' ) );
}
/**
* Makes WP Theme available for translation.
*
* Translations can be added to the /lang directory.
* If you're building a theme based on WP Theme, use a find and replace
* to change 'wptheme' to the name of your theme in all template files.
*
* @uses load_theme_textdomain() For translation/localization support.
*
* @since 0.1.0
*
* @return void.
*/
function i18n() {
load_theme_textdomain( 'ttl', TTL_PATH . '/languages' );
}
/**
* Enqueue scripts for front-end.
*
* @uses wp_enqueue_script() to load front end scripts.
*
* @since 0.1.0
*
* @return void.
*/
function scripts( $debug = false ) {
$min = ( $debug || defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
wp_enqueue_script(
'ttl',
TTL_TEMPLATE_URL . "/assets/js/ascribeio{$min}.js",
array(),
TTL_VERSION,
true
);
}
/**
* Enqueue styles for front-end.
*
* @uses wp_enqueue_style() to load front end styles.
*
* @since 0.1.0
*
* @return void.
*/
function styles( $debug = false ) {
$min = ( $debug || defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
wp_enqueue_style(
'ttl',
TTL_URL . "/assets/css/ascribeio{$min}.css",
array(),
TTL_VERSION
);
}
/**
* Add humans.txt to the <head> element.
*
* @uses apply_filters()
*
* @since 0.1.0
*
* @return void.
*/
function header_meta() {
$humans = '<link type="text/plain" rel="author" href="' . TTL_TEMPLATE_URL . '/humans.txt" />';
echo apply_filters( 'ttl_humans', $humans );
}

View File

@ -1,3 +0,0 @@
# Includes
All theme classes, objects, and libraries should be hidden away in this `/includes` directory.

View File

@ -1,18 +0,0 @@
<?php
/**
* The main template file
*
* @package ascribe
* @since 0.1.0
*/
get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ): the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer();

View File

@ -1,16 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: ascribe\n"
"POT-Creation-Date: 2015-09-16T23:04:11.784Z\n"
"PO-Revision-Date: 2015-09-16T23:04:11.785Z\n"
"Last-Translator: 10up <info@10up.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
"_n_noop:1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SearchPath-0: ..\n"

View File

@ -1,37 +0,0 @@
{
"name": "ascribeio",
"title": "ascribe",
"description": "ascribe theme by Territorial",
"version": "0.0.1",
"homepage": "http://wordpress.org/themes",
"repository": {
"type": "git",
"url": ""
},
"author": {
"name": "Territorial",
"email": "us@territorial.ca",
"url": "http://territorial.ca"
},
"devDependencies": {
"autoprefixer-core": "^5.2.1",
"grunt": "^0.4.5",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-compress": "^0.13.0",
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-cssmin": "^0.12.3",
"grunt-contrib-jshint": "^0.11.2",
"grunt-contrib-less": "^1.0.1",
"grunt-contrib-qunit": "^0.7.0",
"grunt-contrib-uglify": "^0.9.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-phpunit": "^0.3.6",
"grunt-postcss": "^0.5.4",
"grunt-sass": "^1.0.0",
"grunt-sftp-deploy": "^0.2.4",
"load-grunt-tasks": "^3.2.0",
"qunitjs": "~1.18.0"
},
"keywords": []
}

View File

@ -1,21 +0,0 @@
<phpunit
bootstrap="bootstrap.php.dist"
backupGlobals="false"
processIsolation="false"
colors="false">
<testsuites>
<testsuite name="Default">
<directory suffix="Tests.php">./tests/phpunit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./includes</directory>
</whitelist>
</filter>
<php>
<ini name="error_reporting" value="32767" />
<ini name="display_errors" value="1" />
<ini name="display_startup_errors" value="1" />
</php>
</phpunit>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 960 KiB

View File

@ -1 +0,0 @@
{"/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//ascribeio.css":"2015-09-16T23:36:41.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//ascribeio.min.css":"2015-09-16T23:36:41.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//readme.md":"2015-09-16T23:04:11.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//less/ascribeio.less":"2015-09-16T23:17:47.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//ascribeio.js":"2015-09-16T23:36:44.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//ascribeio.min.js":"2015-09-16T23:36:44.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//src/ascribeio.js":"2015-09-16T23:04:11.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//vendor/readme.md":"2015-09-16T23:04:11.000Z"}

View File

@ -1,19 +0,0 @@
/**
* Theme Name: ascribe
* Theme URI: http://wordpress.org/themes
* Description: ascribe theme by Territorial
* Author: Territorial
* Author URI: http://territorial.ca
* Version: 0.1.0
* Tags:
* Text Domain: ttl
*
* License: GPLv2+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
/**
* Built using yo wp-make:theme
* Copyright (c) 2014 10up, LLC
* https://github.com/lkwdwrd/generator-wp-make
*/