Ejemplo n.º 1
0
<p class="login">
	<?php 
printf(__('Welcome, %1$s'), bb_get_profile_link(bb_get_current_user_info('name')));
?>
	<?php 
bb_admin_link('before= | ');
?>
	| <?php 
bb_logout_link();
?>
</p>
function bb_profile_link($args = '')
{
    echo apply_filters('bb_profile_link', bb_get_profile_link($args), $args);
}
Ejemplo n.º 3
0
     $link_self = get_topic_rss_link($feed_id);
     break;
 case 'profile':
     if (bb_get_option('mod_rewrite') === 'slugs') {
         $user = bb_get_user_by_nicename($feed_id);
     } else {
         $user = bb_get_user($feed_id);
     }
     if (!$user) {
         die;
     }
     if (!($posts = get_user_favorites($user->ID))) {
         die;
     }
     $title = esc_html(sprintf(__('%1$s &raquo; User Favorites: %2$s'), bb_get_option('name'), $user->user_login));
     $link = bb_get_profile_link($feed_id);
     $link_self = get_favorites_rss_link($feed_id);
     break;
 case 'tag-topics':
     if (!($tag = bb_get_tag($feed_id))) {
         die;
     }
     if (!($topics = get_tagged_topics(array('tag_id' => $tag->tag_id, 'page' => 0)))) {
         die;
     }
     $posts = array();
     foreach ($topics as $topic) {
         $posts[] = bb_get_first_post($topic->topic_id);
     }
     $title = esc_html(sprintf(__('%1$s &raquo; Tag: %2$s - Recent Topics'), bb_get_option('name'), bb_get_tag_name()));
     $link = bb_get_tag_link($feed_id);
Ejemplo n.º 4
0
		//]]>
	</script>
	<div id="bbWrap">
		<div id="bbContent">
			<div id="bbHead">
				<h1><a href="<?php 
bb_uri();
?>
"><span><?php 
bb_option('name');
?>
</span> <em><?php 
_e('Visit Site');
?>
</em></a></h1>
				<div id="bbUserInfo">
					<p>
						<?php 
printf(__('Howdy, %1$s'), bb_get_profile_link(array('text' => bb_get_current_user_info('name'))));
?>
						| <?php 
bb_logout_link(array('redirect' => bb_get_uri(null, null, BB_URI_CONTEXT_HEADER)));
?>
					</p>
				</div>
			</div>

			<div id="bbBody">

<?php 
bb_admin_menu();
Ejemplo n.º 5
0
  })();

</script>

</head>
<body id="<?php 
bb_location();
?>
">
	<div class="container prepend-top append-bottom">
		<div id="util-login">
		<?php 
if (!bb_is_user_logged_in()) {
    printf(__('<a href="%2$s">Log in</a> | <a href="%1$s">Register</a>'), bb_get_uri('register.php', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_USER_FORMS), bb_get_uri('bb-login.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS));
} else {
    printf(__('Logged in as %1$s'), bb_get_profile_link(bb_get_current_user_info('name')));
    echo ' | ';
    if ($bb_current_user->has_cap('administrate') || $bb_current_user->has_cap('moderate')) {
        bb_admin_link();
        echo ' | ';
    }
    bb_logout_link();
}
?>
		</div>
		<div id="header" class="prepend-6 span-18">
			<a id="ach-logo" href="http://www.ach.org">ACH</a>
			<h1><a href="<?php 
bb_uri();
?>
"><?php 
Ejemplo n.º 6
0
<p class="login">
	<?php 
printf('Добро пожаловать, %1$s!', bb_get_profile_link(bb_get_current_user_info('name')));
?>
	<?php 
bb_admin_link('before= | ');
?>
	| <?php 
bb_logout_link();
?>
</p>