Permalink
Browse files

Fix for correct fluid behavior in thumbnail areas

  • Loading branch information...
1 parent 5cdd333 commit d87f16fbf059ca18a067b892d24a550d7800f223 @Chraneco Chraneco committed Jun 17, 2015
@@ -16,12 +16,12 @@
<div class="pagination">
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
- <div class="row-fluid jg-thumbnails-area">
<?php endif;
if($this->params->get('show_all_in_popup')):
echo $this->popup['before'];
- endif;
- $count_pics = count($this->images);
+ endif; ?>
+ <div class="row-fluid jg-thumbnails-area">
+<?php $count_pics = count($this->images);
$column = $this->_config->get('jg_colnumb');
$num_rows = ceil($count_pics / $column);
$index = 0;
@@ -41,9 +41,9 @@
</div>
</div>
</div>
+<?php endif; ?>
<div class="row-fluid jg-thumbnails-area">
-<?php endif;
- $cat_count = count($this->categories);
+<?php $cat_count = count($this->categories);
$num_rows = ceil($cat_count / $this->_config->get('jg_colsubcat'));
$index = 0;
for($row_count = 0; $row_count < $num_rows; $row_count++): ?>
@@ -20,9 +20,9 @@
<?php echo $this->output('NO_IMAGES'); ?>
</div>
</div>
+<?php endif; ?>
<div class="row-fluid jg-thumbnails-area">
-<?php endif;
- $num_rows = ceil($count / $this->_config->get('jg_toplistcols'));
+<?php $num_rows = ceil($count / $this->_config->get('jg_toplistcols'));
$index = 0;
for($row_count = 0; $row_count < $num_rows; $row_count++): ?>
<ul class="thumbnails">
@@ -22,9 +22,9 @@
<div class="pagination">
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
+<?php endif; ?>
<div class="row-fluid jg-thumbnails-area">
-<?php endif;
- $num_rows = ceil(count($this->rows ) / $this->_config->get('jg_colcat'));
+<?php $num_rows = ceil(count($this->rows ) / $this->_config->get('jg_colcat'));
$index = 0;
for($row_count = 0; $row_count < $num_rows; $row_count++): ?>
<ul class="thumbnails">

0 comments on commit d87f16f

Please sign in to comment.