Skip to content

Commit

Permalink
Hathor: implementing new custom fields menus + CS + generatecss.php
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Oct 30, 2016
1 parent 0521c6c commit 438cdb7
Show file tree
Hide file tree
Showing 8 changed files with 10,059 additions and 10,379 deletions.
20 changes: 12 additions & 8 deletions administrator/modules/mod_menu/tmpl/default_enabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,16 @@
if (JComponentHelper::getComponent('com_users')->params->get('custom_fields_enable', '1'))
{
$menu->addChild(
new JMenuNode(
JText::_('MOD_MENU_FIELDS'), 'index.php?option=com_fields&context=com_users.user', 'class:fields')
);
new JMenuNode(
JText::_('MOD_MENU_FIELDS'), 'index.php?option=com_fields&context=com_users.user', 'class:fields'
)
);

$menu->addChild(
new JMenuNode(
JText::_('MOD_MENU_FIELDS_GROUP'), 'index.php?option=com_categories&extension=com_users.user.fields', 'class:category')
);
new JMenuNode(
JText::_('MOD_MENU_FIELDS_GROUP'), 'index.php?option=com_categories&extension=com_users.user.fields', 'class:category'
)
);
}

if (JFactory::getApplication()->get('massmailoff') != 1)
Expand Down Expand Up @@ -249,12 +251,14 @@
{
$menu->addChild(
new JMenuNode(
JText::_('MOD_MENU_FIELDS'), 'index.php?option=com_fields&context=com_content.article', 'class:fields')
JText::_('MOD_MENU_FIELDS'), 'index.php?option=com_fields&context=com_content.article', 'class:fields'
)
);

$menu->addChild(
new JMenuNode(
JText::_('MOD_MENU_FIELDS_GROUP'), 'index.php?option=com_categories&extension=com_content.article.fields', 'class:category')
JText::_('MOD_MENU_FIELDS_GROUP'), 'index.php?option=com_categories&extension=com_content.article.fields', 'class:category'
)
);
}

Expand Down
3 changes: 3 additions & 0 deletions administrator/templates/hathor/css/template.css
Original file line number Diff line number Diff line change
Expand Up @@ -3465,6 +3465,9 @@ ul.helpmenu li {
.menu-postinstall {
background-image: url(../images/menu/icon-16-generic.png);
}
.menu-fields {
background-image: url(../images/menu/icon-16-generic.png);
}
.icon-32-cog {
background-image: url(../images/toolbar/icon-32-cog.png);
}
Expand Down
31 changes: 31 additions & 0 deletions administrator/templates/hathor/html/mod_menu/default_enabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,21 @@
$menu->getParent();
}

if (JComponentHelper::getComponent('com_users')->params->get('custom_fields_enable', '1'))
{
$menu->addChild(
new JMenuNode(
JText::_('MOD_MENU_FIELDS'), 'index.php?option=com_fields&context=com_users.user', 'class:fields'
)
);

$menu->addChild(
new JMenuNode(
JText::_('MOD_MENU_FIELDS_GROUP'), 'index.php?option=com_categories&extension=com_users.user.fields', 'class:category'
)
);
}

if (JFactory::getApplication()->get('massmailoff', 0) != 1)
{
$menu->addSeparator();
Expand Down Expand Up @@ -209,6 +224,22 @@
);
$menu->getParent();
}

if (JComponentHelper::getComponent('com_content')->params->get('custom_fields_enable', '1'))
{
$menu->addChild(
new JMenuNode(
JText::_('MOD_MENU_FIELDS'), 'index.php?option=com_fields&context=com_content.article', 'class:fields'
)
);

$menu->addChild(
new JMenuNode(
JText::_('MOD_MENU_FIELDS_GROUP'), 'index.php?option=com_categories&extension=com_content.article.fields', 'class:category'
)
);
}

$menu->addChild(
new JMenuNode(JText::_('MOD_MENU_COM_CONTENT_FEATURED'), 'index.php?option=com_content&view=featured', 'class:featured')
);
Expand Down
3 changes: 3 additions & 0 deletions administrator/templates/hathor/less/template.less
Original file line number Diff line number Diff line change
Expand Up @@ -3069,6 +3069,9 @@ ul.helpmenu li {
.menu-postinstall {
background-image: url(../images/menu/icon-16-generic.png);
}
.menu-fields {
background-image: url(../images/menu/icon-16-generic.png);
}
.icon-32-cog {
background-image: url(../images/toolbar/icon-32-cog.png);
}
Expand Down

0 comments on commit 438cdb7

Please sign in to comment.