Permalink
Browse files

Changes for Bootstrap 2.x

  • Loading branch information...
1 parent 3d7e510 commit fbb47e0d560a6d82c9f14bbf455a2c29d1942392 @Chraneco Chraneco committed Jun 15, 2015
@@ -28,7 +28,7 @@
<?php if($displayData->params->get('show_footer_allpics') || $displayData->params->get('show_footer_allhits')): ?>
<div class="row-fluid">
<div class="span12">
- <ul class="list-unstyled text-right jg-gallerystats jg-gallerystats-footer">
+ <ul class="unstyled text-right jg-gallerystats jg-gallerystats-footer">
<?php if($displayData->params->get('show_footer_allpics')): ?>
<li class="jg-gallerystats-count"><?php echo JText::sprintf('COM_JOOMGALLERY_COMMON_NUMB_IMAGES_ALL_CATEGORIES', '<span class="badge">'.$displayData->numberofpics.'</span>'); ?></li>
<?php endif;
@@ -41,7 +41,7 @@
<?php endif;
if($displayData->params->get('show_footer_search')): ?>
<form action="<?php echo JRoute::_('index.php?view=search'); ?>" method="post" class="navbar-search jg-navbar-search-footer pull-right">
- <label for="jg-search-box-footer" class="sr-only"><?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH'); ?></label>
+ <label for="jg-search-box-footer" class="sr-only hidden"><?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH'); ?></label>
<input title="<?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH'); ?>" type="text" name="sstring" id="jg-search-box-footer" class="search-query form-control" onblur="if(this.value=='') this.value='<?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH', true); ?>';" onfocus="if(this.value=='<?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH', true); ?>') this.value='';" value="<?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH'); ?>" placeholder="<?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH'); ?>" />
</form>
<?php endif; ?>
@@ -82,7 +82,7 @@ public static function tip($text = 'Tooltip', $title = null, $addclass = false,
</ul>
<?php endif;
if($displayData->params->get('show_mygal') || $displayData->params->get('show_mygal_no_access') || $displayData->params->get('show_favourites')): ?>
- <ul class="list-unstyled jg-links-header">
+ <ul class="unstyled jg-links-header">
<?php if($displayData->params->get('show_mygal')): ?>
<li class="jg-userpanel-link">
<a href="<?php echo JRoute::_('index.php?option=com_joomgallery&view=userpanel'); ?>"<?php echo JHtml::_('joomgallery.tip', 'COM_JOOMGALLERY_COMMON_USER_PANEL', null, true); ?>">
@@ -134,14 +134,14 @@ public static function tip($text = 'Tooltip', $title = null, $addclass = false,
<div class="span6">
<?php if($displayData->params->get('show_header_search')): ?>
<form action="<?php echo JRoute::_('index.php?view=search'); ?>" method="post" class="navbar-search pull-right">
- <label for="jg-search-box" class="sr-only"><?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH'); ?></label>
+ <label for="jg-search-box" class="sr-only hidden"><?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH'); ?></label>
<input title="<?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH'); ?>" type="text" name="sstring" id="jg-search-box" class="search-query form-control" onblur="if(this.value=='') this.value='<?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH', true); ?>';" onfocus="if(this.value=='<?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH', true); ?>') this.value='';" value="<?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH'); ?>" placeholder="<?php echo JText::_('COM_JOOMGALLERY_COMMON_SEARCH'); ?>" />
</form>
<?php endif;
if($displayData->params->get('show_header_allpics', 1) || $displayData->params->get('show_header_allhits', 0)): ?>
<div class="row-fluid">
<div class="span12">
- <ul class="list-unstyled text-right jg-gallerystats">
+ <ul class="unstyled text-right jg-gallerystats">
<?php if($displayData->params->get('show_header_allpics')): ?>
<li class="jg-gallerystats-count"><?php echo JText::sprintf('COM_JOOMGALLERY_COMMON_NUMB_IMAGES_ALL_CATEGORIES', '<span class="badge">'.$displayData->numberofpics.'</span>'); ?></li>
<?php endif;
@@ -37,7 +37,7 @@
<a <?php echo $row->atagtitle; ?> href="<?php echo $row->link; ?>">
<img src="<?php echo $row->thumb_src; ?>" <?php echo $row->imgwh; ?> alt="<?php echo $row->imgtitle; ?>" /></a>
<div class="caption jg_catelem_txt">
- <ul class="list-unstyled text-center">
+ <ul class="unstyled text-center">
<?php if($this->_config->get('jg_showtitle') || ($this->_config->get('jg_showpicasnew') && $row->isnew)): ?>
<li>
<?php if($this->_config->get('jg_showtitle')): ?>
@@ -57,7 +57,7 @@
</a>
<?php endif; ?>
<div class="caption">
- <ul class="list-unstyled">
+ <ul class="unstyled">
<li>
<?php if(in_array($row->access, $this->_user->getAuthorisedViewLevels())): ?>
<a href="<?php echo $row->link; ?>">
@@ -173,7 +173,27 @@
<?php endif; ?>
<?php echo $this->event->icons; ?>
</div>
- <div class="visible-phone span3 text-center">
+ <div class="hidden-phone span3 text-center">
+<?php if($this->params->get('show_next_link')): ?>
+<?php if($this->_config->get('jg_cursor_navigation') == 1): ?>
+ <form name="form_jg_forward_link" action="<?php echo $this->pagination['next']['link']; ?>">
+ <input type="hidden" name="jg_forward_link" readonly="readonly" />
+ </form>
+<?php endif;?>
+ <ul class="pager">
+ <li><a href="<?php echo $this->pagination['next']['link']; ?>">
+ <?php echo JText::_('COM_JOOMGALLERY_DETAIL_IMG_NEXT'); ?> &rarr; </a>
+ </li>
+ </ul>
+<?php if($this->params->get('show_next_text')): ?>
+ <?php echo $this->pagination['next']['text']; ?>
+<?php endif;
+ endif; ?>
+ </div>
+ </div>
+<?php if($this->params->get('show_previous_link') || $this->params->get('show_next_link')): ?>
+ <div class="row-fluid visible-phone jg-detail-navigation">
+ <div class="span6 text-center jg-detail-previous-link">
<?php if($this->params->get('show_previous_link')): ?>
<?php if($this->_config->get('jg_cursor_navigation') == 1): ?>
<form name="form_jg_back_link" action="<?php echo $this->pagination['previous']['link']; ?>">
@@ -190,7 +210,7 @@
<?php endif;
endif; ?>
</div>
- <div class="col-xs-6 span3 text-center">
+ <div class="span6 text-center jg-detail-next-link">
<?php if($this->params->get('show_next_link')): ?>
<?php if($this->_config->get('jg_cursor_navigation') == 1): ?>
<form name="form_jg_forward_link" action="<?php echo $this->pagination['next']['link']; ?>">
@@ -208,6 +228,7 @@
endif; ?>
</div>
</div>
+<?php endif; ?>
<?php if($this->params->get('show_all_in_popup')):
echo $this->popup['after'];
endif;
@@ -33,7 +33,7 @@
<img src="<?php echo $row->thumb_src; ?>" alt="<?php echo $row->imgtitle; ?>" />
</a>
<div class="caption">
- <ul class="list-unstyled text-center">
+ <ul class="unstyled text-center">
<li>
<h3><?php echo $row->imgtitle; ?></h3>
</li>
@@ -37,7 +37,7 @@
</a>
<?php endif; ?>
<div class="caption">
- <ul class="list-unstyled">
+ <ul class="unstyled">
<li>
<?php if(in_array($row->access, $this->_user->getAuthorisedViewLevels())): ?>
<a href="<?php echo $row->link; ?>">
@@ -25,7 +25,7 @@
<img src="<?php echo $row->thumb_src; ?>" alt="<?php echo $row->imgtitle; ?>" />
</a>
<div class="caption">
- <ul class="list-unstyled text-center">
+ <ul class="unstyled text-center">
<li>
<h3><?php echo $row->imgtitle; ?></h3>
</li>
@@ -26,7 +26,7 @@
<img src="<?php echo $row->thumb_src; ?>" alt="<?php echo $row->imgtitle; ?>" />
</a>
<div class="caption">
- <ul class="list-unstyled text-center">
+ <ul class="unstyled text-center">
<li>
<h3><?php echo $row->imgtitle; ?></h3>
</li>
@@ -2,10 +2,6 @@
text-align:center;
}
-.jg-bootone .caption .list-unstyled{
- margin-bottom:0;
-}
-
.jg-counts{
text-align:center;
margin-bottom:10px;
@@ -91,4 +87,13 @@
}
.jg-category-ordering-controls{
margin-bottom:20px;
+}
+
+.jg-detail-previous-link{
+ float:left !important;
+ width:50% !important;
+}
+.jg-detail-next-link{
+ float:right !important;
+ width:50% !important;
}

0 comments on commit fbb47e0

Please sign in to comment.