This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function setup_cover_profile_nav(){ | |
global $bp; | |
$profile_link = bp_loggedin_user_domain() . $bp->profile->slug . '/'; | |
$args = array( | |
'name' => 'Profile Cover', | |
'slug' => 'change-cover', | |
'parent_url' => $profile_link, | |
'parent_slug' => $bp->profile->slug, | |
'screen_function' => 'screen_change_cover', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Block certain activity types from being added | |
function bp_activity_dont_save( $activity_object ) { | |
$exclude = array( | |
'updated_profile', | |
'new_member', | |
'new_avatar', | |
'friendship_created', | |
'joined_group' | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_template_part('templates/head'); ?> | |
<?php if ( function_exists( 'rtmedia_autoloader' ) && ! $rt_ajax_request ): ?> | |
<body <?php body_class(); ?>> | |
<!--[if lt IE 8]><div class="alert alert-warning"><?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'roots'); ?></div><![endif]--> | |
<?php | |
do_action('get_header'); | |
// Use Bootstrap's navbar if enabled in config.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = array( | |
'include' => "4,5,2", | |
'max' => 5 | |
); | |
if ( bp_has_groups( $args) ) : | |
?> | |
<ul id="groups-list" class="item-list"> | |
<?php while ( bp_groups() ) : bp_the_group(); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Pass variables from Titan Option to WP-LESS. This seems tricky. | |
*/ | |
function cf_theme_variables() | |
{ | |
if (class_exists('WPLessPlugin')){ | |
$titan = TitanFramework::getInstance( 'cfcommunity-roots' ); | |
$less = WPLessPlugin::getInstance(); | |
$primary_brand = $titan->getOption( 'my_text_option' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$currentlang = get_bloginfo('language'); | |
?> | |
<nav class="collapse navbar-collapse" role="navigation"> | |
<?php if($currentlang=="en-US"):?> | |
<?php | |
if (has_nav_menu('primary_navigation')) : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#this-is-my-section-link">This goes straight to the section</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2 id="this-is-my-section-link">This is my section title</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[feature] | |
infinity-icon-font = off | |
infinity-icons = off |