Exemple #1
0
 * HUBzero is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * HUBzero is a registered trademark of Purdue University.
 *
 * @package   hubzero-cms
 * @copyright Copyright 2005-2011 Purdue University. All rights reserved.
 * @license   http://www.gnu.org/licenses/lgpl-3.0.html LGPLv3
 */
defined('_HZEXEC_') or die;
$canDo = StorefrontHelperPermissions::getActions('category');
Toolbar::title(Lang::txt('COM_STOREFRONT') . ': Option Groups', 'storefront.png');
if (0 && $canDo->get('core.admin')) {
    JToolBarHelper::preferences($this->option, '550');
    JToolBarHelper::spacer();
}
if ($canDo->get('core.edit.state')) {
    JToolBarHelper::publishList();
    JToolBarHelper::unpublishList();
    JToolBarHelper::spacer();
}
if ($canDo->get('core.create')) {
    JToolBarHelper::addNew();
}
if ($canDo->get('core.edit')) {
    JToolBarHelper::editList();
Exemple #2
0
 * HUBzero is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * HUBzero is a registered trademark of Purdue University.
 *
 * @package   hubzero-cms
 * @copyright Copyright 2005-2011 Purdue University. All rights reserved.
 * @license   http://www.gnu.org/licenses/lgpl-3.0.html LGPLv3
 */
defined('_HZEXEC_') or die;
$canDo = StorefrontHelperPermissions::getActions('product');
Toolbar::title(Lang::txt('COM_STOREFRONT'), 'storefront.png');
if ($canDo->get('core.admin')) {
    JToolBarHelper::preferences($this->option, '550');
    JToolBarHelper::spacer();
}
if ($canDo->get('core.edit.state')) {
    JToolBarHelper::publishList();
    JToolBarHelper::unpublishList();
    JToolBarHelper::spacer();
}
if ($canDo->get('core.create')) {
    JToolBarHelper::addNew();
}
if ($canDo->get('core.edit')) {
    JToolBarHelper::editList();
Exemple #3
0
 * HUBzero is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * HUBzero is a registered trademark of Purdue University.
 *
 * @package   hubzero-cms
 * @copyright Copyright 2005-2011 Purdue University. All rights reserved.
 * @license   http://www.gnu.org/licenses/lgpl-3.0.html LGPLv3
 */
defined('_HZEXEC_') or die;
$canDo = StorefrontHelperPermissions::getActions('collection');
Toolbar::title(Lang::txt('COM_STOREFRONT') . ': Collections', 'storefront.png');
if (0 && $canDo->get('core.admin')) {
    JToolBarHelper::preferences($this->option, '550');
    JToolBarHelper::spacer();
}
if ($canDo->get('core.edit.state')) {
    JToolBarHelper::publishList();
    JToolBarHelper::unpublishList();
    JToolBarHelper::spacer();
}
if ($canDo->get('core.create')) {
    JToolBarHelper::addNew();
}
if ($canDo->get('core.edit')) {
    JToolBarHelper::editList();