/** * Add the CSS for the excerpt to PostGrid's CSS * * @access public * @since 1.0.0 * @param $css_output String - The CSS that exists already up until this filter has run * @return $css_output String - The incoming CSS with our new CSS for the excerpt appended. */ function mp_stacks_postgrid_excerpt_css($css_output, $post_id) { $excerpt_css_defaults = array('color' => NULL, 'size' => 15, 'lineheight' => 19, 'padding_top' => 10, 'background_padding' => 5, 'background_color' => '#fff', 'background_opacity' => 100, 'placement_string' => 'below_image_left'); return $css_output .= mp_stacks_grid_text_css($post_id, 'postgrid_excerpt', 'mp-stacks-postgrid-item-excerpt', $excerpt_css_defaults); }
/** * Add the CSS for the date to PostGrid's CSS * * @access public * @since 1.0.0 * @param $css_output String - The CSS that exists already up until this filter has run * @return $css_output String - The incoming CSS with our new CSS for the date appended. */ function mp_stacks_postgrid_date_css($css_output, $post_id) { $date_css_defaults = array('color' => '#000', 'size' => 13, 'lineheight' => 13, 'padding_top' => 10, 'background_padding' => 5, 'background_color' => '#fff', 'background_opacity' => 100, 'placement_string' => 'over_image_top_left'); return $css_output .= mp_stacks_grid_text_css($post_id, 'postgrid_date', 'mp-stacks-postgrid-item-date', $date_css_defaults); }