Skip to content

Commit

Permalink
Bumps version to 1.4.7.
Browse files Browse the repository at this point in the history
Adds logo module.
  • Loading branch information
Connor Bär committed Dec 28, 2016
1 parent a1deb35 commit 9031750
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 15 deletions.
4 changes: 4 additions & 0 deletions components/content-section.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@

get_template_part( 'components/module', 'googlemaps' );

elseif ( get_row_layout() === 'logo' ) :

get_template_part( 'components/module', 'logo' );

endif;

endwhile;
Expand Down
42 changes: 42 additions & 0 deletions components/module-logo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
/**
* Element to output the Logo module on section pages.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package UWC_Website
*/

?>

<section class="section-logos">

<?php
$headline = get_sub_field( 'lo_headline' );

if ( ! empty( $headline ) ) : ?>

<h2 class="section-headline"><?php the_sub_field( 'lo_headline' ); ?></h2>

<?php endif; ?>

<div class="section-logoWrapper">

<?php while ( have_rows( 'lo_logos' ) ) : the_row();

$image = get_sub_field( 'lo_logo' );

if ( ! empty( $image ) ) : ?>

<a class="section-link" href="<?php echo esc_url( the_sub_field( 'lo_url' ) ); ?>" title="<?php echo esc_attr( $image['alt'] ); ?>">

<img class="section-logo" src="<?php echo esc_url( $image['url'] ); ?>" alt="<?php echo esc_attr( $image['alt'] ); ?>" />

</a>

<?php endif; ?>

<?php endwhile; ?>

</div>
</section>
15 changes: 14 additions & 1 deletion fonts/slick.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 25 additions & 1 deletion fonts/uwc-website.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified languages/de_DE.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions languages/de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ msgstr ""
"Project-Id-Version: UWC Website\n"
"Report-Msgid-Bugs-To: https://github.com/uwc/uwc-website/issues\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2016-09-23 14:18+0200\n"
"PO-Revision-Date: 2016-12-28 15:32+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"
"X-Generator: Poedit 1.8.8\n"
"X-Generator: Poedit 1.8.11\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-WPHeader: style.css\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
Expand Down
2 changes: 1 addition & 1 deletion languages/uwc-website.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
"Last-Translator: Connor Bär <[email protected]>\n"
"Language-Team: Made by Connor. <[email protected]>\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"
Expand Down
20 changes: 10 additions & 10 deletions style.css

Large diffs are not rendered by default.

0 comments on commit 9031750

Please sign in to comment.