Completed
Push — master ( bfb6f6...3483e5 )
by mains
02:50
created
templates/footer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 			  crossorigin="anonymous"></script>
6 6
 	    <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
7 7
 	    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
8
-	    <script src="<?php echo $baseUrl;?>js/jQueryEmoji.js"></script>
8
+	    <script src="<?php echo $baseUrl; ?>js/jQueryEmoji.js"></script>
9 9
 
10 10
 		<script>
11 11
 			//BackButton
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
 			{
14 14
 				window.history.back();
15 15
 			}
16
-		<?php if(isset($includeEmojiAndAjax)){ ?>
16
+		<?php if(isset($includeEmojiAndAjax)) { ?>
17 17
 
18 18
 			function vote(postId, vote, obj)
19 19
 			{
20 20
 				$.ajax({
21
-					url: '<?php echo $baseUrl;?>vote-ajax.php?postId=' + postId + '&vote=' + vote,
21
+					url: '<?php echo $baseUrl; ?>vote-ajax.php?postId=' + postId + '&vote=' + vote,
22 22
 					dataType: 'json',
23 23
 					async: true,
24 24
 					success: function(json)
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 				function getMorePosts(lastPostId, view, hashtag, old_lastPostId)
73 73
 				{
74 74
 					$.ajax({
75
-						url: '<?php echo $baseUrl;?>get-posts-ajax.php?lastPostId=' + lastPostId + '&view=' + view + '&hashtag=' + encodeURIComponent(hashtag),
75
+						url: '<?php echo $baseUrl; ?>get-posts-ajax.php?lastPostId=' + lastPostId + '&view=' + view + '&hashtag=' + encodeURIComponent(hashtag),
76 76
 						dataType: 'html',
77 77
 						async: false,
78 78
 						success: function(html) {
Please login to merge, or discard this patch.
php/View.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -49,25 +49,25 @@  discard block
 block discarded – undo
49 49
         $timediff_inDays = (string)$timediff->format('%d');
50 50
         $timediff_inMonth = (string)$timediff->format('%m');
51 51
 
52
-        if($timediff_inMonth!=0)
52
+        if($timediff_inMonth != 0)
53 53
         {
54 54
                 $timediff = $timediff_inMonth . "m";
55 55
         }
56 56
         else
57 57
         {
58
-            if($timediff_inDays!=0)
58
+            if($timediff_inDays != 0)
59 59
             {
60 60
                 $timediff = $timediff_inDays . "d";
61 61
             }
62 62
             else
63 63
             {
64
-                if($timediff_inHours!=0)
64
+                if($timediff_inHours != 0)
65 65
                 {
66 66
                     $timediff = $timediff_inHours . "h";
67 67
                 }
68 68
                 else
69 69
                 {
70
-                    if($timediff_inMinutes!=0)
70
+                    if($timediff_inMinutes != 0)
71 71
                     {
72 72
                         $timediff = $timediff_inMinutes . "m";
73 73
                     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
 
83 83
         ?>
84
-        <article id ="postId-<?php echo $post['post_id']; ?>" class="jodel" style="background-color: #<?php echo $post['color'];?>;">
84
+        <article id ="postId-<?php echo $post['post_id']; ?>" class="jodel" style="background-color: #<?php echo $post['color']; ?>;">
85 85
             <content>
86 86
                 <?php 
87 87
                 if(isset($post['image_url']))
@@ -96,12 +96,12 @@  discard block
 block discarded – undo
96 96
                 ?>
97 97
             </content>
98 98
             <aside>                    
99
-                <button onclick="vote('<?php echo $post['post_id'];?>', 'up', this)">
99
+                <button onclick="vote('<?php echo $post['post_id']; ?>', 'up', this)">
100 100
                     <i class="fa fa-angle-up fa-3x"></i>
101 101
                 </button>    
102
-                <br><span><?php echo $post["vote_count"];?></span><br>
102
+                <br><span><?php echo $post["vote_count"]; ?></span><br>
103 103
 
104
-                <button onclick="vote('<?php echo $post['post_id'];?>', 'down', this)">
104
+                <button onclick="vote('<?php echo $post['post_id']; ?>', 'down', this)">
105 105
                     <i class="fa fa-angle-down fa-3x"></i>
106 106
                 </button>
107 107
             </aside>
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
                         <span class="time">
113 113
                             <span class="tip" data-tooltip="Time">
114 114
                                 <i class="fa fa-clock-o"></i>
115
-                                <?php echo $timediff;?>
116
-                                <span class="tiptext"><?php echo $d->format('Y-m-d H:i:s');?></span>
115
+                                <?php echo $timediff; ?>
116
+                                <span class="tiptext"><?php echo $d->format('Y-m-d H:i:s'); ?></span>
117 117
                             </span> 
118 118
                         </span>
119 119
 						<?php if(!$this->isDetailedView) {?>
120 120
                         <span class="comments">
121 121
                             <span data-tooltip="Comments">
122
-                                <a href="<?php echo $this->changePostId($post['post_id'])->toUrl();?>">
122
+                                <a href="<?php echo $this->changePostId($post['post_id'])->toUrl(); ?>">
123 123
                                     <i class="fa fa-commenting-o"></i>
124 124
                                     <?php if(array_key_exists("child_count", $post))
125 125
                                     {
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                         </span>
133 133
 						<?php
134 134
 						}															  
135
-						if (isUserAdmin())
135
+						if(isUserAdmin())
136 136
 						{
137 137
 						?>
138 138
 						<span class="voting">
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                                         {
163 163
                                             ?>
164 164
                                             <span data-tooltip="Author">
165
-                                                <i class="fa fa-user-o"></i> #<?php echo $post['user_handle'];?> |
165
+                                                <i class="fa fa-user-o"></i> #<?php echo $post['user_handle']; ?> |
166 166
                                             </span>
167 167
                                             <?php
168 168
                                         }
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
 
173 173
                             <span class="tip" data-tooltip="Distance">
174 174
                                 <i class="fa fa-map-marker"></i>
175
-                                <?php echo $post['distance'];?> km
176
-                                <span class="tiptext"><?php echo $post['location']['name'];?></span>
175
+                                <?php echo $post['distance']; ?> km
176
+                                <span class="tiptext"><?php echo $post['location']['name']; ?></span>
177 177
                             </span>
178 178
                         </span>
179 179
                     
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
 		if($post != '' && array_key_exists('message', $post) && $post['message'] != '' && $this->isDetailedView)
214 214
 		{
215
-			$description = 'On JodelBlue in ' . htmlspecialchars($this->city) .  ' with ' . htmlspecialchars($post['vote_count']) . ' Upvotes: ' . substr(htmlspecialchars($post['message']), 0, 130);
215
+			$description = 'On JodelBlue in ' . htmlspecialchars($this->city) . ' with ' . htmlspecialchars($post['vote_count']) . ' Upvotes: ' . substr(htmlspecialchars($post['message']), 0, 130);
216 216
 		}
217 217
 
218 218
 		return $description;
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
         {
310 310
             return $data['recent'];
311 311
         }
312
-        else if(array_key_exists('posts', $data)&& array_key_exists(0, $data['posts']))
312
+        else if(array_key_exists('posts', $data) && array_key_exists(0, $data['posts']))
313 313
         {
314 314
             return $data['posts'];
315 315
         }
Please login to merge, or discard this patch.