forked from friendica/friendica-wp-theme
a00d65e7ee
- Remove "Download" button - Add "Try friendica" section with link to directory - Add "Run your server" section with link to install guide See https://github.com/friendica/friendica/issues/9430
67 lines
3.1 KiB
PHP
67 lines
3.1 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="fa fa-friendica" 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="fa fa-friendica" 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="#try" class="button special">Try It!</a></p>
|
|
</section>
|