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
/** | |
* Makes a BB Column clickable. | |
* Pre-requisite: There must be an A Tag contained within the column element. | |
*/ | |
jQuery(document).ready(function($){ | |
$('.clickable-col').css('cursor', 'pointer'); | |
$('.clickable-col').on('click', function(event){ | |
$(this).find('a')[0].click(); | |
}); |
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 Settings Pages to Customizer | |
//Styles Page | |
add_filter( 'mb_settings_pages', function ( $settings_pages ) { | |
$settings_pages[] = array( | |
'id' => 'fm_styles_panel', | |
'option_name' => 'theme_mods_page-builder-framework', | |
'menu_title' => 'Style Settings', | |
'parent' => 'themes.php', | |
'customizer' => 'true', |
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
//Register Settings pages for styles and info | |
add_filter( 'mb_settings_pages', function ( $settings_pages ) { | |
$settings_pages[] = array( | |
'id' => 'fm_styles_panel', | |
'option_name' => 'theme_mods_page-builder-framework', | |
'menu_title' => 'Style Settings', | |
'parent' => 'themes.php', | |
'customizer' => 'true', | |
); |
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
/* Tutor Backend Colors */ | |
#tutor-course-topics h2:before, #tutor-instructors h2:before { | |
color: #5ACDC1; | |
} | |
a.tutor-button.bordered-button, | |
.tutor-button.bordered-button, | |
a.tutor-btn.bordered-btn, | |
.tutor-btn.bordered-btn{ |
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
//Add Category Selector | |
add_filter( 'rwmb_meta_boxes', 'cat_select_register_meta_boxes' ); | |
function cat_select_register_meta_boxes( $meta_boxes ) { | |
$meta_boxes[] = array ( | |
'title' => 'Some Extra Info', | |
'id' => 'post-purpose-select-title', | |
'post_types' => array( | |
0 => 'post', | |
), | |
'context' => 'normal', |
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 ( $mailto = $template::get_mailto( $group_profile ) ) : ?> | |
<div class="ccbpress-group-leader-contact"> | |
<a href="https://rockbridge.cc/full-page-forms/join-a-group/?rb_group_name=<?php echo urlencode( $item->name );?>&group_leader_email=<?php echo urlencode ( $group_profile->main_leader_email );?>&rb_campus_name=<?php echo urlencode ( $group_profile->campus ); ?>" target="_blank">Group Signup</a> | |
</div> | |
<?php endif; ?> | |
// Make sure the ?param-name matches your dynamic population parameter name in the corresponding Gravity Form |
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
//Create Resource Post Type | |
function register_my_resources_cpt() { | |
$labels = array( | |
"name" => __( "Resources", "" ), | |
"singular_name" => __( "Resource", "" ), | |
); | |
$args = array( |
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
// register new taxonomy which applies to attachments | |
function reach_add_media_taxonomy() { | |
$labels = array( | |
'name' => 'Media Type', | |
'singular_name' => 'Media Type', | |
'search_items' => 'Search Media Types', | |
'all_items' => 'All Media Types', | |
'parent_item' => 'Parent Media Type', | |
'parent_item_colon' => 'Parent Media Type:', |
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
// Add Campuses Taxonomy | |
function register_my_taxes_campus() { | |
$labels = array( | |
"name" => __( "Campus" ), | |
"singular_name" => __( "Campus" ), | |
'new_item_name' => __( 'Add New Campus', 'text_domain' ), | |
'add_new_item' => __( 'Add New Campus', 'text_domain' ), | |
NewerOlder