Skip to content

Commit

Permalink
added sidebar greeting-message if not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
Shen committed May 17, 2009
1 parent 467d494 commit 7ea49d6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions wp-content/language/eng.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,17 @@
$txt['sidebar_followers'] = "followers";
$txt['sidebar_updates'] = "updates";
$txt['sidebar_Updates'] = "Updates";
$txt['sidebar_home'] = "Home";
$txt['sidebar_favorites'] = "Favorites";
$txt['sidebar_search'] = "Search";
$txt['sidebar_direct_messages'] = "Direct Messages";
$txt['sidebar_trending_topics'] = "Trending Topics";
$txt['sidebar_rss'] = "RSS";
$txt['sidebar_recent_projects'] = "Recent Projects";
$txt['sidebar_greeting_headline'] = "Welcome to ";
$txt['sidebar_greeting_text'] = " is yet another microblogging-website. You can register for free and let the world know what you are doing.";
$txt['sidebar_sign_in_register'] = "Log in or register";



//////////////////////
Expand Down
4 changes: 4 additions & 0 deletions wp-content/language/ger.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,16 @@
$txt['sidebar_followers'] = "Abonnenten";
$txt['sidebar_updates'] = "Einträge";
$txt['sidebar_Updates'] = "Einträge";
$txt['sidebar_home'] = "Start";
$txt['sidebar_favorites'] = "Favoriten";
$txt['sidebar_search'] = "Suche";
$txt['sidebar_direct_messages'] = "Direct Messages";
$txt['sidebar_trending_topics'] = "Beliebte Themen";
$txt['sidebar_rss'] = "RSS";
$txt['sidebar_recent_projects'] = "neuste Projekte";
$txt['sidebar_greeting_headline'] = "Willkommen auf ";
$txt['sidebar_greeting_text'] = " ist eine microblogging-website. Du kannst dich kostenlos registrieren und die Welt wissen lassen, was du gerade tust.";
$txt['sidebar_sign_in_register'] = "Einloggen oder registrieren";


//////////////////////
Expand Down
10 changes: 9 additions & 1 deletion wp-content/themes/p2/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@

<?php if (!isset($request->params['nickname'])) : ?>
<li>
<a href="<?php base_url(); ?>">Home</a>
<a href="<?php base_url(); ?>"><?php echo $txt['sidebar_home']; ?></a>
</li>
<li>
<a href="<?php echo $request->url_for(array("resource"=>$profile->nickname))."/replies"; ?>"><?php echo "@".$profile->nickname; ?></a>
Expand Down Expand Up @@ -163,4 +163,12 @@

<?php endif; ?>

<?php if (!isset($profile)) { ?>
<ul>
<li style="font-weight:bold;"><?php echo $txt['sidebar_greeting_headline']; ?><?php bloginfo( 'name' ); ?>!</li>

<li style="font-weight:normal; font-size:1.0em; font-style:italic"><?php bloginfo( 'name' ); ?><?php echo $txt['sidebar_greeting_text']; ?></li>
<li style="font-weight:normal; font-size:1.0em;"><a href="<?php url_for(array('resource'=>'email_login')); ?>" title="Sign in"><?php echo $txt['sidebar_sign_in_register']; ?></a></li>
</ul>
<?php } ?>
</div> <!-- // sidebar -->

0 comments on commit 7ea49d6

Please sign in to comment.