function specific_title_background($metabox) { $header_style = vibe_get_customizer('header_style'); if ($header_style == 'transparent') { $metabox[] = array('label' => __('Title Background Image', 'vibe-customtypes'), 'desc' => __('Add title background image', 'vibe-customtypes'), 'id' => 'vibe_title_bg', 'type' => 'image'); } return $metabox; }
<?php /** * Template Name: BuddyPress - Activity Directory * * @package BuddyPress * @subpackage Theme */ if (!defined('ABSPATH')) { exit; } do_action('wplms_before_activity_directory'); get_header(vibe_get_header()); $directory_layout = vibe_get_customizer('directory_layout'); vibe_include_template("directory/activity/index{$directory_layout}.php"); get_footer(vibe_get_footer());
<?php /** * The template for displaying Course home * * Override this template by copying it to yourtheme/course/single/home.php * * @author VibeThemes * @package vibe-course-module/templates * @version 2.0 */ do_action('wplms_before_single_course'); get_header(vibe_get_header()); $course_layout = vibe_get_customizer('course_layout'); if (bp_course_has_items()) { while (bp_course_has_items()) { bp_course_the_item(); vibe_include_template("course/top{$course_layout}.php"); ?> <?php do_action('template_notices'); ?> <div id="item-body"> <?php do_action('bp_before_course_body'); /** * Does this next bit look familiar? If not, go check out WordPress's * /wp-includes/template-loader.php file. * * @todo A real template hierarchy? Gasp!
<?php if (!defined('ABSPATH')) { exit; } do_action('wplms_before_single_group'); get_header(vibe_get_header()); $group_layout = vibe_get_customizer('group_layout'); if (bp_has_groups()) { while (bp_groups()) { bp_the_group(); vibe_include_template("groups/top{$group_layout}.php"); ?> <div id="item-body"> <?php do_action('bp_before_group_body'); ?> <?php do_action('bp_template_content'); ?> <?php do_action('bp_after_group_body'); ?> </div><!-- #item-body --> <?php
<?php /** * BuddyPress Notification Settings * * @package BuddyPress * @subpackage bp-default */ get_header(vibe_get_header()); $profile_layout = vibe_get_customizer('profile_layout'); vibe_include_template("profile/top{$profile_layout}.php"); ?> <div id="item-body"> <?php do_action('bp_before_member_body'); ?> <div class="item-list-tabs no-ajax" id="subnav"> <ul> <?php bp_get_options_nav(); ?> <?php do_action('bp_member_plugin_options_nav'); ?> </ul> </div><!-- .item-list-tabs -->
<?php $header = vibe_get_customizer('header_style'); if ($header == 'transparent') { echo '<section id="title"></section>'; } ?> <section id="content"> <div id="buddypress"> <div class="<?php echo vibe_get_container(); ?> "> <?php do_action('bp_before_course_home_content'); ?> <div class="row"> <div class="col-md-3 col-sm-3"> <div id="item-header" role="complementary"> <?php locate_template(array('course/single/course-header.php'), true); ?> </div><!-- #item-header --> <div id="item-nav"> <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> <ul> <?php
function vibe_logo_url($url = '/', $location = null) { $logo = vibe_get_option('logo'); if (empty($logo)) { $url = VIBE_URL . '/assets/images/logo.png'; } else { $url = $logo; } if (!empty($location)) { switch ($location) { case 'pagesidebar': // No changes break; case 'header': $header = vibe_get_customizer('header_style'); $alt_logo = vibe_get_option('alt_logo'); if (empty($alt_logo)) { $alt_logo .= VIBE_URL . '/assets/images/logo.png'; } if (in_array($header, array('sleek', 'transparent', 'center'))) { $url .= '" id="header_logo"><img id="header_alt_logo" src="' . $alt_logo; } else { if (!empty($alt_logo)) { $url .= '" data-alt-logo="' . $alt_logo; } } break; case 'footer': $footer_logo = vibe_get_option('footer_logo'); if (!empty($footer_logo)) { $url = $footer_logo; } break; case 'headertop': $alt_logo = vibe_get_option('alt_logo'); if (!empty($alt_logo)) { $url = $alt_logo; } break; } } if (is_ssl()) { if (substr($url, 0, 7) == "http://") { $url = str_replace('http', 'https', $url); } } return $url; }
function wplms_enqueue_head() { global $vibe_options; if (!is_admin()) { $protocol = is_ssl() ? 'https' : 'http'; /*=== Enqueing Google Web Fonts =====*/ $font_string = ''; $google_fonts = vibe_get_option('google_fonts'); if (!empty($google_fonts) && is_array($google_fonts)) { $font_weights = array(); $font_subsets = array(); foreach ($google_fonts as $font) { $font_var = explode('-', $font); if (is_array($font_weights[$font_var[0]])) { if (!in_array($font_var[1], $font_weights[$font_var[0]])) { $font_weights[$font_var[0]][] = $font_var[1]; } } else { $font_weights[$font_var[0]] = array($font_var[1]); } $font_subsets[] = $font_var[2]; } foreach ($font_weights as $font_name => $font_weight) { $strings[$font_name] = implode(',', $font_weight); } if (is_array($strings)) { foreach ($strings as $key => $str) { if ($key) { $key = str_replace(' ', '+', $key); $font_string .= $key . ':' . $str . '|'; } } } $font_subsets = array_unique($font_subsets); if (!empty($font_subsets)) { $font_string .= '&subsets=' . implode(',', $font_subsets); } $query_args = apply_filters('vibe_font_query_args', array('family' => $font_string)); wp_enqueue_style('google-webfonts', esc_url(add_query_arg($query_args, "{$protocol}://fonts.googleapis.com/css")), array(), null); } // End Google Fonts if (in_array('bbpress/bbpress.php', apply_filters('active_plugins', get_option('active_plugins')))) { wp_enqueue_style('bbpress-css', VIBE_URL . '/assets/css/bbpress.min.css', array(), WPLMS_VERSION); } if (is_rtl()) { wp_enqueue_style('rtl-css', VIBE_URL . '/assets/css/old_files/rtl.css', array('wplms-style'), WPLMS_VERSION); } if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) { wp_enqueue_style('woocommerce-css', VIBE_URL . '/assets/css/woocommerce.min.css', array(), WPLMS_VERSION); } if (in_array('sfwd-lms/sfwd_lms.php', apply_filters('active_plugins', get_option('active_plugins')))) { wp_enqueue_style('learndash-css', VIBE_URL . '/css/old_files/learndash.css', array(), WPLMS_VERSION); } wp_deregister_style('font-awesome'); wp_enqueue_style('wplms-style', VIBE_URL . '/assets/css/style.min.css', array(), WPLMS_VERSION); $theme_skin = vibe_get_customizer('theme_skin'); if (!empty($theme_skin)) { wp_enqueue_style($theme_skin, VIBE_URL . '/assets/css/' . $theme_skin . '.min.css', array(), WPLMS_VERSION); } wp_enqueue_script('nprogress-js', VIBE_URL . '/assets/js/old_files/nprogress.js', array('jquery'), WPLMS_VERSION); echo '<script type="javascript/text"> NProgress.start(); </script>'; } }
function group_layout_3_end_body() { $layout = vibe_get_customizer('profile_layout'); if ($layout != 'p3') { return; } ?> </div> </div> <?php }