-
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.
edited all tweets page and got information from database per user
- Loading branch information
Shemona Singh
authored and
Shemona Singh
committed
Dec 4, 2017
1 parent
92c6dca
commit eac8bea
Showing
6 changed files
with
62 additions
and
38 deletions.
There are no files selected for viewing
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,32 +1,25 @@ | ||
<?php | ||
defined('BASEPATH') OR exit('No direct script access allowed'); | ||
?><!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>All Tweets</title> | ||
<style type="text/css"> | ||
?> | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
<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> | ||
|
||
</body> | ||
</html> | ||
<div class="home container"> | ||
<h1>All 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> |
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,8 +1,10 @@ | ||
<html> | ||
<!DOCTYPE html> | ||
|
||
<html lang="en"> | ||
<head> | ||
<title>Twitter</title> | ||
<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> | ||
<h2>Hello</h2> | ||
<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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.home{ | ||
max-width:60%; | ||
margin:0 auto | ||
} | ||
|
||
.tweet-container{ | ||
border:1px solid #eeeeee; | ||
padding:15px; | ||
margin-bottom:15px; | ||
max-width:100%; | ||
} | ||
|
||
.tweet-container h3{ | ||
margin-top:0!important | ||
} | ||
|
||
.date{ | ||
color:grey | ||
} | ||
|
||
.tweet{ | ||
font-size: 16px; | ||
font-style: italic; | ||
} |