I'd like to check if the executed php
code is within the div called "parent2"
.
I am working on a joomla html override and i have to put one module on 2 different positions.
If the module is inside of parent2
some different code should be executed inside of the html override.
The only Problem I have right now is, that I don't know how to check the parent id's that surround the php code.
<div id="parent2">
<div id="parent1">
<?php
echo ; /*id of the second parent. Here would be the php code of the html override*/
?>
</div>
</div>
I want the echo function to print "parent2".
Parent1 and Parent2 are part of the joomla template and inside of parent1 there is a jdoc:include
module position.
I really tried to find a solution via google but all i could find was something with DOMDocument
and html parsers, which i believe wont help me.