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
.section-filtering .filtering-image { | |
overflow: hidden; /* Crops the image */ | |
} | |
.section-filtering .filtering-image img { | |
max-width: 100% !important; /* Overrides max width */ | |
max-height: none !important; /* Overrides max height */ | |
width: 250px; /* Width of image */ | |
} |
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 a certain page, then display posts authored by the logged in user | |
$page_title = 'Contributors Page'; | |
if ( is_user_logged_in() && is_page($page_title) ) { | |
global $current_user; | |
get_currentuserinfo(); | |
echo 'User ID: ' . $current_user->ID . "\n"; | |
$args=array( | |
'author' => $current_user->ID, | |
'post_type' => 'post', |
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 to Custom LESS/CSS Box in Custom Tab DMS */ | |
/* FullTabs Tab Title Bold */ | |
.section-fulltabs .nav a { | |
font-weight: bold; | |
} | |
/* QuickTabs Tab Title Bold */ |
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
/* Change Tabtastic Tab Nav to a Heading like h5 */ | |
/* Put code in Custom LESS/CSS Box in DMS Custom Tab */ | |
/* Section FullTabs */ | |
.section-fulltabs .nav a { | |
font-family: @headingsFontFamily; /* From DMS Typography Settings */ | |
font-size: @h5Size; /* Grab heading size, can use @h1Size through @h6size */ | |
font-weight: @headingsFontWeight; /* From DMS Typography Settings */ | |
} |
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 | |
// Any Post Widget | |
class BA_Template_Widget extends WP_Widget { | |
function BA_Template_Widget() { | |
$widget_ops = array('classname' => 'ba-superwidget', 'description' => 'Shows social icons' ); | |
$this->WP_Widget('BA_Template_Widget', 'SW - Template Widget', $widget_ops); | |
} |
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
function draw_gallery() { | |
if( get_query_var('page') ) { | |
$page = get_query_var( 'page' ); | |
} else { | |
$page = 1; | |
} | |
// Variables | |
$row = 0; | |
$images_per_page = 12; // How many images to display on each 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 | |
function section_persistent() { | |
add_filter('pless_vars',array($this,'customless_vars')); | |
} | |
// Custom LESS Vars | |
function customless_vars($less) { | |
$less['ba-ss-thumbs-height'] = $this->opt('ba_ss_thumbs_height') ? $this->opt('ba_ss_thumbs_height') : '341px'; | |
$less['ba-ss-thumbs-margin'] = $this->opt('ba_ss_thumbs_margin') ? $this->opt('ba_ss_thumbs_margin') : '20'.'px'; |