/**
 * Image + Link
* get_option_tree is deprecated - use ot_get_option
 */

<a href="<?php if ( function_exists( 'get_option_tree') ){echo ""; echo get_option_tree( 'rb_facebooklink_path' );	echo " ";} ?> " target="_blank">
<?php if ( function_exists( 'get_option_tree') ){echo "<img src=\""; echo get_option_tree( 'rb_facebook_path' );	echo "\" />";} ?>
</a>




/**
 * Echo the stuff
* get_option_tree is deprecated - use ot_get_option
 */

<?php if ( function_exists( 'ot_get_option' ) ) { echo
  $home_welcome_title = ot_get_option( 'home_welcome_title' );
} ?>




/**
 * SLIDER width LIST-VIEW
* list-view
 */

 <?php
                    if (function_exists('ot_get_option')) {

                        /* get the slider array */
                        $slides = ot_get_option('homepage_slider', array());
							
                        if (!empty($slides)) {
                            foreach ($slides as $slide) {
							    echo '<figure class="stretch" data-stretch="' . $slide['upload_image_slider_homepage'] . '"><a href="' . $slide['homepage_slider_link'] . '">
                                <img src="' . $slide['upload_image_slider_homepage'] . '"  class="stretch">
                                <figcaption>	<h1 class="secondary pabs top">' . $slide['title'] . '</h1><div class="desc primary pabs bottom">' . $slide['title'] . '</div></figcaption>
                                </a></figure>';
                                
                            }
                        }
                    }
        ?>




/**
 * SLIDER
* get_option_tree is deprecated - use ot_get_option
 */

<?php if ( function_exists( 'ot_get_option' ) ) {
 /* get the slider array */
  $slides = ot_get_option( 'slider_homepage_slider', array() );
 if ( ! empty( $slides ) ) {
 foreach( $slides as $slide ) {
 echo '
<div class="item  ' . $slide['description'] . '"><a href="' . $slide['link'] . '"><img src="' . $slide['image'] . '" alt="' . $slide['title'] . '"   title="' . $slide['description'] . '"   /></a></div>
';}
}
} ?>


<!-- Loop name of category-->
<?php
$cat = ot_get_option( 'your_option_name', '', false, true, 0 );
query_posts("cat=$cat");
?>
<?php while ( have_posts() ) : the_post(); ?>
//content, title, name
<?php endwhile; ?> <!-- END -->