WordPress theme for Friendica site at https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
3.2 KiB

5 years ago
5 years ago
5 years ago
  1. <!DOCTYPE html>
  2. <!--
  3. Theory by TEMPLATED
  4. templated.co @templatedco
  5. Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
  6. -->
  7. <html <?php language_attributes(); ?>>
  8. <head>
  9. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  10. <meta name="viewport" content="width=device-width, initial-scale=1" />
  11. <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?>" />
  12. <?php wp_head(); ?>
  13. </head>
  14. <body <?php body_class(); ?>>
  15. <!-- Header -->
  16. <header id="header">
  17. <div class="inner">
  18. <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo">
  19. <i class="fa fa-friendica" aria-hidden="true"></i> <?php echo esc_html( get_bloginfo( 'name' ) ); ?>
  20. </a>
  21. <nav id="nav">
  22. <?php
  23. wp_nav_menu(array(
  24. 'theme_location' => 'main-menu',
  25. 'container' => false
  26. ));
  27. ?>
  28. </nav>
  29. <!-- <nav id="nav">
  30. <a href="index.html">Home</a>
  31. <a href="generic.html">Generic</a>
  32. <a href="elements.html">Elements</a>
  33. </nav> -->
  34. <!-- <div id="search">
  35. <?php get_search_form(); ?>
  36. </div>-->
  37. <a href="#navPanel" class="navPanelToggle"><span class="fa fa-bars"></span></a>
  38. </div>
  39. </header>
  40. <!-- Banner -->
  41. <section id="banner">
  42. <h1>
  43. <span>
  44. <i class="fa fa-friendica" aria-hidden="true"></i> <?php echo esc_html( get_bloginfo( 'name' ) ); ?>
  45. <?php
  46. $sticky = get_option( 'sticky_posts' );
  47. $args = array(
  48. 'posts_per_page' => 1,
  49. 'post__in' => $sticky,
  50. 'ignore_sticky_posts' => 1
  51. );
  52. $query = new WP_Query( $args );
  53. if ( isset($sticky[0]) ) {
  54. $query->the_post();
  55. echo "<a href='" . get_the_permalink() . "' class='ribbon'>";
  56. echo get_the_title();
  57. echo "</a>";
  58. wp_reset_postdata();
  59. }
  60. ?>
  61. </span>
  62. </h1> <p><?php echo esc_html(get_bloginfo('description')); ?></p>
  63. <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>
  64. </section>