Exemplo n.º 1
0
	</div>

	<!-- =================================== END OF BLOG C =================================== -->

	<div class="bSideItem">
		<h3><?php 
    echo T_('Misc');
    ?>
</h3>
		<ul>
			<?php 
    // Administrative links:
    user_login_link('<li>', '</li>');
    user_register_link('<li>', '</li>');
    user_admin_link('<li>', '</li>');
    user_profile_link('<li>', '</li>');
    user_subs_link('<li>', '</li>');
    user_logout_link('<li>', '</li>');
    ?>
		</ul>
	</div>

</div>
<!-- InstanceEndEditable --></div>
<div class="footer">
This is a demo page for <a href="http://b2evolution.net/">b2evolution</a>.
<!-- InstanceBeginEditable name="Baseline" -->
<?php 
    echo '</div>';
    ?>
<!-- Note: don't mess with the template here :/ --><!-- InstanceEndEditable --></div>
function bb_admin_list_posts()
{
    global $bb_posts, $bb_post;
    if (!$bb_posts) {
        ?>
<p class="no-results"><?php 
        _e('No posts found.');
        ?>
</p>
<?php 
    } else {
        ?>
<table id="posts-list" class="widefat" cellspacing="0" cellpadding="0">
<thead>
	<tr>
		<th scope="col" class="check-column"><input type="checkbox" /></th>
		<th scope="col"><?php 
        _e('Post');
        ?>
</th>
		<th scope="col"><?php 
        _e('Author');
        ?>
</th>
		<th scope="col"><?php 
        _e('Topic');
        ?>
</th>
		<th scope="col"><?php 
        _e('Date');
        ?>
</th>
	</tr>
</thead>
<tfoot>
	<tr>
		<th scope="col" class="check-column"><input type="checkbox" /></th>
		<th scope="col"><?php 
        _e('Post');
        ?>
</th>
		<th scope="col"><?php 
        _e('Author');
        ?>
</th>
		<th scope="col"><?php 
        _e('Topic');
        ?>
</th>
		<th scope="col"><?php 
        _e('Date');
        ?>
</th>
	</tr>
</tfoot>
<tbody>
<?php 
        foreach ($bb_posts as $bb_post) {
            ?>
	<tr id="post-<?php 
            post_id();
            ?>
"<?php 
            alt_class('post', post_del_class());
            ?>
>
		<td class="check-column"><input type="checkbox" name="post[]" value="<?php 
            post_id();
            ?>
" /></td>
		<td class="post">
			<?php 
            post_text();
            ?>
			<div>
				<span class="row-actions">
					<a href="<?php 
            echo esc_url(get_post_link());
            ?>
"><?php 
            _e('View');
            ?>
</a>
<?php 
            bb_post_admin(array('before_each' => ' | ', 'each' => array('undelete' => array('before' => ' ')), 'last_each' => array('before' => ' | ')));
            ?>
				</span>&nbsp;
			</div>
		</td>

		<td class="author">
			<?php 
            if (get_post_author_id()) {
                ?>

				<a href="<?php 
                user_profile_link(get_post_author_id());
                ?>
">
					<?php 
                post_author_avatar('16');
                ?>
					<?php 
                post_author();
                ?>
				</a>

			<?php 
            } else {
                ?>

				<span>
					<?php 
                post_author_avatar('16');
                ?>
					<?php 
                post_author();
                ?>
				</span>

			<?php 
            }
            ?>
		</td>

		<td class="topic">
			<a href="<?php 
            topic_link($bb_post->topic_id);
            ?>
"><?php 
            topic_title($bb_post->topic_id);
            ?>
</a>
		</td>
		
		<td class="date">
<?php 
            if (bb_get_post_time('U') < time() - 86400) {
                bb_post_time('Y/m/d\\<\\b\\r \\/\\>H:i:s');
            } else {
                printf(__('%s ago'), bb_get_post_time('since'));
            }
            ?>
		</td>
	</tr>
<?php 
        }
        ?>
</tbody>
</table>
<?php 
    }
}
Exemplo n.º 3
0
<?php

bb_get_header();
?>

<div class="bbcrumb"><a href="<?php 
bb_uri();
?>
"><?php 
bb_option('name');
?>
</a> &raquo; <a href="<?php 
user_profile_link($user_id);
?>
"><?php 
echo get_user_display_name($user_id);
?>
</a> &raquo; <?php 
_e('Profile');
?>
</div>

<div class="vcard" role="main">

<?php 
if ($avatar = bb_get_avatar($user->ID)) {
    ?>
<div id="useravatar"><?php 
    echo $avatar;
    ?>
</div>
Exemplo n.º 4
0
                ?>

				<p>

					<?php 
                echo T_('User');
                ?>
:

						<strong><?php 
                $current_User->preferred_name();
                ?>
</strong>

						<?php 
                user_profile_link(' [', ']', T_('Edit profile'));
                ?>

				</p>

				<?php 
            } else {
                // User is not loggued in:
                ?>

				<p>

					<input type="text" name="u" id="author" value="<?php 
                echo $comment_author;
                ?>
" size="40" tabindex="1" class="bComment" />
Exemplo n.º 5
0
            ?>
 |
			<?php 
        }
        topic_close_link(array('id' => $topic->topic_id, 'before' => '', 'after' => '', 'close_text' => __('Close'), 'open_text' => _x('Open', 'action')));
        ?>
 |
			<?php 
        topic_delete_link(array('id' => $topic->topic_id, 'before' => '', 'after' => '', 'delete_text' => __('Delete'), 'undelete_text' => __('Undelete')));
        ?>
		</span>&nbsp;
		</div>
	</td>
	<td class="author">
		<a class="author-link" href="<?php 
        user_profile_link($topic->topic_poster);
        ?>
">
			<?php 
        echo bb_get_avatar($topic->topic_poster, '16');
        ?>
			<?php 
        topic_author();
        ?>
		</a>
	</td>
	<td class="posts num"><?php 
        topic_posts();
        ?>
</td>
	<td class="date num">
Exemplo n.º 6
0
function add_IEmenu_logout_link($menuitems, $args)
{
    if ($args->theme_location == 'footer-links') {
        if (is_user_logged_in()) {
            $menuitems .= '<li><a href="' . user_profile_link() . '">Edit Profile</a></li>';
            $menuitems .= '<li class="has-dropdown"><a href="#">Add New</a>';
            $menuitems .= '<ul class="dropdown"><li><a href="' . admin_url() . 'post-new.php">Blog Post</a></li>';
            $menuitems .= '<li><a href="' . admin_url() . 'post-new.php?post_type=news">News Item</a></li>';
            $menuitems .= '<li><a href="' . admin_url() . 'post-new.php?post_type=events">Event Listing</a></li>';
            $menuitems .= '<li><a href="' . admin_url() . 'post-new.php?post_type=finding">Finding</a></li></ul></li>';
            $menuitems .= '<li class="logout"><a href="' . wp_logout_url() . '">Log Out</a></li>';
        } else {
            $menuitems .= '<li><a href="' . wp_login_url() . '">Log In</a></li>';
        }
    }
    return $menuitems;
}
Exemplo n.º 7
0
 /**
  * Display the widget!
  *
  * @param array MUST contain at least the basic display params
  */
 function display($params)
 {
     $this->init_display($params);
     // User tools:
     echo $this->disp_params['block_start'];
     echo $this->disp_params['block_title_start'];
     echo T_('User tools');
     echo $this->disp_params['block_title_end'];
     echo $this->disp_params['list_start'];
     user_login_link($this->disp_params['item_start'], $this->disp_params['item_end'], $this->disp_params['user_login_link']);
     user_register_link($this->disp_params['item_start'], $this->disp_params['item_end'], $this->disp_params['user_register_link']);
     user_admin_link($this->disp_params['item_start'], $this->disp_params['item_end'], $this->disp_params['user_admin_link']);
     user_profile_link($this->disp_params['item_start'], $this->disp_params['item_end'], $this->disp_params['user_profile_link']);
     user_subs_link($this->disp_params['item_start'], $this->disp_params['item_end'], $this->disp_params['user_subs_link']);
     user_logout_link($this->disp_params['item_start'], $this->disp_params['item_end'], $this->disp_params['user_logout_link']);
     echo $this->disp_params['list_end'];
     echo $this->disp_params['block_end'];
 }
Exemplo n.º 8
0
?>

<div id="evo_toolbar" class="evo_toolbar_<?php 
echo $Hit->agent_name;
?>
">

<div class="actions_right">
	<ul>
 	<li class="menu_close" onmouseover="evo_menu_show(this)" onmouseout="evo_menu_hide(this)">
		<?php 
user_profile_link('<strong>', '</strong>', '%s ' . get_icon('dropdown'));
?>
		<ul>
		<?php 
user_profile_link('<li>', '</li>', T_('User profile') . ' (%s)');
user_subs_link('<li>', '</li>', T_('Email subscriptions'));
// ADMIN SKINS:
if ($is_admin_page) {
    $admin_skins = get_admin_skins();
    if (count($admin_skins) > 1) {
        // We have several admin skins available: display switcher:
        echo '<li class="separator"><hr /></li>';
        // echo '<li class="menu_close" onmouseover="evo_menu_show(this)" onmouseout="evo_menu_hide(this)">';
        // echo '<a href="#">'.T_('test').' '.get_icon('dropdown').'</a>';
        // echo '<ul>';
        foreach ($admin_skins as $admin_skin) {
            echo '<li><a href="admin.php?ctrl=users&amp;action=change_admin_skin&amp;new_admin_skin=' . rawurlencode($admin_skin) . '">' . T_('Admin skin:') . ' ' . $admin_skin . '</a></li>';
        }
        // echo '</ul>';
        // echo '</li>';