stylesheet); unset($_GET['activated']); } function AttireBlockCustomizer() { wp_die(esc_html__('Attire requires PHP version 5.2 or later. Please upgrade your php version for better performance/security.', 'attire'), '', array( 'back_link' => true, )); } function AttireBlockPreview() { if (isset($_GET['preview'])) { wp_die(esc_html__('Attire requires PHP version 5.2 or later. Please upgrade your php version for better performance/security.', 'attire')); } } function AttireNotActivatedAdminNotice() { ?>

actions(); $this->filters(); } function actions() { //delete_option( 'attire_options' ); } function filters() { add_filter('attire_sidebar_styles', array($this, 'SidebarStyles')); add_filter('excerpt_more', array($this, 'attire_excerpt_more')); add_filter('excerpt_length', array($this, 'attire_excerpt_length'), 999999); add_filter('the_content', array($this, 'the_content'), 999999); } function _remove_script_version($src) { if (!strpos($src, 'googleapis')) { $parts = explode('?', $src); return $parts[0]; } return $src; } function SidebarStyles($styles) { $styles['boxed-panel'] = array( 'style_name' => __('Boxed Panel', 'attire'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ); return $styles; } function attire_excerpt_length($length) { return 30; } function attire_excerpt_more($more) { if (is_admin()) { return $more; } global $post; $more = AttireThemeEngine::NextGetOption('attire_read_more_text', __('read more...', 'attire')); return '. ' . wp_kses_post($more) . ''; } function the_content($content) { $content = str_replace([""], ["
"], $content); return $content; } static function breadcrumb() { // Settings $separator = ''; $breadcrums_id = 'breadcrumbs'; $breadcrums_class = 'breadcrumbs'; $home_title = 'Home'; // If you have any custom post types with custom taxonomies, put the taxonomy name below (e.g. product_cat) $custom_taxonomy = 'product_cat'; // Get the query & post information global $post, $wp_query; // Do not display on the homepage if (!is_front_page()) { // Build the breadcrums echo ''; } } } new AttireBase();