function wpv_shortcode_icon($atts, $content = null) { extract(shortcode_atts(array('name' => '', 'style' => '', 'color' => '', 'size' => '', 'lheight' => 1), $atts)); $size_int = array('small' => 16, 'medium' => 24, 'large' => 32); $icon_char = wpv_get_icon($name); $theme = ''; if (strpos($name, 'theme-') === 0) { $theme = 'theme'; } elseif (strpos($name, 'custom-') === 0) { $theme = 'custom'; } $color = wpv_sanitize_accent($color); if (isset($size_int[$size])) { $size = $size_int[$size]; } $style_slug = $style; if (!empty($color)) { $style = "color:{$color};"; if ($style_slug == 'inverted-colors' || $style_slug == 'box') { $l = new WpvLessc(); $l->importDir = '.'; $l->setFormatter("compressed"); $style = $l->compile(WpvTemplates::readable_color_mixin() . "\n\t\t\t\t.readable-color({$color});\n\t\t\t\tbackground: {$color};\n\t\t\t\t"); } } $lheight = (int) $lheight != 1 && (int) $lheight != (int) $size ? "line-height:{$lheight};" : ''; if (!empty($size)) { $size = "font-size:{$size}px !important;"; } return "<span class='icon shortcode {$theme} {$style_slug}' style='{$lheight}{$size}{$style}'>{$icon_char}</span>"; }
public static function wpv_splash_screen() { $content = WpvTemplates::has_header_slider() ? '' : do_shortcode(wpv_post_meta(null, 'page-middle-header-content', true)); $min_height = wpv_post_meta(null, 'page-middle-header-min-height', true); if (wpv_post_meta(null, 'show-splash-screen', true) !== 'true') { return; } echo '<div class="wpv-splash-screen"> <div class="wpv-splash-screen-logo"></div> </div>'; }
public static function shortcode($atts, $content = null, $code) { extract(shortcode_atts(array('layout' => 'horizontal', 'left_color' => 'accent8', 'right_color' => 'accent1', 'nav_color' => 'accent2'), $atts)); if (!wpv_sub_shortcode('tab', $content, $params, $sub_contents)) { return 'error parsing slider shortcode'; } wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_script('front-jquery.ui.tabs.rotate'); global $wpv_tabs_shown; if (!isset($wpv_tabs_shown)) { $wpv_tabs_shown = 0; } $wpv_tabs_shown++; $id = 'tabs-' . $wpv_tabs_shown; $output = '<ul class="ui-tabs-nav">'; if (isset($GLOBALS['wpv_last_column_title']) && !empty($GLOBALS['wpv_last_column_title']) && $layout == 'vertical') { $output .= '<li class="inactive-block-title"><h2>' . $GLOBALS['wpv_last_column_title'] . '</h2></li>'; } foreach ($params as $i => $p) { $p = shortcode_atts(array('title' => '', 'class' => '', 'icon' => ''), $p); if (!empty($p['icon'])) { $p['icon'] = wpv_shortcode_icon(array('name' => $p['icon'])); $p['class'] .= ' has-icon'; } $class = empty($p['class']) ? '' : " class='{$p['class']}'"; $output .= '<li' . $class . '><a href="#tab-' . $wpv_tabs_shown . '-' . $i . '-' . self::sanitize_id($params[$i]['title']) . '">' . $p['icon'] . ' <span class="title-text">' . $p['title'] . '</span></a></li>'; } $output .= '</ul>'; foreach ($sub_contents as $i => $c) { $class = isset($params[$i]['class']) ? ' tab-' . $params[$i]['class'] : ''; $output .= '<div class="pane' . $class . '" id="tab-' . $wpv_tabs_shown . '-' . $i . '-' . self::sanitize_id($params[$i]['title']) . '">' . do_shortcode(trim($c)) . '</div>'; } $l = new WpvLessc(); $l->importDir = '.'; $l->setFormatter("compressed"); $left_color = wpv_sanitize_accent($left_color); $right_color = wpv_sanitize_accent($right_color); $nav_color = wpv_sanitize_accent($nav_color); $inner_style = ''; if (!empty($left_color) && !empty($right_color)) { $readable = WpvTemplates::readable_color_mixin(); $vertical_styles = $layout !== 'vertical' ? '' : "\n\t\t\t\t#{$id}.vertical {\n\t\t\t\t\t&,\n\t\t\t\t\t&:before {\n\t\t\t\t\t\tbackground: {$right_color};\n\t\t\t\t\t}\n\n\t\t\t\t\t.ui-tabs-nav {\n\t\t\t\t\t\t&:before {\n\t\t\t\t\t\t\tbackground: {$left_color};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t.pane:before {\n\t\t\t\t\t\tbackground: {$left_color};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"; $inner_style = $l->compile($readable . $vertical_styles . "\n\t\t\t\t#{$id} {\n\t\t\t\t\t.ui-tabs-nav {\n\t\t\t\t\t\t&,\n\t\t\t\t\t\tli {\n\t\t\t\t\t\t\tbackground: {$left_color};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tli {\n\t\t\t\t\t\t\t&, a, a .icon {\n\t\t\t\t\t\t\t\tcolor: {$nav_color};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.ui-state-active,\n\t\t\t\t\t\t.ui-state-selected,\n\t\t\t\t\t\t.ui-state-hover {\n\t\t\t\t\t\t\tbackground: {$right_color};\n\n\t\t\t\t\t\t\t&, a, a .icon {\n\t\t\t\t\t\t\t\t.readable-color({$right_color});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.inactive-block-title {\n\t\t\t\t\t\t\th1, h2, h3, h4, h5, h6 {\n\t\t\t\t\t\t\t\tcolor: {$nav_color};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t&.horizontal {\n\t\t\t\t\t\t.pane {\n\t\t\t\t\t\t\tbackground: {$right_color};\n\n\t\t\t\t\t\t\t&,\n\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t.column-title,\n\t\t\t\t\t\t\t.sep-text h2.regular-title-wrapper,\n\t\t\t\t\t\t\t.text-divider-double,\n\t\t\t\t\t\t\t.sep-text .sep-text-line,\n\t\t\t\t\t\t\t.sep,\n\t\t\t\t\t\t\t.sep-2,\n\t\t\t\t\t\t\t.sep-3,\n\t\t\t\t\t\t\ttd,\n\t\t\t\t\t\t\tth,\n\t\t\t\t\t\t\tcaption {\n\t\t\t\t\t\t\t\t.readable-color({$right_color});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"); } $style = '<style>' . $inner_style . '</style>'; return '<div class="wpv-tabs ' . $layout . '" id="' . $id . '">' . $output . '</div>' . $style; }
<?php /** * Ajax portfolio viewer template * * @package wpv * @subpackage church-event */ ?> <div id="portfolio-viewer"> <div class="slider-wrapper"> <div id="ajax-portfolio-slider-big"></div> <div class="vamtam-slider-loading-mask"></div> <div id="thumbs-bar"> <div class="prev"></div> <div class="next"></div> <div class="scroller"></div> </div> </div> <div class="portfolio-viewer-wrap"> <div class="content row"></div> </div> <style> #ajax-portfolio-slider-big { <?php WpvTemplates::title_style(); ?> } </style> </div>
<?php global $wpv_has_header_sidebars; if ($wpv_has_header_sidebars) { WpvTemplates::header_sidebars(); } ?> <div class="page-content"> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'honeymoon'), 'after' => '</div>')); ?> <?php WpvTemplates::share('page'); ?> </div> <?php comments_template('', true); ?> </article> <?php WpvTemplates::right_sidebar(); ?> </div> <?php } get_footer();
/** * Front-end styles */ public function styles() { if (is_admin() || WpvTemplates::is_login()) { return; } $theme_version = WpvFramework::get_version(); $external_fonts = maybe_unserialize(wpv_get_option('external-fonts')); if (is_array($external_fonts) && !empty($external_fonts)) { foreach ($external_fonts as $name => $url) { wp_enqueue_style('wpv-' . $name, $url, array(), $theme_version); } } wp_enqueue_style('front-magnific-popup', wpv_prepare_url(WPV_THEME_CSS . 'magnific.css')); $cache_timestamp = wpv_get_option('css-cache-timestamp'); $generated_deps = array('front-magnific-popup'); if (wpv_has_woocommerce()) { $generated_deps[] = 'woocommerce-layout'; $generated_deps[] = 'woocommerce-smallscreen'; $generated_deps[] = 'woocommerce-general'; } if (class_exists('Tribe__Events__Main') && (tribe_is_event_query() || tribe_is_event_organizer() || tribe_is_event_venue())) { $generated_deps[] = 'tribe-events-calendar-style'; $generated_deps[] = 'tribe-events-full-calendar-style'; } $suffix = is_multisite() ? $GLOBALS['blog_id'] : ''; $css_file = 'all' . $suffix . '.css'; $css_path = WPV_CACHE_URI . $css_file; if (!file_exists(WPV_CACHE_DIR . $css_file)) { $css_path = WPV_SAMPLES_URI . 'all-default.css'; } wp_enqueue_style('front-all', wpv_prepare_url($css_path), $generated_deps, $cache_timestamp); global $wpv_is_shortcode_preview; if ($wpv_is_shortcode_preview) { wp_enqueue_style('vamtam-shortcode-preview', WPV_ADMIN_ASSETS_URI . 'css/shortcode-preview.css'); } $custom_icons = get_option('vamtam-custom-icons-map'); if ($custom_icons) { $icons_path = trailingslashit(WP_CONTENT_URL) . 'vamtam/custom-icon-font/'; $custom_icons_css = "\n\t\t\t\t@font-face {\n\t\t\t\t\tfont-family: 'vamtam-custom-icons';\n\t\t\t\t\tsrc: url({$icons_path}custom-icons.eot);\n\t\t\t\t\tsrc: url({$icons_path}custom-icons.eot?#iefix) format('embedded-opentype'),\n\t\t\t\t\t\turl({$icons_path}custom-icons.ttf) format('truetype');\n\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\tfont-style: normal;\n\t\t\t\t}\n\t\t\t"; wp_add_inline_style('front-all', $custom_icons_css); } }
/** * Single product social sharing */ function wpv_woocommerce_share() { WpvTemplates::share('product'); }
<!-- Notices --> <?php tribe_events_the_notices(); ?> <!-- Event content --> <?php do_action('tribe_events_single_event_before_the_content'); ?> <div class="tribe-events-single-event-description tribe-events-content entry-content description"> <?php the_content(); ?> <?php WpvTemplates::share('tribe'); ?> </div><!-- .tribe-events-single-event-description --> <?php do_action('tribe_events_single_event_after_the_content'); ?> <?php if (get_post_type() == Tribe__Events__Main::POSTTYPE && tribe_get_option('showComments', false)) { comments_template(); } ?> </div><!-- #tribe-events-content --> <div class="wpv-tribe-events-meta"> <?php
/** * Content wrappers * * @author WooThemes * @package wpv * @subpackage church-event * @version 2.1.0 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly global $post; ?> <div class="row page-wrapper"> <?php WpvTemplates::left_sidebar(); ?> <article class="<?php echo WpvTemplates::get_layout(); ?> "> <?php global $wpv_has_header_sidebars; if ($wpv_has_header_sidebars) { WpvTemplates::header_sidebars(); } ?> <div class="page-content no-image">
function wpv_ajaxed_post_portfolio() { if (wpv_is_reduced_response()) { echo 'title|'; WpvTemplates::site_title(); wpv_reduced_delim(); echo 'hsidebars|'; $header_placed = wpv_get_header_sidebars(); wpv_reduced_delim(); echo 'ptitle|'; WpvTemplates::page_header($header_placed); wpv_reduced_delim(); echo 'breadcrumbs|'; WpvTemplates::breadcrumbs(); wpv_reduced_delim(); echo 'content|'; } }
/** * Column shortcode callback * * @param array $atts shortcode attributes * @param string $content shortcode content * @param string $code shortcode name * @return string output html */ public static function dispatch($atts, $content, $code) { extract(shortcode_atts(array('animation' => 'none', 'background_attachment' => 'scroll', 'background_color' => '', 'background_image' => '', 'background_position' => '', 'background_repeat' => '', 'background_size' => '', 'background_video' => '', 'class' => '', 'extended' => 'false', 'extended_padding' => 'true', 'last' => 'false', 'more_link' => '', 'more_text' => '', 'parallax_bg' => 'disabled', 'parallax_bg_inertia' => '1', 'title' => '', 'title_type' => 'single', 'vertical_padding_bottom' => '0', 'vertical_padding_top' => '0', 'width' => '1/1', 'div_atts' => '', 'left_border' => 'transparent', 'id' => ''), $atts)); if (!preg_match('/column_\\d+/', $code)) { $class .= ' wpv-first-level'; } $GLOBALS['wpv_column_stack'][] = $width; $GLOBALS['wpv_last_column_title'] = $title; if ($parallax_bg !== 'disabled') { $class .= ' parallax-bg'; $div_atts .= ' data-parallax-method="' . esc_attr($parallax_bg) . '" data-parallax-inertia="' . esc_attr($parallax_bg_inertia) . '"'; $background_position = 'center top'; $background_attachment = 'fixed'; } $has_price = strpos($content, '[price') !== false; $has_vertical_tabs = preg_match('/\\[tabs.+layout="vertical"/s', $content); $width = str_replace('/', '-', $width); $title = !empty($title) && !$has_vertical_tabs ? apply_filters('wpv_column_title', $title, $title_type) : ''; $extended = wpv_sanitize_bool($extended); $last = wpv_sanitize_bool($last); $first = !$last; $id = empty($id) ? 'wpv-column-' . md5(uniqid()) : $id; if ($width === '1-1') { $first = true; $last = true; } if ($width !== '1-1' || WpvTemplates::get_layout() !== 'full') { $extended = false; } $result = ''; $result_before = $result_after = $content_before = $content_after = ''; if (self::$in_row > self::$last_row) { $rowclass = $has_price ? 'has-price' : ''; $class .= ' first'; $result .= '<div class="row ' . $rowclass . '">'; self::$last_row = self::$in_row; } if (!empty($background_image)) { $background_image = "\n\t\t\t\tbackground: url('{$background_image}') {$background_repeat} {$background_position};\n\t\t\t\tbackground-size: {$background_size};\n\t\t\t\tbackground-attachment: {$background_attachment};\n\t\t\t"; } $inner_style = ''; $l = new WpvLessc(); $l->importDir = '.'; $l->setFormatter("compressed"); if (!empty($background_color) && $background_color !== 'transparent') { $color = wpv_sanitize_accent($background_color); $inner_style .= $l->compile("\n\t\t\t\t.readable-color(@bgcolor:#FFF, @treshold:70, @diff:50%) when (iscolor(@bgcolor)) and ( lightness(@bgcolor) >= @treshold ) {\n\t\t\t\t\tcolor: darken(@bgcolor, @diff);\n\t\t\t\t}\n\t\t\t\t.readable-color(@bgcolor:#FFF, @treshold:70, @diff:50%) when (iscolor(@bgcolor)) and ( lightness(@bgcolor) < @treshold ) {\n\t\t\t\t\tcolor: lighten(@bgcolor, @diff);\n\t\t\t\t}\n\t\t\t\t.safe-bg(@bgcolor) when (iscolor(@bgcolor)) {\n\t\t\t\t\tbackground-color: @bgcolor;\n\t\t\t\t}\n\t\t\t\t.safe-bg(@bgcolor) {}\n\n\t\t\t\t#{$id} {\n\t\t\t\t\tp,\n\t\t\t\t\tem,\n\t\t\t\t\t.column-title,\n\t\t\t\t\t.sep-text h2.regular-title-wrapper,\n\t\t\t\t\t.text-divider-double,\n\t\t\t\t\t.sep-text .sep-text-line,\n\t\t\t\t\t.sep,\n\t\t\t\t\t.sep-2,\n\t\t\t\t\t.sep-3 {\n\t\t\t\t\t\t.readable-color({$color});\n\t\t\t\t\t}\n\n\t\t\t\t\t&:before {\n\t\t\t\t\t\t.safe-bg({$left_border});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"); $background_color = "background-color:" . wpv_sanitize_accent($background_color) . ";"; } else { $background_color = ''; } if (!empty($left_border) && $left_border !== 'transparent') { $inner_style .= $l->compile("\n\t\t\t\t.safe-bg(@bgcolor) when (iscolor(@bgcolor)) {\n\t\t\t\t\tbackground-color: @bgcolor;\n\t\t\t\t}\n\t\t\t\t.safe-bg(@bgcolor) {}\n\n\t\t\t\t#{$id} {\n\t\t\t\t\t&:before {\n\t\t\t\t\t\t.safe-bg({$left_border});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"); } if (!empty($inner_style)) { $content_before .= '<style>' . $inner_style . '</style>'; } if (!empty($more_link) && !empty($more_text) && !$extended) { $class .= ' has-more-button'; $more_link = esc_attr($more_link); $content_after .= "<a href='{$more_link}' title='" . esc_attr($more_text) . "' class='column-read-more-btn'>{$more_text}</a>"; } if (!empty($background_video) && !WpvMobileDetect::getInstance()->isMobile()) { $type = wp_check_filetype($background_video, wp_get_mime_types()); $content_before .= '<div class="wpv-video-bg"> <video autoplay loop preload="metadata" width="100%" class="wpv-background-video" style="width:100%"> <source type="' . $type['type'] . '" src="' . $background_video . '"></source> </video> </div><div class="wpv-video-bg-content">'; $content_after .= '</div>'; $class .= ' has-video-bg'; wp_enqueue_style('wp-mediaelement'); wp_enqueue_script('wp-mediaelement'); } if (!empty($background_image) || !empty($background_color) && $background_color !== 'transparent') { $class .= ' has-background'; } if ((int) $vertical_padding_top < 0) { $div_atts .= ' data-padding-top="' . (int) $vertical_padding_top . '"'; } if ((int) $vertical_padding_bottom < 0) { $div_atts .= ' data-padding-bottom="' . (int) $vertical_padding_bottom . '"'; } $vertical_padding_top = max(0, (int) $vertical_padding_top) . 'px'; $vertical_padding_bottom = max(0, (int) $vertical_padding_bottom) . 'px'; $style = 'style="' . $background_image . $background_color . 'padding-top:' . $vertical_padding_top . ';padding-bottom:' . $vertical_padding_bottom . '"'; $class .= $extended ? ' extended' : ' unextended'; if ($left_border != 'transparent') { $class .= ' left-border'; } if ($animation !== 'none' && $parallax_bg == 'disabled') { $class .= ' animation-' . $animation . ' animated-active'; } if ($extended_padding === 'false') { $class .= ' no-extended-padding'; } if ($extended) { $content_before = '<div class="extended-column-inner">' . $content_before; $content_after .= '</div>'; } $result .= '<div class="wpv-grid grid-' . $width . ' ' . $class . '" ' . $style . ' id="' . $id . '" ' . $div_atts . '>' . $content_before . $title . self::content($content) . $content_after . '</div>'; if ($last) { self::$last_row--; $result .= '</div>'; } array_pop($GLOBALS['wpv_column_stack']); return $result_before . $result . $result_after; }
"> <?php if ($is_ajax) { ?> <?php WpvTemplates::breadcrumbs(); WpvTemplates::page_header(false, get_the_title()); ?> <?php } ?> <?php echo $content; ?> <?php WpvTemplates::share('portfolio'); ?> </div> <?php if ($has_right_column) { ?> <div class="grid-1-5 last"> <?php if (!empty($logo)) { ?> <div class="cell"> <img src="<?php echo $logo; ?>
"> <?php } ?> <?php echo $post_data['media']; ?> <?php if (has_post_format('image')) { ?> </a> <?php } ?> </div> </div> <?php } ?> <div class="post-content-outer"> <?php include locate_template('templates/post/header-large.php'); include locate_template('templates/post/content.php'); include locate_template('templates/post/meta-loop.php'); WpvTemplates::custom_link_pages(array('before' => '<div class="wp-pagenavi"><span class="visuallyhidden">' . __('Pages:', 'honeymoon') . '</span>', 'after' => '</div>', 'echo' => true)); ?> </div> </div> </div>
<?php $normal_style = $hover_style = ''; $id = 'wpv-expandable-' . md5(uniqid()); $readable = WpvTemplates::readable_color_mixin(); if (!empty($background) && $background !== 'transparent') { $l = new WpvLessc(); $l->importDir = '.'; $l->setFormatter("compressed"); $background = wpv_sanitize_accent($background); $normal_style = $l->compile($readable . "\n\t\t\t#{$id} .closed {\n\t\t\t\tbackground: {$background};\n\n\t\t\t\t&,\n\t\t\t\tp,\n\t\t\t\t.sep-text h2.regular-title-wrapper,\n\t\t\t\t.text-divider-double,\n\t\t\t\t.sep-text .sep-text-line,\n\t\t\t\t.sep,\n\t\t\t\t.sep-2,\n\t\t\t\t.sep-3,\n\t\t\t\ttd,\n\t\t\t\tth,\n\t\t\t\tcaption {\n\t\t\t\t\t.readable-color({$background});\n\t\t\t\t}\n\t\t\t}\n\t\t"); } if (!empty($hover_background) && $hover_background !== 'transparent') { $l = new WpvLessc(); $l->importDir = '.'; $l->setFormatter("compressed"); $hover_background = wpv_sanitize_accent($hover_background); $hover_style = $l->compile($readable . "\n\t\t\t#{$id} .open {\n\t\t\t\tbackground: {$hover_background};\n\n\t\t\t\t&,\n\t\t\t\tp,\n\t\t\t\t.sep-text h2.regular-title-wrapper,\n\t\t\t\t.text-divider-double,\n\t\t\t\t.sep-text .sep-text-line,\n\t\t\t\t.sep,\n\t\t\t\t.sep-2,\n\t\t\t\t.sep-3,\n\t\t\t\ttd,\n\t\t\t\tth,\n\t\t\t\tcaption {\n\t\t\t\t\t.readable-color({$hover_background});\n\t\t\t\t}\n\t\t\t}\n\t\t"); } ?> <style scoped><?php echo $normal_style . $hover_style; ?> </style> <div class="services has-more <?php echo $class; ?> " id="<?php echo $id; ?> ">
?> "> <?php if (!empty($sortable)) { include locate_template('templates/portfolio/loop/sortable-header.php'); } ?> <ul class="clearfix <?php echo $sortable; ?> portfolio-items" data-columns="<?php echo $column; ?> "> <?php while (have_posts()) { the_post(); include locate_template('templates/portfolio/loop/item.php'); } ?> </ul> <?php if ($nopaging == 'false') { WpvTemplates::pagination($paging_preference); } ?> </section> <?php if ($scrollable) { echo '</div>'; }
do_action('wpv_body'); ?> <div id="page" class="main-container"> <?php include locate_template('templates/header/top.php'); ?> <?php do_action('wpv_after_top_header'); ?> <div class="boxed-layout"> <div class="pane-wrapper clearfix"> <?php include locate_template('templates/header/middle.php'); ?> <div id="main-content"> <?php include locate_template('templates/header/sub-header.php'); ?> <!-- #main ( do not remove this comment ) --> <div id="main" role="main" class="wpv-main layout-<?php echo esc_attr(WpvTemplates::get_layout()); ?> "> <?php do_action('wpv_inside_main'); ?> <div class="limit-wrapper">
<?php return array('name' => __('Revolution Slider', 'honeymoon'), 'desc' => __('Please note that the theme uses Revolution Slider and its option panel is found in the WordPress navigation menu on the left. This element inserts already created slider into the page/post body. If you need to activate the slider in the Header, then you will need the option - "Page Slider" found below the editor. ', 'honeymoon'), 'icon' => array('char' => WPV_Editor::get_icon('images'), 'size' => '26px', 'lheight' => '39px', 'family' => 'vamtam-editor-icomoon'), 'value' => 'rev_slider', 'controls' => 'size name clone edit delete', 'options' => array(array('name' => __('Slider', 'honeymoon'), 'id' => 'alias', 'default' => '', 'options' => WpvTemplates::get_rev_sliders(''), 'type' => 'select')));
$global_page_header_bg = wpv_get_option('page-title-background-image') . wpv_get_option('page-title-background-color'); if (!WpvTemplates::has_breadcrumbs() && !WpvTemplates::has_page_header() && !WpvTemplates::has_post_siblings_buttons() || is_404() && (!function_exists('tribe_is_event_query') || !tribe_is_event_query())) { return; } if (is_page_template('page-blank.php')) { return; } ?> <div id="sub-header" class="layout-<?php echo WpvTemplates::get_layout(); ?> <?php if (!empty($page_header_bg) || !empty($global_page_header_bg)) { echo 'has-background'; } ?> "> <div class="meta-header clearfix" style="<?php echo $page_header_bg; ?> "> <div class="limit-wrapper"> <div class="meta-header-inside"> <?php WpvTemplates::breadcrumbs(); WpvTemplates::page_header(false, $wpv_title); ?> </div> </div> </div> </div>
do_action('wpv_body'); ?> <div id="page" class="main-container"> <?php include locate_template('templates/header/top.php'); ?> <?php do_action('wpv_after_top_header'); ?> <div class="boxed-layout"> <div class="pane-wrapper clearfix"> <?php include locate_template('templates/header/middle.php'); ?> <div id="main-content"> <?php include locate_template('templates/header/sub-header.php'); ?> <!-- #main (do not remove this comment) --> <div id="main" role="main" class="layout-<?php echo WpvTemplates::get_layout(); ?> "> <?php do_action('wpv_inside_main'); ?> <div class="limit-wrapper">
<?php /** * Displays social sharing buttons * * @package wpv */ global $post; $networks = array('facebook' => array('link' => 'https://www.facebook.com/sharer/sharer.php?u=', 'title' => __('Share on Facebook', 'honeymoon'), 'text' => __('Like', 'honeymoon')), 'twitter' => array('link' => 'https://twitter.com/intent/tweet?text=', 'title' => __('Share on Twitter', 'honeymoon'), 'text' => __('Tweet', 'honeymoon')), 'googleplus' => array('link' => 'https://plus.google.com/share?url=', 'title' => __('Share on Google Plus', 'honeymoon'), 'text' => __('+1', 'honeymoon')), 'pinterest' => array('link' => '#', 'title' => __('Share on Pinterest', 'honeymoon'), 'text' => __('Pin it', 'honeymoon'))); if (WpvTemplates::has_share($context)) { ?> <div class="clearfix <?php echo apply_filters('wpv_share_class', 'share-btns'); ?> "> <div class="sep-3"></div> <ul class="socialcount" data-url="<?php esc_attr_e(get_permalink()); ?> " data-share-text="<?php esc_attr_e(get_the_title()); ?> " data-media=""> <?php foreach ($networks as $slug => $cfg) { ?> <?php if (wpv_get_option("share-{$context}-{$slug}")) { ?> <li class="<?php echo $slug;
<?php /** * Vamtam Post Options * * @package wpv * @subpackage honeymoon */ return array(array('name' => __('Layout and Styles', 'honeymoon'), 'type' => 'separator'), array('name' => __('Page Slider', 'honeymoon'), 'desc' => __('In the drop down you will see the sliders that you have created. Please note that the theme uses Revolution Slider and its option panel is found in the WordPress navigation menu on the left.', 'honeymoon'), 'id' => 'slider-category', 'type' => 'select', 'default' => '', 'prompt' => __('Disabled', 'honeymoon'), 'options' => WpvTemplates::get_all_sliders(), 'class' => 'fbport fbport-disabled'), array('name' => __('Show Splash Screen', 'honeymoon'), 'desc' => __('This option is usuful if you have video background, featured slider, galleries or other pages that will load considarable amount of time.', 'honeymoon'), 'id' => 'show-splash-screen', 'type' => 'toggle', 'default' => false), array('name' => __('Header Featured Area', 'honeymoon'), 'desc' => __('This option is only active if you have disabled the header slider. You can place plain text or HTML into it.', 'honeymoon'), 'id' => 'page-middle-header-content', 'type' => 'textarea', 'default' => '', 'class' => 'fbport fbport-disabled'), array('name' => __('Full Width Header Featured Area', 'honeymoon'), 'desc' => __('Extend the featured area to the end of the screen. This is basicly a full screen mode.', 'honeymoon'), 'id' => 'page-middle-header-content-fullwidth', 'type' => 'toggle', 'default' => 'false'), array('name' => __('Header Featured Area Minimum Height', 'honeymoon'), 'desc' => __('Please note that this option does not affect the slider height. The slider height is controled from the LayerSlider option panel.', 'honeymoon'), 'id' => 'page-middle-header-min-height', 'type' => 'range', 'default' => 0, 'min' => 0, 'max' => 1000, 'unit' => 'px', 'class' => 'fbport fbport-disabled'), array('name' => __('Featured Area / Slider Background', 'honeymoon'), 'desc' => __('This option is used for the featured area, header slider and the Ajax portfolio slider.<br>If you want to use an image as a background, enabling the cover button will resize and crop the image so that it will always fit the browser window on any resolution.', 'honeymoon'), 'id' => 'local-title-background', 'type' => 'background', 'show' => 'color,image,repeat,size', 'class' => 'fbport fbport-disabled fbport-page'), array('name' => __('Sticky Header Behaviour', 'honeymoon'), 'id' => 'sticky-header-type', 'type' => 'select', 'default' => 'normal', 'desc' => __('Please make sure you have the sticky header enabled in theme options - layout - header.', 'honeymoon'), 'options' => array('normal' => __('Normal', 'honeymoon'), 'over' => __('Over the page content', 'honeymoon'), 'half-over' => __('Bottom half over the page content', 'honeymoon')), 'class' => 'fbport fbport-disabled'), array('name' => __('Show Page Title Area', 'honeymoon'), 'desc' => __('Enables the area used by the page title.', 'honeymoon'), 'id' => 'show-page-header', 'type' => 'toggle', 'default' => true, 'class' => 'fbport fbport-disabled'), array('name' => __('Page Title Background', 'honeymoon'), 'id' => 'local-page-title-background', 'type' => 'background', 'show' => 'color,image,repeat,size', 'class' => 'fbport fbport-disabled'), array('name' => __('Description', 'honeymoon'), 'desc' => __('The text will appear next or bellow the title of the page, only if the option above is enabled.', 'honeymoon'), 'id' => 'description', 'type' => 'textarea', 'default' => ''), array('name' => __('Show Body Top Widget Areas', 'honeymoon'), 'desc' => __('The layout of these areas can be configured from "Vamtam" -> "Layout" -> "Body". In Appearance => Widgets you populate them with widgets.', 'honeymoon'), 'image' => WPV_ADMIN_ASSETS_URI . 'images/header-sidebars-3.png', 'id' => 'show_header_sidebars', 'type' => 'toggle', 'default' => wpv_get_option('has-header-sidebars'), 'has_default' => true, 'class' => 'fbport fbport-disabled', 'only' => 'page,post,portfolio,product'), array('name' => __('Page Layout Type', 'honeymoon'), 'desc' => __('The sidebars are placed just below the page title. You can choose one of the predefined layouts.', 'honeymoon'), 'id' => 'layout-type', 'type' => 'body-layout', 'only' => 'page,post,portfolio,product,tribe_events,events', 'default' => 'default', 'has_default' => true, 'class' => 'fbport fbport-disabled'), array('name' => __('Custom Sidebars', 'honeymoon'), 'desc' => __('This option correlates with the one above. If you have custom sidebars created, you will enable them by selecting them in the drop-down menu. Otherwise the page default sidebars will be used.', 'honeymoon'), 'type' => 'select-row', 'selects' => array('left_sidebar_type' => array('desc' => __('Left:', 'honeymoon'), 'prompt' => __('Default', 'honeymoon'), 'target' => 'sidebars', 'default' => false), 'right_sidebar_type' => array('desc' => __('Right:', 'honeymoon'), 'prompt' => __('Default', 'honeymoon'), 'target' => 'sidebars', 'default' => false)), 'class' => 'fbport fbport-disabled'), array('name' => __('Page Background', 'honeymoon'), 'desc' => __('Please note that this option is used only in boxed layout mode.<br> In full width layout mode the page background is covered by the header, slider, body and footer backgrounds respectively. If the color opacity of these areas is 1 or an opaque image is used, the page background won\'t be visible.<br> If you want to use an image as a background, enabling the cover button will resize and crop the image so that it will always fit the browser window on any resolution.<br> You can override this option on a page by page basis.', 'honeymoon'), 'id' => 'background', 'type' => 'background', 'show' => 'color,image,repeat,size,attachment'), array('name' => __('Use Bottom Padding on This Page', 'honeymoon'), 'desc' => __('If you disable this option, the last element will stick to the footer. Useful for parallax pages.', 'honeymoon'), 'id' => 'use-page-bottom-padding', 'type' => 'toggle', 'default' => true, 'class' => 'fbport fbport-disabled'));
</div> <!-- .limit-wrapper --> </div><!-- / #main (do not remove this comment) --> </div><!-- #main-content --> <?php if (!is_page_template('page-blank.php')) { ?> <footer class="main-footer"> <?php if (wpv_get_optionb('has-footer-sidebars')) { ?> <div class="footer-sidebars-wrapper"> <?php WpvTemplates::footer_sidebars(); ?> </div> <?php } ?> </footer> <?php do_action('wpv_before_sub_footer'); ?> <?php if (wpv_get_option('credits') != '') { ?> <div class="copyrights">
<?php /** * Post content template * * @package wpv */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly if (empty($post_data['content']) && isset($post_data['media']) && (is_single() ? !WpvTemplates::has_share('post') : true)) { return; } ?> <div class="post-content the-content"> <?php do_action('wpv_before_post_content'); if (!empty($post_data['content'])) { if (!is_single() || !has_post_format('quote')) { echo $post_data['content']; } } do_action('wpv_after_post_content'); ?> </div>
/** * Post heade template * * @package wpv */ global $post; $title = get_the_title(); $show = !has_post_format('status') && !has_post_format('aside') && !empty($title); if ($show) { $link = has_post_format('link') ? get_post_meta($post->ID, 'wpv-post-format-link', true) : get_permalink(); ?> <header class="single"> <div class="content"> <?php if ($news && !isset($post_data['media'])) { WpvTemplates::post_format_icon($format); } ?> <h4> <a href="<?php echo $link; ?> " title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a> </h4> </div>
<?php include locate_template('templates/post/content.php'); ?> <?php if ($meta_tax) { ?> <div class="meta-bottom clearfix"> <div><span class="icon"><?php wpv_icon('folder1'); ?> </span><span class="visuallyhidden"><?php _e('Category', 'church-event'); ?> </span><?php the_category(', '); ?> </div> <?php the_tags('<div class="the-tags"><span class="icon">' . wpv_get_icon('tag') . '</span><span class="visuallyhidden">' . __('Tags', 'church-event') . '</span>', ', ', '</div>'); ?> </div> <?php } ?> <?php WpvTemplates::share('post'); ?> </div>
/** * Displays the page header * * @param bool $placed whether the title has already been output * @param string|null $title if set, overrides the current post title */ public static function page_header($placed = false, $title = null) { if ($placed) { return; } global $post; if (is_null($title)) { $title = get_the_title(); } $needHeaderTitle = WpvTemplates::has_page_header(); $needButtons = WpvTemplates::has_post_siblings_buttons(); $titleColor = WpvTemplates::page_header_title_color(); $description = ''; if (is_category()) { $description = category_description(); } else { if (is_object($post)) { $description = get_post_meta($post->ID, 'description', true); } } if (has_post_format('link') && !empty($title)) { $title = "<a href='" . wpv_post_meta(wpv_get_the_ID(), 'wpv-post-format-link') . "' target='_blank'>{$title}</a>"; } if ($needHeaderTitle || $needButtons) { ?> <header class="page-header <?php echo esc_attr($needButtons ? 'has-buttons' : ''); ?> "> <div class="page-header-content"> <?php if ($needHeaderTitle && !empty($title)) { ?> <h1 style="<?php echo esc_attr($titleColor); ?> "> <span class="title"> <?php echo wp_kses_post($title); ?> <?php if (!empty($description)) { ?> <div class="desc"><?php echo wp_kses_post($description); ?> </div> <?php } ?> </span> </h1> <?php } ?> <?php if ($needButtons) { get_template_part('templates/post-siblings-links', $post->post_type); } ?> </div> </header><?php } }
function theme_body_classes($body_class) { global $wpv_has_header_sidebars, $post, $wpv_is_shortcode_preview; $is_blank_page = is_page_template('page-blank.php'); $has_header_slider = WpvTemplates::has_header_slider(); $wpv_has_header_sidebars = wpv_post_meta_default('show_header_sidebars', 'has-header-sidebars'); $has_page_header = (WpvTemplates::has_page_header() || WpvTemplates::has_post_siblings_buttons()) && !is_404(); $body_class[] = $is_blank_page ? 'full' : wpv_get_option('site-layout-type'); $body_class[] = 'pagination-' . wpv_get_option('pagination-type'); $body_class[] = is_singular(WpvFramework::$complex_layout) ? 'sticky-header-type-' . wpv_post_meta(null, 'sticky-header-type', true) : ''; $body_class[] = 'wpv-not-scrolled'; $body_class_conditions = array('no-page-header' => !$has_page_header, 'has-page-header' => $has_page_header, 'cbox-share-twitter' => wpv_get_optionb('share-lightbox-twitter'), 'cbox-share-facebook' => wpv_get_optionb('share-lightbox-facebook'), 'cbox-share-googleplus' => wpv_get_optionb('share-lightbox-googleplus'), 'cbox-share-pinterest' => wpv_get_optionb('share-lightbox-pinterest'), 'fixed-header' => wpv_get_optionb('fixed-header'), 'has-header-slider' => $has_header_slider, 'has-header-sidebars' => $wpv_has_header_sidebars, 'no-header-slider' => !$has_header_slider, 'no-header-sidebars' => !$wpv_has_header_sidebars, 'no-footer-sidebars' => !wpv_get_optionb('has-footer-sidebars'), 'responsive-layout' => WPV_RESPONSIVE, 'fixed-layout' => !WPV_RESPONSIVE, 'has-breadcrumbs' => wpv_get_optionb('enable-breadcrumbs'), 'no-breadcrumbs' => !wpv_get_optionb('enable-breadcrumbs'), 'no-slider-button-thumbnails' => !wpv_get_optionb('header-slider-button-thumbnails'), 'sticky-header' => wpv_get_optionb('sticky-header'), 'no-page-bottom-padding' => wpv_post_meta(null, 'use-page-bottom-padding', true) == 'false', 'vamtam-shortcode-tooltip-preview' => $wpv_is_shortcode_preview && strpos($GLOBALS['wpv_current_shortcode'], '[tooltip') !== false); foreach ($body_class_conditions as $class => $cond) { if ($cond) { $body_class[] = $class; } } if (is_archive() || is_search() || get_query_var('format_filter')) { define('WPV_ARCHIVE_TEMPLATE', true); } return $body_class; }
<?php $sermon_media = WpvTemplates::get_sermon_media(); ?> <div class="wpv-sermon-wrapper"> <?php if (has_post_thumbnail()) { ?> <div class="left-part"> <?php the_post_thumbnail('wpv-sermons-thumbnail'); ?> </div> <?php } ?> <div class="center-part"> <h2 class="title"><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></h2> <div> <span class="latest-message"><?php _e('Message from', 'church-event'); ?>
?> <header class="header-middle row <?php echo $fullwidth ? 'fullwidth' : 'normal'; ?> <?php echo $type; ?> " style="<?php echo $style; ?> "> <?php /* * some pages may not have a slider enabled, check for that */ if (WpvTemplates::has_header_slider()) { $slider = wpv_post_meta($post_id, 'slider-category', true); $slider_engine = preg_match('/^layerslider/', $slider) ? 'layerslider' : 'revslider'; ?> <div id="header-slider-container" class="<?php echo $slider_engine; ?> "> <div class="header-slider-wrapper"> <?php get_template_part('slider', $slider_engine); ?> </div> </div> <?php } elseif ($post_id) {
$post_class[] = $column > 1 || $news ? "grid-1-{$column}" : 'clearfix'; if ($news && $i % $column == 0) { $post_class[] = 'clearboth'; } if (!is_single()) { $post_class[] = 'list-item'; } ?> <div <?php post_class(implode(' ', $post_class)); ?> > <div> <?php get_template_part('templates/post', get_post_type()); ?> </div> </div> <?php $i++; } } do_action('wpv_after_main_loop'); ?> </div> <?php $wpv_loop_vars = $old_wpv_loop_vars; if (!$nopaging) { WpvTemplates::pagination(); }