Skip to content

Commit

Permalink
Bump version to 1.3.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Jun 3, 2018
1 parent b157dc3 commit fe575ec
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 45 deletions.
File renamed without changes.
11 changes: 7 additions & 4 deletions components/element-standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
*/

?><article id="post-<?php the_ID(); ?>" <?php post_class( 'category-post' ); ?>>
<?php if ( get_field( 'feed_image' ) ) :
<?php
if ( get_field( 'feed_image' ) ) :
$image = get_field( 'feed_image' );
$size = 'medium';
$url = $image['sizes'][ $size ];
Expand All @@ -27,14 +28,16 @@
<?php the_title( '<h2 class="category-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
</header>

<?php if ( $tags = get_the_tags() ) {
<?php
if ( $tags = get_the_tags() ) {
echo '<p class="category-tags">';
foreach ( $tags as $tag ) {
$sep = (end( $tags ) === $tag) ? '' : ', ';
$sep = ( end( $tags ) === $tag ) ? '' : ', ';
echo '<a href="' . esc_url( get_term_link( $tag, $tag->taxonomy ) ) . '">#' . esc_html( $tag->name ) . '</a>' . esc_html( $sep );
}
echo '</p>';
} ?>
}
?>

<p class="category-body"><?php the_excerpt(); ?></p>

Expand Down
16 changes: 9 additions & 7 deletions components/module-newsfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@

$taxonomies = get_field( 'newsfeed' );

$posts = get_posts(array(
'posts_per_page' => 4,
'category' => $taxonomies,
'orderby' => 'date',
'order' => 'DESC',
'post_status' => 'publish',
));
$posts = get_posts(
array(
'posts_per_page' => 4,
'category' => $taxonomies,
'orderby' => 'date',
'order' => 'DESC',
'post_status' => 'publish',
)
);
$count = count( $posts );

if ( $taxonomies && $count >= 4 ) {
Expand Down
3 changes: 2 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ function uwcde_website_enqueue_styles() {
$parent_style = 'parent-style';

wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
wp_enqueue_style(
'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get( 'Version' )
Expand Down
Binary file modified languages/de_DE.mo
Binary file not shown.
16 changes: 7 additions & 9 deletions languages/de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@ msgid ""
msgstr ""
"Project-Id-Version: uwcde-website\n"
"Report-Msgid-Bugs-To: https://github.com/uwc/uwcde-website/issues\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2016-12-28 16:20+0100\n"
"Last-Translator: Connor Bär <[email protected]>\n"
"Language-Team: Made by Connor. <[email protected]>\n"
"Language: de_DE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-11-23 09:50+0000\n"
"Language-Team: Made by Connor. <[email protected]>\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.8.11\n"
"POT-Creation-Date: \n"
"X-Generator: Poedit 1.8.8\n"
"Last-Translator: Connor Bär <[email protected]>\n"
"Language: de_DE\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: *.js\n"
6 changes: 3 additions & 3 deletions languages/uwcde-website.pot
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2016 uwcde-website
# Copyright (C) 2018 uwcde-website
# This file is distributed under the same license as the uwcde-website package.
msgid ""
msgstr ""
Expand All @@ -7,8 +7,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
"Last-Translator: Connor Bär <hello@connorbaer.io>\n"
"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
"Last-Translator: Connor Bär <hello@connorbaer.co>\n"
"Language-Team: Made by Connor. <[email protected]>\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n"
Expand Down
33 changes: 14 additions & 19 deletions readme.md → readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,41 @@ A WordPress theme for [UWC Germany](https://uwc.de)

> This is a child theme of [UWC Website](https://github.com/uwc/uwc-website).


# Contents

- [Overview](#Overview)
- [Installation](#Installation)
- [Contribute](#Contribute)
- [Copyright](#Copyright)

* [Overview](#Overview)
* [Installation](#Installation)
* [Contribute](#Contribute)
* [Copyright](#Copyright)

# Overview

Contributors: [Connor Bär](http://madebyconnor.de)

Requires at least: WordPress 4.4

Tested up to: WordPress 4.6.1
Tested up to: WordPress 4.9.2

Version: 1.3.3
Version: 1.3.5

License: [GPL-3.0](#Copyright)

Tags: custom-menu, editor-style, featured-image-header, featured-images, post-formats, sticky-post, theme-options, education, translation-ready


# Installation

*This theme can only be installed on self-hosted WordPress installations and not on sites that are hosted on wordpress.com.* I provide managed hosting for UWC websites. Drop me a line at [[email protected]](mailto:[email protected]) if you're interested.

1. UWCde Website is not listed publicly on wordpress.org. Therefore you have to install the [GitHub Updater](https://github.com/afragen/github-updater) plugin to install the theme and receive future updates. Follow the instructions in the [readme file](https://github.com/afragen/github-updater#upload) to install the plugin, then come back here.
2. In WordPress, navigate to 'Settings' > 'GitHub Updater', then select 'Install Theme' from the tabs at the top.
3. Paste the url `https://github.com/uwc/uwcde-website` into the field 'Theme URI'. You can leave the other fields as they are and click on the 'Install Theme' button.
4. Click on the 'Activate' button to use your new theme right away.
5. Go to the [UWC Documentation](https://docs.uwc.io) for a guide on how to use this theme.
6. Navigate to Appearance > Customize in your admin panel and customize to taste.
_This theme can only be installed on self-hosted WordPress installations and not on sites that are hosted on wordpress.com._ I provide managed hosting for UWC websites. Drop me a line at [[email protected]](mailto:[email protected]) if you're interested.

1. UWCde Website is not listed publicly on wordpress.org. Therefore you have to install the [GitHub Updater](https://github.com/afragen/github-updater) plugin to install the theme and receive future updates. Follow the instructions in the [readme file](https://github.com/afragen/github-updater#upload) to install the plugin, then come back here.
2. In WordPress, navigate to 'Settings' > 'GitHub Updater', then select 'Install Theme' from the tabs at the top.
3. Paste the url `https://github.com/uwc/uwcde-website` into the field 'Theme URI'. You can leave the other fields as they are and click on the 'Install Theme' button.
4. Click on the 'Activate' button to use your new theme right away.
5. Go to the [UWC Documentation](https://docs.uwc.io) for a guide on how to use this theme.
6. Navigate to Appearance > Customize in your admin panel and customize to taste.

# Contribute

Interested in contributing to the development of this theme? I look forward to your pull requests und issues. Or drop me a line at [[email protected]](mailto:[email protected]).

Interested in contributing to the development of this theme? I look forward to your pull requests und issues. Or drop me a line at [[email protected]](mailto:[email protected]).

# Copyright

Expand Down
Binary file modified screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fe575ec

Please sign in to comment.