Example #1
0
    /**
     * Template function to display read more link. Only argument is link CSS class
     */
    the_fa_read_more('FA_read_more');
    ?>
                
                
			</div>			
		</div>	
	<?php 
}
?>
			
	</div>
	<?php 
if (has_bottom_nav() && count($postslist) > 1) {
    ?>
		<ul class="FA_navigation">
		<?php 
    foreach ($postslist as $k => $post) {
        ?>
			<li<?php 
        if ($k == 0) {
            ?>
 class="first"<?php 
        }
        ?>
>
				<span class="FA_current"><?php 
        the_title();
        ?>
Example #2
0
/**
 * Applies the CSS classes of a slider.
 * Pass the main slider class to the function.
 * Will also implement the color class.
 * 
 * @param string $class - main slider class
 */
function the_slider_class($class, $echo = true)
{
    global $fa_slider;
    // add fa-slider class to all sliders
    $classes = array('fa-slideshow');
    if ($class) {
        $classes[] = esc_attr($class);
    }
    $settings = fa_get_options('settings');
    if ($settings['preload_sliders']) {
        $classes[] = 'slider-loading';
    }
    $color = the_slider_color(false);
    if ($color && -1 != $color) {
        $classes[] = esc_attr($color);
    }
    // add the layout variation class if available
    $options = fa_get_slider_options($fa_slider->ID, 'layout');
    if (isset($options['class']) && !empty($options['class'])) {
        $classes[] = esc_attr($options['class']);
    }
    // add a no-title class if slider is set not to display the title
    $title_options = fa_get_slider_options($fa_slider->ID, 'content_title');
    if (!$title_options['show']) {
        $classes[] = 'no-title';
    }
    // add a no-content class if slider is set not to display the text
    $content_options = fa_get_slider_options($fa_slider->ID, 'content_text');
    if (!$content_options['show']) {
        $classes[] = 'no-content';
    }
    // add a no-secondary-nav if slider is set not to display secondary navigation
    if (!has_sideways_nav()) {
        $classes[] = 'no-secondary-navs';
    }
    // add a no-primary-nav if slider is set not to display primary navigation
    if (!has_bottom_nav()) {
        $classes[] = 'no-primary-nav';
    }
    $output = implode(' ', $classes);
    if ($echo) {
        echo $output;
    }
    return $output;
}
Example #3
0
			
	</div>	
	<?php 
}
// have_slides()
?>
	<?php 
if (has_sideways_nav()) {
    ?>
		<div class="go-forward"></div>
		<div class="go-back"></div>
	<?php 
}
?>
	<?php 
if (has_bottom_nav()) {
    ?>
		<div class="main-nav">
			<?php 
    while (have_slides()) {
        ?>
			<a href="#" title="" class="fa-nav"></a>
			<?php 
    }
    ?>
		
		</div>
	<?php 
}
?>
	<?php