Minor template tweaks

monkeyman
monkeyman
  • monkeyman
  • 10 months ago
I would like to suggest you a couple template tweaks. They are pretty minor, but will make your components a bit more neat.

1. For example, you have a bunch of collapsible blocks with down chevron icon. This icon remains, even if block is collapsed, however it became a standard behavior, when collapsed block changes chevron to the left one.

<i class="icon-chevron-down"></i> - expanded
<i class="icon-chevron-right"></i> - collapsed

The only thing you need is change one class to another on click. That's all. Could easily do it myself, but don't wanna mess with core files or add extra event check in template.

2. When you edit a question or create a new one, there's always Ask Question button. When you edit question, you'd better have Save Question. Here's a code, which I added to form_content.php file:

<button type="button" class="btn btn-primary btn-submit-form">
<?php if ($this->question->id == 0) { ?>
<?php echo JText::_('LBL_ASK_QUESTION');?>
<?php } else { ?>
<?php echo JText::_('LBL_SAVE');?>
<?php } ?>
</button>


3. Please, add an option to hide Leaderboard link in menu. Not everybody needs it for sure.

More to come :-)

Access to viewing replies is restricted.
Showing 2 of 2 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai