Skip to content

Commit

Permalink
Removed welcome message.
Browse files Browse the repository at this point in the history
Removed while loop from frontpage.
  • Loading branch information
kjtolsma committed Mar 17, 2014
1 parent 5a5b0ee commit bedf20c
Showing 1 changed file with 18 additions and 53 deletions.
71 changes: 18 additions & 53 deletions front-page.php
Original file line number Diff line number Diff line change
@@ -1,62 +1,27 @@
<?php get_header(); ?>

<?php while ( have_posts() ) : the_post(); ?>
<div class="page-header">
<h1>
<?php _e( 'Dashboard', 'orbis' ); ?>

<div class="page-header">
<h1>
<?php _e( 'Dashboard', 'orbis' ); ?>

<?php if ( is_user_logged_in() ) : ?>

<?php $user = wp_get_current_user(); ?>

<small>
<?php

printf(
__( 'Logged in as %1$s', 'orbis' ),
$user->display_name
);

?>
</small>

<?php endif; ?>
</h1>
</div>

<?php endwhile; ?>
<?php if ( is_user_logged_in() ) : ?>

<?php if ( is_user_logged_in() ) : ?>

<?php

$user = wp_get_current_user();
<?php $user = wp_get_current_user(); ?>

if ( strtotime( $user->user_registered ) > ( time() - 172800 ) ) : ?>

<div class="hero-unit">
<h1><?php _e( 'Welcome to Orbis', 'orbis' ); ?></h1>

<p>
<?php _e( 'Orbis is a tool to manage your projects, your customer relations and has much more great features. Orbis is build on WordPress which is a great framework to create a powerful tool for your business. Enough introduction, time to get some work done.', 'orbis' ); ?>
</p>

<ul>
<li><a href="<?php bloginfo( 'url' ); ?>/wp-admin/post-new.php?post_type=post"><?php _e( 'Add a post', 'orbis' ); ?></a></li>
<li><a href="<?php bloginfo( 'url' ); ?>/wp-admin/post-new.php?post_type=orbis_company"><?php _e( 'Add a company', 'orbis' ); ?></a></li>
<li><a href="<?php bloginfo( 'url' ); ?>/wp-admin/post-new.php?post_type=orbis_project"><?php _e( 'Add a project', 'orbis' ); ?></a></li>
<li><a href="<?php bloginfo( 'url' ); ?>/wp-admin/post-new.php?post_type=orbis_person"><?php _e( 'Add a person', 'orbis' ); ?></a></li>
</ul>

<p>
<a class="btn btn-primary btn-large" href="http://orbiswp.com"><?php _e( 'Learn more', 'orbis' ); ?></a>
</p>
</div>

<?php endif; ?>
<small>
<?php

printf(
__( 'Logged in as %1$s', 'orbis' ),
$user->display_name
);

?>
</small>

<?php endif; ?>
<?php endif; ?>
</h1>
</div>

<div class="panel">
<div class="content stats">
Expand Down

0 comments on commit bedf20c

Please sign in to comment.