ID, 'accesspress_staple_sidebar_layout', true ); if(empty($post_class)){ $post_class = 'right-sidebar'; $classes[] = $post_class;} else{ $post_class = get_post_meta( $post -> ID, 'accesspress_staple_sidebar_layout', true ); $classes[] = $post_class;} }else{ $classes[] = 'right-sidebar'; } return $classes; } add_filter('body_class', 'accesspress_sidebar_layout'); function accesspress_bxslidercb(){ $accesspress_slider_category = of_get_option('cagegory_as_slider'); $accesspress_show_pager = (!of_get_option('show_pager') || of_get_option('show_pager') == "yes") ? "true" : "false"; $accesspress_show_controls = (!of_get_option('show_controls') || of_get_option('show_controls') == "yes") ? "true" : "false"; $accesspress_auto_transition = (!of_get_option('slider_auto_transition') || of_get_option('slider_auto_transition') == "yes") ? "true" : "false"; $accesspress_slider_transition = (!of_get_option('slider_transition')) ? "fade" : of_get_option('slider_transition'); $accesspress_slider_speed = (!of_get_option('slider_speed')) ? "5000" : of_get_option('slider_speed'); $accesspress_slider_pause = (!of_get_option('slider_pause')) ? "5000" : of_get_option('slider_pause'); $accesspress_show_caption = of_get_option('show_slider_caption'); ?>
strlen($accesspress_excerpt)){ $accesspress_excerpt.= "..."; } return $accesspress_excerpt; } //Dynamic styles on header function accesspress_header_styles_scripts(){ $favicon = of_get_option('favicon'); $custom_css = of_get_option('custom_code_css'); $cta_bg_v = of_get_option('call_to_action_bg'); $custom_js = of_get_option('custom_code_analytics'); $image_url = get_template_directory_uri()."/images/"; if(!empty($favicon)): echo "\n"; endif; echo "\n"; echo "\n"; } add_action('wp_head','accesspress_header_styles_scripts'); /** * This file represents an example of the code that themes would use to register * the required plugins. * * It is expected that theme authors would copy and paste this code into their * functions.php file, and amend to suit. * * @package TGM-Plugin-Activation * @subpackage Example * @version 2.4.2 * @author Thomas Griffin