This file contains 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 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 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 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 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 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
jQuery('ul#activity-stream').on('DOMNodeInserted', function() { | |
// Your jQuery Magic here | |
}); |
This file contains 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 if ( have_rtmedia () ) { ?> | |
<div class="widget"> | |
<h4>Recent Photos</h4> | |
<div class="rtmedia-container"> | |
<ul class="rtmedia-list rtmedia-list-media <?php echo rtmedia_media_gallery_class (); ?>"> | |
<?php while ( have_rtmedia () ) : rtmedia (); ?> | |
<li class="rtmedia-list-item" id="<?php echo rtmedia_id(); ?>"> | |
<a href ="<?php rtmedia_permalink(); ?>" title="<?php echo rtmedia_title(); ?>" class="<?php echo apply_filters( 'rtmedia_gallery_list_item_a_class', 'rtmedia-list-item-a' ); ?>"> | |
<div class="rtmedia-item-thumbnail"> |
This file contains 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 bp_tricks_member_intro_text() { { ?> | |
<script type='text/javascript'> | |
jQuery( document ).ready(function() { | |
// Member Directory Message | |
if (!jQuery.cookie('member-alert-message')) { | |
jQuery( "#member-welcome-message" ).show(); | |
jQuery("#expand-hidden").click(function() { | |
jQuery( "#member-welcome-message" ).slideUp( "slow" ); | |
// set the cookie for 24 hours |
This file contains 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 | |
//Remove the BP widgets everywhere except the main BuddyPress site. | |
add_action( 'bp_include', 'firmasite_bp_include_remove_widgets', 5 ); // priority is crucial | |
function firmasite_bp_include_remove_widgets() { | |
if ( !bp_is_root_blog() && !bp_is_multiblog_mode() ) | |
remove_all_actions( 'bp_register_widgets' ); | |
} | |
?> |
This file contains 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 | |
/** | |
* Add class when it's not a BuddyPress page | |
*/ | |
function cfc_base_wordpress_page( $classes ) | |
{ | |
if ( ! is_buddypress() ) { | |
$classes[] = 'wordpress-page'; | |
} |
OlderNewer