Reworking the autotoc extension
foxhound |
|
---|---|
Yes, but that is only to create the tabs. Added 44 minutes later: Actually, I got a little further :) $text = str_replace("</h3>", "</h3></div></div>", $text); What this does is checking the page_text for any h3 and if it finds it it replaces it with the proper H3 with closing divs. And, like I said that is weird cause in the HTML source all the text is there. Look at this: <div> <div class="tabs-1"><ul class="tabs-nav clearfix"><li><a href="/new_armaholic/index.php?e=page&c=page&al=test-12#tab1" title="tab1">tab1</a></li><li><a href="/new_armaholic/index.php?e=page&c=page&al=test-12#tab2" title="tab2">tab2</a></li><li><a href="/new_armaholic/index.php?e=page&c=page&al=test-12#tab3" title="tab3">tab3</a></li><li><a href="/new_armaholic/index.php?e=page&c=page&al=test-12#tab4" title="tab4">tab4</a></li></ul><div class="tabs-container"> <div class="tab-content" id="tab1"><div class="gamelist"><h2>1. tab1</h2> <h3>text tab 1</h3></div></div> <div class="tab-content" id="tab2"><div class="gamelist"><h2>2. tab2</h2> <h3>text tab 2</h3></div></div> <div class="tab-content" id="tab3"><div class="gamelist"><h2>3. tab3</h2> <h3>text tab 3</h3></div></div> <div class="tab-content" id="tab4"><div class="gamelist"><h2>4. tab4</h2> <h3>text tab 4</h3></div></div></div></div> </div>
Added 55 minutes later: Ok, and more progress. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
|
This post was edited by foxhound (2013-06-25 23:18, 10 years ago) |