aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php23
1 files changed, 19 insertions, 4 deletions
diff --git a/index.php b/index.php
index abf658a3..27144de3 100755
--- a/index.php
+++ b/index.php
@@ -129,12 +129,11 @@ catch (Exception $e)
129 <li><a style="cursor: move" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<?php echo url()?>?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li> 129 <li><a style="cursor: move" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<?php echo url()?>?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li>
130 </ul> 130 </ul>
131 <div id="content"> 131 <div id="content">
132 <ul id="entries">
133 <?php 132 <?php
134 foreach ($entries as $entry) 133 foreach ($entries as $entry)
135 { 134 {
136 ?> 135 ?>
137 <li id="entry-<?php echo $entry['id']; ?>" class="entrie mb2"> 136 <div id="entry-<?php echo $entry['id']; ?>" class="entrie mb2">
138 <span class="content"> 137 <span class="content">
139 <h2 class="h6-like"> 138 <h2 class="h6-like">
140 <a href="readityourself.php?url=<?php echo urlencode($entry['url']); ?>"><?php echo $entry['title']; ?> 139 <a href="readityourself.php?url=<?php echo urlencode($entry['url']); ?>"><?php echo $entry['title']; ?>
@@ -145,17 +144,33 @@ catch (Exception $e)
145 <a href="?action=delete&id=<?php echo $entry['id']; ?>" title="toggle delete" onclick="return confirm('Are you sure?')" class="tool delete"><span></span></a> 144 <a href="?action=delete&id=<?php echo $entry['id']; ?>" title="toggle delete" onclick="return confirm('Are you sure?')" class="tool delete"><span></span></a>
146 </div> 145 </div>
147 </span> 146 </span>
148 </li> 147 </div>
149 <?php 148 <?php
150 } 149 }
151 ?> 150 ?>
152 </ul>
153 </div> 151 </div>
154 </div> 152 </div>
155 <footer class="mr2 mt3 smaller"> 153 <footer class="mr2 mt3 smaller">
156 <p>download poche on <a href="http://github.com/nicosomb/github">github</a><br />follow us on <a href="https://twitter.com/getpoche" title="follow us on twitter">twitter</a></p> 154 <p>download poche on <a href="http://github.com/nicosomb/github">github</a><br />follow us on <a href="https://twitter.com/getpoche" title="follow us on twitter">twitter</a></p>
157 </footer> 155 </footer>
158 <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script> 156 <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
157 <script type="text/javascript" src="js/jquery.masonry.min.js"></script>
159 <script type="text/javascript" src="js/poche.js"></script> 158 <script type="text/javascript" src="js/poche.js"></script>
159 <script type="text/javascript">
160 $( window ).load( function()
161 {
162 var columns = 3,
163 setColumns = function() { columns = $( window ).width() > 640 ? 3 : $( window ).width() > 320 ? 2 : 1; };
164
165 setColumns();
166 $( window ).resize( setColumns );
167
168 $( '#content' ).masonry(
169 {
170 itemSelector: '.entrie',
171 columnWidth: function( containerWidth ) { return containerWidth / columns; }
172 });
173 });
174 </script>
160 </body> 175 </body>
161</html> 176</html>