- Автор темы
- #1
Как с помощью кода вывести слайшоу в нужный виджет. ОН находиться в header.php
<?php if (is_home() && !isset($_GET['paged'])) :?>
<div id="featured-zone">
<div id="slidespot">
<?php if(function_exists('gallery_styles')) : //Slideshow plugin activated ?>
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
<?php elseif(isset($_GET['preview']) && isset($_GET['template'])
//Theme is being previewed ?>
<img src="<?php bloginfo('template_url')?>/images/slidespot.jpg" alt="Install Featured Content Gallery Plugin to Replace This Image" />
<?php elseif(get_option('tbf2_custom_slidespot') == 'yes' && get_option('tbf2_custom_html_slidespot')
//Custom content is defined ?>
<?php echo get_option('tbf2_custom_html_slidespot');?>
<?php else: ?>
<img src="<?php bloginfo('template_url')?>/images/slidespot.jpg" alt="Install Featured Content Gallery Plugin to Replace This Image" />
<?php endif;?>
</div>
<div id="featured-wiz"> // Это тот самвй виджет, вместо него нужен вызов Nextgen Gallary Slideshow
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Top Custom Content (Home)") ) : ?>
<div class="widget">
<h2>ABOUT US</h2>
<p>To replace this text, go to "Widgets" page and start adding your own widgets to the "Top Custom Widget".</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas dolor nibh, feugiat ut fringilla eget, porttitor ac nisl. Phasellus non urna tellus. Suspendisse varius pharetra purus sit amet aliquet. Donec fermentum mi quis dolor fermentum euismod. </p>
<p>Vestibulum purus nunc, mollis pharetra aliquet ac, sodales ut risus.</p>
<p style="text-align:right"><img src="<?php bloginfo('template_url')?>/images/<?php echo (get_skinDir()) ? get_skinDir().'/' : ''?>btn-learn-more.png" alt="" /></p>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if (is_home() && !isset($_GET['paged'])) :?>
<div id="featured-zone">
<div id="slidespot">
<?php if(function_exists('gallery_styles')) : //Slideshow plugin activated ?>
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
<?php elseif(isset($_GET['preview']) && isset($_GET['template'])
![Печаль :( :(](/styles/default/nulled/smilies/ac.gif)
<img src="<?php bloginfo('template_url')?>/images/slidespot.jpg" alt="Install Featured Content Gallery Plugin to Replace This Image" />
<?php elseif(get_option('tbf2_custom_slidespot') == 'yes' && get_option('tbf2_custom_html_slidespot')
![Печаль :( :(](/styles/default/nulled/smilies/ac.gif)
<?php echo get_option('tbf2_custom_html_slidespot');?>
<?php else: ?>
<img src="<?php bloginfo('template_url')?>/images/slidespot.jpg" alt="Install Featured Content Gallery Plugin to Replace This Image" />
<?php endif;?>
</div>
<div id="featured-wiz"> // Это тот самвй виджет, вместо него нужен вызов Nextgen Gallary Slideshow
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Top Custom Content (Home)") ) : ?>
<div class="widget">
<h2>ABOUT US</h2>
<p>To replace this text, go to "Widgets" page and start adding your own widgets to the "Top Custom Widget".</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas dolor nibh, feugiat ut fringilla eget, porttitor ac nisl. Phasellus non urna tellus. Suspendisse varius pharetra purus sit amet aliquet. Donec fermentum mi quis dolor fermentum euismod. </p>
<p>Vestibulum purus nunc, mollis pharetra aliquet ac, sodales ut risus.</p>
<p style="text-align:right"><img src="<?php bloginfo('template_url')?>/images/<?php echo (get_skinDir()) ? get_skinDir().'/' : ''?>btn-learn-more.png" alt="" /></p>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>