-
AuthorPosts
-
aspik Friend
aspik
- Join date:
- September 2009
- Posts:
- 39
- Downloads:
- 1
- Uploads:
- 13
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
December 8, 2011 at 2:56 pm #171609How to add a class in split.class.php ?
pluginssystemjat3jat3coreparamsparams.xml
<field name="mega_class" type="text" size="30" default="" label="ADDITIONAL_CLASS" description="ADDITIONAL_CLASS_DESC" />
in pluginssystemjat3jat3coremenusplit.class.php
$mega_class = ?????? ;
function beginMenu($startlevel = 0, $endlevel = 10)
{
if ($startlevel == 0) {
echo "<div id="ja-splitmenu" class="mainlevel clearfix">n";
} else {
echo "<div class='sublevel".$mega_class."'>n";
}
}aspik Friendaspik
- Join date:
- September 2009
- Posts:
- 39
- Downloads:
- 1
- Uploads:
- 13
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
December 8, 2011 at 3:14 pm #428716
defined('_JEXEC') or die;
$mega_class = ????????;
?>
<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
<!-- jdoc:include type="menu" level="0" / -->
<?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
<div id="ja-subnav <?php echo $mega_class; ?>" class="clearfix">
<?php $jamenu->genMenu (1); ?>
<!-- jdoc:include type="menu" level="1" / -->
</div>
<?php endif;?>jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
December 8, 2011 at 3:37 pm #428720Hi
Would you mind explain a bit.?
If you already find out php to render html. So why don’t you put your class here ?Thank you
aspik Friendaspik
- Join date:
- September 2009
- Posts:
- 39
- Downloads:
- 1
- Uploads:
- 13
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
December 8, 2011 at 3:44 pm #428724need to add a class
<div id="ja-subnav <?php echo $mega_class; ?>" class="clearfix">
look at images
- aspik Friend
aspik
- Join date:
- September 2009
- Posts:
- 39
- Downloads:
- 1
- Uploads:
- 13
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
December 8, 2011 at 3:53 pm #428726jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
December 8, 2011 at 4:16 pm #428730Okies as far i can understand.
You are looking into
pluginssystemjat3jat3base-themesdefaultblocksmainnav.php
And want to add classname into
<div id="ja-subnav" class="clearfix">
via backend params ?
To do that i afraid you will need T3 core hacking.
Thank youaspik Friendaspik
- Join date:
- September 2009
- Posts:
- 39
- Downloads:
- 1
- Uploads:
- 13
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
December 8, 2011 at 4:32 pm #428736>T3 core hacking
Yes.
How to do it?jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
December 9, 2011 at 1:20 am #428839Hi
In case you need core hacking T3. Please follow up our wiki to understand about T3.
http://wiki.joomlart.com/wiki/Main_PageThank you,
ps:// if you still can’t follow up with document please let’s me know . I’ll try to find out the code for you.Thank you,
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 2 voices, and was last updated by jooservices 12 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
How to add a class
Viewing 8 posts - 1 through 8 (of 8 total)