Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: TeenQuotes/website
base: cb120cde8d
...
head fork: TeenQuotes/website
compare: 7cbd35df2b
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
View
10 index.php
@@ -7,7 +7,7 @@
$donnees = mysql_fetch_array($retour);
$nb_messages_par_page = '10';
-$display_page_top = display_page_top($donnees['nb_messages'], $nb_messages_par_page, 'p', $previous_page, $next_page);
+$display_page_top = display_page_top($donnees['nb_messages'], $nb_messages_par_page, 'p', $previous_page, $next_page, NULL, TRUE);
$premierMessageAafficher = $display_page_top[0];
$nombreDePages = $display_page_top[1];
$page = $display_page_top[2];
@@ -22,13 +22,13 @@
$auteur = $result['auteur'];
$date_quote = $result['date'];
- $nombre_commentaires= mysql_num_rows(mysql_query("SELECT * FROM teen_quotes_comments WHERE id_quote='$id_quote'"));
- $is_favorite = mysql_num_rows(mysql_query("SELECT * FROM teen_quotes_favorite WHERE id_quote='$id_quote' AND id_user='$id'"));
+ $nombre_commentaires= mysql_num_rows(mysql_query("SELECT * FROM teen_quotes_comments WHERE id_quote='".$id_quote."'"));
+ $is_favorite = mysql_num_rows(mysql_query("SELECT * FROM teen_quotes_favorite WHERE id_quote='".$id_quote."' AND id_user='".$id."'"));
?>
- <div class="post<?php if($i=='0'){echo ' no_rounded_borders_right_top';} ?>">
+ <div class="post">
<?php is_quote_new($date_quote,$last_visit,$page,$i); ?><?php echo $txt_quote; ?><br>
<div class="footer_quote">
- <a href="quote-<?php echo $result['id']; ?>">#<?php echo $result['id']; ?> - <?php if($nombre_commentaires >'1'){echo "$nombre_commentaires $comments";}elseif($nombre_commentaires=='1'){echo "$nombre_commentaires $comment";}else{echo"$no_comments";} ?></a><?php afficher_favori($id_quote,$is_favorite,$logged,$add_favorite,$unfavorite,$_SESSION['id']); date_et_auteur ($auteur_id,$auteur,$date_quote,$on,$by,$view_his_profile); ?>
+ <a href="quote-<?php echo $result['id']; ?>">#<?php echo $result['id']; ?> - <?php if($nombre_commentaires >'1'){echo ''.$nombre_commentaires.' '.$comments.'';}elseif($nombre_commentaires=='1'){echo ''.$nombre_commentaires.' '.$comment.'';}else{echo ''.$no_comments.'';} ?></a><?php afficher_favori($id_quote,$is_favorite,$logged,$add_favorite,$unfavorite,$_SESSION['id']); date_et_auteur ($auteur_id,$auteur,$date_quote,$on,$by,$view_his_profile); ?>
</div>
<?php share_fb_twitter ($id_quote,$txt_quote,$share); ?>
</div>
View
20 kernel/fonctions.php
@@ -553,7 +553,7 @@ function display_page_bottom($page, $nombreDePages, $nom_lien_page, $div_redirec
echo '<div class="clear"></div>';
}
-function display_page_top($nb_messages, $nb_messages_par_page, $lien, $previous_page, $next_page, $div_redirection = NULL)
+function display_page_top($nb_messages, $nb_messages_par_page, $lien, $previous_page, $next_page, $div_redirection = NULL,$margin = FALSE)
{
$nombreDePages = ceil($nb_messages / $nb_messages_par_page);
if (isset($_GET[$lien]))
@@ -575,11 +575,25 @@ function display_page_top($nb_messages, $nb_messages_par_page, $lien, $previous_
if ($page > 1)
{
- echo '<span class="page"><a href="?'.$lien.'='.$page3.''.$div_redirection.'">'.$previous_page.'</a> || ';
+ if ($margin)
+ {
+ echo '<span class="page page_index"><a href="?'.$lien.'='.$page3.''.$div_redirection.'">'.$previous_page.'</a> || ';
+ }
+ else
+ {
+ echo '<span class="page"><a href="?'.$lien.'='.$page3.''.$div_redirection.'">'.$previous_page.'</a> || ';
+ }
}
if ($page == 1 AND $page < $nombreDePages)
{
- echo '<span class="page">';
+ if ($margin)
+ {
+ echo '<span class="page page_index">';
+ }
+ else
+ {
+ echo '<span class="page">';
+ }
}
if($page < $nombreDePages)
{
View
6 m/style.css
@@ -21,7 +21,7 @@ span.icone_flags{background:url('http://www.teen-quotes.com/images/icones/sprite
span.icone_flags.english{background-position:-15px 0;height:14px;margin-right:20px;width:14px;}
span.icone_flags.french{background-position:-30px 0;height:14px;width:14px;}
.bleu{color:#5C9FC0;font-weight:700;}
-#topbar{-webkit-box-shadow:inset 0px -1px 5px rgba(0, 0, 0, 0.3);-moz-box-shadow:inset 0px -1px 5px rgba(0, 0, 0, 0.3);box-shadow:inset 0px -1px 5px hsla(0, 0%, 0%, 0.3);-moz-border-radius:8px;-webkit-border-radius:8px;background:#fff;border-radius:8px;font-size:85%;text-align:left;margin:0 auto;padding:10px;}
+#topbar{-webkit-box-shadow:inset 0px 1px 3px rgba(0, 0, 0, 0.3);-moz-box-shadow:inset 0px 1px 3px rgba(0, 0, 0, 0.3);box-shadow:inset 0px 1px 3px hsla(0, 0%, 0%, 0.3);-moz-border-radius:8px;-webkit-border-radius:8px;background:#fff;border-radius:8px;font-size:85%;text-align:left;margin:0 auto;padding:10px;}
#topbar .title{margin-top:-10px;}
#topbar .title a{color:#424545;text-decoration:none;}
#topbar .title a:hover{color:#5C9FC0;}
@@ -41,7 +41,7 @@ span.icone_flags.french{background-position:-30px 0;height:14px;width:14px;}
#wrapper h3{color:#246;margin-bottom:8px;margin-left:20px;font-family:Helvetica;}
h1,h2,h3 {letter-spacing:-1px}
.min_info{font-size:75%;}
-.post{-webkit-box-shadow:inset 0px -1px 5px rgba(0, 0, 0, 0.3);-moz-box-shadow:inset 0px -1px 5px rgba(0, 0, 0, 0.3);box-shadow:inset 0px -1px 5px hsla(0, 0%, 0%, 0.3);-moz-border-radius:8px;-webkit-border-radius:8px;background:#fff;border-radius:8px;color:#666;font-size:12px;font-weight:300;line-height:20px;width:95%;margin:0 auto 15px;padding:5px 10px;}
+.post{-webkit-box-shadow:inset 0px 1px 3px rgba(0, 0, 0, 0.3);-moz-box-shadow:inset 0px 1px 3px rgba(0, 0, 0, 0.3);box-shadow:inset 0px 1px 3px hsla(0, 0%, 0%, 0.3);-moz-border-radius:8px;-webkit-border-radius:8px;background:#fff;border-radius:8px;color:#666;font-size:12px;font-weight:300;line-height:20px;width:95%;margin:0 auto 15px;padding:5px 10px;}
#wrapper a,.post a,#footer a{color:#5C9FC0;font-weight:700;text-decoration:none;}
.post a:hover,#footer a:hover{text-decoration:underline;}
.post a.boutton{-moz-border-radius:10px;-webkit-border-radius:10px;background:#246;border-radius:10px;color:#fff;font-size:14px;font-weight:400;padding:5px 12px;}
@@ -58,7 +58,7 @@ input .edit_user,select .edit_user{width:180px;}
input:hover,textarea:hover,input:focus,textarea:focus{border:1px solid #5C9FC0;}
input.submit{-moz-border-radius:8px;-webkit-border-radius:8px;background:#5C9FC0;border:none;border-radius:8px;color:#fff;font-size:11px;font-weight:400;padding:5px;}
input.signup{width:230px;}
-#footer{-webkit-box-shadow:inset 0px -1px 5px rgba(0, 0, 0, 0.3);-moz-box-shadow:inset 0px -1px 5px rgba(0, 0, 0, 0.3);box-shadow:inset 0px -1px 5px hsla(0, 0%, 0%, 0.3);-moz-border-radius:8px;-webkit-border-radius:8px;background:#fff;border-radius:8px;font-size:50%;margin:10px auto;padding:10px;}
+#footer{-webkit-box-shadow:inset 0px 1px 3px rgba(0, 0, 0, 0.3);-moz-box-shadow:inset 0px 1px 3px rgba(0, 0, 0, 0.3);box-shadow:inset 0px 1px 3px hsla(0, 0%, 0%, 0.3);-moz-border-radius:8px;-webkit-border-radius:8px;background:#fff;border-radius:8px;font-size:50%;margin:10px auto;padding:10px;}
#footer a{font-weight:400;}
.error{color:#246;display:block;font-weight:700;margin:10px auto 15px auto;vertical-align:middle}
.erreur{background:transparent url('http://www.teen-quotes.com/images/icones/alert.png') no-repeat 2% 50%;color:#5C9FC0;font-weight:600;padding-left:30px;}
View
12 random.php
@@ -7,7 +7,7 @@
$donnees = mysql_fetch_array($retour);
$nb_messages_par_page = '10';
-$display_page_top = display_page_top($donnees['nb_messages'], $nb_messages_par_page, 'p', $previous_page, $next_page);
+$display_page_top = display_page_top($donnees['nb_messages'], $nb_messages_par_page, 'p', $previous_page, $next_page, NULL, TRUE);
$premierMessageAafficher = $display_page_top[0];
$nombreDePages = $display_page_top[1];
$page = $display_page_top[2];
@@ -22,13 +22,13 @@
$auteur = $result['auteur'];
$date_quote = $result['date'];
- $nombre_commentaires= mysql_num_rows(mysql_query("SELECT * FROM teen_quotes_comments WHERE id_quote='$id_quote'"));
- $is_favorite = mysql_num_rows(mysql_query("SELECT * FROM teen_quotes_favorite WHERE id_quote='$id_quote' AND id_user='$id'"));
+ $nombre_commentaires= mysql_num_rows(mysql_query("SELECT * FROM teen_quotes_comments WHERE id_quote='".$id_quote."'"));
+ $is_favorite = mysql_num_rows(mysql_query("SELECT * FROM teen_quotes_favorite WHERE id_quote='".$id_quote."' AND id_user='".$id."'"));
?>
- <div class="post<?php if($i=='0'){echo ' no_rounded_borders_right_top';} ?>">
- <?php echo $txt_quote; ?><br>
+ <div class="post">
+ <?php is_quote_new($date_quote,$last_visit,$page,$i); ?><?php echo $txt_quote; ?><br>
<div class="footer_quote">
- <a href="quote-<?php echo $result['id']; ?>">#<?php echo $result['id']; ?> - <?php if($nombre_commentaires >'1'){echo "$nombre_commentaires $comments";}elseif($nombre_commentaires=='1'){echo "$nombre_commentaires $comment";}else{echo"$no_comments";} ?></a><?php afficher_favori($id_quote,$is_favorite,$logged,$add_favorite,$unfavorite,$_SESSION['id']); date_et_auteur ($auteur_id,$auteur,$date_quote,$on,$by,$view_his_profile); ?>
+ <a href="quote-<?php echo $result['id']; ?>">#<?php echo $result['id']; ?> - <?php if($nombre_commentaires >'1'){echo ''.$nombre_commentaires.' '.$comments.'';}elseif($nombre_commentaires=='1'){echo ''.$nombre_commentaires.' '.$comment.'';}else{echo ''.$no_comments.'';} ?></a><?php afficher_favori($id_quote,$is_favorite,$logged,$add_favorite,$unfavorite,$_SESSION['id']); date_et_auteur ($auteur_id,$auteur,$date_quote,$on,$by,$view_his_profile); ?>
</div>
<?php share_fb_twitter ($id_quote,$txt_quote,$share); ?>
</div>
View
3  style.css
@@ -56,7 +56,7 @@ h1,h2,h3 {letter-spacing:-1px}
.post a:hover,#footer a:hover,.profile_not_fullfilled a:hover{text-decoration:underline}
.post a.boutton{-moz-border-radius:10px;-webkit-border-radius:10px;background:#246;border-radius:10px;color:#fff;font-size:14px;font-weight:400;padding:5px 12px}
.post a.boutton:hover{-webkit-box-shadow:0 0 3px #5C9FC0, 0 0 6px #5C9FC0;text-decoration:none}
-.post .title{border-bottom:1px solid #5C9FC0;letter-spacing:-1px;text-shadow: 2px 2px 1px #d7d7d7;color: #323930;font-size:110%;font-weight:600;margin-bottom:15px}
+.post .title{border-bottom:1px solid #A7A7A7;letter-spacing:-1px;text-shadow: 2px 2px 1px #d7d7d7;color: #323930;font-size:110%;font-weight:600;margin-bottom:15px}
.footer_quote {font-size:90%;margin-top:5px}
#right{float:left;margin:35px 0 0 20px;width:170px}
.clear{clear:both}
@@ -75,6 +75,7 @@ select {outline:none}
.page_bottom_number_active {background:#DDD}
.page_user_margin {margin-right:5px}
.page {margin-bottom:20px}
+.page_index {margin-top:-10px}
.erreur{background:transparent url('images/icones/alert.png') no-repeat 2% 50%;color:#5C9FC0;font-weight:600;margin:20px;padding:10px 10px 10px 60px}
.letters_members {background:#F5F5F5;padding:2px 3px;border:1px solid #e5e5e5;margin-right:11px}
.grey_post {background:#f5f5f5;border:1px solid #e5e5e5;padding:10px;margin:20px 5px;color:#666;font-size:12px;font-weight:300;line-height:20px}

No commit comments for this range

Something went wrong with that request. Please try again.