-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<!DOCTYPE html> | ||
|
||
<html lang="en"> | ||
<head> | ||
<title>Twitter Clone</title> | ||
<link type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | ||
<link rel="stylesheet" type="text/css" href="/css/styles.css"> | ||
<meta charset="utf-8"> | ||
</head> | ||
<body> | ||
<head> | ||
<title>Twitter Clone</title> | ||
<link type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | ||
<link rel="stylesheet" type="text/css" href="/css/styles.css"> | ||
<meta charset="utf-8"> | ||
</head> | ||
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> | ||
<h1>Tweets Feed</h1> | ||
<div class="container"> | ||
<div class="row"> | ||
<?php foreach($posts as $post){?> | ||
<div class="col-md-4"> | ||
<?php echo $post['first_name'];?> | ||
<?php echo $post['last_name'];?> | ||
<?php echo $post['username'];?> | ||
</div> | ||
<div class="col-md-8"> | ||
<?php echo $post['tweet'];?> | ||
<?php echo $post['date_time'];?> | ||
</div> | ||
<?php }?> | ||
</div> | ||
</div> | ||
<div class="home container"> | ||
<h1>My Tweets</h1> | ||
<?php foreach($posts as $post){ ?> | ||
<div class="tweet-container"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<?php echo "<h3>" . $post['first_name'] . " " . $post['last_name'] . "</h3>"; ?> | ||
<?php echo "<h4>" . "@" . $post['username'] . "</h4>";?> | ||
</div> | ||
<div class="col-md-3 date"> | ||
<?php echo $post['date_time'];?> | ||
</div> | ||
</div> | ||
<div class="row tweet italic"> | ||
<div class="col-md-12"> | ||
<?php echo "\"" . $post['tweet'] . "\"";?> | ||
</div> | ||
</div> | ||
</div> | ||
<?php }?> | ||
</div> |