Example #1
0
    page_header('logged');
} else {
    page_header('not_logged');
}
?>
<div class="container">
    <div class="page-header">
        <h1>
            <?php 
echo ucfirst(get_username_by_user_id($user_id));
?>
            <?php 
if (get_current_user_id() && get_current_user_id() != $user_id) {
    ?>
                <?php 
    if (is_following(get_current_user_id(), $user_id)) {
        ?>
                    <form class="inline btn-group" method="POST" action="<?php 
        echo escape_html($page_url);
        ?>
">
                        <button class="btn btn-danger" type="submit" name="unfollow">
                            <span class="glyphicon glyphicon-minus"></span>
                            Відписатися
                        </button>
                        <button class="btn btn-default followers" style="background: transparent" data-content="<?php 
        echo escape_html(links_for_users($followers));
        ?>
">
                        <?php 
        echo $follower_count;
Example #2
0
      <li><a class="waves-effect waves-light btn pink accent-3">Login</a></li>
      </ul>
      <a href="#" data-activates="nav-mobile" class="button-collapse"><i class="mdi-navigation-menu"></i></a>
    </div>
  </nav>
<?php 
foreach ($event as $eve) {
    ?>
   <div class="row" style="width:80%;">
      <div class="col s12 pink lighten-2"><br><center><h2 style="color:white;"><?php 
    echo $eve['title'];
    ?>
</h2></center><br></div>
      <br>
  <?php 
    $f = is_following($eid, $user);
    ?>
    <div class="col s12" style="padding-left:0;padding-right:0;">
      <ul class="tabs">
        <li class="tab col s3 purple lighten-1"><a  href="#test1" style="color:white;">About</a></li>
        <li class="tab col s3 purple lighten-1"><a href="#test2" style="color:white;">Members</a></li>
        <li class="tab col s3 purple lighten-1"><a href="#test3" style="color:white;">Discussion</a></li>
        
        <?php 
    if (isset($_SESSION['username'])) {
        ?>
        <li class="tab col s3 purple lighten-1"><a href="#test4" style="color:white;">Settings</a></li>
          <?php 
    }
    ?>
        
              <h1><?php 
echo "{$user["first_name"]} {$user["last_name"]}";
?>
's Profile</h1>
            </div>
            <div class="four columns">
              <?php 
if (logged_in() && $user["id"] != $current_user["id"]) {
    ?>
                <form action="follow.php" method="post">
                  <input type="hidden" name="followed_id" value="<?php 
    echo $user["id"];
    ?>
"/>
                  <?php 
    if (!is_following(intval($current_user["id"]), $user["id"])) {
        ?>
                    <input type="submit" name="follow" value="Follow" class="follow_button"/>
                  <?php 
    } else {
        ?>
                    <input type="submit" name="unfollow" value="Unfollow" class="unfollow_button" />
                  <?php 
    }
    ?>
                </form>
              <?php 
}
?>
              <?php 
if (logged_in() && $user["id"] === $current_user["id"]) {