diff --git a/app/activation.php b/app/activation.php
deleted file mode 100644
index 29de7ca..0000000
--- a/app/activation.php
+++ /dev/null
@@ -1,60 +0,0 @@
-text(file_get_contents(get_stylesheet_directory() . '/docs/about.md'));
- $help = $extra->text(file_get_contents(get_stylesheet_directory() . '/docs/help.md'));
-
- $default_pages = [
- 'about' => [
- 'post_title' => __('About', 'aldine'),
- 'post_content' => apply_filters('pb_root_about_page_content', $about)
- ],
- 'help' => [
- 'post_title' => __('Help', 'aldine'),
- 'post_content' => apply_filters('pb_root_help_page_content', $help)
- ],
- 'catalog' => [
- 'post_title' => __('Catalog', 'aldine'),
- 'post_content' => ''
- ],
- 'home' => [
- 'post_title' => __('Home', 'aldine'),
- 'post_content' => ''
- ],
- ];
-
- // Add our pages
- $pages = [];
-
- foreach ($default_pages as $slug => $page) {
- $check = get_page_by_path($slug);
- if (empty($check)) {
- $pages[$slug] = wp_insert_post(array_merge($page, ['post_type' => 'page', 'post_status' => 'publish']));
- } else {
- $pages[$slug] = $check->ID;
- }
- }
-
- // Set front page to Home
- update_option('show_on_front', 'page');
- update_option('page_on_front', $pages['home']);
-
- // Remove content generated by wp_install_defaults
- if (! wp_delete_post(1, true)) {
- return;
- }
- if (! wp_delete_post(2, true)) {
- return;
- }
- if (! wp_delete_comment(1, true)) {
- return;
- }
-
- // Add "pb_aldine_activated" option to enable check above
- add_option('pb_aldine_activated', 1);
- }
-});
diff --git a/app/admin.php b/app/admin.php
deleted file mode 100644
index d508205..0000000
--- a/app/admin.php
+++ /dev/null
@@ -1,158 +0,0 @@
-get_setting('blogname')->transport = 'postMessage';
- $wp_customize->selective_refresh->add_partial('blogname', [
- 'selector' => '.branding h1 a',
- 'render_callback' => function () {
- bloginfo('name');
- }
- ]);
-
- // Add settings
- foreach ([
- [
- 'slug' => 'primary',
- 'hex' => '#b01109',
- 'label' => __('Primary Color', 'aldine'),
- 'description' => __('Primary color, used for links and other primary elements.', 'aldine'),
- ],
- [
- 'slug' => 'accent',
- 'hex' => '#015d75',
- 'label' => __('Accent Color', 'aldine'),
- 'description' => __('Accent color, used for flourishes and secondary elements.', 'aldine'),
- ],
- [
- 'slug' => 'primary_fg',
- 'hex' => '#ffffff',
- 'label' => __('Primary Foreground Color', 'aldine'),
- 'description' => __('Used for text on a primary background.', 'aldine'),
- ],
- [
- 'slug' => 'accent_fg',
- 'hex' => '#ffffff',
- 'label' => __('Accent Foreground Color', 'aldine'),
- 'description' => __('Used for text on an accent color background.', 'aldine'),
- ],
- ] as $color) {
- $wp_customize->add_setting("pb_network_color_{$color['slug']}", [
- 'type' => 'option',
- 'default' => $color['hex'],
- ]);
- $wp_customize->add_control(new \WP_Customize_Color_Control(
- $wp_customize,
- "pb_network_color_{$color['slug']}",
- [
- 'label' => $color['label'],
- 'section' => 'colors',
- 'description' => $color['description'],
- 'settings' => "pb_network_color_{$color['slug']}",
- ]
- ));
- }
- $wp_customize->add_section('pb_network_social', [
- 'title' => __('Social Media', 'aldine'),
- 'priority' => 30,
- ]);
- $wp_customize->add_setting('pb_network_facebook', [
- 'type' => 'option',
- 'sanitize_callback' => 'esc_url_raw',
- ]);
- $wp_customize->add_control('pb_network_facebook', [
- 'label' => __('Facebook', 'aldine'),
- 'section' => 'pb_network_social',
- 'settings' => 'pb_network_facebook',
- ]);
- $wp_customize->add_setting('pb_network_twitter', [
- 'type' => 'option',
- 'sanitize_callback' => 'esc_url_raw',
- ]);
- $wp_customize->add_control('pb_network_twitter', [
- 'label' => __('Twitter', 'aldine'),
- 'section' => 'pb_network_social',
- 'settings' => 'pb_network_twitter',
- ]);
-
- if (function_exists('pb_meets_minimum_requirements') && pb_meets_minimum_requirements()) {
- $wp_customize->add_section('pb_front_page_catalog', [
- 'title' => __('Front Page Catalog', 'aldine'),
- 'priority' => 25,
- ]);
- $wp_customize->add_setting('pb_front_page_catalog', [
- 'type' => 'option',
- ]);
- $wp_customize->add_control('pb_front_page_catalog', [
- 'label' => __('Show Front Page Catalog', 'aldine'),
- 'section' => 'pb_front_page_catalog',
- 'settings' => 'pb_front_page_catalog',
- 'type' => 'checkbox'
- ]);
- $wp_customize->add_setting('pb_front_page_catalog_title', [
- 'type' => 'option',
- 'sanitize_callback' => 'sanitize_text_field'
- ]);
- $wp_customize->add_control('pb_front_page_catalog_title', [
- 'label' => __('Front Page Catalog Title', 'aldine'),
- 'section' => 'pb_front_page_catalog',
- 'settings' => 'pb_front_page_catalog_title',
- ]);
- }
-
- $wp_customize->add_section('pb_network_contact_form', [
- 'title' => __('Contact Form', 'aldine'),
- 'priority' => 25,
- ]);
- $wp_customize->add_setting('pb_network_contact_form', [
- 'type' => 'option',
- ]);
- $wp_customize->add_control('pb_network_contact_form', [
- 'label' => __('Show Contact Form', 'aldine'),
- 'section' => 'pb_network_contact_form',
- 'settings' => 'pb_network_contact_form',
- 'type' => 'checkbox'
- ]);
- $wp_customize->add_setting('pb_network_contact_form_title', [
- 'type' => 'option',
- 'sanitize_callback' => 'sanitize_text_field'
- ]);
- $wp_customize->add_control('pb_network_contact_form_title', [
- 'label' => __('Contact Form Title', 'aldine'),
- 'section' => 'pb_network_contact_form',
- 'settings' => 'pb_network_contact_form_title',
- ]);
-});
-
-/**
- * Customizer JS
- */
-add_action('customize_preview_init', function () {
- wp_enqueue_script('aldine/customizer.js', asset_path('scripts/customizer.js'), ['customize-preview'], null, true);
- wp_localize_script('aldine/customizer.js', 'SAGE_DIST_PATH', get_theme_file_uri() . '/dist/');
-});
-
-add_action('customize_controls_enqueue_scripts', function () {
- $handle = 'wcag-validate-customizer-color-contrast';
- $src = get_theme_file_uri() .
- '/lib/customizer-validate-wcag-color-contrast/customizer-validate-wcag-color-contrast.js';
- $deps = [ 'customize-controls' ];
- wp_enqueue_script($handle, $src, $deps);
-
- $exports = [
- 'validate_color_contrast' => [
- 'pb_network_color_primary_fg' => [ 'pb_network_color_primary' ],
- 'pb_network_color_accent_fg' => [ 'pb_network_color_accent' ],
- ],
- ];
- wp_scripts()->add_data(
- $handle,
- 'data',
- sprintf('var _validateWCAGColorContrastExports = %s;', wp_json_encode($exports))
- );
-});
diff --git a/app/controllers/App.php b/app/controllers/App.php
index 1f68e36..425e0a3 100644
--- a/app/controllers/App.php
+++ b/app/controllers/App.php
@@ -16,20 +16,7 @@ class App extends Controller
}
}
- public function siteName()
- {
- return get_bloginfo('name');
- }
- public function networkFacebook()
- {
- return get_option('pb_network_facebook');
- }
-
- public function networkTwitter()
- {
- return get_option('pb_network_twitter');
- }
public static function networkFooter($index)
{
@@ -68,15 +55,7 @@ class App extends Controller
return get_the_title();
}
- public function contactFormTitle()
- {
- $title = get_option('pb_network_contact_form_title');
- if ($title) {
- return $title;
- }
- return __('Contact Us', 'aldine');
- }
public function currentPage()
{
@@ -123,37 +102,4 @@ class App extends Controller
return $page + 1;
}
-
- public static function catalogData($page = 1, $per_page = 10, $orderby = 'title', $license = '', $subject = '')
- {
- if (function_exists('pb_meets_minimum_requirements') && pb_meets_minimum_requirements()) {
- $request = new \WP_REST_Request('GET', '/pressbooks/v2/books');
- $request->set_query_params([
- 'page' => $page,
- 'per_page' => $per_page,
- ]);
- $response = rest_do_request($request);
- $pages = $response->headers['X-WP-TotalPages'];
- $data = rest_get_server()->response_to_data($response, true);
- $books = [];
- foreach ($data as $key => $book) {
- $book['title'] = $book['metadata']['name'];
- $book['date-published'] = (isset($book['metadata']['datePublished'])) ?
- $book['metadata']['datePublished'] :
- '';
- $book['subject'] = (isset($book['metadata']['about'][0]))
- ? $book['metadata']['about'][0]['identifier']
- : '';
- $books[] = $book;
- }
- if ($orderby === 'latest') {
- $books = wp_list_sort($books, $orderby, 'desc');
- } else {
- $books = wp_list_sort($books, $orderby);
- }
- return ['pages' => $pages, 'books' => $books];
- } else {
- return ['pages' => 0, 'books' => []];
- }
- }
}
diff --git a/app/filters.php b/app/filters.php
deleted file mode 100644
index d42320e..0000000
--- a/app/filters.php
+++ /dev/null
@@ -1,79 +0,0 @@
- classes
- */
-add_filter('body_class', function (array $classes) {
- /** Add page slug if it doesn't exist */
- if (is_single() || is_page() && !is_front_page()) {
- if (!in_array(basename(get_permalink()), $classes)) {
- $classes[] = basename(get_permalink());
- }
- }
-
- /** Clean up class names for custom templates */
- $classes = array_map(function ($class) {
- return preg_replace(['/-blade(-php)?$/', '/^page-template-views/'], '', $class);
- }, $classes);
-
- return array_filter($classes);
-});
-
-/**
- * Add "… Continued" to the excerpt
- */
-add_filter('excerpt_more', function () {
- return ' … ' . __('Continued', 'aldine') . '';
-});
-
-/**
- * Template Hierarchy should search for .blade.php files
- */
-collect([
- 'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', 'home',
- 'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment'
-])->map(function ($type) {
- add_filter("{$type}_template_hierarchy", __NAMESPACE__.'\\filter_templates');
-});
-
-/**
- * Render page using Blade
- */
-add_filter('template_include', function ($template) {
- $data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
- return apply_filters("sage/template/{$class}/data", $data, $template);
- }, []);
- if ($template) {
- echo template($template, $data);
- return get_stylesheet_directory().'/index.php';
- }
- return $template;
-}, PHP_INT_MAX);
-
-/**
- * Tell WordPress how to find the compiled path of comments.blade.php
- */
-add_filter('comments_template', function ($comments_template) {
- $comments_template = str_replace(
- [get_stylesheet_directory(), get_template_directory()],
- '',
- $comments_template
- );
- return template_path(locate_template(["views/{$comments_template}", $comments_template]) ?: $comments_template);
-});
-
-/**
- * Fix Controller path
- */
-add_filter('sober/controller/path', function () {
- return get_template_directory() . '/app/controllers';
-});
-
-/**
- * Remove Admin Bar callback
- */
-add_action('admin_bar_init', function () {
- remove_action('wp_head', '_admin_bar_bump_cb');
-});
diff --git a/app/helpers.php b/app/helpers.php
deleted file mode 100644
index b89c869..0000000
--- a/app/helpers.php
+++ /dev/null
@@ -1,202 +0,0 @@
-bound($abstract)
- ? $container->makeWith($abstract, $parameters)
- : $container->makeWith("sage.{$abstract}", $parameters);
-}
-
-/**
- * Get / set the specified configuration value.
- *
- * If an array is passed as the key, we will assume you want to set an array of values.
- *
- * @param array|string $key
- * @param mixed $default
- * @return mixed|\Roots\Sage\Config
- * @copyright Taylor Otwell
- * @link https://github.com/laravel/framework/blob/c0970285/src/Illuminate/Foundation/helpers.php#L254-L265
- */
-function config($key = null, $default = null)
-{
- if (is_null($key)) {
- return sage('config');
- }
- if (is_array($key)) {
- return sage('config')->set($key);
- }
- return sage('config')->get($key, $default);
-}
-
-/**
- * @param string $file
- * @param array $data
- * @return string
- */
-function template($file, $data = [])
-{
- if (remove_action('wp_head', 'wp_enqueue_scripts', 1)) {
- wp_enqueue_scripts();
- }
-
- return sage('blade')->render($file, $data);
-}
-
-/**
- * Retrieve path to a compiled blade view
- * @param $file
- * @param array $data
- * @return string
- */
-function template_path($file, $data = [])
-{
- return sage('blade')->compiledPath($file, $data);
-}
-
-/**
- * @param $asset
- * @return string
- */
-function asset_path($asset)
-{
- return fix_path(sage('assets')->getUri('/' . $asset));
-}
-
-/**
- * @param $asset
- * @return string
- */
-function asset_dir($asset)
-{
- return fix_path(sage('assets')->get('/' . $asset));
-}
-
-/**
- * @param string|string[] $templates Possible template files
- * @return array
- */
-function filter_templates($templates)
-{
- $paths = apply_filters('sage/filter_templates/paths', [
- 'views',
- 'resources/views'
- ]);
- $paths_pattern = "#^(" . implode('|', $paths) . ")/#";
-
- return collect($templates)
- ->map(function ($template) use ($paths_pattern) {
- /** Remove .blade.php/.blade/.php from template names */
- $template = preg_replace('#\.(blade\.?)?(php)?$#', '', ltrim($template));
-
- /** Remove partial $paths from the beginning of template names */
- if (strpos($template, '/')) {
- $template = preg_replace($paths_pattern, '', $template);
- }
-
- return $template;
- })
- ->flatMap(function ($template) use ($paths) {
- return collect($paths)
- ->flatMap(function ($path) use ($template) {
- return [
- "{$path}/{$template}.blade.php",
- "{$path}/{$template}.php",
- "{$template}.blade.php",
- "{$template}.php",
- ];
- });
- })
- ->filter()
- ->unique()
- ->all();
-}
-
-/**
- * @param string|string[] $templates Relative path to possible template files
- * @return string Location of the template
- */
-function locate_template($templates)
-{
- return \locate_template(filter_templates($templates));
-}
-
-/**
- *
- * Catch a contact form submission.
- *
- * @return false | array
- */
-function contact_form_submission()
-{
- if (isset($_POST['submitted'])) {
- $output = [];
- $name = (isset($_POST['visitor_name'])) ? $_POST['visitor_name'] : false;
- $email = (isset($_POST['visitor_email'])) ? $_POST['visitor_email'] : false;
- $institution = (isset($_POST['visitor_institution'])) ? $_POST['visitor_institution'] : false;
- $message = (isset($_POST['message'])) ? $_POST['message'] : false;
- if (!$name) {
- $output['message'] = __('Name is required.', 'aldine');
- $output['status'] = 'error';
- $output['field'] = 'visitor_name';
- } elseif (!$email) {
- $output['message'] = __('Email is required.', 'aldine');
- $output['status'] = 'error';
- $output['field'] = 'visitor_email';
- } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
- $output['message'] = __('Email is invalid.', 'aldine');
- $output['status'] = 'error';
- $output['field'] = 'visitor_email';
- } elseif (!$institution) {
- $output['message'] = __('Institution is required.', 'aldine');
- $output['status'] = 'error';
- $output['field'] = 'visitor_institution';
- } elseif (!$message) {
- $output['message'] = __('Message is required.', 'aldine');
- $output['status'] = 'error';
- $output['field'] = 'message';
- } else {
- $sent = wp_mail(
- get_option('admin_email'),
- sprintf(__('Contact Form Submission from %s', 'aldine'), $name),
- sprintf(
- "From: %1\$s <%2\$s>\n%3\$s",
- $name,
- $email,
- strip_tags($message)
- ),
- "From: ${email}\r\nReply-To: ${email}\r\n"
- );
- if ($sent) {
- $output['message'] = __('Your message was sent!', 'aldine');
- $output['status'] = 'success';
- } else {
- $output['message'] = __('Your message could not be sent.', 'aldine');
- $output['status'] = 'error';
- }
- }
- return $output;
- }
- return false;
-}
-
-function fix_path($path)
-{
- return str_replace('/dist//', '/dist/', $path);
-}
diff --git a/app/intervention.php b/app/intervention.php
deleted file mode 100644
index 68d0421..0000000
--- a/app/intervention.php
+++ /dev/null
@@ -1,38 +0,0 @@
- __('Network Footer Menu', 'aldine')
- ]);
-
- /**
- * Enable custom headers
- * @link https://developer.wordpress.org/themes/functionality/custom-headers/
- */
- add_theme_support('custom-header', [
- 'default-image' => asset_path('images/header.jpg'),
- 'width' => 1920,
- 'height' => 884,
- 'default-text-color' => '#000',
- ]);
-
- /**
- * Enable custom logos
- * @link https://developer.wordpress.org/themes/functionality/custom-logo/
- */
- add_theme_support('custom-logo', [
- 'height' => 40,
- 'width' => 265,
- 'flex-width' => true,
- 'flex-height' => true,
- ]);
-
- /**
- * Enable post thumbnails
- * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
- */
- add_theme_support('post-thumbnails');
-
- /**
- * Enable HTML5 markup support
- * @link https://developer.wordpress.org/reference/functions/add_theme_support/#html5
- */
- add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']);
-
- /**
- * Enable selective refresh for widgets in customizer
- * @link https://developer.wordpress.org/themes/advanced-topics/customizer-api/#theme-support-in-sidebars
- */
- add_theme_support('customize-selective-refresh-widgets');
-
- /**
- * Use main stylesheet for visual editor
- * @see resources/assets/styles/layouts/_tinymce.scss
- */
- add_editor_style(asset_path('styles/main.css'));
-}, 20);
-
-/**
- * Register sidebars
- */
-add_action('widgets_init', function () {
- $config = [
- 'before_widget' => '',
- 'before_title' => '
',
- 'after_title' => '
'
- ];
- register_sidebar([
- 'name' => __('Front Page Content', 'aldine'),
- 'description' => __(
- 'Add content for your network’s front page here. Currently, only text widgets are supported.',
- 'aldine'
- ),
- 'id' => 'front-page-block',
- 'before_widget' => '',
- 'before_title' => '',
- 'after_title' => '
'
- ]);
- register_sidebar([
- 'name' => __('Network Footer Block 1', 'aldine'),
- 'description' => __(
- 'Add content for your network’s customizeable footer here.
- Currently, only text and image widgets are supported.
- Content in this widget area will appear in the first row (on mobile) or the first column (on desktops).',
- 'aldine'
- ),
- 'id' => 'network-footer-block-1'
- ] + $config);
- register_sidebar([
- 'name' => __('Network Footer Block 2', 'aldine'),
- 'description' => __(
- 'Add content for your network’s customizeable footer here.
- Currently, only text and image widgets are supported.
- Content in this widget area will appear in the second row (on mobile) or the middle column (on desktop).',
- 'aldine'
- ),
- 'id' => 'network-footer-block-2'
- ] + $config);
-});
-
-/**
- * Updates the `$post` variable on each iteration of the loop.
- * Note: updated value is only available for subsequently loaded views, such as partials
- */
-add_action('the_post', function ($post) {
- sage('blade')->share('post', $post);
-});
-
-/**
- * Setup Sage options
- */
-add_action('after_setup_theme', function () {
- /**
- * Add JsonManifest to Sage container
- */
- sage()->singleton('sage.assets', function () {
- return new JsonManifest(config('assets.manifest'), config('assets.uri'));
- });
-
- /**
- * Add Blade to Sage container
- */
- sage()->singleton('sage.blade', function (\Illuminate\Container\Container $app) {
- $cachePath = config('view.compiled');
- if (!file_exists($cachePath)) {
- wp_mkdir_p($cachePath);
- }
- (new BladeProvider($app))->register();
- return new Blade($app['view']);
- });
-
- /**
- * Create @asset() Blade directive
- */
- sage('blade')->compiler()->directive('asset', function ($asset) {
- return "= " . __NAMESPACE__ . "\\asset_path({$asset}); ?>";
- });
-});
-
-add_action('wp_head', function () {
- $primary = get_option('pb_network_color_primary');
- $accent = get_option('pb_network_color_accent');
- $primary_fg = get_option('pb_network_color_primary_fg');
- $accent_fg = get_option('pb_network_color_accent_fg');
- $header_text = get_header_textcolor();
- if ($primary || $accent || $primary_fg || $accent_fg || $header_text) { ?>
-
- share('contact_form_response', $response);
-});
diff --git a/assets/scripts/customizer.js b/assets/scripts/customizer.js
index 86404ac..b241489 100644
--- a/assets/scripts/customizer.js
+++ b/assets/scripts/customizer.js
@@ -1,5 +1,5 @@
import $ from 'jquery';
wp.customize( 'blogname', value => {
- value.bind( to => $( '.brand' ).text( to ) );
+ value.bind( to => $( '.brand a' ).text( to ) );
} );
diff --git a/dist/mix-manifest.json b/dist/mix-manifest.json
index 4d67b6f..3bdefe0 100644
--- a/dist/mix-manifest.json
+++ b/dist/mix-manifest.json
@@ -1,5 +1,5 @@
{
- "/scripts/aldine.js": "/scripts/aldine.js?id=8a707791c89c90b8f4c6",
- "/styles/aldine.css": "/styles/aldine.css?id=8021de4bdd5014faae77",
- "/scripts/customizer.js": "/scripts/customizer.js?id=9be871217cf240694b73"
+ "/scripts/aldine.js": "/scripts/aldine.js",
+ "/styles/aldine.css": "/styles/aldine.css",
+ "/scripts/customizer.js": "/scripts/customizer.js"
}
\ No newline at end of file
diff --git a/dist/scripts/aldine.js b/dist/scripts/aldine.js
index 471ef03..7834be6 100644
--- a/dist/scripts/aldine.js
+++ b/dist/scripts/aldine.js
@@ -1 +1,14599 @@
-!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}({"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+Sdf":function(t,e,n){"use strict";(function(t){e.a={init:function(){t("body").removeClass("no-js").addClass("js"),t(".toggle").click(function(e){e.preventDefault(),t(e.currentTarget).toggleClass("toggle--active"),t(".banner__navigation").toggleClass("banner__navigation--visible")})},finalize:function(){}}}).call(e,n("7t+N"))},"+ZMJ":function(t,e,n){var i=n("lOnJ");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"/7en":function(t,e,n){var i,r;!function(o,s){void 0===(r="function"==typeof(i=s)?i.call(e,n,e,t):i)||(t.exports=r)}("undefined"!=typeof window&&window,function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],r=0;ra||sa?1:-1)*(u?1:-1)}}return 0}}(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e0&&e-1 in t)}function u(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function c(t,e,n){return ft.isFunction(e)?ft.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?ft.grep(t,function(t){return t===e!==n}):"string"!=typeof e?ft.grep(t,function(t){return rt.call(e,t)>-1!==n}):wt.test(e)?ft.filter(e,t,n):(e=ft.filter(e,t),ft.grep(t,function(t){return rt.call(e,t)>-1!==n&&1===t.nodeType}))}function l(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function f(t){return t}function h(t){throw t}function p(t,e,n,i){var r;try{t&&ft.isFunction(r=t.promise)?r.call(t).done(e).fail(n):t&&ft.isFunction(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function d(){Z.removeEventListener("DOMContentLoaded",d),n.removeEventListener("load",d),ft.ready()}function m(){this.expando=ft.expando+m.uid++}function g(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Ot,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:At.test(t)?JSON.parse(t):t)}(n)}catch(t){}Nt.set(t,e,n)}else n=void 0;return n}function v(t,e,n,i){var r,o=1,s=20,a=i?function(){return i.cur()}:function(){return ft.css(t,e,"")},u=a(),c=n&&n[3]||(ft.cssNumber[e]?"":"px"),l=(ft.cssNumber[e]||"px"!==c&&+u)&&zt.exec(ft.css(t,e));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{l/=o=o||".5",ft.style(t,e,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,r=n[1]?l+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=l,i.end=r)),r}function y(t){var e,n=t.ownerDocument,i=t.nodeName,r=qt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=ft.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),qt[i]=r,r)}function x(t,e){for(var n,i,r=[],o=0,s=t.length;o-1)r&&r.push(o);else if(c=ft.contains(o.ownerDocument,o),s=b(f.appendChild(o),"script"),c&&w(s),n)for(l=0;o=s[l++];)Bt.test(o.type||"")&&n.push(o);return f}function C(){return!0}function E(){return!1}function S(){try{return Z.activeElement}catch(t){}}function _(t,e,n,i,r,o){var s,a;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(a in e)_(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=E;else if(!r)return t;return 1===o&&(s=r,(r=function(t){return ft().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=ft.guid++)),t.each(function(){ft.event.add(this,e,r,i,n)})}function D(t,e){return u(t,"table")&&u(11!==e.nodeType?e:e.firstChild,"tr")?ft(">tbody",t)[0]||t:t}function k(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function L(t){var e=Zt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function j(t,e){var n,i,r,o,s,a,u,c;if(1===e.nodeType){if(It.hasData(t)&&(o=It.access(t),s=It.set(e,o),c=o.events)){delete s.handle,s.events={};for(r in c)for(n=0,i=c[r].length;n1&&"string"==typeof d&&!lt.checkClone&&Kt.test(d))return t.each(function(r){var o=t.eq(r);m&&(e[0]=d.call(this,r,o.html())),N(o,e,n,i)});if(h&&(r=T(e,t[0].ownerDocument,!1,t,i),o=r.firstChild,1===r.childNodes.length&&(r=o),o||i)){for(u=(a=ft.map(b(r,"script"),k)).length;f=0&&nw.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[P]=!0,t}function r(t){var e=I.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Tt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function l(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function f(t){return t&&void 0!==t.getElementsByTagName&&t}function h(){}function p(t){for(var e=0,n=t.length,i="";e1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function g(t,e,n,i,r){for(var o,s=[],a=0,u=t.length,c=null!=e;a-1&&(i[l]=!(a[l]=h))}}else x=g(x===a?x.splice(m,x.length):x),s?s(null,a,x,c):Q.apply(a,x)})}function y(t){for(var e,n,i,r=t.length,o=w.relative[t[0].type],s=o||w.relative[" "],a=o?1:0,u=d(function(t){return t===e},s,!0),c=d(function(t){return K(e,t)>-1},s,!0),l=[function(t,n,i){var r=!o&&(i||n!==D)||((e=n).nodeType?u(t,n,i):c(t,n,i));return e=null,r}];a1&&m(l),a>1&&p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ot,"$1"),n,a+~]|"+tt+")"+tt+"*"),ut=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ct=new RegExp(it),lt=new RegExp("^"+et+"$"),ft={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+nt),PSEUDO:new RegExp("^"+it),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},ht=/^(?:input|select|textarea|button)$/i,pt=/^h\d$/i,dt=/^[^{]+\{\s*\[native \w/,mt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,vt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),yt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},xt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,bt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},wt=function(){j()},Tt=d(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{Q.apply(X=J.call(F.childNodes),F.childNodes),X[F.childNodes.length].nodeType}catch(t){Q={apply:X.length?function(t,e){V.apply(t,J.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}b=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},j=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:F;return i!==I&&9===i.nodeType&&i.documentElement?(I=i,N=I.documentElement,A=!C(I),F!==I&&(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",wt,!1):n.attachEvent&&n.attachEvent("onunload",wt)),b.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=r(function(t){return t.appendChild(I.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=dt.test(I.getElementsByClassName),b.getById=r(function(t){return N.appendChild(t).id=P,!I.getElementsByName||!I.getElementsByName(P).length}),b.getById?(w.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){return t.getAttribute("id")===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&A){var n=e.getElementById(t);return n?[n]:[]}}):(w.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&A){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},w.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&A)return e.getElementsByClassName(t)},H=[],O=[],(b.qsa=dt.test(I.querySelectorAll))&&(r(function(t){N.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||O.push("\\["+tt+"*(?:value|"+Z+")"),t.querySelectorAll("[id~="+P+"-]").length||O.push("~="),t.querySelectorAll(":checked").length||O.push(":checked"),t.querySelectorAll("a#"+P+"+*").length||O.push(".#.+[+~]")}),r(function(t){t.innerHTML="";var e=I.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&O.push("name"+tt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),N.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),O.push(",.*:")})),(b.matchesSelector=dt.test(z=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&r(function(t){b.disconnectedMatch=z.call(t,"*"),z.call(t,"[s!='']:x"),H.push("!=",it)}),O=O.length&&new RegExp(O.join("|")),H=H.length&&new RegExp(H.join("|")),e=dt.test(N.compareDocumentPosition),W=e||dt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=e?function(t,e){if(t===e)return L=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!b.sortDetached&&e.compareDocumentPosition(t)===n?t===I||t.ownerDocument===F&&W(F,t)?-1:e===I||e.ownerDocument===F&&W(F,e)?1:k?K(k,t)-K(k,e):0:4&n?-1:1)}:function(t,e){if(t===e)return L=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],u=[e];if(!r||!o)return t===I?-1:e===I?1:r?-1:o?1:k?K(k,t)-K(k,e):0;if(r===o)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;a[i]===u[i];)i++;return i?s(a[i],u[i]):a[i]===F?-1:u[i]===F?1:0},I):I},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==I&&j(t),n=n.replace(ut,"='$1']"),b.matchesSelector&&A&&!$[n+" "]&&(!H||!H.test(n))&&(!O||!O.test(n)))try{var i=z.call(t,n);if(i||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,I,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==I&&j(t),W(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==I&&j(t);var n=w.attrHandle[e.toLowerCase()],i=n&&Y.call(w.attrHandle,e.toLowerCase())?n(t,e,!A):void 0;return void 0!==i?i:b.attributes||!A?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(xt,bt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(L=!b.detectDuplicates,k=!b.sortStable&&t.slice(0),t.sort(U),L){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return k=null,t},T=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=T(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=T(e);return n},(w=e.selectors={cacheLength:50,createPseudo:i,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(vt,yt),t[3]=(t[3]||t[4]||t[5]||"").replace(vt,yt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ct.test(n)&&(e=E(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(vt,yt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=R[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&R(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(rt," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,h,p,d,m=o!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(g){if(o){for(;m;){for(h=e;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;d=m="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?g.firstChild:g.lastChild],s&&y){for(x=(p=(c=(l=(f=(h=g)[P]||(h[P]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===q&&c[1])&&c[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(x=p=0)||d.pop();)if(1===h.nodeType&&++x&&h===e){l[t]=[q,p,x];break}}else if(y&&(x=p=(c=(l=(f=(h=e)[P]||(h[P]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===q&&c[1]),!1===x)for(;(h=++p&&h&&h[m]||(x=p=0)||d.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++x||(y&&((l=(f=h[P]||(h[P]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]=[q,x]),h!==e)););return(x-=r)===i||x%i==0&&x/i>=0}}},PSEUDO:function(t,n){var r,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[P]?o(n):o.length>1?(r=[t,t,"",n],w.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),s=r.length;s--;)t[i=K(t,r[s])]=!(e[i]=r[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=S(t.replace(ot,"$1"));return r[P]?i(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(vt,yt),function(e){return(e.textContent||e.innerText||T(e)).indexOf(t)>-1}}),lang:i(function(t){return lt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(vt,yt).toLowerCase(),function(e){var n;do{if(n=A?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return pt.test(t.nodeName)},input:function(t){return ht.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n=0;)t.push(i);return t}),gt:l(function(t,e,n){for(var i=n<0?n+e:n;++i0,o=t.length>0,s=function(i,s,a,u,c){var l,f,h,p=0,d="0",m=i&&[],v=[],y=D,x=i||o&&w.find.TAG("*",c),b=q+=null==y?1:Math.random()||.1,T=x.length;for(c&&(D=s===I||s||c);d!==T&&null!=(l=x[d]);d++){if(o&&l){for(f=0,s||l.ownerDocument===I||(j(l),a=!A);h=t[f++];)if(h(l,s||I,a)){u.push(l);break}c&&(q=b)}r&&((l=!h&&l)&&p--,i&&m.push(l))}if(p+=d,r&&d!==p){for(f=0;h=n[f++];)h(m,v,s,a);if(i){if(p>0)for(;d--;)m[d]||v[d]||(v[d]=G.call(u));v=g(v)}Q.apply(u,v),c&&!i&&v.length>0&&p+n.length>1&&e.uniqueSort(u)}return c&&(q=b,D=y),m};return r?i(s):s}(s,o))).selector=t}return a},_=e.select=function(t,e,n,i){var r,o,s,a,u,c="function"==typeof t&&t,l=!i&&E(t=c.selector||t);if(n=n||[],1===l.length){if((o=l[0]=l[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===e.nodeType&&A&&w.relative[o[1].type]){if(!(e=(w.find.ID(s.matches[0].replace(vt,yt),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ft.needsContext.test(t)?0:o.length;r--&&(s=o[r],!w.relative[a=s.type]);)if((u=w.find[a])&&(i=u(s.matches[0].replace(vt,yt),gt.test(o[0].type)&&f(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&p(o)))return Q.apply(n,i),n;break}}return(c||S(t,l))(i,e,!A,n,!e||gt.test(t)&&f(e.parentNode)||e),n},b.sortStable=P.split("").sort(U).join("")===P,b.detectDuplicates=!!L,j(),b.sortDetached=r(function(t){return 1&t.compareDocumentPosition(I.createElement("fieldset"))}),r(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&r(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(Z,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(n);ft.find=gt,ft.expr=gt.selectors,ft.expr[":"]=ft.expr.pseudos,ft.uniqueSort=ft.unique=gt.uniqueSort,ft.text=gt.getText,ft.isXMLDoc=gt.isXML,ft.contains=gt.contains,ft.escapeSelector=gt.escape;var vt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&ft(t).is(n))break;i.push(t)}return i},yt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},xt=ft.expr.match.needsContext,bt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,wt=/^.[^:#\[\.,]*$/;ft.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ft.find.matchesSelector(i,t)?[i]:[]:ft.find.matches(t,ft.grep(e,function(t){return 1===t.nodeType}))},ft.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(ft(t).filter(function(){for(e=0;e1?ft.uniqueSort(n):n},filter:function(t){return this.pushStack(c(this,t||[],!1))},not:function(t){return this.pushStack(c(this,t||[],!0))},is:function(t){return!!c(this,"string"==typeof t&&xt.test(t)?ft(t):t||[],!1).length}});var Tt,Ct=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ft.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||Tt,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Ct.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof ft?e[0]:e,ft.merge(this,ft.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:Z,!0)),bt.test(i[1])&&ft.isPlainObject(e))for(i in e)ft.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=Z.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):ft.isFunction(t)?void 0!==n.ready?n.ready(t):t(ft):ft.makeArray(t,this)}).prototype=ft.fn,Tt=ft(Z);var Et=/^(?:parents|prev(?:Until|All))/,St={children:!0,contents:!0,next:!0,prev:!0};ft.fn.extend({has:function(t){var e=ft(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&ft.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ft.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?rt.call(ft(t),this[0]):rt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ft.uniqueSort(ft.merge(this.get(),ft(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ft.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return vt(t,"parentNode")},parentsUntil:function(t,e,n){return vt(t,"parentNode",n)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return vt(t,"nextSibling")},prevAll:function(t){return vt(t,"previousSibling")},nextUntil:function(t,e,n){return vt(t,"nextSibling",n)},prevUntil:function(t,e,n){return vt(t,"previousSibling",n)},siblings:function(t){return yt((t.parentNode||{}).firstChild,t)},children:function(t){return yt(t.firstChild)},contents:function(t){return u(t,"iframe")?t.contentDocument:(u(t,"template")&&(t=t.content||t),ft.merge([],t.childNodes))}},function(t,e){ft.fn[t]=function(n,i){var r=ft.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=ft.filter(i,r)),this.length>1&&(St[t]||ft.uniqueSort(r),Et.test(t)&&r.reverse()),this.pushStack(r)}});var _t=/[^\x20\t\r\n\f]+/g;ft.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return ft.each(t.match(_t)||[],function(t,n){e[n]=!0}),e}(t):ft.extend({},t);var e,n,i,r,o=[],s=[],a=-1,u=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a-1;)o.splice(n,1),n<=a&&a--}),this},has:function(t){return t?ft.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},ft.extend({Deferred:function(t){var e=[["notify","progress",ft.Callbacks("memory"),ft.Callbacks("memory"),2],["resolve","done",ft.Callbacks("once memory"),ft.Callbacks("once memory"),0,"resolved"],["reject","fail",ft.Callbacks("once memory"),ft.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return ft.Deferred(function(n){ft.each(e,function(e,i){var r=ft.isFunction(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&ft.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,i,r){function o(t,e,i,r){return function(){var a=this,u=arguments,c=function(){var n,c;if(!(t=s&&(i!==h&&(a=void 0,u=[n]),e.rejectWith(a,u))}};t?l():(ft.Deferred.getStackHook&&(l.stackTrace=ft.Deferred.getStackHook()),n.setTimeout(l))}}var s=0;return ft.Deferred(function(n){e[0][3].add(o(0,n,ft.isFunction(r)?r:f,n.notifyWith)),e[1][3].add(o(0,n,ft.isFunction(t)?t:f)),e[2][3].add(o(0,n,ft.isFunction(i)?i:h))}).promise()},promise:function(t){return null!=t?ft.extend(t,r):r}},o={};return ft.each(e,function(t,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add(function(){i=a},e[3-t][2].disable,e[0][2].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=et.call(arguments),o=ft.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?et.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(p(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||ft.isFunction(r[n]&&r[n].then)))return o.then();for(;n--;)p(r[n],s(n),o.reject);return o.promise()}});var Dt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ft.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&Dt.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},ft.readyException=function(t){n.setTimeout(function(){throw t})};var kt=ft.Deferred();ft.fn.ready=function(t){return kt.then(t).catch(function(t){ft.readyException(t)}),this},ft.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--ft.readyWait:ft.isReady)||(ft.isReady=!0,!0!==t&&--ft.readyWait>0||kt.resolveWith(Z,[ft]))}}),ft.ready.then=kt.then,"complete"===Z.readyState||"loading"!==Z.readyState&&!Z.documentElement.doScroll?n.setTimeout(ft.ready):(Z.addEventListener("DOMContentLoaded",d),n.addEventListener("load",d));var Lt=function(t,e,n,i,r,o,s){var a=0,u=t.length,c=null==n;if("object"===ft.type(n)){r=!0;for(a in n)Lt(t,e,a,n[a],!0,o,s)}else if(void 0!==i&&(r=!0,ft.isFunction(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(ft(t),n)})),e))for(;a1,null,!0)},removeData:function(t){return this.each(function(){Nt.remove(this,t)})}}),ft.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=It.get(t,e),n&&(!i||Array.isArray(n)?i=It.access(t,e,ft.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=ft.queue(t,e),i=n.length,r=n.shift(),o=ft._queueHooks(t,e),s=function(){ft.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return It.get(t,n)||It.access(t,n,{empty:ft.Callbacks("once memory").add(function(){It.remove(t,[e+"queue",n])})})}}),ft.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]+)/i,Bt=/^$|\/(?:java|ecma)script/i,$t={option:[1,""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};$t.optgroup=$t.option,$t.tbody=$t.tfoot=$t.colgroup=$t.caption=$t.thead,$t.th=$t.td;var Ut=/<|?\w+;/;!function(){var t=Z.createDocumentFragment().appendChild(Z.createElement("div")),e=Z.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),lt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",lt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Yt=Z.documentElement,Xt=/^key/,Gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Vt=/^([^.]*)(?:\.(.+)|)/;ft.event={global:{},add:function(t,e,n,i,r){var o,s,a,u,c,l,f,h,p,d,m,g=It.get(t);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&ft.find.matchesSelector(Yt,r),n.guid||(n.guid=ft.guid++),(u=g.events)||(u=g.events={}),(s=g.handle)||(s=g.handle=function(e){return void 0!==ft&&ft.event.triggered!==e.type?ft.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(_t)||[""]).length;c--;)p=m=(a=Vt.exec(e[c])||[])[1],d=(a[2]||"").split(".").sort(),p&&(f=ft.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,f=ft.event.special[p]||{},l=ft.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&ft.expr.match.needsContext.test(r),namespace:d.join(".")},o),(h=u[p])||((h=u[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,i,d,s)||t.addEventListener&&t.addEventListener(p,s)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,l):h.push(l),ft.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,s,a,u,c,l,f,h,p,d,m,g=It.hasData(t)&&It.get(t);if(g&&(u=g.events)){for(c=(e=(e||"").match(_t)||[""]).length;c--;)if(a=Vt.exec(e[c])||[],p=m=a[1],d=(a[2]||"").split(".").sort(),p){for(f=ft.event.special[p]||{},h=u[p=(i?f.delegateType:f.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)l=h[o],!r&&m!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||i&&i!==l.selector&&("**"!==i||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));s&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,d,g.handle)||ft.removeEvent(t,p,g.handle),delete u[p])}else for(p in u)ft.event.remove(t,p+e[c],n,i,!0);ft.isEmptyObject(u)&&It.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=ft.event.fix(t),u=new Array(arguments.length),c=(It.get(this,"events")||{})[a.type]||[],l=ft.event.special[a.type]||{};for(u[0]=a,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],s={},n=0;n-1:ft.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,Jt=/
diff --git a/resources/views/partials/uio.blade.php b/resources/views/partials/uio.blade.php
deleted file mode 100644
index f2c1982..0000000
--- a/resources/views/partials/uio.blade.php
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/resources/views/search.blade.php b/resources/views/search.blade.php
deleted file mode 100644
index 3fc6b63..0000000
--- a/resources/views/search.blade.php
+++ /dev/null
@@ -1,18 +0,0 @@
-@extends('layouts.app')
-
-@section('content')
- @include('partials.page-header')
-
- @if (!have_posts())
-
- {{ __('Sorry, no results were found.', 'aldine') }}
-
- {!! get_search_form(false) !!}
- @endif
-
- @while(have_posts()) @php(the_post())
- @include('partials.content-search')
- @endwhile
-
- {!! get_the_posts_navigation() !!}
-@endsection
diff --git a/resources/views/single.blade.php b/resources/views/single.blade.php
deleted file mode 100644
index cf60c3e..0000000
--- a/resources/views/single.blade.php
+++ /dev/null
@@ -1,7 +0,0 @@
-@extends('layouts.app')
-
-@section('content')
- @while(have_posts()) @php(the_post())
- @include('partials.content-single-'.get_post_type())
- @endwhile
-@endsection
diff --git a/resources/views/template-custom.blade.php b/resources/views/template-custom.blade.php
deleted file mode 100644
index 762a54a..0000000
--- a/resources/views/template-custom.blade.php
+++ /dev/null
@@ -1,12 +0,0 @@
-{{--
- Template Name: Custom Template
---}}
-
-@extends('layouts.app')
-
-@section('content')
- @while(have_posts()) @php(the_post())
- @include('partials.page-header')
- @include('partials.content-page')
- @endwhile
-@endsection
diff --git a/resources/views/page-catalog.blade.php b/views/page-catalog.blade.php
similarity index 100%
rename from resources/views/page-catalog.blade.php
rename to views/page-catalog.blade.php
diff --git a/resources/views/partials/header.blade.php b/views/partials/header.blade.php
similarity index 100%
rename from resources/views/partials/header.blade.php
rename to views/partials/header.blade.php
diff --git a/resources/views/partials/page-header.blade.php b/views/partials/page-header.blade.php
similarity index 100%
rename from resources/views/partials/page-header.blade.php
rename to views/partials/page-header.blade.php
diff --git a/resources/views/partials/svg.blade.php b/views/partials/svg.blade.php
similarity index 100%
rename from resources/views/partials/svg.blade.php
rename to views/partials/svg.blade.php