Example #1
0
function premise_get_content_scroller_content()
{
    $tabs = premise_get_content_tabs();
    $output = '';
    if (!empty($tabs)) {
        $output .= '<div class="coda-slider-wrapper">';
        $content = '';
        if (premise_should_show_content_scroller_tabs()) {
            $output .= '<div id="coda-nav-1" class="coda-nav"><ul>';
            $current_slider_total_tabs = count($tabs);
            $content .= '<div class="coda-slider preload" id="coda-slider-1">';
            foreach ($tabs as $key => $tab) {
                $tab_title = apply_filters('the_title', $tab['title']);
                $output .= sprintf('<li id="coda-nav-tab-%1$d" class="tab%1$d"><a title="%2$s" href="#%1$d">%3$s</a></li>', $key + 1, esc_attr(__($tab['tooltip'], 'premise')), $tab_title);
                $content .= sprintf('<div class="panel"><div class="container-border"><div class="panel-wrapper"><h2 class="title">%s</h2>%s</div></div></div>', $tab_title, $tab['text']);
            }
            $output .= '</ul></div>';
            $content .= '</div>';
        }
        if (premise_should_show_content_scroller_arrows()) {
            $output .= '<div id="coda-nav-left-1" class="coda-nav-left"><a href="#">&laquo;</a></div>' . $content . '<div id="coda-nav-right-1" class="coda-nav-right"><a href="#">&raquo;</a></div>';
        } else {
            $output .= '<div class="coda-nav-left-blank"></div>' . $content . '<div class="coda-nav-right-blank"></div>';
        }
    }
    $output .= '</div>';
    return apply_filters('premise_get_content_scroller_content', $output);
}
Example #2
0
 function content_slider_styles()
 {
     global $premise_base;
     $post_id = $this->get_post_id();
     $meta = $premise_base->get_premise_meta($post_id);
     $styleKey = $meta['style'];
     $tabs = premise_get_content_tabs($post_id);
     if (!empty($tabs)) {
         $uploadInfo = wp_upload_dir();
         $uploadDir = $uploadInfo['basedir'];
         $uploadUrl = $uploadInfo['baseurl'];
         include PREMISE_VIEWS_DIR . 'misc/content-slider-styles.php';
     }
 }
Example #3
0
function premise_the_content_tabs($postId = null, $before = '', $after = '', $beforeTitle = '', $afterTitle = '', $beforeContent = '', $afterContent = '')
{
    $tabs = premise_get_content_tabs($postId);
    $output = '';
    if (!empty($tabs)) {
        $output .= $before;
        foreach ($tabs as $key => $tab) {
            $output .= $beforeTitle . $tab['title'] . $afterTitle . $beforeContent . $tab['text'] . $afterContent;
        }
        $output .= $after;
    }
    echo apply_filters('premise_the_content_tabs', $output);
}
Example #4
0
}
get_header();
$landing_page_style = premise_get_landing_page_style();
$width = premise_get_fresh_design_option('wrap_width', $landing_page_style) - 2 * premise_get_fresh_design_option('wrap_padding', $landing_page_style) - 90;
?>

	<div id="content" class="hfeed">
		<?php 
the_post();
?>
		<div class="hentry">
			<?php 
include 'inc/headline.php';
?>
			<?php 
$tabs = premise_get_content_tabs();
if (!empty($tabs)) {
    ?>
				<div class="coda-slider-wrapper">
					<?php 
    if (premise_should_show_content_scroller_tabs()) {
        ?>
					<div id="coda-nav-1" class="coda-nav">
						<ul>
							<?php 
        global $current_slider_tab, $current_slider_total_tabs;
        $current_slider_total_tabs = count($tabs);
        ?>
							<?php 
        foreach ($tabs as $key => $tab) {
            ?>