diff --git a/wp-content/themes/cosmopet-timber/.gitattributes b/wp-content/themes/cosmopet-timber/.gitattributes deleted file mode 100644 index 2e1912c..0000000 --- a/wp-content/themes/cosmopet-timber/.gitattributes +++ /dev/null @@ -1,4 +0,0 @@ -/.gitattributes export-ignore -/.github export-ignore -/tests export-ignore -/phpunit.xml \ No newline at end of file diff --git a/wp-content/themes/cosmopet-timber/.github/PULL_REQUEST_TEMPLATE.md b/wp-content/themes/cosmopet-timber/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 626a6ed..0000000 --- a/wp-content/themes/cosmopet-timber/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,35 +0,0 @@ - - - - -Related: - -- Ticket 1 -- Ticket 2 - -## Issue - - - -## Solution - - - -## Impact - - - -## Usage Changes - - -## Considerations - - - -## Testing - diff --git a/wp-content/themes/cosmopet-timber/.github/workflows/test.yml b/wp-content/themes/cosmopet-timber/.github/workflows/test.yml deleted file mode 100644 index f949e1e..0000000 --- a/wp-content/themes/cosmopet-timber/.github/workflows/test.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: Timber starter theme tests - -on: - push: - branches: - - '1.x' - - '2.x' - pull_request: - types: - - opened - - synchronize - - ready_for_review - -# Cancel previous workflow run groups that have not completed. -concurrency: - # Group workflow runs by workflow name, along with the head branch ref of the pull request - # or otherwise the branch or tag ref. - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} - cancel-in-progress: true - -jobs: - phpunit: - runs-on: ubuntu-latest - - continue-on-error: ${{ matrix.experimental }} - strategy: - fail-fast: false - matrix: - php: ['8.1', '8.2'] - wp: ['latest'] - multisite: ['0', '1'] - extensions: ['gd'] - experimental: [false] - include: - # PHP 8.2 / experimental - - php: '8.2' - wp: 'trunk' - dependency-version: 'highest' - multisite: '0' - experimental: true - # PHP 8.3 / experimental - - php: '8.3' - wp: 'trunk' - dependency-version: 'highest' - multisite: '0' - experimental: true - # Coverage - - php: '8.1' - wp: 'latest' - dependency-version: 'highest' - multisite: '0' - experimental: false - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - tools: composer:v2 - extensions: curl, date, dom, iconv, json, libxml, gd - - - name: Setup problem matchers for PHP - run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" - - - name: Setup problem matchers for PHPUnit - run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - - uses: ramsey/composer-install@v3 - - - name: Run tests - run: composer run test - env: - WP_MULTISITE: ${{ matrix.multisite }} diff --git a/wp-content/themes/cosmopet-timber/.gitignore b/wp-content/themes/cosmopet-timber/.gitignore deleted file mode 100644 index 9477bf3..0000000 --- a/wp-content/themes/cosmopet-timber/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/composer.lock -/vendor/ -/wordpress/ -.phpunit.result.cache \ No newline at end of file diff --git a/wp-content/themes/cosmopet-timber/404.php b/wp-content/themes/cosmopet-timber/404.php deleted file mode 100644 index a51168d..0000000 --- a/wp-content/themes/cosmopet-timber/404.php +++ /dev/null @@ -1,11 +0,0 @@ - $title, - ] -); - -Timber::render( $templates, $context ); diff --git a/wp-content/themes/cosmopet-timber/assets/fonts/.gitkeep b/wp-content/themes/cosmopet-timber/assets/fonts/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/wp-content/themes/cosmopet-timber/assets/images/.gitkeep b/wp-content/themes/cosmopet-timber/assets/images/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/wp-content/themes/cosmopet-timber/assets/scripts/site.js b/wp-content/themes/cosmopet-timber/assets/scripts/site.js deleted file mode 100644 index 6655bd0..0000000 --- a/wp-content/themes/cosmopet-timber/assets/scripts/site.js +++ /dev/null @@ -1,5 +0,0 @@ -jQuery( document ).ready( function( $ ) { - - // Your JavaScript goes here - -}); \ No newline at end of file diff --git a/wp-content/themes/cosmopet-timber/assets/styles/.gitkeep b/wp-content/themes/cosmopet-timber/assets/styles/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/wp-content/themes/cosmopet-timber/author.php b/wp-content/themes/cosmopet-timber/author.php deleted file mode 100644 index dae48bc..0000000 --- a/wp-content/themes/cosmopet-timber/author.php +++ /dev/null @@ -1,18 +0,0 @@ -name() ); -} - -Timber::render( [ 'templates/author.twig', 'templates/archive.twig' ], $context ); diff --git a/wp-content/themes/cosmopet-timber/composer.json b/wp-content/themes/cosmopet-timber/composer.json deleted file mode 100644 index 1e1dcd5..0000000 --- a/wp-content/themes/cosmopet-timber/composer.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "name": "timber/starter-theme", - "description": "Starter theme to build a Timber theme", - "type":"wordpress-theme", - "license": "MIT", - "authors": [ - { - "name": "Erik van der Bas", - "email": "erik@basedonline.nl", - "homepage": "https://basedonline.nl" - }, - { - "name": "Lukas Gächter", - "email": "lukas.gaechter@mind.ch", - "homepage": "https://www.mind.ch" - }, - { - "name": "Nicolas Lemoine", - "email": "nico@n5s.dev", - "homepage": "https://n5s.dev" - }, - { - "name": "Jared Novack", - "email": "jared@upstatement.com", - "homepage": "https://upstatement.com" - }, - { - "name": "Timber Community", - "homepage": "https://github.com/timber/timber" - } - ], - "repositories": [ - { - "type": "composer", - "url": "https://wpackagist.org" - } - ], - "require": { - "timber/timber": "^2.1" - }, - "require-dev": { - "automattic/wordbless": "^0.4.2", - "yoast/wp-test-utils": "^1.0", - "wp-coding-standards/wpcs": "^3.1", - "phpcompatibility/php-compatibility": "^9", - "szepeviktor/phpstan-wordpress": "^1.3", - "10up/phpcs-composer": "^3.0" - }, - "extra": { - "installer-paths": { - "vendor/automattic/wordbless/": [ - "automattic/wordbless" - ] - }, - "wordpress-install-dir": "wordpress" - }, - "config": { - "allow-plugins": { - "roots/wordpress-core-installer": true, - "composer/installers": true, - "dealerdirect/phpcodesniffer-composer-installer": true - } - }, - "autoload": { - "psr-4": { - "App\\": "src/" - } - }, - "scripts": { - "test": "phpunit", - "cs": "@php ./vendor/bin/phpcs --colors -s -p -v ./", - "cs:fix": "@php ./vendor/bin/phpcbf --colors -s -p -v ./", - "phpstan": "@php ./vendor/bin/phpstan analyse" - } -} diff --git a/wp-content/themes/cosmopet-timber/functions.php b/wp-content/themes/cosmopet-timber/functions.php deleted file mode 100644 index 76890b8..0000000 --- a/wp-content/themes/cosmopet-timber/functions.php +++ /dev/null @@ -1,19 +0,0 @@ - 'bar', - ] -); - -Timber::render( $templates, $context ); diff --git a/wp-content/themes/cosmopet-timber/page.php b/wp-content/themes/cosmopet-timber/page.php deleted file mode 100644 index 34c142d..0000000 --- a/wp-content/themes/cosmopet-timber/page.php +++ /dev/null @@ -1,17 +0,0 @@ - - - - . - - */node_modules/* - */wordpress/* - */vendor/* - */resources/* - */dist/* - */tests/* - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/wp-content/themes/cosmopet-timber/phpstan.neon b/wp-content/themes/cosmopet-timber/phpstan.neon deleted file mode 100644 index 5ce8f6d..0000000 --- a/wp-content/themes/cosmopet-timber/phpstan.neon +++ /dev/null @@ -1,15 +0,0 @@ -parameters: - editorUrl: 'vscode://file/%%file%%:%%line%%' - level: 5 # Increase until "max" - paths: - - src/ - - %currentWorkingDirectory%/ - excludePaths: - - tests/* - - docs/* - - vendor/* - - wordpress/* - ignoreErrors: - -includes: - - vendor/szepeviktor/phpstan-wordpress/extension.neon \ No newline at end of file diff --git a/wp-content/themes/cosmopet-timber/phpunit.xml b/wp-content/themes/cosmopet-timber/phpunit.xml deleted file mode 100644 index c0f40d4..0000000 --- a/wp-content/themes/cosmopet-timber/phpunit.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - ./tests/ - - - diff --git a/wp-content/themes/cosmopet-timber/screenshot.png b/wp-content/themes/cosmopet-timber/screenshot.png deleted file mode 100644 index f37bb02..0000000 Binary files a/wp-content/themes/cosmopet-timber/screenshot.png and /dev/null differ diff --git a/wp-content/themes/cosmopet-timber/search.php b/wp-content/themes/cosmopet-timber/search.php deleted file mode 100644 index 9e1ac5f..0000000 --- a/wp-content/themes/cosmopet-timber/search.php +++ /dev/null @@ -1,18 +0,0 @@ - 'Search results for ' . get_search_query(), - ] -); - -Timber::render( $templates, $context ); diff --git a/wp-content/themes/cosmopet-timber/single.php b/wp-content/themes/cosmopet-timber/single.php deleted file mode 100644 index df070cf..0000000 --- a/wp-content/themes/cosmopet-timber/single.php +++ /dev/null @@ -1,20 +0,0 @@ -post_type . '.twig', 'templates/single.twig' ]; - -if ( post_password_required( $post->ID ) ) { - $templates = 'templates/single-password.twig'; -} - -Timber::render( $templates, $context ); diff --git a/wp-content/themes/cosmopet-timber/src/StarterSite.php b/wp-content/themes/cosmopet-timber/src/StarterSite.php deleted file mode 100644 index 834eaad..0000000 --- a/wp-content/themes/cosmopet-timber/src/StarterSite.php +++ /dev/null @@ -1,186 +0,0 @@ - _x( 'Main menu', 'Backend - menu name', 'timber-starter' ), - ] - ); - - // Add default posts and comments RSS feed links to head. - add_theme_support( 'automatic-feed-links' ); - - /* - * Let WordPress manage the document title. - * By adding theme support, we declare that this theme does not use a - * hard-coded tag in the document head, and expect WordPress to - * provide it for us. - */ - add_theme_support( 'title-tag' ); - - /* - * Enable support for Post Thumbnails on posts and pages. - * - * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ - */ - add_theme_support( 'post-thumbnails' ); - - /* - * Switch default core markup for search form, comment form, and comments - * to output valid HTML5. - */ - add_theme_support( - 'html5', - [ - 'comment-form', - 'comment-list', - 'gallery', - 'caption', - ] - ); - - /* - * Enable support for Post Formats. - * - * See: https://codex.wordpress.org/Post_Formats - */ - add_theme_support( - 'post-formats', - [ - 'aside', - 'image', - 'video', - 'quote', - 'link', - 'gallery', - 'audio', - ] - ); - - add_theme_support( 'menus' ); - } - - /** - * This would return 'foo bar!'. - * - * @param string $text being 'foo', then returned 'foo bar!' - */ - public function myfoo( $text ) { - $text .= ' bar!'; - - return $text; - } - - /** - * This is where you can add your own functions to twig. - * - * @link https://timber.github.io/docs/v2/hooks/filters/#timber/twig/filters - * @param array $filters an array of Twig filters. - */ - public function add_filters_to_twig( $filters ) { - - $additional_filters = [ - 'myfoo' => [ - 'callable' => [ $this, 'myfoo' ], - ], - ]; - - return array_merge( $filters, $additional_filters ); - } - - - /** - * This is where you can add your own functions to twig. - * - * @link https://timber.github.io/docs/v2/hooks/filters/#timber/twig/functions - * @param array $functions an array of existing Twig functions. - */ - public function add_functions_to_twig( $functions ) { - $additional_functions = [ - 'get_theme_mod' => [ - 'callable' => 'get_theme_mod', - ], - ]; - - return array_merge( $functions, $additional_functions ); - } - - /** - * Updates Twig environment options. - * - * @see https://twig.symfony.com/doc/2.x/api.html#environment-options - * - * @param array $options an array of environment options - * - * @return array - */ - public function update_twig_environment_options( $options ) { - // $options['autoescape'] = true; - - return $options; - } -} diff --git a/wp-content/themes/cosmopet-timber/src/style.css b/wp-content/themes/cosmopet-timber/src/style.css deleted file mode 100644 index e7b0324..0000000 --- a/wp-content/themes/cosmopet-timber/src/style.css +++ /dev/null @@ -1,5 +0,0 @@ -/* - * Theme Name: Cosmopet Theme - * Description: Boilerplate Theme for Cosmopet site - * Author: Good Production -*/ \ No newline at end of file diff --git a/wp-content/themes/cosmopet-timber/style.css b/wp-content/themes/cosmopet-timber/style.css deleted file mode 100644 index e8aa430..0000000 --- a/wp-content/themes/cosmopet-timber/style.css +++ /dev/null @@ -1,5 +0,0 @@ -/* - * Theme Name: Cosmopet Theme - * Description: Boilerplate Theme for Cosmopet site - * Author: Good Production -*/ diff --git a/wp-content/themes/cosmopet-timber/tests/bootstrap.php b/wp-content/themes/cosmopet-timber/tests/bootstrap.php deleted file mode 100644 index fb3f982..0000000 --- a/wp-content/themes/cosmopet-timber/tests/bootstrap.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -use WorDBless\Load; - -if (! file_exists(dirname(__DIR__) . '/wordpress/wp-content')) { - mkdir(dirname(__DIR__) . '/wordpress/wp-content'); -} - -if (! file_exists(dirname(__DIR__) . '/wordpress/wp-content/themes')) { - mkdir(dirname(__DIR__) . '/wordpress/wp-content/themes'); -} - -copy( - dirname(__DIR__) . '/vendor/automattic/wordbless/src/dbless-wpdb.php', - dirname(__DIR__) . '/wordpress/wp-content/db.php' -); - -$theme_base_name = basename(dirname(__DIR__)); -$src = realpath(dirname(dirname(__DIR__)) . '/' . $theme_base_name); -$dest = dirname(__DIR__) . '/wordpress/wp-content/themes/' . $theme_base_name; - -if ( is_dir($src) && ! file_exists($dest) ) { - symlink($src, $dest); -} - -require_once dirname(__DIR__) . '/vendor/autoload.php'; - -Load::load(); diff --git a/wp-content/themes/cosmopet-timber/tests/test-timber-starter-theme.php b/wp-content/themes/cosmopet-timber/tests/test-timber-starter-theme.php deleted file mode 100644 index 6f02aa4..0000000 --- a/wp-content/themes/cosmopet-timber/tests/test-timber-starter-theme.php +++ /dev/null @@ -1,64 +0,0 @@ -<?php - -use Timber\Timber; -use WorDBless\BaseTestCase; - -class TestTimberStarterTheme extends BaseTestCase -{ - - public function set_up() - { - switch_theme(basename(dirname(__DIR__)) . '/theme'); - - require dirname(__DIR__) . '/functions.php'; - - Timber::$dirname = array_merge((array) Timber::$dirname, ['../views']); - Timber::$dirname = array_unique(Timber::$dirname); - - // WorDBless includes wp-settings.php - do_action('after_setup_theme'); - - parent::set_up(); - } - - function tear_down() - { - parent::tear_down(); - switch_theme('twentytwenty'); - } - - function testTimberExists() - { - $context = Timber::context(); - $this->assertTrue(is_array($context)); - } - - function testFunctionsPHP() - { - $context = Timber::context(); - $this->assertEquals('App\StarterSite', get_class($context['site'])); - $this->assertTrue(current_theme_supports('post-thumbnails')); - $this->assertEquals('bar', $context['foo']); - } - - function testLoading() - { - $str = Timber::compile('partials/tease.twig'); - $this->assertStringStartsWith('<article class="tease tease-" id="tease-">', $str); - $this->assertStringEndsWith('</article>', $str); - } - - /** - * Helper test to output current twig version - */ - function testTwigVersion() - { - $version = Timber::compile_string("{{ version }}", ['version' => Twig\Environment::VERSION]); - $this->assertEquals(Twig\Environment::VERSION, $version); - } - - // function testTwigFilter() { - // $str = Timber::compile_string('{{ "foo"|myfoo }}'); - // $this->assertEquals('foo bar!', $str); - // } -} diff --git a/wp-content/themes/cosmopet-timber/views/layouts/base.twig b/wp-content/themes/cosmopet-timber/views/layouts/base.twig deleted file mode 100644 index 537c08d..0000000 --- a/wp-content/themes/cosmopet-timber/views/layouts/base.twig +++ /dev/null @@ -1,43 +0,0 @@ -<!DOCTYPE html> -<html {{ site.language_attributes }}> - {% block head %} - {% include 'partials/head.twig' %} - {% endblock %} - - <body class="{{ body_class }}"> - {{ function('wp_body_open') }} - <a class="skip-link screen-reader-text" href="#content">{{ _e('Skip to content') }}</a> - <header class="header"> - {% block header %} - <div class="wrapper"> - <h1 class="hdr-logo"> - <a class="hdr-logo-link" href="{{ site.url }}">{{ site.name }}</a> - </h1> - <nav id="nav-main" class="nav-main"> - {% include 'partials/menu.twig' with { - items: menu.get_items - } %} - </nav> - <!-- #nav --> - </div> - {% endblock %} - </header> - - <section id="content" class="content-wrapper"> - {% if title %} - <h1>{{ title }}</h1> - {% endif %} - <div class="wrapper"> - {% block content %} - Sorry, no content - {% endblock %} - </div> - </section> - - {% block footer %} - {% include 'partials/footer.twig' %} - {% endblock %} - {{ function('wp_footer') }} - {% do action('get_footer') %} - </body> -</html> diff --git a/wp-content/themes/cosmopet-timber/views/partials/comment-form.twig b/wp-content/themes/cosmopet-timber/views/partials/comment-form.twig deleted file mode 100644 index 565f4b6..0000000 --- a/wp-content/themes/cosmopet-timber/views/partials/comment-form.twig +++ /dev/null @@ -1,32 +0,0 @@ -<div class="comment-form"> - <h3>Add comment</h3> - <form class="comment-form" method="post" action="{{ site.link ~ '/wp-comments-post.php' }}"> - {% if user %} - <input type="hidden" name="email" value="{{ user.email }}" /> - <input type="hidden" name="author" value="{{ user.name }}" /> - <input type="hidden" name="url" value="{{ user.link }}" /> - {% else %} - <label> - Email<br /> - <input required name="email" type="email" id="email" /> - </label> - <label> - Name<br /> - <input required name="author" type="text" /> - </label> - <label> - Website<br /> - <input name="url" type="url" /> - </label> - {% endif %} - <label> - Comment<br /> - <textarea placeholder="Leave a comment..." name="comment" cols="60" rows="3"></textarea> - </label> - <input name="comment_post_ID" value="{{ post.id }}" type="hidden" /> - <input name="comment_parent" value="{{ comment.id|default('0') }}" type="hidden" /> - <button type="submit" name="Submit" class="btn">Send</button> - <button type="reset">Cancel</button> - <p>Your comment will be revised by the site if needed.</p> - </form> -</div> diff --git a/wp-content/themes/cosmopet-timber/views/partials/comment.twig b/wp-content/themes/cosmopet-timber/views/partials/comment.twig deleted file mode 100644 index 710f979..0000000 --- a/wp-content/themes/cosmopet-timber/views/partials/comment.twig +++ /dev/null @@ -1,19 +0,0 @@ -<div class="blog-comment" id="blog-comment-{{ comment.id }}"> - <h5 class="comment-author">{{ comment.author.name }} says</h5> - <div class="comment-content">{{ comment.content|wpautop }}</div> - - <section class="comment-box"> - {% include 'partials/comment-form.twig' %} - - {% if post.comments %} - <h4>replies</h4> - <div class="comments"> - {% for cmt in comment.children %} - {% include 'partials/comment.twig' with { - comment: cmt - } %} - {% endfor %} - </div> - {% endif %} - </section> -</div> diff --git a/wp-content/themes/cosmopet-timber/views/partials/footer.twig b/wp-content/themes/cosmopet-timber/views/partials/footer.twig deleted file mode 100644 index 606165c..0000000 --- a/wp-content/themes/cosmopet-timber/views/partials/footer.twig +++ /dev/null @@ -1 +0,0 @@ -<footer id="footer">Copyright {{ 'now'|date('Y') }}</footer> diff --git a/wp-content/themes/cosmopet-timber/views/partials/head.twig b/wp-content/themes/cosmopet-timber/views/partials/head.twig deleted file mode 100644 index ea68c2a..0000000 --- a/wp-content/themes/cosmopet-timber/views/partials/head.twig +++ /dev/null @@ -1,9 +0,0 @@ -<head> - <meta charset="{{ site.charset }}" /> - <link rel="stylesheet" href="{{ site.theme.link }}/style.css" type="text/css" media="screen" /> - <meta name="viewport" content="width=device-width, initial-scale=1" /> - <link rel="author" href="{{ site.theme.link }}/humans.txt" /> - <link rel="profile" href="http://gmpg.org/xfn/11" /> - {% do action('get_header') %} - {{ function('wp_head') }} -</head> diff --git a/wp-content/themes/cosmopet-timber/views/partials/menu.twig b/wp-content/themes/cosmopet-timber/views/partials/menu.twig deleted file mode 100644 index 377dc98..0000000 --- a/wp-content/themes/cosmopet-timber/views/partials/menu.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% if menu %} - <ul> - {% for item in items %} - <li class="{{ item.classes|join(' ') }}"> - <a target="{{ item.target }}" href="{{ item.link }}">{{ item.title }}</a> - {% include 'partials/menu.twig' with { - items: item.children - } %} - </li> - {% endfor %} - </ul> -{% endif %} diff --git a/wp-content/themes/cosmopet-timber/views/partials/pagination.twig b/wp-content/themes/cosmopet-timber/views/partials/pagination.twig deleted file mode 100644 index e4d737b..0000000 --- a/wp-content/themes/cosmopet-timber/views/partials/pagination.twig +++ /dev/null @@ -1,44 +0,0 @@ -{% if posts.pagination.pages is not empty %} - <nav class="pagination-block"> - <ul class="pagination"> - {# First #} - {% if (posts.pagination.pages|first) and posts.pagination.pages|first.current != true %} - <li class="first btn"> - <a href="{{ posts.pagination.pages|first.link }}">First</a> - </li> - {% else %} - <li class="first btn disabled"><button disabled>First</button></li> - {% endif %} - - {# Previous #} - {% if posts.pagination.prev %} - <li class="prev btn"><a href="{{ posts.pagination.prev.link }}">Previous</a></li> - {% else %} - <li class="prev btn disabled"><button disabled>Previous</button></li> - {% endif %} - - {# Pages #} - {% for page in posts.pagination.pages %} - {% if page.link %} - <li><a href="{{ page.link }}" class="{{ page.class }}">{{ page.title }}</a></li> - {% else %} - <li class="current"><span class="{{ page.class }}">{{ page.title }}</span></li> - {% endif %} - {% endfor %} - - {# Next #} - {% if posts.pagination.next %} - <li class="next btn"><a href="{{ posts.pagination.next.link }}">Next</a></li> - {% else %} - <li class="next btn disabled"><button disabled>Next</button></li> - {% endif %} - - {# Last #} - {% if (posts.pagination.pages|last) and posts.pagination.pages|last.current != true %} - <li class="last btn"><a href="{{ posts.pagination.pages|last.link }}">Last</a></li> - {% else %} - <li class="last btn disabled"><button disabled>Last</button></li> - {% endif %} - </ul> - </nav> -{% endif %} diff --git a/wp-content/themes/cosmopet-timber/views/partials/tease-post.twig b/wp-content/themes/cosmopet-timber/views/partials/tease-post.twig deleted file mode 100644 index 5a08767..0000000 --- a/wp-content/themes/cosmopet-timber/views/partials/tease-post.twig +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'partials/tease.twig' %} - -{% block content %} - <h2 class="h2"><a href="{{ post.link }}">{{ post.title }}</a></h2> - <p> - {{ - post.excerpt({ - words: 5, - read_more: 'Keep reading' - }) - }} - </p> - {% if post.thumbnail.src %} - <img src="{{ post.thumbnail.src }}" /> - {% endif %} -{% endblock %} diff --git a/wp-content/themes/cosmopet-timber/views/partials/tease.twig b/wp-content/themes/cosmopet-timber/views/partials/tease.twig deleted file mode 100644 index 1a0f7b0..0000000 --- a/wp-content/themes/cosmopet-timber/views/partials/tease.twig +++ /dev/null @@ -1,9 +0,0 @@ -<article class="tease tease-{{ post.type }}" id="tease-{{ post.id }}"> - {% block content %} - <h2 class="h2"><a href="{{ post.link }}">{{ post.title }}</a></h2> - <p>{{ post.excerpt }}</p> - {% if post.thumbnail %} - <img src="{{ post.thumbnail.src }}" /> - {% endif %} - {% endblock %} -</article> \ No newline at end of file diff --git a/wp-content/themes/cosmopet-timber/views/templates/404.twig b/wp-content/themes/cosmopet-timber/views/templates/404.twig deleted file mode 100644 index 1b2073c..0000000 --- a/wp-content/themes/cosmopet-timber/views/templates/404.twig +++ /dev/null @@ -1,5 +0,0 @@ -{% extends 'layouts/base.twig' %} - -{% block content %} - Sorry, we couldn't find what you're looking for. -{% endblock %} diff --git a/wp-content/themes/cosmopet-timber/views/templates/archive.twig b/wp-content/themes/cosmopet-timber/views/templates/archive.twig deleted file mode 100644 index ae021ea..0000000 --- a/wp-content/themes/cosmopet-timber/views/templates/archive.twig +++ /dev/null @@ -1,15 +0,0 @@ -{% extends 'layouts/base.twig' %} - -{% block content %} - {% for post in posts %} - {% include ['partials/tease-' ~ post.type ~ '.twig', 'partials/tease.twig'] %} - {% endfor %} - - {% include 'partials/pagination.twig' with { - pagination: posts.pagination({ - show_all: false, - mid_size: 3, - end_size: 2 - }) - } %} -{% endblock %} diff --git a/wp-content/themes/cosmopet-timber/views/templates/author.twig b/wp-content/themes/cosmopet-timber/views/templates/author.twig deleted file mode 100644 index 6d19761..0000000 --- a/wp-content/themes/cosmopet-timber/views/templates/author.twig +++ /dev/null @@ -1,7 +0,0 @@ -{% extends 'layouts/base.twig' %} - -{% block content %} - {% for post in posts %} - {% include ['partials/tease-' ~ post.type ~ '.twig', 'partials/tease.twig'] %} - {% endfor %} -{% endblock %} diff --git a/wp-content/themes/cosmopet-timber/views/templates/index.twig b/wp-content/themes/cosmopet-timber/views/templates/index.twig deleted file mode 100644 index b68fbd7..0000000 --- a/wp-content/themes/cosmopet-timber/views/templates/index.twig +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'layouts/base.twig' %} - -{% block content %} - <h2>{{ foo }}</h2> - {% for post in posts %} - {% include ['partials/tease-' ~ post.type ~ '.twig', 'partials/tease.twig'] %} - {% endfor %} - - {% include 'partials/pagination.twig' with { - pagination: posts.pagination({ - show_all: false, - mid_size: 3, - end_size: 2 - }) - } %} -{% endblock %} diff --git a/wp-content/themes/cosmopet-timber/views/templates/page.twig b/wp-content/themes/cosmopet-timber/views/templates/page.twig deleted file mode 100644 index 7709c52..0000000 --- a/wp-content/themes/cosmopet-timber/views/templates/page.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% extends 'layouts/base.twig' %} - -{% block content %} - <div class="content-wrapper"> - <article class="post-type-{{ post.type }}" id="post-{{ post.id }}"> - <section class="article-content"> - <h1 class="article-h1">{{ post.title }}</h1> - <div class="article-body">{{ post.content }}</div> - </section> - </article> - </div> -{% endblock %} diff --git a/wp-content/themes/cosmopet-timber/views/templates/search.twig b/wp-content/themes/cosmopet-timber/views/templates/search.twig deleted file mode 100644 index f8853a6..0000000 --- a/wp-content/themes/cosmopet-timber/views/templates/search.twig +++ /dev/null @@ -1,18 +0,0 @@ -{# see `templates/archive.twig` for an alternative strategy of extending templates #} -{% extends 'layouts/base.twig' %} - -{% block content %} - <div class="content-wrapper"> - {% for post in posts %} - {% include ['partials/tease-' ~ post.type ~ '.twig', 'partials/tease.twig'] %} - {% endfor %} - - {% include 'partials/pagination.twig' with { - pagination: posts.pagination({ - show_all: false, - mid_size: 3, - end_size: 2 - }) - } %} - </div> -{% endblock %} diff --git a/wp-content/themes/cosmopet-timber/views/templates/single-password.twig b/wp-content/themes/cosmopet-timber/views/templates/single-password.twig deleted file mode 100644 index fc62761..0000000 --- a/wp-content/themes/cosmopet-timber/views/templates/single-password.twig +++ /dev/null @@ -1,17 +0,0 @@ -{% extends 'layouts/base.twig' %} - -{% block content %} - <form class="password-form" - action="{{ site.link }}/wp-login.php?action=postpass" - method="post"> - <label for="pwbox-{{ post.id }}">Password:</label> - <input class="password-box" - name="post_password" - id="pwbox-{{ post.id }}" - type="password" - placeholder="Password" - size="20" - maxlength="20" /> - <input class="password-btn" type="submit" name="Submit" value="Submit" /> - </form> -{% endblock %} diff --git a/wp-content/themes/cosmopet-timber/views/templates/single.twig b/wp-content/themes/cosmopet-timber/views/templates/single.twig deleted file mode 100644 index 584450d..0000000 --- a/wp-content/themes/cosmopet-timber/views/templates/single.twig +++ /dev/null @@ -1,37 +0,0 @@ -{% extends 'layouts/base.twig' %} - -{% block content %} - <div class="content-wrapper"> - <article class="post-type-{{ post.type }}" id="post-{{ post.id }}"> - <img src="{{ post.thumbnail.src|resize(1200, 300) }}" /> - <section class="article-content"> - <h1 class="article-h1">{{ post.title }}</h1> - <p class="blog-author"> - <span>By</span> - <a href="{{ post.author.path }}">{{ post.author.name }}</a> - <span>•</span> - <time datetime="{{ post.date|date('Y-m-d H:i:s') }}">{{ post.date }}</time> - </p> - <div class="article-body">{{ post.content }}</div> - </section> - <section class="comment-box"> - <div class="comments"> - {% if post.comments %} - <h3>comments</h3> - {% for cmt in post.comments %} - {% include 'partials/comment.twig' with { - comment: cmt - } %} - {% endfor %} - {% endif %} - </div> - - {% if post.comment_status == 'closed' %} - <p>comments for this post are closed</p> - {% else %} - {% include 'partials/comment-form.twig' %} - {% endif %} - </section> - </article> - </div> -{% endblock %}