Get ID of a DIV element using php
<p>-- edit --</p>

<p>I've made the question far more detailed here: <a href="http://stackoverflow.com/questions/4932739/drupal-aggregators-and-tailored-output">Drupal aggregators and tailored output</a></p>

<p>-- original question --</p>

<p>Is it possible to get the id of an <code>html</code> <code>div</code> element on any given page using php so I can do something like:</p>

<pre><code>if($divid == 'id-of-div') { do this; }
</code></pre>

<p>--edit--</p>

<p>To clarify:</p>

<p>I have a page on a website. It could be any page. On that website I have a div element which I want to be able to target using php to populate depending on the id of that div element. For example:</p>

<pre><code>if($divid == 'div1') { $output = 'div 1 output'; }
if($divid == 'div2') { $output = 'div 2 output'; }
return $output;
</code></pre>

<p>Hope that helps...</p>

<p>-- re-edit(!) --</p>

<p>I've commented below but think it would probably be more useful in here:</p>

<p>Hi, sorry I'm not being more clear. I'm not a php expert (as you can probably tell!). I am theming a Drupal site at the moment and have a function that generates output to a block. These are the same kinds of block but they are unique by virtue of their div id's. I want to be able to tailor the generated output to these depending on which div area it is. Does that make any more sense? Thanks for your help so far, by the way</p>
