2012-02-01, 12:21 PM
hi all
i want to include accodian menu items via php file.
how i can include my php file in index.php
how i am including file : <?php include_once("{$theme['imgdir']}/js/accord.php"); ?>
what is in my accord.php
<div id="accordion-1">
<dl>
<dt>First slide</dt>
<dd><h2>This is the first slide</h2><p><img src="{$theme['imgdir']}/img1.png" alt="Alt text to go here" />loremispum.<br /><a href="#" class="more">Read more</a></p></dd>
<dt>second slide</dt>
<dd><h2>This is the second slide</h2><p><img src="{$theme['imgdir']}/img1.png" alt="Alt text to go here" />loremispum.<br /><a href="#" class="more">Read more 2</a></p></dd>
</dl>
</div>
many thanks
i want to include accodian menu items via php file.
how i can include my php file in index.php
how i am including file : <?php include_once("{$theme['imgdir']}/js/accord.php"); ?>
what is in my accord.php
<div id="accordion-1">
<dl>
<dt>First slide</dt>
<dd><h2>This is the first slide</h2><p><img src="{$theme['imgdir']}/img1.png" alt="Alt text to go here" />loremispum.<br /><a href="#" class="more">Read more</a></p></dd>
<dt>second slide</dt>
<dd><h2>This is the second slide</h2><p><img src="{$theme['imgdir']}/img1.png" alt="Alt text to go here" />loremispum.<br /><a href="#" class="more">Read more 2</a></p></dd>
</dl>
</div>
many thanks