/** * Stego functions and definitions. * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package stego */ define( 'STEGO_VERSION', '1.1.1' ); /** * Base */ if ( ! defined( 'STEGO_SITE_IDENTITY_CUSTOM_LOGO_SIZE' ) ) { define( 'STEGO_SITE_IDENTITY_CUSTOM_LOGO_SIZE', 155 ); } if ( ! defined( 'STEGO_BORDER_RADIUS' ) ) { define( 'STEGO_BORDER_RADIUS', 0 ); } if ( ! defined( 'STEGO_BORDER_WIDTH' ) ) { define( 'STEGO_BORDER_WIDTH', 2 ); } /** * Colors */ if ( ! defined( 'STEGO_GRAY_DARKEST' ) ) { define( 'STEGO_GRAY_DARKEST', '#0F0F10' ); } if ( ! defined( 'STEGO_GRAY_DARKER' ) ) { define( 'STEGO_GRAY_DARKER', '#28282A' ); } if ( ! defined( 'STEGO_GRAY_DARK' ) ) { define( 'STEGO_GRAY_DARK', '#414143' ); } if ( ! defined( 'STEGO_GRAY' ) ) { define( 'STEGO_GRAY', '#747477' ); } if ( ! defined( 'STEGO_GRAY_LIGHT' ) ) { define( 'STEGO_GRAY_LIGHT', '#DCDCDA' ); } if ( ! defined( 'STEGO_GRAY_LIGHTER' ) ) { define( 'STEGO_GRAY_LIGHTER', '#EBEBEA' ); } if ( ! defined( 'STEGO_GRAY_LIGHTEST' ) ) { define( 'STEGO_GRAY_LIGHTEST', '#F4F0EA' ); } if ( ! defined( 'STEGO_BRAND_PRIMARY' ) ) { define( 'STEGO_BRAND_PRIMARY', '#28282A' ); } if ( ! defined( 'STEGO_BRAND_PRIMARY_HOVER' ) ) { define( 'STEGO_BRAND_PRIMARY_HOVER', '#0F0F10' ); } if ( ! defined( 'STEGO_BRAND_SECONDARY' ) ) { define( 'STEGO_BRAND_SECONDARY', '#c7a17a' ); } if ( ! defined( 'STEGO_BRAND_SECONDARY_HOVER' ) ) { define( 'STEGO_BRAND_SECONDARY_HOVER', '#cfad8c' ); } if ( ! defined( 'STEGO_BODY_COLOR' ) ) { define( 'STEGO_BODY_COLOR', STEGO_GRAY_DARK ); } if ( ! defined( 'STEGO_BODY_BACKGROUND' ) ) { define( 'STEGO_BODY_BACKGROUND', STEGO_GRAY_LIGHTEST ); } if ( ! defined( 'STEGO_LINK_COLOR' ) ) { define( 'STEGO_LINK_COLOR', STEGO_BRAND_PRIMARY ); } if ( ! defined( 'STEGO_LINK_HOVER_COLOR' ) ) { define( 'STEGO_LINK_HOVER_COLOR', STEGO_BRAND_PRIMARY_HOVER ); } /** * Typography */ if ( ! defined( 'STEGO_FONT_FAMILY_BASE' ) ) { define( 'STEGO_FONT_FAMILY_BASE', 'Jost' ); } if ( ! defined( 'STEGO_COLOR' ) ) { define( 'STEGO_COLOR', STEGO_BODY_COLOR ); } if ( ! defined( 'STEGO_HEADINGS_FONT_FAMILY' ) ) { define( 'STEGO_HEADINGS_FONT_FAMILY', 'Playfair Display' ); } if ( ! defined( 'STEGO_HEADINGS_FONT_WEIGHT' ) ) { define( 'STEGO_HEADINGS_FONT_WEIGHT', '900' ); } if ( ! defined( 'STEGO_HEADINGS_COLOR' ) ) { define( 'STEGO_HEADINGS_COLOR', STEGO_GRAY_DARKEST ); } if ( ! defined( 'STEGO_HEADINGS_LINE_HEIGHT' ) ) { define( 'STEGO_HEADINGS_LINE_HEIGHT', '1.25' ); } if ( ! defined( 'STEGO_DISPLAY_HEADINGS_LINE_HEIGHT' ) ) { define( 'STEGO_DISPLAY_HEADINGS_LINE_HEIGHT', '1.3' ); } /** * Buttons */ if ( ! defined( 'STEGO_BUTTON_PRIMARY_BACKGROUND_COLOR' ) ) { define( 'STEGO_BUTTON_PRIMARY_BACKGROUND_COLOR', STEGO_BRAND_PRIMARY ); } if ( ! defined( 'STEGO_BUTTON_PRIMARY_COLOR' ) ) { define( 'STEGO_BUTTON_PRIMARY_COLOR', STEGO_GRAY_LIGHTEST ); } if ( ! defined( 'STEGO_BUTTON_PRIMARY_BORDER_COLOR' ) ) { define( 'STEGO_BUTTON_PRIMARY_BORDER_COLOR', STEGO_BUTTON_PRIMARY_BACKGROUND_COLOR ); } if ( ! defined( 'STEGO_BUTTON_PRIMARY_HOVER_BACKGROUND_COLOR' ) ) { define( 'STEGO_BUTTON_PRIMARY_HOVER_BACKGROUND_COLOR', STEGO_BRAND_PRIMARY_HOVER ); } if ( ! defined( 'STEGO_BUTTON_PRIMARY_HOVER_COLOR' ) ) { define( 'STEGO_BUTTON_PRIMARY_HOVER_COLOR', "#FFFFFF" ); } if ( ! defined( 'STEGO_BUTTON_PRIMARY_HOVER_BORDER_COLOR' ) ) { define( 'STEGO_BUTTON_PRIMARY_HOVER_BORDER_COLOR', STEGO_BUTTON_PRIMARY_HOVER_BACKGROUND_COLOR ); } if ( ! defined( 'STEGO_BUTTON_SECONDARY_BACKGROUND_COLOR' ) ) { define( 'STEGO_BUTTON_SECONDARY_BACKGROUND_COLOR', STEGO_BRAND_SECONDARY ); } if ( ! defined( 'STEGO_BUTTON_SECONDARY_COLOR' ) ) { define( 'STEGO_BUTTON_SECONDARY_COLOR', '#ffffff' ); } if ( ! defined( 'STEGO_BUTTON_SECONDARY_BORDER_COLOR' ) ) { define( 'STEGO_BUTTON_SECONDARY_BORDER_COLOR', STEGO_BUTTON_SECONDARY_BACKGROUND_COLOR ); } if ( ! defined( 'STEGO_BUTTON_SECONDARY_HOVER_BACKGROUND_COLOR' ) ) { define( 'STEGO_BUTTON_SECONDARY_HOVER_BACKGROUND_COLOR', STEGO_BRAND_SECONDARY_HOVER ); } if ( ! defined( 'STEGO_BUTTON_SECONDARY_HOVER_COLOR' ) ) { define( 'STEGO_BUTTON_SECONDARY_HOVER_COLOR', STEGO_BUTTON_SECONDARY_COLOR ); } if ( ! defined( 'STEGO_BUTTON_SECONDARY_HOVER_BORDER_COLOR' ) ) { define( 'STEGO_BUTTON_SECONDARY_HOVER_BORDER_COLOR', STEGO_BUTTON_SECONDARY_HOVER_BACKGROUND_COLOR ); } /** * Sections */ if ( ! defined( 'STEGO_SECTION_PADDING_Y' ) ) { define( 'STEGO_SECTION_PADDING_Y', 8 ); } if ( ! defined( 'STEGO_SECTION_WIDGET_BACKGROUND_COLOR' ) ) { define( 'STEGO_SECTION_WIDGET_BACKGROUND_COLOR', STEGO_GRAY_LIGHTEST ); } /** * Header */ if ( ! defined( 'STEGO_HEADER_PADDING_Y' ) ) { define( 'STEGO_HEADER_PADDING_Y', 6 ); } /** * Content */ if ( ! defined( 'STEGO_CONTENT_PADDING_Y' ) ) { define( 'STEGO_CONTENT_PADDING_Y', 4 ); } if ( ! defined( 'STEGO_CONTENT_BACKGROUND' ) ) { define( 'STEGO_CONTENT_BACKGROUND', STEGO_BODY_BACKGROUND ); } if ( ! defined( 'STEGO_CONTENT_LAYOUT' ) ) { define( 'STEGO_CONTENT_LAYOUT', 'classic' ); } /** * Cards */ if ( ! defined( 'STEGO_CARD_BACKGROUND' ) ) { define( 'STEGO_CARD_BACKGROUND', '#ffffff' ); } if ( ! defined( 'STEGO_CARD_PADDING' ) ) { define( 'STEGO_CARD_PADDING', 20 ); } if ( ! defined( 'STEGO_CARD_MARGIN' ) ) { define( 'STEGO_CARD_MARGIN', 15 ); } if ( ! defined( 'STEGO_CARD_BORDER_RADIUS' ) ) { define( 'STEGO_CARD_BORDER_RADIUS', 0 ); } if ( ! defined( 'STEGO_CARD_BORDER_WIDTH' ) ) { define( 'STEGO_CARD_BORDER_WIDTH', 7 ); } if ( ! defined( 'STEGO_CARD_BORDER_COLOR' ) ) { define( 'STEGO_CARD_BORDER_COLOR', STEGO_CARD_BACKGROUND ); } if ( ! defined( 'STEGO_BOX_SHADOW_X_OFFSET' ) ) { define( 'STEGO_BOX_SHADOW_X_OFFSET', 0 ); } if ( ! defined( 'STEGO_BOX_SHADOW_Y_OFFSET' ) ) { define( 'STEGO_BOX_SHADOW_Y_OFFSET', 0 ); } if ( ! defined( 'STEGO_BOX_SHADOW_BLUR_RADIUS' ) ) { define( 'STEGO_BOX_SHADOW_BLUR_RADIUS', 30 ); } if ( ! defined( 'STEGO_BOX_SHADOW_SPREAD_RADIUS' ) ) { define( 'STEGO_BOX_SHADOW_SPREAD_RADIUS', 0 ); } if ( ! defined( 'STEGO_BOX_SHADOW_COLOR' ) ) { define('STEGO_BOX_SHADOW_COLOR', 'rgba(0, 0, 0, 0.08)' ); } if ( ! defined( 'STEGO_CARD_COLOR' ) ) { define( 'STEGO_CARD_COLOR', STEGO_BODY_COLOR ); } if ( ! defined( 'STEGO_CARD_TITLE_COLOR' ) ) { define( 'STEGO_CARD_TITLE_COLOR', STEGO_HEADINGS_COLOR ); } if ( ! defined( 'STEGO_CARD_LINK_COLOR' ) ) { define( 'STEGO_CARD_LINK_COLOR', STEGO_CARD_COLOR ); } if ( ! defined( 'STEGO_CARD_LINK_HOVER_COLOR' ) ) { define( 'STEGO_CARD_LINK_HOVER_COLOR', STEGO_LINK_COLOR ); } /** * Require plugins for this theme */ require get_template_directory() . '/libs/tgm-plugin-activation/class-tgm-plugin-activation.php'; global $stego_tgm_plugin_activation; $stego_tgm_plugin_activation = require get_template_directory() . '/inc/tgm-plugin-activation/class-stego-tgm-plugin-activation.php'; /** * Load Merlin */ require get_template_directory() . '/libs/merlin/vendor/autoload.php'; require get_template_directory() . '/libs/merlin/class-merlin.php'; require get_template_directory() . '/libs/themosaurus-merlin/class-themosaurus-merlin.php'; global $stego_merlin; $stego_merlin = require get_template_directory() . '/inc/merlin/class-stego-merlin.php'; /** * Initialize all the things. */ global $stego; $stego = require get_template_directory() . '/inc/class-stego.php'; /** * Custom template hooks and functions for this theme. */ require get_template_directory() . '/inc/template-functions.php'; require get_template_directory() . '/inc/template-hooks.php'; /** * Plugins integration. */ if ( class_exists( 'Grimlock' ) ) { global $stego_grimlock; $stego_grimlock = require get_template_directory() . '/inc/grimlock/class-stego-grimlock.php'; require get_template_directory() . '/inc/grimlock/grimlock-template-functions.php'; require get_template_directory() . '/inc/grimlock/grimlock-template-hooks.php'; } if ( class_exists( 'Jetpack' ) ) { require get_template_directory() . '/inc/jetpack/jetpack-template-hooks.php'; } if ( function_exists( 'WC' ) ) { global $stego_woocommerce; $stego_woocommerce = require get_template_directory() . '/inc/woocommerce/class-stego-woocommerce.php'; } if ( class_exists( 'Grimlock_WooCommerce' ) ) { global $stego_grimlock_woocommerce; $stego_grimlock_woocommerce = require get_template_directory() . '/inc/grimlock-woocommerce/class-stego-grimlock-woocommerce.php'; require get_template_directory() . '/inc/grimlock-woocommerce/grimlock-woocommerce-template-hooks.php'; } if ( function_exists( 'wp_pagenavi' ) ) { require get_template_directory() . '/inc/wp-pagenavi/wp-pagenavi-template-functions.php'; require get_template_directory() . '/inc/wp-pagenavi/wp-pagenavi-template-hooks.php'; } if ( function_exists( 'yoast_breadcrumb' ) ) { global $stego_wordpress_seo; $stego_wordpress_seo = require get_template_directory() . '/inc/wordpress-seo/class-stego-wordpress-seo.php'; require get_template_directory() . '/inc/wordpress-seo/wordpress-seo-template-functions.php'; require get_template_directory() . '/inc/wordpress-seo/wordpress-seo-template-hooks.php'; } if ( class_exists( 'Grimlock_WordPress_SEO' ) ) { global $stego_grimlock_wordpress_seo; $stego_grimlock_wordpress_seo = require get_template_directory() . '/inc/grimlock-wordpress-seo/class-stego-grimlock-wordpress-seo.php'; } if ( class_exists( 'WP_Menu_Image' ) ) { global $stego_menu_image; $stego_menu_image = require get_template_directory() . '/inc/menu-image/class-stego-menu-image.php'; } if ( class_exists( 'SitePress' ) ) { global $stego_wpml; $stego_wpml = require get_template_directory() . '/inc/wpml/class-stego-wpml.php'; } if ( function_exists( 'afr_load_textdomain' ) ) { global $stego_autocomplete_for_relevanssi; $stego_autocomplete_for_relevanssi = require get_template_directory() . '/inc/autocomplete-for-relevanssi/class-stego-autocomplete-for-relevanssi.php'; } if ( class_exists( 'Grimlock_Login' ) ) { global $stego_grimlock_login; $stego_grimlock_login = require get_template_directory() . '/inc/grimlock-login/class-stego-grimlock-login.php'; } /** * Note: Do not add any custom code here. Please use a custom plugin or a child theme * so that your customizations aren't lost during updates. * * @link https://doc.themosaurus.com/creating-child-theme/ */