Skip to content

Instantly share code, notes, and snippets.

@rvsjoen
Created June 26, 2012 23:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rvsjoen/3000104 to your computer and use it in GitHub Desktop.
Save rvsjoen/3000104 to your computer and use it in GitHub Desktop.
Frontend toolbar in Joomla!
<form method="post" action="index.php" id="adminForm">
<div id="toolbar-box"><?php echo $this->toolbar->render(); ?></div>
<input type="hidden" name="option" value="com_foo" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="id" value="<?php echo $this->item->id; ?>" />
<?php echo JHtml::_('form.token'); ?>
</form>
// Frontend toolbar
div#toolbar-box {
.border-radius(10px);
border: 1px solid @default-line;
background: @default-shade;
min-height: 52px;
padding: 2px 0 5px;
div.pagetitle {
padding-left: 40px;
background-repeat: no-repeat;
margin-left: 10px;
margin-top: 10px;
min-height: 32px;
font-size: 1.7em;
font-weight: bold;
}
.button {
background: none;
border: none;
}
div.toolbar-list {
float: right;
margin-right: 8px;
ul {
margin: 0;
padding: 0;
li {
padding: 1px 1px 3px 4px;
text-align: center;
float: left;
&.spacer {
width: 10px;
}
&.divider {
border-right: 1px solid #c7c7c7;
width: 2px;
}
}
}
span {
width: 32px;
height: 32px;
margin: 0 auto;
display: block;
}
a {
display: block;
white-space: nowrap;
border: 1px solid @default-shade;
padding: 1px 5px;
cursor: pointer;
text-decoration: none;
color: @default-text;
&:hover {
border: 1px solid @default-line;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment