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_action( 'shoestrap_pre_wrap', 'custom_secondary_navbar', 1 ); | |
function custom_secondary_navbar() { | |
global $ss_settings, $ss_framework, $ss_menus; | |
if ( has_nav_menu( 'secondary_navigation' ) ) : ?> | |
<?php echo $ss_framework->open_container( 'div' ); ?> | |
<header class="secondary navbar navbar-default <?php echo $ss_menus->navbar_class( 'secondary' ); ?>" role="banner"> | |
<button data-target=".nav-secondary" data-toggle="collapse" type="button" class="navbar-toggle"> |
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 | |
/* | |
Plugin Name: PMPro BuddyPress Customizations | |
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-buddypress-customizations/ | |
Description: Example code to lock down parts of BuddyPress with PMPro | |
Version: 0.2 | |
Author: Stranger Studios | |
Author URI: http://www.strangerstudios.com | |
*/ | |
/* |
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 | |
/*-----------------------------------------------------------------------------------*/ | |
/* Conditional Logic to Detect Various Event Related Views/Pages | |
/*-----------------------------------------------------------------------------------*/ | |
if( tribe_is_month() && !is_tax() ) { // Month View Page | |
echo 'were on the month view page'; | |
} elseif( tribe_is_month() && is_tax() ) { // Month View Category Page |
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 | |
/* | |
* The Header template | |
*/ | |
function header_branding() { | |
global $ss_settings; | |
if ( $ss_settings['header_toggle'] == 1 ) { | |
echo '<div class="before-main-wrapper">'; |
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 boxed_secondary_navbar() { | |
global $ss_settings, $ss_framework; | |
if ( has_nav_menu( 'secondary_navigation' ) ) : ?> | |
<?php echo $ss_framework->open_container( 'div', null, 'boxed-container' ); ?> | |
<header class="secondary navbar navbar-default <?php echo Shoestrap_Menus::navbar_class( 'secondary' ); ?>" role="banner"> | |
<button data-target=".nav-secondary" data-toggle="collapse" type="button" class="navbar-toggle"> |
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
// setup one language for admin and the other for theme | |
// must be called before load_theme_textdomain() | |
function set_my_locale($locale) { | |
$locale = ( is_admin() ) ? "en_US" : "it_IT"; | |
setlocale(LC_ALL, $local ); | |
return $locale; | |
} | |
add_filter( 'locale', 'set_my_locale' ); |
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 theme support for infinite scroll. | |
* | |
* @uses add_theme_support | |
* @return void | |
*/ | |
function maera_infinite_scroll_init() { | |
add_theme_support( 'infinite-scroll', array( | |
'type' => 'scroll', |
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 add_jumbotron_paddings() { | |
if ( dynamic_sidebar('jumbotron') && is_active_sidebar('jumbotron') ) { | |
$custom_css = "<style>.jumbotron{ padding-left: 0px; padding-right: 0px; padding-bottom: 0px; }</style>"; | |
echo $custom_css; | |
} | |
} | |
add_action( 'wp_head', 'add_jumbotron_paddings' ); |
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_filter( 'shoestrap_nav_toggler', 'my_shoestrap_nav_toggler' ); | |
function my_shoestrap_nav_toggler() { | |
echo '<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-main, .nav-extras"><span class="sr-only">' . __( 'Toggle navigation', 'shoestrap' ) . '</span><span>' . __( 'MENU', 'shoestrap' ) . '</span></button>'; | |
} |