move theme files into subfolder
@ -1,6 +1,6 @@
|
||||
# wp-theme
|
||||
|
||||
> WordPress theme for Ascribe's landing page and blog
|
||||
> WordPress theme for ascribe's landing page and blog
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@ -28,3 +28,10 @@ The following compiles css & js files only:
|
||||
```bash
|
||||
gulp build
|
||||
```
|
||||
|
||||
## Continuous Delivery
|
||||
|
||||
The site gets built & deployed automatically via Codeship under the following conditions:
|
||||
|
||||
- every push builds the site
|
||||
- every push to the master branch initiates a live deployment
|
||||
|
Before Width: | Height: | Size: 1007 B After Width: | Height: | Size: 1007 B |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 480 B After Width: | Height: | Size: 480 B |
Before Width: | Height: | Size: 992 B After Width: | Height: | Size: 992 B |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 901 B After Width: | Height: | Size: 901 B |
Before Width: | Height: | Size: 982 B After Width: | Height: | Size: 982 B |
Before Width: | Height: | Size: 982 B After Width: | Height: | Size: 982 B |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 856 B After Width: | Height: | Size: 856 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 796 B After Width: | Height: | Size: 796 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 867 B After Width: | Height: | Size: 867 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
67
ascribe/includes/core.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
namespace TenUp\ascribe\Core;
|
||||
|
||||
/**
|
||||
* 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( 'wp_enqueue_scripts', $n( 'scripts' ) );
|
||||
add_action( 'wp_enqueue_scripts', $n( 'styles' ) );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue scripts for front-end.
|
||||
*
|
||||
* @uses wp_enqueue_script() to load front end scripts.
|
||||
*
|
||||
* @since 0.1.0
|
||||
*
|
||||
* @return void.
|
||||
*/
|
||||
function scripts( $debug = false ) {
|
||||
|
||||
if (!is_admin()) {
|
||||
wp_deregister_script('jquery');
|
||||
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js', false, '2.2.0', true);
|
||||
wp_enqueue_script('jquery');
|
||||
}
|
||||
|
||||
wp_enqueue_script(
|
||||
'wptheme',
|
||||
WPTHEME_TEMPLATE_URL . "/assets/dist/js/ascribe.min.js",
|
||||
array('jquery'),
|
||||
WPTHEME_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(
|
||||
'wptheme',
|
||||
WPTHEME_URL . "/assets/dist/css/ascribe{$min}.css",
|
||||
array(),
|
||||
WPTHEME_VERSION
|
||||
);
|
||||
}
|