'13172', 'slug' => 'airin-blog', 'type' => 'theme', 'public_key' => 'pk_3426f8c7139fd4fc2d7cdf303ed51', 'is_premium' => false, 'has_addons' => true, 'has_paid_plans' => true, 'has_affiliation' => 'all', 'menu' => array( 'slug' => 'dmcwzmulti_page_settings', 'support' => false, 'parent' => array( 'slug' => 'themes.php', ), ), 'navigation' => 'tabs', 'is_live' => true, ) ); } return $airinblog_fs; } // Init Freemius. airinblog_fs(); // Signal that SDK was initiated. do_action( 'airinblog_fs_loaded' ); } } // If SDK code change, add - 'navigation' => 'tabs' // Remove monthly plans // airinblog_fs()->add_filter('pricing/show_annual_in_monthly', '__return_false'); // Language TABs Freemius fs_override_i18n( array( 'contact-us' => esc_html__( 'Contact', 'airin-blog' ), 'account' => esc_html__( 'Account', 'airin-blog' ), 'pricing' => esc_html__( 'Pricing', 'airin-blog' ), 'add-ons' => esc_html__( 'Add-Ons', 'airin-blog' ), 'affiliation' => esc_html__( 'Affiliate program', 'airin-blog' ), ), 'airin-blog' ); // Files connection require get_template_directory() . '/inc/general.php'; /* ------------------------------------------------------------------------------ * Attention! * Do not edit this file, after updating all changes will be lost * To add your own functions, use a special free plugin * The plugin can be downloaded from web-zone.org * ------------------------------------------------------------------------------ */ // Fix WordPress 6.7 if ( version_compare( get_bloginfo( 'version' ), '6.7', '==' ) ) { // Urgent fix for language translations after the release of WordPress 6.7 add_action( 'init', function () { global $l10n, $wp_textdomain_registry; $domain = 'airin-blog'; $locale = get_locale(); $wp_textdomain_registry->set( $domain, $locale, get_template_directory() . '/languages' ); if ( isset( $l10n[$domain] ) ) { unset($l10n[$domain]); } load_theme_textdomain( $domain, get_template_directory() . '/languages' ); } ); } else { // Translation the theme function airinblog_fun_language_theme() { load_theme_textdomain( 'airin-blog', get_template_directory() . '/languages' ); } add_action( 'init', 'airinblog_fun_language_theme' ); } // Fix WordPress 6.7 + if ( version_compare( get_bloginfo( 'version' ), '6.7', '>=' ) ) { // Urgent fix for images after the release of WordPress 6.7 + add_filter( 'wp_content_img_tag', static function ( $image ) { return str_replace( ' sizes="auto, ', ' sizes="', $image ); } ); add_filter( 'wp_get_attachment_image_attributes', static function ( $attr ) { if ( isset( $attr['sizes'] ) ) { $attr['sizes'] = preg_replace( '/^auto, /', '', $attr['sizes'] ); } return $attr; } ); }