/** * Blogus functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package Blogus */ $blogus_theme_path = get_template_directory() . '/inc/ansar/'; require( $blogus_theme_path . '/blogus-custom-navwalker.php' ); require( $blogus_theme_path . '/default_menu_walker.php' ); require( $blogus_theme_path . '/font/font.php'); require( $blogus_theme_path . '/template-tags.php'); require( $blogus_theme_path . '/template-functions.php'); require( $blogus_theme_path. '/widgets/widgets-common-functions.php'); require( $blogus_theme_path . '/custom-control/custom-control.php'); require( $blogus_theme_path . '/custom-control/font/font-control.php'); require_once get_template_directory() . '/inc/ansar/customizer-admin/blogus-admin-plugin-install.php'; require_once( trailingslashit( get_template_directory() ) . 'inc/ansar/customize-pro/class-customize.php' ); // Theme version. $blogus_theme = wp_get_theme(); define( 'BLOGUS_THEME_VERSION', $blogus_theme->get( 'Version' ) ); define ( 'BLOGUS_THEME_NAME', $blogus_theme->get( 'Name' ) ); /*-----------------------------------------------------------------------------------*/ /* Enqueue scripts and styles. /*-----------------------------------------------------------------------------------*/ require( $blogus_theme_path .'/enqueue.php'); /* ----------------------------------------------------------------------------------- */ /* Customizer */ /* ----------------------------------------------------------------------------------- */ require( $blogus_theme_path . '/customize/customizer.php'); /* ----------------------------------------------------------------------------------- */ /* Customizer */ /* ----------------------------------------------------------------------------------- */ require( $blogus_theme_path . '/widgets/widgets-init.php'); /* ----------------------------------------------------------------------------------- */ /* Widget */ /* ----------------------------------------------------------------------------------- */ require( $blogus_theme_path . '/hooks/hooks-init.php'); /* custom-color file. */ require( get_template_directory() . '/css/colors/theme-options-color.php'); require get_template_directory().'/inc/ansar/hooks/blocks/header/header-init.php'; /* Style For Sidebar*/ require_once get_template_directory() . '/css/custom-style.php'; if ( ! function_exists( 'blogus_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 blogus_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on blogus, use a find and replace * to change 'blogus' to the name of your theme in all the template files. */ load_theme_textdomain( 'blogus', 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' ); // Add featured image sizes add_image_size('blogus-slider-full', 1280, 720, true); // width, height, crop add_image_size('blogus-featured', 1024, 0, false ); // width, height, crop add_image_size('blogus-medium', 720, 380, true); // width, height, crop // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary menu', 'blogus' ), 'footer' => __( 'Footer menu', 'blogus' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); $args = array( 'default-color' => '#eee', 'default-image' => '', ); add_theme_support( 'custom-background', $args ); // Set up the woocommerce feature. 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' ); // Added theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /* Add theme support for gutenberg block */ add_theme_support( 'align-wide' ); add_theme_support( 'responsive-embeds' ); add_theme_support('custom-spacing'); add_theme_support('appearance-tools'); add_theme_support('custom-units'); add_theme_support('custom-line-height'); add_theme_support('border'); add_theme_support( 'link-color' ); //Custom logo add_theme_support( 'custom-logo'); // custom header Support $args = array( 'width' => '1600', 'height' => '300', 'flex-height' => false, 'flex-width' => false, 'header-text' => true, 'default-text-color' => '000', 'wp-head-callback' => 'blogus_header_color', ); add_theme_support( 'custom-header', $args ); /* * Enable support for Post Formats on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/post-formats/ */ add_theme_support( 'post-formats', array( 'image', 'video', 'gallery', 'audio' ) ); // Enable default block styles for Gutenberg blocks add_theme_support( 'wp-block-styles' ); //Editor Styling add_editor_style( array( 'css/editor-style.css') ); } endif; add_action( 'after_setup_theme', 'blogus_setup' ); function blogus_the_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } } add_filter('get_custom_logo','blogus_logo_class'); function blogus_logo_class($html) { $html = str_replace('custom-logo-link', 'navbar-brand', $html); return $html; } /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function blogus_content_width() { $GLOBALS['content_width'] = apply_filters( 'blogus_content_width', 640 ); } add_action( 'after_setup_theme', 'blogus_content_width', 0 ); /** * Load Jetpack compatibility file. */ if (defined('JETPACK__VERSION')) { require get_template_directory() . '/inc/jetpack.php'; } /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function blogus_widgets_init() { $blogus_footer_column_layout = esc_attr(get_theme_mod('blogus_footer_column_layout',3)); $blogus_footer_column_layout = 12 / $blogus_footer_column_layout; register_sidebar( array( 'name' => esc_html__( 'Sidebar Widget Area', 'blogus' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '<div id="%1$s" class="bs-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<div class="bs-widget-title"><h2 class="title">', 'after_title' => '</h2></div>', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget Area', 'blogus' ), 'id' => 'footer_widget_area', 'description' => '', 'before_widget' => '<div id="%1$s" class="col-md-'.$blogus_footer_column_layout.' rotateInDownLeft animated bs-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<div class="bs-widget-title"><h2 class="title">', 'after_title' => '</h2></div>', ) ); } add_action( 'widgets_init', 'blogus_widgets_init' );<!DOCTYPE html> <html dir="rtl" lang="ar"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <meta name='robots' content='max-image-preview:large' /> <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> <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='contact-form-7-css' href='https://www.hams-alkloob.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=6.1.3' type='text/css' media='all' /> <link rel='stylesheet' id='contact-form-7-rtl-css' href='https://www.hams-alkloob.com/wp-content/plugins/contact-form-7/includes/css/styles-rtl.css?ver=6.1.3' type='text/css' media='all' /> <link rel="https://api.w.org/" href="https://www.hams-alkloob.com/wp-json/" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.hams-alkloob.com/xmlrpc.php?rsd" /> <meta name="generator" content="WordPress 6.9.4" /> <link rel="icon" href="https://www.hams-alkloob.com/wp-content/uploads/2015/11/cropped-logo-32x32.png" sizes="32x32" /> <link rel="icon" href="https://www.hams-alkloob.com/wp-content/uploads/2015/11/cropped-logo-192x192.png" sizes="192x192" /> <link rel="apple-touch-icon" href="https://www.hams-alkloob.com/wp-content/uploads/2015/11/cropped-logo-180x180.png" /> <meta name="msapplication-TileImage" content="https://www.hams-alkloob.com/wp-content/uploads/2015/11/cropped-logo-270x270.png" /> </head> <body class="rtl home blog wp-custom-logo wp-theme-blogus" > <div id="page" class="site"> <a class="skip-link screen-reader-text" href="#content"> التجاوز إلى المحتوى</a> <!--wrapper--> <div class="wrapper" id="custom-background-css"> <!--==================== TOP BAR ====================--> <!--mainfeatured start--> <div class="mainfeatured mb-4"> <!--container--> <div class="container"> <!--row--> <div class="row"> </div><!--/row--> </div><!--/container--> </div> <!--mainfeatured end--> <main id="content" class="index-class"> <!--container--> <div class="container"> <!--row--> <div class="row"> </div><!--/row--> </div><!--/container--> </main> <!--==================== Missed ====================--> <div class="missed"> </div> <!-- end missed --> <!--==================== FOOTER AREA ====================--> <footer class="footer"> <div class="overlay"> <div class="bs-footer-copyright"> </div> </div> <!--/overlay--> </footer> <!--/footer--> </div> <!--/wrapper--> <!--Scroll To Top-->