Git Product home page Git Product logo

tanzmobil_theme's People

Contributors

klappradla avatar

Stargazers

 avatar

Watchers

 avatar  avatar

tanzmobil_theme's Issues

Redesign home page

Redesign home page (includes index.php layout and navigation).

refills patterns

  • use refills' cards for interview items, alternative grid items with image
  • user hero unit for header (maybe replace with map later - exists as refill item, too)

refills components

  • use search bar for search

refills type-systems

  • use rounded sans-serif for article

Custom fields and custom post types

Enable get request on custom field meta for wp api: edit lib/class-wp-json-meta-posts.php file from wp rest api plugin

// lib/class-wp-json-meta-posts.php

protected function check_object( $id ) {
  $id = (int) $id;

  $post = get_post( $id, ARRAY_A );

  if ( empty( $id ) || empty( $post['ID'] ) ) {
    return new WP_Error( 'json_post_invalid_id', __( 'Invalid post ID.' ), array( 'status' => 404 ) );
  }

  // if ( ! json_check_post_permission( $post, 'edit' ) ) {
  //    return new WP_Error( 'json_cannot_edit', __( 'Sorry, you cannot edit this post' ), array( 'status' => 403 ) );
  // }

  return true;
}

Update npm dependencies

Update npm dependencies:
run npm outdated to see which are outdated

To update to the latest version:

  1. set version to wildcard, e.g. "express": "*"
  2. run npm update --save (will change the wildcard to the latest number)

Switch to wp-api

Fully switch api to wp-api (v1).
Maybe even switch to v2 which is currently in beta (including breaking changes).

Update bower dependencies

Update bower dependencies in bower.json.

Add .bowerrc file to specify path for dependencies (change from bower_components to vendor)

Retrieve images for posts

Add additional service or methods to retrieve a post's images.

  • media in general:
    • /posts/id?_embed returns all related media for a given post
  • featured image:
    • the post object returned from any api call contains a featured_image object with all urls / sizes
  • images in posts:
    • a post's images embedded in text should already be part of the content object

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.