MooTabs PHP Code & iframe Question
Posted: Tue Aug 24, 2010 12:24 am
Hello, my Wordpress theme came with a MooTabs sidebar widget. Here is the default code:
<div id="myTabs1" class="sideTabs">
<!-- MOO TAB TITLES - START -->
<ul class="mootabs_title">
<li title="Latest"><span>Popular</span></li>
<li title="Popular"><span>Latest</span></li>
<li title="Comments"><span>Latest</span></li>
</ul>
<!-- MOO TAB TITLES - END -->
<div class="mootabs_panel" id="Latest">
<?php if(function_exists('recent_posts')) { recent_posts(); } ?>
</div>
<div class="mootabs_panel" id="Popular">
<?php if(function_exists('popular_posts')) { popular_posts(); } ?>
</div>
<div class="mootabs_panel" id="Comments">
<ul><?php if(function_exists('mdv_most_commented')) { mdv_most_commented(10); } ?></ul>
</div>
</div>
Basically, instead of displaying latest posts, popular posts and most commented posts I would like the tabs to just show a simple iframe. I have tried the following but it doesn't seem to work for me:
<!-- LATEST POSTS - START -->
<div id="Latest" class="mootabs_panel">
<iframe src="http://www.tablink.com" name="" width="100%" height="100%"> Sorry your browser does not support frames or is currently not set to accept them.</iframe>
</div>
<!-- LATEST POSTS - END -->
I also tried the following with no luck:
<!-- LATEST POSTS - START -->
<div class="mootabs_panel" id="Latest">
<?php
$varri = "http://www.tablink.com";
?>
<iframe src=<?php print $varri; ?> scrolling="auto" width=100% height=100% frameborder="0"> </iframe>
</div>
<!-- LATEST POSTS - END -->
Any assistance is greatly appreciated.
<div id="myTabs1" class="sideTabs">
<!-- MOO TAB TITLES - START -->
<ul class="mootabs_title">
<li title="Latest"><span>Popular</span></li>
<li title="Popular"><span>Latest</span></li>
<li title="Comments"><span>Latest</span></li>
</ul>
<!-- MOO TAB TITLES - END -->
<div class="mootabs_panel" id="Latest">
<?php if(function_exists('recent_posts')) { recent_posts(); } ?>
</div>
<div class="mootabs_panel" id="Popular">
<?php if(function_exists('popular_posts')) { popular_posts(); } ?>
</div>
<div class="mootabs_panel" id="Comments">
<ul><?php if(function_exists('mdv_most_commented')) { mdv_most_commented(10); } ?></ul>
</div>
</div>
Basically, instead of displaying latest posts, popular posts and most commented posts I would like the tabs to just show a simple iframe. I have tried the following but it doesn't seem to work for me:
<!-- LATEST POSTS - START -->
<div id="Latest" class="mootabs_panel">
<iframe src="http://www.tablink.com" name="" width="100%" height="100%"> Sorry your browser does not support frames or is currently not set to accept them.</iframe>
</div>
<!-- LATEST POSTS - END -->
I also tried the following with no luck:
<!-- LATEST POSTS - START -->
<div class="mootabs_panel" id="Latest">
<?php
$varri = "http://www.tablink.com";
?>
<iframe src=<?php print $varri; ?> scrolling="auto" width=100% height=100% frameborder="0"> </iframe>
</div>
<!-- LATEST POSTS - END -->
Any assistance is greatly appreciated.