Skip to content

Commit

Permalink
changed div to span
Browse files Browse the repository at this point in the history
  • Loading branch information
rjharishabh committed Apr 21, 2021
1 parent 3fe3c26 commit 1d1eae6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions components/com_content/src/View/Archive/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function display($tpl = null)
$months,
'month',
array(
'list.attr' => 'class="form-control"',
'list.attr' => 'class="form-select"',
'list.select' => $state->get('filter.month'),
'option.key' => null
)
Expand All @@ -200,7 +200,7 @@ public function display($tpl = null)
'select.genericlist',
$years,
'year',
array('list.attr' => 'class="form-control"', 'list.select' => $state->get('filter.year'))
array('list.attr' => 'class="form-select"', 'list.select' => $state->get('filter.year'))
);
$form->limitField = $pagination->getLimitBox();

Expand Down
13 changes: 6 additions & 7 deletions components/com_content/tmpl/archive/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,21 @@
</div>
<?php endif; ?>

<div class="me-2">
<span class="me-2">
<?php echo $this->form->monthField; ?>
</div>
<div class="me-2">
</span>
<span class="me-2">
<?php echo $this->form->yearField; ?>
</div>
<div class="me-2">
</span>
<span class="me-2">
<?php echo $this->form->limitField; ?>
</div>
</span>

<button type="submit" class="btn btn-primary" style="vertical-align: top;"><?php echo Text::_('JGLOBAL_FILTER_BUTTON'); ?></button>
<input type="hidden" name="view" value="archive">
<input type="hidden" name="option" value="com_content">
<input type="hidden" name="limitstart" value="0">
</div>
<br>
</fieldset>
</form>
<?php echo $this->loadTemplate('items'); ?>
Expand Down

0 comments on commit 1d1eae6

Please sign in to comment.