Esempio n. 1
0
    if ($vega_wp_post_tags == 'Y') {
        ?>
                    <!-- Post Tags -->
                    <div class="entry-tags">
                        <p><?php 
        the_tags('', '');
        ?>
</p>
                    </div>
                    <!-- /Post Tags -->
                    <?php 
    }
    ?>
                    
                    <?php 
    $vega_wp_post_featured_image = vega_wp_get_option('vega_wp_post_featured_image');
    if ($vega_wp_post_featured_image == 'Y') {
        ?>
                    
                    <?php 
        if (has_post_thumbnail()) {
            ?>
                    <!-- Post Image -->
                    <div class="entry-image"><?php 
            the_post_thumbnail('full', array('alt' => get_the_title()));
            ?>
</div>
                    <!-- /Post Image -->
                    <?php 
        }
        ?>
Esempio n. 2
0
<?php 
while (have_posts()) {
    the_post();
    ?>

<?php 
    get_template_part('parts/banner');
    ?>

<!-- ========== Page Content ========== -->
<div class="section page-content bg-white">
    <div class="container">
        <div class="row">
            
            <?php 
    $vega_wp_page_sidebar = vega_wp_get_option('vega_wp_page_sidebar');
    if ($vega_wp_page_sidebar == 'Y') {
        $col1_class = 'col-md-9';
        $col2_class = 'col-md-3';
    } else {
        $col1_class = 'col-md-12';
        $col2_class = '';
    }
    ?>
            
            <div class="<?php 
    echo $col1_class;
    ?>
">
                
                <div id="page-<?php 
Esempio n. 3
0
        } else {
            if (is_single()) {
                $vega_wp_post_banner = vega_wp_get_option('vega_wp_post_banner');
                if ($vega_wp_post_banner == 'None') {
                    get_template_part('parts/banner', 'none');
                } else {
                    if ($vega_wp_post_banner == 'Custom Header' && get_header_image() != '') {
                        get_template_part('parts/banner', 'custom-header');
                    } else {
                        if ($vega_wp_post_banner == 'Featured Image') {
                            get_template_part('parts/banner', 'featured-image');
                        } else {
                            get_template_part('parts/banner', 'none');
                        }
                    }
                }
            } else {
                $vega_wp_blog_feed_banner = vega_wp_get_option('vega_wp_blog_feed_banner');
                if ($vega_wp_blog_feed_banner == 'None') {
                    get_template_part('parts/banner', 'none');
                } else {
                    if ($vega_wp_blog_feed_banner == 'Custom Header' && get_header_image() != '') {
                        get_template_part('parts/banner', 'custom-header');
                    } else {
                        get_template_part('parts/banner', 'none');
                    }
                }
            }
        }
    }
}
        $pages[] = vega_wp_get_option('vega_wp_frontpage_4_cols_' . $i);
    }
    for ($i = 1; $i <= 4; $i++) {
        $icons[] = vega_wp_get_option('vega_wp_frontpage_4_cols_' . $i . '_icon');
    }
    $vega_wp_frontpage_4_cols_heading = vega_wp_get_option('vega_wp_frontpage_4_cols_heading');
    $vega_wp_frontpage_4_cols_text = vega_wp_get_option('vega_wp_frontpage_4_cols_text');
    $vega_wp_frontpage_4_cols_read_more = vega_wp_get_option('vega_wp_frontpage_4_cols_read_more');
    $vega_wp_frontpage_4cols_n = vega_wp_get_option('vega_wp_frontpage_4cols_n');
    if ($vega_wp_frontpage_4cols_n == '') {
        $vega_wp_frontpage_4cols_n = 4;
    }
    if ($vega_wp_frontpage_4cols_n <= 0 || $vega_wp_frontpage_4cols_n > 4) {
        $vega_wp_frontpage_4cols_n = 4;
    }
    $vega_wp_frontpage_4_cols_section_id = vega_wp_get_option('vega_wp_frontpage_4_cols_section_id');
    ?>
<!-- ========== Four Columns ========== -->
<div class="section <?php 
    echo esc_attr($vega_wp_curr_bg);
    ?>
 frontpage-4cols" id="<?php 
    echo esc_attr($vega_wp_frontpage_4_cols_section_id);
    ?>
">
    <div class="container">
        <?php 
    if ($vega_wp_frontpage_4_cols_heading) {
        ?>
<h2 class="wow zoomIn block-title"><?php 
        echo esc_html($vega_wp_frontpage_4_cols_heading);
 *
 * @package vega
 */
global $vega_wp_curr_bg, $vega_wp_prev_bg;
$vega_wp_frontpage_open1 = vega_wp_get_option('vega_wp_frontpage_open1');
if ($vega_wp_frontpage_open1 == 'Y') {
    if ($vega_wp_prev_bg == 'bg-white') {
        $vega_wp_curr_bg = 'bg-grey-light-2';
    } else {
        $vega_wp_curr_bg = 'bg-white';
    }
    $vega_wp_prev_bg = $vega_wp_curr_bg;
    $vega_wp_frontpage_open1_heading = vega_wp_get_option('vega_wp_frontpage_open1_heading');
    $open_content_page = get_post(vega_wp_get_option('vega_wp_frontpage_open1_content'));
    $vega_wp_frontpage_open1_content = $open_content_page->post_content;
    $vega_wp_frontpage_open1_section_id = vega_wp_get_option('vega_wp_frontpage_open1_section_id');
    ?>
<!-- ========== Featured Section ========== -->
<div class="section frontpage-open1 <?php 
    echo esc_attr($vega_wp_curr_bg);
    ?>
" id="<?php 
    echo esc_attr($vega_wp_frontpage_open1_section_id);
    ?>
">
    <div class="container">
        <h2 class="block-title wow zoomIn"><?php 
    echo esc_html($vega_wp_frontpage_open1_heading);
    ?>
</h2>
        <div class="wow fadeIn"><?php 
<?php

/**
 * The template part for displaying the front page content 
 *
 * @package vega
 */
?>

<?php 
global $vega_wp_curr_bg, $vega_wp_prev_bg;
$vega_wp_frontpage_content = vega_wp_get_option('vega_wp_frontpage_content');
$vega_wp_enable_demo = vega_wp_get_option('vega_wp_enable_demo');
?>

<?php 
#EXAMPLE CONTENT: If a static front page has been defined, the content from that page will be shown. Otherwise IF demo is on, the content from a random page will be displayed.
if ($vega_wp_frontpage_content == 'Y' && get_option('show_on_front') == 'page') {
    if ($vega_wp_prev_bg == 'bg-white') {
        $vega_wp_curr_bg = 'bg-grey-light-2';
    } else {
        $vega_wp_curr_bg = 'bg-white';
    }
    $vega_wp_prev_bg = $vega_wp_curr_bg;
    ?>
<!-- ========== Page Content ========== -->
<div class="section frontpage-content <?php 
    echo esc_attr($vega_wp_curr_bg);
    ?>
" id="welcome">
    <div class="container">
Esempio n. 7
0
<?php

/**
 * The template part for displaying the logo
 *
 * @package vega
 */
global $vega_wp_defaults;
$vega_wp_show_logo_image = vega_wp_get_option('vega_wp_show_logo_image');
$vega_wp_logo_text = vega_wp_get_option('vega_wp_logo_text');
$custom_logo_id = get_theme_mod('custom_logo');
$custom_logo_image = wp_get_attachment_image_src($custom_logo_id, 'full');
$vega_wp_logo_image = $custom_logo_image[0];
if ($vega_wp_show_logo_image == 'Y' && $vega_wp_logo_image != '') {
    ?>
<a class="navbar-brand image-logo" href="<?php 
    echo esc_url(home_url('/'));
    ?>
"><img src="<?php 
    echo esc_url($vega_wp_logo_image);
    ?>
" alt="<?php 
    bloginfo('name');
    ?>
" /></a>

<?php 
} else {
    ?>
<a class="navbar-brand text-logo" href="<?php 
    echo esc_url(home_url('/'));
Esempio n. 8
0
    ?>
                <?php 
    vega_wp_example_nav_footer();
    ?>
                <?php 
}
?>
                
            </div>
            <div class="col-md-4">
                <!-- Copyright and Credits -->
                <?php 
$vega_wp_footer_copyright_message = vega_wp_get_option('vega_wp_footer_copyright_message');
?>
                <?php 
$vega_wp_footer_credit_message = vega_wp_get_option('vega_wp_footer_credit_message');
?>
                <div class="copyright"><?php 
echo wp_kses_post($vega_wp_footer_copyright_message);
?>
<br /><span class="credit"><?php 
echo wp_kses_post($vega_wp_footer_credit_message);
?>
</span></div>
                <!-- /Copyright and Credits -->
            </div>
        </div>
    </div>
</div>
<!-- ========== /Footer Nav and Copyright ========== -->
Esempio n. 9
0
function vega_wp_example_nav_header()
{
    $args = array('parent' => 0);
    $pages = get_pages($args);
    echo '<div class="navbar-collapse collapse"><ul class="nav navbar-nav navbar-right menu-header">';
    $vega_wp_enable_demo = vega_wp_get_option('vega_wp_enable_demo');
    if (get_option('show_on_front') == 'page' || $vega_wp_enable_demo == 'Y') {
        #one page items
        $vega_wp_frontpage_position_content = vega_wp_get_option('vega_wp_frontpage_position_content');
        $vega_wp_frontpage_position_4cols = vega_wp_get_option('vega_wp_frontpage_position_4cols');
        $vega_wp_frontpage_position_cta_dark = vega_wp_get_option('vega_wp_frontpage_position_cta_dark');
        $vega_wp_frontpage_position_cta_dark2 = vega_wp_get_option('vega_wp_frontpage_position_cta_dark2');
        $vega_wp_frontpage_position_open1 = vega_wp_get_option('vega_wp_frontpage_position_open1');
        $vega_wp_frontpage_position_latest_posts = vega_wp_get_option('vega_wp_frontpage_position_latest_posts');
        $arr[$vega_wp_frontpage_position_content] = 'content';
        $arr[$vega_wp_frontpage_position_4cols] = '4cols';
        $arr[$vega_wp_frontpage_position_cta_dark] = 'cta_dark';
        $arr[$vega_wp_frontpage_position_cta_dark2] = 'cta_dark2';
        $arr[$vega_wp_frontpage_position_open1] = 'open1';
        $arr[$vega_wp_frontpage_position_latest_posts] = 'latest_posts';
        ksort($arr);
        foreach ($arr as $k => $v) {
            if ($v == 'content') {
                echo '<li class="page-scroll"><a href="#welcome">' . __('Welcome', 'vega') . '</a></li>';
            }
            if ($v == '4cols') {
                $vega_wp_frontpage_4_cols_section_id = vega_wp_get_option('vega_wp_frontpage_4_cols_section_id');
                $vega_wp_frontpage_4_cols_heading = vega_wp_get_option('vega_wp_frontpage_4_cols_heading');
                echo '<li class="page-scroll"><a href="#' . esc_attr($vega_wp_frontpage_4_cols_section_id) . '">' . esc_html($vega_wp_frontpage_4_cols_heading) . '</a></li>';
            }
            if ($v == 'cta_dark') {
                $vega_wp_frontpage_cta_dark_section_id = vega_wp_get_option('vega_wp_frontpage_cta_dark_section_id');
                echo '<li class="page-scroll"><a href="#' . esc_attr($vega_wp_frontpage_cta_dark_section_id) . '">' . esc_html($vega_wp_frontpage_cta_dark_section_id) . '</a></li>';
            }
            if ($v == 'cta_dark2') {
                $vega_wp_frontpage_cta_dark2_section_id = vega_wp_get_option('vega_wp_frontpage_cta_dark2_section_id');
                echo '<li class="page-scroll"><a href="#' . esc_attr($vega_wp_frontpage_cta_dark2_section_id) . '">' . esc_html($vega_wp_frontpage_cta_dark2_section_id) . '</a></li>';
            }
            if ($v == 'latest_posts') {
                $vega_wp_frontpage_latest_posts_section_id = vega_wp_get_option('vega_wp_frontpage_latest_posts_section_id');
                $vega_wp_frontpage_latest_posts_heading = vega_wp_get_option('vega_wp_frontpage_latest_posts_heading');
                echo '<li class="page-scroll"><a href="#' . esc_attr($vega_wp_frontpage_latest_posts_section_id) . '">' . esc_html($vega_wp_frontpage_latest_posts_heading) . '</a></li>';
            }
            if ($v == 'open1') {
                $vega_wp_frontpage_open1_section_id = vega_wp_get_option('vega_wp_frontpage_open1_section_id');
                $vega_wp_frontpage_open1_heading = vega_wp_get_option('vega_wp_frontpage_open1_heading');
                echo '<li class="page-scroll"><a href="#' . esc_attr($vega_wp_frontpage_open1_section_id) . '">' . esc_html($vega_wp_frontpage_open1_heading) . '</a></li>';
            }
        }
    }
    #all top level pages
    foreach ($pages as $page) {
        echo '<li><a href="' . get_permalink($page->ID) . '">' . esc_html($page->post_title) . '</a></li>';
    }
    echo '</ul>';
    echo '</div>';
}
<?php

/**
* The template part for displaying the banner for the front page (static)
*
* @package vega
*/
?>

<!-- ========== Front Page - Image Banner ========== -->
<?php 
global $vega_wp_defaults;
$vega_wp_frontpage_banner = vega_wp_get_option('vega_wp_frontpage_banner');
$vega_wp_frontpage_banner_image = vega_wp_get_option('vega_wp_frontpage_banner_image');
$vega_wp_frontpage_banner_heading = vega_wp_get_option('vega_wp_frontpage_banner_heading');
$vega_wp_frontpage_banner_text = vega_wp_get_option('vega_wp_frontpage_banner_text');
$header_image = get_header_image();
if ($vega_wp_frontpage_banner_image != '' || $header_image != '') {
    #header image uploaded, no frontpage banner uploaded
    if ($vega_wp_frontpage_banner_image == $vega_wp_defaults['vega_wp_frontpage_banner_image'] && $header_image != '') {
        $frontpage_banner = $header_image;
    } else {
        #header image uploaded, frontpage banner uploaded then removed
        if ($vega_wp_frontpage_banner_image == '' && $header_image != '') {
            $frontpage_banner = $header_image;
        } else {
            if ($header_image == '' && $vega_wp_frontpage_banner_image == $vega_wp_defaults['vega_wp_frontpage_banner_image']) {
                $frontpage_banner = $vega_wp_frontpage_banner_image;
            } else {
                if ($vega_wp_frontpage_banner_image != '') {
                    $frontpage_banner = $vega_wp_frontpage_banner_image;
/**
 * The template part for displaying the dark CTA section on the front page (static)
 *
 * @package vega
 */
global $vega_wp_curr_bg, $vega_wp_prev_bg;
$vega_wp_frontpage_cta_dark2 = vega_wp_get_option('vega_wp_frontpage_cta_dark2');
if ($vega_wp_frontpage_cta_dark2 == 'Y') {
    $vega_wp_curr_bg = 'bg-primary';
    $vega_wp_prev_bg = $vega_wp_curr_bg;
    $cta_page = get_post(vega_wp_get_option('vega_wp_frontpage_cta_dark2_content'));
    $vega_wp_frontpage_cta_dark2_content = $cta_page->post_content;
    $vega_wp_frontpage_cta_dark2_parallax = vega_wp_get_option('vega_wp_frontpage_cta_dark2_parallax');
    $vega_wp_frontpage_cta_dark2_bg_image = vega_wp_get_option('vega_wp_frontpage_cta_dark2_bg_image');
    $vega_wp_frontpage_cta_dark2_section_id = vega_wp_get_option('vega_wp_frontpage_cta_dark2_section_id');
    $class = '';
    $style = '';
    $parallax_str = '';
    if ($vega_wp_frontpage_cta_dark2_bg_image == '') {
        $class = esc_attr($vega_wp_curr_bg);
    } else {
        if ($vega_wp_frontpage_cta_dark2_parallax != 'Y' && $vega_wp_frontpage_cta_dark2_bg_image != '') {
            $style = 'style="background-image:url(' . esc_url($vega_wp_frontpage_cta_dark2_bg_image) . '); -webkit-background-size:cover; -moz-background-size:cover; -o-background-size:cover; background-size:cover; background-repeat:no-repeat; z-index:0; background-position: center center;"';
        } else {
            if ($vega_wp_frontpage_cta_dark2_parallax == 'Y' && $vega_wp_frontpage_cta_dark2_bg_image != '') {
                $class = 'parallax-bg';
                $parallax_str = 'data-parallax="scroll" data-image-src="' . esc_url($vega_wp_frontpage_cta_dark2_bg_image) . '"';
            }
        }
    }
Esempio n. 12
0
 * @package vega
 */
$vega_wp_enable_demo = vega_wp_get_option('vega_wp_enable_demo');
$vega_wp_blog_feed_animations = vega_wp_get_option('vega_wp_blog_feed_animations');
$vega_wp_animations = vega_wp_get_option('vega_wp_animations');
#show meta?
$vega_wp_blog_feed_meta = vega_wp_get_option('vega_wp_blog_feed_meta');
if ($vega_wp_blog_feed_meta == 'Y') {
    $vega_wp_blog_feed_meta_author = vega_wp_get_option('vega_wp_blog_feed_meta_author');
    $vega_wp_blog_feed_meta_category = vega_wp_get_option('vega_wp_blog_feed_meta_category');
    $vega_wp_blog_feed_meta_date = vega_wp_get_option('vega_wp_blog_feed_meta_date');
}
#display type
$vega_wp_blog_feed_display = vega_wp_get_option('vega_wp_blog_feed_display');
#show buttons?
$vega_wp_blog_feed_buttons = vega_wp_get_option('vega_wp_blog_feed_buttons');
?>

<?php 
if ($vega_wp_blog_feed_animations == 'Y' && $vega_wp_animations == 'Y') {
    $post_class = 'wow zoomIn';
} else {
    $post_class = '';
}
?>

<!-- Post -->
<div id="post-<?php 
the_ID();
?>
" <?php 
Esempio n. 13
0
<?php 
$vega_wp_enable_demo = vega_wp_get_option('vega_wp_enable_demo');
?>

<?php 
if (get_option('show_on_front') == 'page' || $vega_wp_enable_demo == 'Y') {
    ?>

<?php 
    $vega_wp_frontpage_position_content = vega_wp_get_option('vega_wp_frontpage_position_content');
    $vega_wp_frontpage_position_4cols = vega_wp_get_option('vega_wp_frontpage_position_4cols');
    $vega_wp_frontpage_position_cta_dark = vega_wp_get_option('vega_wp_frontpage_position_cta_dark');
    $vega_wp_frontpage_position_cta_dark2 = vega_wp_get_option('vega_wp_frontpage_position_cta_dark2');
    $vega_wp_frontpage_position_open1 = vega_wp_get_option('vega_wp_frontpage_position_open1');
    $vega_wp_frontpage_position_latest_posts = vega_wp_get_option('vega_wp_frontpage_position_latest_posts');
    $arr[$vega_wp_frontpage_position_content] = 'content';
    $arr[$vega_wp_frontpage_position_4cols] = '4cols';
    $arr[$vega_wp_frontpage_position_cta_dark] = 'cta_dark';
    $arr[$vega_wp_frontpage_position_cta_dark2] = 'cta_dark2';
    $arr[$vega_wp_frontpage_position_latest_posts] = 'latest_posts';
    $arr[$vega_wp_frontpage_position_open1] = 'open1';
    ksort($arr);
    $vega_wp_prev_bg = 'bg-grey-light';
    $vega_wp_curr_bg = '';
    foreach ($arr as $k => $v) {
        if ($v == 'content') {
            get_template_part('parts/frontpage', 'content');
        }
        if ($v == '4cols') {
            get_template_part('parts/frontpage', '4cols');
 * The template part for displaying the recent posts on the front page (static)
 *
 * @package vega
 */
global $vega_wp_curr_bg, $vega_wp_prev_bg;
$vega_wp_frontpage_latest_posts = vega_wp_get_option('vega_wp_frontpage_latest_posts');
if ($vega_wp_frontpage_latest_posts == 'Y') {
    if ($vega_wp_prev_bg == 'bg-white') {
        $vega_wp_curr_bg = 'bg-grey-light-2';
    } else {
        $vega_wp_curr_bg = 'bg-white';
    }
    $vega_wp_prev_bg = $vega_wp_curr_bg;
    $vega_wp_frontpage_latest_posts_n = vega_wp_get_option('vega_wp_frontpage_latest_posts_n');
    $vega_wp_frontpage_latest_posts_heading = vega_wp_get_option('vega_wp_frontpage_latest_posts_heading');
    $vega_wp_frontpage_latest_posts_section_id = vega_wp_get_option('vega_wp_frontpage_latest_posts_section_id');
    ?>
<!-- ========== Latest Posts ========== -->
<div class="section frontpage-recent-posts <?php 
    echo esc_attr($vega_wp_curr_bg);
    ?>
" id="<?php 
    echo esc_attr($vega_wp_frontpage_latest_posts_section_id);
    ?>
">
    <div class="container">
    
        <?php 
    if ($vega_wp_frontpage_latest_posts_heading != '') {
        ?>
        <h2 class="block-title wow bounceIn"><?php