-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds logo module.
- Loading branch information
Connor Bär
committed
Dec 28, 2016
1 parent
a1deb35
commit 9031750
Showing
8 changed files
with
98 additions
and
15 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
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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 |
---|---|---|
|
@@ -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" | ||
|
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 |
---|---|---|
|
@@ -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" | ||
|