friendica-wp-theme/header-home.php
2017-06-06 14:22:33 +02:00

67 lines
3.2 KiB
PHP

<!DOCTYPE html>
<!--
Theory by TEMPLATED
templated.co @templatedco
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
-->
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!-- Header -->
<header id="header">
<div class="inner">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo">
<i class="fk-friendica-logo-char" aria-hidden="true"></i> <?php echo esc_html( get_bloginfo( 'name' ) ); ?>
</a>
<nav id="nav">
<?php
wp_nav_menu(array(
'theme_location' => 'main-menu',
'container' => false
));
?>
</nav>
<!-- <nav id="nav">
<a href="index.html">Home</a>
<a href="generic.html">Generic</a>
<a href="elements.html">Elements</a>
</nav> -->
<!-- <div id="search">
<?php get_search_form(); ?>
</div>-->
<a href="#navPanel" class="navPanelToggle"><span class="fa fa-bars"></span></a>
</div>
</header>
<!-- Banner -->
<section id="banner">
<h1>
<span>
<i class="fk-friendica-logo-char" aria-hidden="true"></i> <?php echo esc_html( get_bloginfo( 'name' ) ); ?>
<?php
$sticky = get_option( 'sticky_posts' );
$args = array(
'posts_per_page' => 1,
'post__in' => $sticky,
'ignore_sticky_posts' => 1
);
$query = new WP_Query( $args );
if ( isset($sticky[0]) ) {
$query->the_post();
echo "<a href='" . get_the_permalink() . "' class='ribbon'>";
echo get_the_title();
echo "</a>";
wp_reset_postdata();
}
?>
</span>
</h1> <p><?php echo esc_html(get_bloginfo('description')); ?></p>
<p><a href="https://github.com/friendica/friendica/releases" class="button special">Download</a> <a href="http://dir.friendica.social/servers" class="button">Try It</a></p>
</section>