ÿØÿà JFIF    ÿÛ „  ( %!1"%)+...383-7(-.+  -%%--------+------------/----------------------------ÿÀ  ¶" ÿÄ     ÿÄ @    !1AQaq‘¡"±ÁÑð2’BRráS‚ñ3b¢CT²Ò #cÿÄ    ÿÄ '   1!AQ2a"‘±#ÿÚ   ? ò(/p‘—–¢·,M|¯G»R£üešT. ôŸEoCFñ‡ 4ÔkåóxR|µÁ¨ÓDà!Ç´µ˜‡p ÍQ‹§!þž^õWsŒy  åÁ§$á«%ºq˜™JyyË0y«^Ϗ -3ÃÏËÈ£Æ\P’ä„s&•‹Üs üô'àWt¹pñCp$bÚF`·7.^)¾!)ÒÙ˜–ÅÏš^h¾ø³·ìe±ŒaeÖ—Í,e=B}Jéߦ$$½—šÙÜCC¯¶è8β–Åkèwx LÉngT±æ¹£Ócœ¿Í/©Éÿ ‰ÚCÒ­mq;Tt¶–}0"zÖPcd1š­¤tˆ„ÐÓâqú[™öUCŠ2޿د­É(¸ßúçšmW,Ò ºf‹Ån™ÄLêÁ8üÁkÁ€L¥ÍuJ1œôrÂSŒÓöt!7EUíïb)AËi¬â-ÙHk8òÁiXYwÅ)O^"ÇØriÛô{»wRUKÙÏÚlÓ¬€‚’שT ] ªb—ÊîKC^×M“xùäñz¬zJ× {4[¹M'IÆeH1LCWÕ]œûº WDæà°OÅ‚¹c²ÞuA–rL`HšpCez‡V’— Ž‚Ë„–ñ­'µR0ÕÖ=À:±G»C\nÆÉ5*¢ †3šhQ4ýÒi$Õ1"Ü]¢p-q3zcQ$ªö¨¥æf›‘»´ÝÚHá„e²JÇ–iÊ:·à¬Øc5Åk»Laª*wi [0Ówk ¦a¦0Õ²ÅÅ‚T¸’³q:Æ<¹ú Ò˜Æ}2VE•Ѐp¡Ô3Úº …h³^LJºçì¥Ánó|˜ÖˆÎˆ+« ¦dø‘Mº–d\ªDðÛ„Ì×LÝ——Ð9Ç|•FèçVm™¨€™3õS–9Äå¢<̉Ìm¢±`·º˜&Z²ž Ë®D«¶»6™‰©­HÈ Àá«h­i³04æ’hxœi3ï¨(ÓL·†‹¶ËpŒ ƒÜÒ? :õdsÀ –3æÓ·Üjâ¬9—]8n¼&]I F£¼…ì–—Œ0v°LǐÅfÛ2TÖ’aµ˜N@ÖBSÏ^à´4-±°b×nÈÈœÆD=KdŒø…ÄÈK,›ÖR§fjü$^ÔÎ!„6^ s:Üun\ôkCÞò÷<—Lúl Í›G¹ÀPá¼Nc¡šÒ…ÙWͳœ±vÊáЄ×9‹P‰cEØ‘™›µŸP<×g1 º©Ø¬wiÁ^l5× I/';Ë+´Z‡ÓÄFÕp[Èð’ HÄ ó 9¬Dl4“é±Ï”V=^Hð;žLädÉa‚°Ë,#/Ž~²BÔÛ QãñQtIeórVB,ÏÂf‹4#Μc‹É3ZIÖ Œ¢¥·üxa‡Ãçè„jŠ[5 Ä!U?,3žÎ×…ðdÓ÷háŠA‰ìÄ4÷ÃÜZÃE{‰®+W\ZÍE[‰»µk»MÝ­`¢©†˜ÃV‹-f¢¡†¢a«eŠ%«Y¨©q%jâd,Ôq`) ¤¦…šˆ ¦E>0Ùb²t–Ÿ  ÷jsςҒKÈcø(é›;k(’#ôŒQ ™C> õ³M9óºÆµ¤çâ;uÀ)5>RÔ¸fÓ~Ȧ—’-$fe«"FâUˆÊwµPÏu w+"åÉó¨6s™Û9(À¨ù©hE°½†n`m~“@©›p!Vkhµ Á1šbEqqÊ@ºèl›2 –Yã%‘‚hÛ{a¶‡ÅÞM²¬çL34®Çl]®‹ŽØŒm'RÜe35æöˆ­Á­ cP9šeÁköo´L³Ì=p8]”‡B¶,šº|ɏdzXˆØk*ÇÚ{#ñ‰pã(€¶‡9ý'šÜ³½¯kƒ†Â’ëSOƒ•Å®H6+a¢µˆ‹Y¨b˜b+XˆÖ!°u!¢"µˆˆn2ˆ Å0Ä`Å Ô®c(ÓÜGº•Ä»Œ âWî%q.áÐÄ÷î%umÍ£+ÜQ,Vn¦-GphU¸¢X­&,Gt ·K¢ÅÅ·¥RÄÊÉbKn N­R2g$VµÕó Qr#–ÓZUÏð0ÎtÙÀœz ëöo“Îk¯n„T°"SÞ+³/…€½"ižãO%Í%&Δâ‘ËØ´IˆÓ°Ë‰ÞM3.™yçÁzit›`4C`k¢¼á!álÄï sÂ[×!¤l¾æo"ƒIÔ'@ªu)3›ô®“@Z à¾] üœ'‡4¸PÞkÁ-qÄH‰ÓÍBd´ÿ —¹°ÄA&ÊUC„öz‚‚RæŠtf¬>˜ÑidšEçÑL÷áý¡V±h§­c¿¥¨ƒ@g¼…Ýö^ÞËc.ž„æ“I[ ª+·zÐÒÚ,½Ð»¶€C›7jk$๖€Ž¾ÅÙpp¶ÍþéΤ ½ØÎŒq ñpæžÅ¥#Øâ49ÃÂK^MYV“,¶Éz_òæ:…;Õ«¦I3âJ£¤û5$7Èxün\â]Êe¯(Ÿ&Ž‹¶2<6Ćf× æ¢ƱqWı[(ÙÂŽç‚T7¨@ÈÉÍß‚ïÙ"&3TYlGށ†)†#5ŠA©^T2ÆÁ†)©†©†¤yGXÁ†©"†)©¼ÅV WS†#©]R–r‹q5ÕbâWþBh¯u+ªÅÄ×ü„nÑ^êkªÁj‰jeœWˆÕÕ`µDµ2Ì+Ä µDµµ5Ô{¤Þ0RF’H÷AÛ<ÊÁ§ ƈæ0Ñ£ê4 öÚµ[¬/1²€â<-¬šö²r×0o×w ´xÐÒË„ g01¬„åEM蛇Ã\6µE›‘fÙO k÷CºnÓ1`iîÒ² áÂ!ÑLÄÿ ³¬\õ*:M=Ç»c‹2[‰ØsÕLò\ŒK L^™üÄN\¶#» Ç\……ßïIœÉ$¸ÎñÍ®ÔHÇ Ûí/´>Li”„†g^$ 7NÍÑÑ2M2ªNg=k½Ð}Ÿl6‡ —JWˆ”ÞéT·+µ¦üÂFè¢Vs6ýÆ4»2+2IÝ9ô9®ÇGÙÇ1+Ä8;*Õ§ž½D*îÑWÚçá3Ma¤·ˆ¥t}š²Ü…Q+Æüµ8HíS”üxGéÁˆ¦Ël„éÈ 5 µÄƒ6äÜ(kIš¯S†fÖ&¸®×v|Äyˆ*禌Éù@7-®Ä[]ÎÖ¿ê`º…=:…žJVnݳvðÖKE¼‚ »mà ÷f®:Ë ™–4rð¡4` ܹçž~‹C=œ…¾Ïj|VDtK.ƒ"9 Ï ­–éXá³6WÒïIL-Ї Ç home/smkb8269/public_html/wp-content/themes/astra/inc/class-astra-after-setup-theme.php000064400000026211152266260150025023 0ustar00get() ); } // Switch default core markup for search form, comment form, and comments. // to output valid HTML5. // Added a new value in HTML5 array 'navigation-widgets' as this was introduced in WP5.5 for better accessibility. add_theme_support( 'html5', array( 'navigation-widgets', 'search-form', 'gallery', 'caption', 'style', 'script', ) ); // Post formats. add_theme_support( 'post-formats', array( 'gallery', 'image', 'link', 'quote', 'video', 'audio', 'status', 'aside', ) ); // Add theme support for Custom Logo. add_theme_support( 'custom-logo', array( 'width' => 180, 'height' => 60, 'flex-width' => true, 'flex-height' => true, ) ); // Customize Selective Refresh Widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /** * This theme styles the visual editor to resemble the theme style, * specifically font, colors, icons, and column width. */ /* Directory and Extension */ $dir_name = 'minified'; $file_prefix = '.min'; if ( apply_filters( 'astra_theme_editor_style', true ) ) { add_editor_style( 'assets/css/' . $dir_name . '/editor-style' . $file_prefix . '.css' ); } if ( apply_filters( 'astra_fullwidth_oembed', false ) ) { // Filters the oEmbed process to run the responsive_oembed_wrapper() function. add_filter( 'embed_oembed_html', array( $this, 'responsive_oembed_wrapper' ), 10, 3 ); } else { // Enable support for responsive embedded content. add_theme_support( 'responsive-embeds' ); } // WooCommerce. add_theme_support( 'woocommerce' ); // Rank Math Breadcrumb. if ( true === apply_filters( 'astra_rank_math_theme_support', true ) ) { add_theme_support( 'rank-math-breadcrumbs' ); } // Native AMP Support. if ( true === apply_filters( 'astra_amp_support', true ) ) { add_theme_support( 'amp', apply_filters( 'astra_amp_theme_features', array( 'paired' => true, ) ) ); } // Remove Template Editor support until WP 5.9 since more Theme Blocks are going to be introduced. remove_theme_support( 'block-templates' ); // Let WooCommerce know, Astra is not compatible with New Product Editor. add_filter( 'option_woocommerce_feature_product_block_editor_enabled', '__return_false' ); add_filter( 'woocommerce_create_pages', array( $this, 'astra_enforce_woo_shortcode_pages' ), 99 ); if ( function_exists( 'wp_theme_has_theme_json' ) && wp_theme_has_theme_json() ) { add_filter( 'wp_theme_json_data_theme', array( $this, 'modify_theme_palette_names' ) ); } } /** * Modify theme palette names. * * @param WP_Theme_JSON_Data $theme_json settings. * @return WP_Theme_JSON_Data */ public function modify_theme_palette_names( $theme_json ) { /** @psalm-suppress UndefinedDocblockClass */ $json_data = $theme_json->get_data(); $new_palette_data = array(); if ( ! empty( $json_data['settings']['color']['palette']['theme'] ) ) { $palette = $json_data['settings']['color']['palette']['theme']; $color_labels = Astra_Global_Palette::get_palette_labels(); // Use the reusable function for labels. $name_pair = array(); foreach ( $color_labels as $index => $label ) { $name_pair[ 'ast-global-color-' . $index ] = $label; } foreach ( $palette as $index => $color_data ) { $slug = ! empty( $color_data['slug'] ) ? $color_data['slug'] : ''; $new_palette_data[ $index ] = array( 'name' => isset( $name_pair[ $slug ] ) ? $name_pair[ $slug ] : '', 'slug' => $slug, 'color' => isset( $color_data['color'] ) ? $color_data['color'] : '', ); } } if ( ! empty( $new_palette_data ) ) { $new_data = array( 'version' => 1, 'settings' => array( 'color' => array( 'palette' => array( 'theme' => $new_palette_data, ), ), ), ); /** @psalm-suppress UndefinedDocblockClass */ $theme_json->update_with( $new_data ); } return $theme_json; } /** * Initialize theme. * * @return void * * @since 4.8.8 */ public function init() { /** * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on Next, use a find and replace * to change 'astra' to the name of your theme in all the template files. */ load_theme_textdomain( 'astra', ASTRA_THEME_DIR . '/languages' ); } /** * Set the $content_width global variable used by WordPress to set image dimennsions. * * @since 1.5.5 * @return void */ public function setup_content_width() { global $content_width; /** * Content Width */ if ( ! isset( $content_width ) ) { if ( is_home() || is_post_type_archive( 'post' ) ) { $blog_width = astra_get_option( 'blog-width' ); if ( 'custom' === $blog_width ) { $content_width = apply_filters( 'astra_content_width', astra_get_option( 'blog-max-width', 1200 ) ); } else { $content_width = apply_filters( 'astra_content_width', astra_get_option( 'site-content-width', 1200 ) ); } } elseif ( is_single() ) { if ( 'post' === get_post_type() ) { $single_post_max = astra_get_option( 'blog-single-width' ); if ( 'custom' === $single_post_max ) { $content_width = apply_filters( 'astra_content_width', astra_get_option( 'blog-single-max-width', 1200 ) ); } else { $content_width = apply_filters( 'astra_content_width', astra_get_option( 'site-content-width', 1200 ) ); } } // For custom post types set the global content width. $content_width = apply_filters( 'astra_content_width', astra_get_option( 'site-content-width', 1200 ) ); } else { $content_width = apply_filters( 'astra_content_width', astra_get_option( 'site-content-width', 1200 ) ); } } } /** * Adds a responsive embed wrapper around oEmbed content * * @param string $html The oEmbed markup. * @param string $url The URL being embedded. * @param array $attr An array of attributes. * @param bool $core_yt_block Whether the oEmbed is being rendered by the core YouTube block. * * @return string Updated embed markup. */ public function responsive_oembed_wrapper( $html, $url, $attr, $core_yt_block = false ) { $add_astra_oembed_wrapper = apply_filters( 'astra_responsive_oembed_wrapper_enable', true ); $ast_embed_wrapper_class = apply_filters( 'astra_embed_wrapper_class', '' ); $allowed_providers = apply_filters( 'astra_allowed_fullwidth_oembed_providers', array( 'vimeo.com', 'youtube.com', 'youtu.be', 'wistia.com', 'wistia.net', 'spotify.com', 'soundcloud.com', 'animoto.com', 'cloudup.com', 'poll.fm', 'dai.ly', 'mixcloud.com', 'pca.st', 'reddit.com', 'scribd.com', 'slideshare.net', 'speakerdeck.com', 'tumblr.com', 'videopress.com', 'wordpress.org', 'wordpress.tv', 'imgur.com', 'ted.com', ) ); if ( astra_strposa( $url, $allowed_providers ) && $add_astra_oembed_wrapper ) { if ( $core_yt_block ) { $embed_html = wp_oembed_get( $url ); $html = false !== $embed_html ? '
' . $embed_html . '
' : ''; } else { $html = '' !== $html ? '
' . $html . '
' : ''; } } elseif ( '' === $html || $url === trim( $html ) ) { $embed_html = wp_oembed_get( $url, array( 'width' => 600 ) ); $html = $embed_html ? $embed_html : $url; wp_maybe_enqueue_oembed_host_js( $html ); } return $html; } /** * Enforce WooCommerce shortcode pages due to following reasons. * * 1. In WooCommerce 8.3 version cart & checkout pages are directly added with blocks and not with shortcodes. * 2. Due to which most of Astra extended features are not working on cart & checkout pages. * * This is temporary workaround, once Astra ready with WooCommerce 8.3 version, this will be removed. * * @since 4.5.1 * @param array $pages_data Array of WooCommerce pages. * * @return array */ public function astra_enforce_woo_shortcode_pages( $pages_data ) { $pages_data['cart']['content'] = '[woocommerce_cart]'; $pages_data['checkout']['content'] = '[woocommerce_checkout]'; return $pages_data; } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_After_Setup_Theme::get_instance();