/** * aasta functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package aasta */ if ( ! function_exists( 'aasta_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function aasta_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on aasta, use a find and replace * to change 'aasta' to the name of your theme in all the template files. */ load_theme_textdomain( 'aasta', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in one location. // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary', 'aasta' ), ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // woocommerce support add_theme_support( 'woocommerce' ); // Woocommerce Gallery Support add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 39, 'width' => 224, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ) ); /** * Enable support for Post Formats. * * See: https://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat', ) ); /** * Custom background support. */ add_theme_support( 'custom-background', apply_filters( 'aasta_custom_background_args', array( 'default-color' => '202020', 'default-image' => '', ) ) ); /** * Set default content width. */ if ( ! isset( $content_width ) ) { $content_width = 800; } } endif; add_action( 'after_setup_theme', 'aasta_setup' ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function aasta_widgets_init() { $sidebars = apply_filters( 'aasta_sidebars_data', array( 'sidebar-main' => esc_html__( 'Sidebar Widget Area', 'aasta' ), 'footer-sidebar-one' => esc_html__( 'Footer Sidebar One', 'aasta' ), 'footer-sidebar-two' => esc_html__( 'Footer Sidebar Two', 'aasta' ), 'footer-sidebar-three' => esc_html__( 'Footer Sidebar Three', 'aasta' ), 'footer-sidebar-four' => esc_html__( 'Footer Sidebar Four', 'aasta' ), ) ); if ( class_exists( 'WooCommerce' ) ) { $sidebars['woocommerce'] = esc_html__( 'WooCommerce Sidebar', 'aasta' ); } foreach ( $sidebars as $id => $name ) : register_sidebar( array( 'id' => $id, 'name' => $name, 'description' => $name, 'before_widget' => '<aside id="%1$s" class="widget %2$s wow animate fadeInUp" data-wow-delay=".3s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); endforeach; } add_action( 'widgets_init', 'aasta_widgets_init'); add_filter('woocommerce_show_page_title', '__return_false'); /** * Enqueue scripts and styles. */ function aasta_scripts() { /** * Styles. */ wp_enqueue_style('bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css'); // Fontawesome. wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/assets/css/font-awesome/css/font-awesome.min.css' ); // Theme styles. wp_enqueue_style( 'aasta-style', get_stylesheet_uri() ); wp_enqueue_style('aasta-theme-default', get_template_directory_uri() . '/assets/css/theme-default.css'); wp_enqueue_style('animate-css', get_template_directory_uri() . '/assets/css/animate.css'); wp_enqueue_style('bootstrap-smartmenus-css', get_template_directory_uri() . '/assets/css/bootstrap-smartmenus.css'); wp_enqueue_style('owl.carousel-css', get_template_directory_uri() . '/assets/css/owl.carousel.css'); /** * Scripts. */ wp_enqueue_script('bootstrap-js', get_template_directory_uri() . '/assets/js/bootstrap.js', array('jquery')); // Theme JavaScript. wp_enqueue_script('smartmenus-js', get_template_directory_uri() . '/assets/js/smartmenus/jquery.smartmenus.js'); wp_enqueue_script( 'aasta-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/skip-link-focus-fix.js', array(), '20151215', true ); wp_enqueue_script('aasta-custom-js', get_template_directory_uri() . '/assets/js/custom.js', array('jquery')); wp_enqueue_script('bootstrap-smartmenus-js', get_template_directory_uri() . '/assets/js/smartmenus/bootstrap-smartmenus.js'); wp_enqueue_script('owl-carousel-js', get_template_directory_uri() . '/assets/js/owl.carousel.min.js'); if(get_theme_mod('aasta_animation_disabled', true) == true): wp_enqueue_script('animate-js', get_template_directory_uri() . '/assets/js/animation/animate.js'); wp_enqueue_script('wow-js', get_template_directory_uri() . '/assets/js/wow.js'); endif; if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'aasta_scripts' ); /** * Enqueue admin scripts and styles. */ function aasta_admin_enqueue_scripts(){ wp_enqueue_style('aasta-admin-style', get_template_directory_uri() . '/assets/css/admin.css'); wp_enqueue_script( 'aasta-admin-script', get_template_directory_uri() . '/assets/js/aasta-admin-script.js', array( 'jquery' ), '', true ); wp_localize_script( 'aasta-admin-script', 'aasta_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); } add_action( 'admin_enqueue_scripts', 'aasta_admin_enqueue_scripts' ); /** * Enqueue customizer scripts and styles. */ function aasta_customizer_script() { wp_enqueue_style( 'aasta-customize',get_template_directory_uri().'/inc/customizer/assets/css/customize.css', AASTA_THEME_VERSION, 'screen' ); wp_enqueue_script( 'aasta-customizer-script', get_template_directory_uri() .'/inc/customizer/assets/js/customizer-section.js', array("jquery"),'', true ); } add_action( 'customize_controls_enqueue_scripts', 'aasta_customizer_script' ); /** * Define constants */ // Root path/URI. define( 'AASTA_PARENT_DIR', get_template_directory() ); define( 'AASTA_PARENT_URI', get_template_directory_uri() ); // Include path/URI. define( 'AASTA_PARENT_INC_DIR', AASTA_PARENT_DIR . '/inc' ); define( 'AASTA_PARENT_INC_URI', AASTA_PARENT_URI . '/inc' ); // Imgges path. define( 'AASTA_PARENT_INC_IMG_URI', AASTA_PARENT_URI . '/assets/img/' ); // Customizer path. define( 'AASTA_PARENT_CUSTOMIZER_DIR', AASTA_PARENT_INC_DIR . '/customizer' ); // Theme version. $aasta_theme = wp_get_theme(); define( 'AASTA_THEME_VERSION', $aasta_theme->get( 'Version' ) ); define ( 'AASTA_THEME_NAME', $aasta_theme->get( 'Name' ) ); /** * Implement the Custom Header feature. */ require AASTA_PARENT_INC_DIR . '/custom-header.php'; /** * Custom template tags for this theme. */ require AASTA_PARENT_INC_DIR . '/template-tags.php'; /** * Customizer additions. */ require AASTA_PARENT_INC_DIR . '/customizer/aasta-customizer.php'; require AASTA_PARENT_INC_DIR . '/customizer/aasta-customizer-options.php'; /** * Pgge layout setting. */ require AASTA_PARENT_INC_DIR . '/metabox.php'; /** * Pgge layout setting. */ require AASTA_PARENT_INC_DIR . '/theme-custom-typography.php'; /** * Bootstrap class navwalker. */ require AASTA_PARENT_INC_DIR . '/class-bootstrap-navwalker.php';<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name='robots' content='max-image-preview:large' /> <link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="https://royaltevents.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Froyaltevents.com%2F" /> <link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="https://royaltevents.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Froyaltevents.com%2F&format=xml" /> <style id='wp-img-auto-sizes-contain-inline-css' type='text/css'> img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px} /*# sourceURL=wp-img-auto-sizes-contain-inline-css */ </style> <link rel='stylesheet' id='ht_ctc_main_css-css' href='https://royaltevents.com/wp-content/plugins/click-to-chat-for-whatsapp/new/inc/assets/css/main.css?ver=4.23' type='text/css' media='all' /> <style id='wp-emoji-styles-inline-css' type='text/css'> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 0.07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } /*# sourceURL=wp-emoji-styles-inline-css */ </style> <style id='wp-block-library-inline-css' type='text/css'> :root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} /*# sourceURL=wp-block-library-inline-css */ </style> <style id='classic-theme-styles-inline-css' type='text/css'> /*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} /*# sourceURL=/wp-includes/css/classic-themes.min.css */ </style> <link rel='stylesheet' id='SFSImainCss-css' href='https://royaltevents.com/wp-content/plugins/ultimate-social-media-icons/css/sfsi-style.css?ver=2.9.2' type='text/css' media='all' /> <link rel='stylesheet' id='house-decor-parent-style-css' href='https://royaltevents.com/wp-content/themes/aasta/style.css?ver=6.9.1' type='text/css' media='all' /> <link rel='stylesheet' id='house-decor-child-style-css' href='https://royaltevents.com/wp-content/themes/house-decor/style.css?ver=6.9.1' type='text/css' media='all' /> <link rel='stylesheet' id='house-decor-default-css-css' href='https://royaltevents.com/wp-content/themes/house-decor/assets/css/theme-default.css?ver=6.9.1' type='text/css' media='all' /> <script type="text/javascript" src="https://royaltevents.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1" id="jquery-core-js"></script> <script type="text/javascript" src="https://royaltevents.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1" id="jquery-migrate-js"></script> <link rel="https://api.w.org/" href="https://royaltevents.com/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://royaltevents.com/wp-json/wp/v2/pages/25" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://royaltevents.com/xmlrpc.php?rsd" /> <meta name="generator" content="WordPress 6.9.1" /> <link rel="canonical" href="https://royaltevents.com/" /> <link rel='shortlink' href='https://royaltevents.com/' /> <meta name="follow.it-verification-code-MWU2eDBGc1BRWnhGY1pUYys1TlMwaklzNk9HUWdRVjlDTUtwclRXN1B1Y2RtVXVGNUxvOUtyYzlPeks2aEkrblhDRk16NjZYVllnb25mcVBLdVNISUljOUM2Snk4dnE2bngvZkN3VVB0UzVRclRmNXl1ZEZneHNrd1RuU1JlbFV8RGpqWDdRYVdUdXJLYittOHdnK1ZxSEtHNEtCemN0UjZSMkZDZ3dTR3YvZz0=" content="nfnYajlZKQaafnVzR2sE"/> <style type="text/css"> .site-title, .site-description { position: absolute; clip: rect(1px, 1px, 1px, 1px); } </style> <link rel="icon" href="https://royaltevents.com/wp-content/uploads/2024/03/cropped-cropped-cropped-Royal-t-logo-4-32x32.jpg" sizes="32x32" /> <link rel="icon" href="https://royaltevents.com/wp-content/uploads/2024/03/cropped-cropped-cropped-Royal-t-logo-4-192x192.jpg" sizes="192x192" /> <link rel="apple-touch-icon" href="https://royaltevents.com/wp-content/uploads/2024/03/cropped-cropped-cropped-Royal-t-logo-4-180x180.jpg" /> <meta name="msapplication-TileImage" content="https://royaltevents.com/wp-content/uploads/2024/03/cropped-cropped-cropped-Royal-t-logo-4-270x270.jpg" /> </head> <body class="home wp-singular page-template-default page page-id-25 wp-custom-logo wp-theme-aasta wp-child-theme-house-decor theme-wide sfsi_actvite_theme_animated_icons" > <a class="screen-reader-text skip-link" href="#content">Skip to content</a> <div id="wrapper"> <!-- Theme Menubar --> <nav class="navbar navbar-expand-lg not-sticky navbar-light navbar-header-wrap classic-header header-sticky"> <div class="container-full"> <div class="row align-self-center"> <div class="align-self-center"> <br /> <b>Fatal error</b>: Uncaught Error: Call to undefined function aasta_header_logo() in /home1/upbakmmy/public_html/royaltevents/wp-content/themes/aasta/template-parts/site-navbar.php:11 Stack trace: #0 /home1/upbakmmy/public_html/royaltevents/wp-includes/template.php(816): require() #1 /home1/upbakmmy/public_html/royaltevents/wp-includes/template.php(749): load_template('/home1/upbakmmy...', false, Array) #2 /home1/upbakmmy/public_html/royaltevents/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #3 /home1/upbakmmy/public_html/royaltevents/wp-content/themes/aasta/header.php(28): get_template_part('template-parts/...', 'navbar') #4 /home1/upbakmmy/public_html/royaltevents/wp-includes/template.php(814): require_once('/home1/upbakmmy...') #5 /home1/upbakmmy/public_html/royaltevents/wp-includes/template.php(749): load_template('/home1/upbakmmy...', true, Array) #6 /home1/upbakmmy/public_html/royaltevents/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #7 /home1/upbakmmy/public_html/royaltevents/wp-content/themes/aasta/page.php(15): get_header() #8 /home1/upbakmmy/public_html/royaltevents/wp-includes/template-loader.php(125): include('/home1/upbakmmy...') #9 /home1/upbakmmy/public_html/royaltevents/wp-blog-header.php(19): require_once('/home1/upbakmmy...') #10 /home1/upbakmmy/public_html/royaltevents/index.php(17): require('/home1/upbakmmy...') #11 {main} thrown in <b>/home1/upbakmmy/public_html/royaltevents/wp-content/themes/aasta/template-parts/site-navbar.php</b> on line <b>11</b><br />