-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
227 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<h1 align="center">Quartiersplattform</h1> | ||
<!-- <p align="center">Developing a Plattform for self Districts</p> --> | ||
|
||
<p align="center"> | ||
<img src="https://img.shields.io/github/license/studio-arrenberg/quartiersplattform?color=%23f7f7f7&style=flat-square" alt="License"/> | ||
<img src="https://img.shields.io/github/repo-size/studio-arrenberg/quartiersplattform?color=%23f7f7f7&style=flat-square" alt="Repo Size"/> | ||
<img src="https://img.shields.io/github/commit-activity/w/studio-arrenberg/quartiersplattform?color=%23f7f7f7&style=flat-square" alt="Commits"/> | ||
<img src="https://img.shields.io/tokei/lines/github/studio-arrenberg/quartiersplattform?color=%23f7f7f7&style=flat-square" alt="Lines of code"/> | ||
<img src="https://img.shields.io/github/languages/code-size/studio-arrenberg/quartiersplattform?color=%23f7f7f7&style=flat-square" alt="Code Size"/> | ||
</p> | ||
|
||
<!-- ## Wordpress Snippets | ||
![GitHub](https://img.shields.io/github/license/studio-arrenberg/quartiersplattform?color=%23f7f7f7&style=flat-square) | ||
![GitHub repo size](https://img.shields.io/github/repo-size/studio-arrenberg/quartiersplattform?color=%23f7f7f7&style=flat-square) | ||
![GitHub commit activity](https://img.shields.io/github/commit-activity/w/studio-arrenberg/quartiersplattform?color=%230091FF&style=flat-square) | ||
![Lines of code](https://img.shields.io/tokei/lines/github/studio-arrenberg/quartiersplattform?color=%23f7f7f7&style=flat-square) | ||
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/studio-arrenberg/quartiersplattform?color=%23f7f7f7&style=flat-square) --> | ||
|
||
## Theme Publication | ||
|
||
1. [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards) | ||
2. [Theme Requirments](https://make.wordpress.org/themes/handbook/review/required/) | ||
3. [Unit Test](https://codex.wordpress.org/Theme_Unit_Test) | ||
4. [Review Process](https://make.wordpress.org/themes/handbook/review/) | ||
5. Upload for Review | ||
|
||
## Database Structure | ||
#### Custom Post Types | ||
* Projekte `projekte` | ||
* Nachrichten `nachrichten` | ||
* Veranstaltungen `veranstaltungen` | ||
* Umfragen `umfragen` | ||
* Anmerkungen `anmerkungen` | ||
* Fragen `fragen` | ||
* Angebote `angebote` | ||
|
||
#### Taxonomys | ||
* Projekte `projekt` in `nachrichten`, `veranstaltungen`, `umfragen` | ||
* Status `anmerkungen_status` in `anmerkungen` | ||
* SDG `sdg` in `projekte` | ||
|
||
## Custom Functions | ||
#### Link Card | ||
```php | ||
landscape_card($args); // iterate landscape card with wp query | ||
landscape_card(null, 'Hallo Welt','Text....',get_site_url().'/wp-content/uploads/2020/05/CTL_Titelbild-1.jpg', '/veranstaltungen'); // without query | ||
landscape_card(null, 'Hallo Welt','Text....',get_template_directory_uri().'/assets/images/400x200.png', '/veranstaltungen'); // without query | ||
landscape_card($args, 'Geschichte', '', '', '/geschichten'); // combination Query and Manual | ||
``` | ||
#### List Card | ||
```php | ||
list_card($args3, get_site_url().'/veranstaltungen', 'title', 'subtitle'); | ||
``` | ||
#### Slider | ||
`slides` get multiplied by 2 for desktop | ||
```php | ||
slider($query, $type = 'card', $slides = '2', $dragfree = 'true'); | ||
slider($query, $type = 'square_card', $slides = '4', $dragfree = 'true'); | ||
slider($query,'landscape_card', '1','false'); | ||
``` | ||
#### Shorten | ||
```php | ||
shorten_title($text, $count = '55'); // für den title | ||
get_excerpt($text, $count = '55'); // für den fließtext | ||
``` | ||
#### Calendar Download | ||
```php | ||
calendar_download($post); // nur für veranstaltungen | ||
``` | ||
#### Card List | ||
```php | ||
card_list($query); | ||
``` | ||
#### Comment Counter | ||
```php | ||
comment_counter($post->ID); | ||
``` | ||
#### Get owner of Post | ||
Including projekts | ||
```php | ||
get_cpt_term_owner($post_ID, $term, $type = 'name'); | ||
``` | ||
#### Get Author of Post Type | ||
Should be used in the Wordpress Loop | ||
```php | ||
get_author(true); // true for further detail | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.