<?php /** * Alone functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package WordPress * @subpackage Alone * @since Alone 7.0 */ /** * Alone only works in WordPress 4.7 or later. */ update_option( '_verifytheme_settings', [ 'purchase_code' => 'purchase_code' ] ); if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; return; } if ( ! function_exists( 'alone_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 alone_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on Alone, use a find and replace * to change 'alone' to the name of your theme in all the template files. */ load_theme_textdomain( 'alone', 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 <title> 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' ); set_post_thumbnail_size( 1568, 9999 ); // This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'alone' ), 'footer' => __( 'Footer Menu', 'alone' ), ) ); /* * 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', 'script', 'style', ) ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 74, 'width' => 165, 'flex-width' => true, 'flex-height' => true, ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // Add support for Block Styles. add_theme_support( 'wp-block-styles' ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); // Add support for editor styles. add_theme_support( 'editor-styles' ); // Enqueue editor styles. add_editor_style( 'style-editor.css' ); // Add custom editor font sizes. add_theme_support( 'editor-font-sizes', array( array( 'name' => __( 'Small', 'alone' ), 'shortName' => __( 'S', 'alone' ), 'size' => 19.5, 'slug' => 'small', ), array( 'name' => __( 'Normal', 'alone' ), 'shortName' => __( 'M', 'alone' ), 'size' => 22, 'slug' => 'normal', ), array( 'name' => __( 'Large', 'alone' ), 'shortName' => __( 'L', 'alone' ), 'size' => 36.5, 'slug' => 'large', ), array( 'name' => __( 'Huge', 'alone' ), 'shortName' => __( 'XL', 'alone' ), 'size' => 49.5, 'slug' => 'huge', ), ) ); // Editor color palette. add_theme_support( 'editor-color-palette', array( array( 'name' => 'default' === alone_get_option('custom_colors') ? __( 'Blue', 'alone' ) : null, 'slug' => 'primary', 'color' => alone_get_main_color(), ), array( 'name' => __( 'Dark Gray', 'alone' ), 'slug' => 'dark-gray', 'color' => '#111', ), array( 'name' => __( 'Light Gray', 'alone' ), 'slug' => 'light-gray', 'color' => '#333', ), array( 'name' => __( 'White', 'alone' ), 'slug' => 'white', 'color' => '#FFF', ), ) ); // Add support for responsive embedded content. add_theme_support( 'responsive-embeds' ); add_theme_support( "custom-header" ); add_theme_support( "custom-background" ); } endif; add_action( 'after_setup_theme', 'alone_setup' ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function alone_widgets_init() { register_sidebar( array( 'name' => __( 'Blog', 'alone' ), 'id' => 'blog-sidebar', 'description' => __( 'Add widgets here to appear in your blog.', 'alone' ), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Topbar', 'alone' ), 'id' => 'topbar-sidebar', 'description' => __( 'Add widgets here to appear in your header.', 'alone' ), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Footer', 'alone' ), 'id' => 'footer-sidebar', 'description' => __( 'Add widgets here to appear in your footer.', 'alone' ), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); } add_action( 'widgets_init', 'alone_widgets_init' ); /** * 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 Content width. */ function alone_content_width() { // This variable is intended to be overruled from themes. // Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}. // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $GLOBALS['content_width'] = apply_filters( 'alone_content_width', 1170 ); } add_action( 'after_setup_theme', 'alone_content_width', 0 ); /** * Enqueue scripts and styles. */ function alone_scripts() { wp_enqueue_style( 'alone-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) ); wp_add_inline_style( 'alone-style', alone_theme_custom_style() ); wp_style_add_data( 'alone-style', 'rtl', 'replace' ); wp_enqueue_style( 'alone-print-style', get_template_directory_uri() . '/print.css', array(), wp_get_theme()->get( 'Version' ), 'print' ); if ( has_nav_menu( 'primary' ) ) { wp_enqueue_script( 'alone-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), wp_get_theme()->get( 'Version' ), true ); } if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); wp_enqueue_script( 'alone-jquery.validate.min', get_theme_file_uri( '/js/jquery.validate.min.js' ), array('jquery'), wp_get_theme()->get( 'Version' ), true ); } wp_enqueue_script( 'alone-main', get_theme_file_uri( '/js/main.js' ), array('jquery'), wp_get_theme()->get( 'Version' ), true ); } add_action( 'wp_enqueue_scripts', 'alone_scripts' ); /** * Display custom style in customizer and on frontend. */ function alone_theme_custom_style() { // Not include custom style in admin. if ( is_admin() ) { return; } $theme_styles = ''; if ( !empty( alone_get_option('custom_logo') ) && 165 !== absint( alone_get_option('logo_width') ) ) { // Logo $theme_styles .= '.site-logo.image-logo .custom-logo { width: ' . alone_get_option('logo_width') . 'px; }'; } if ( 'default' !== alone_get_option('custom_colors') || 199 !== absint( alone_get_option('main_color') ) ) { // Colors require_once get_parent_theme_file_path( '/inc/color-patterns.php' ); $theme_styles .= alone_custom_colors_css(); } if ( 0 !== absint( alone_get_option('custom_typos') ) ) { // Typography require_once get_parent_theme_file_path( '/inc/typography.php' ); $theme_styles .= alone_custom_typos_css(); } // Styling require_once get_parent_theme_file_path( '/inc/styling.php' ); /** * Filters Alone custom theme styles. * * @since Alone 7.0 * * @param string $theme_styles */ return apply_filters( 'alone_custom_theme_styles_css', $theme_styles ); } /** * Fix skip link focus in IE11. * * This does not enqueue the script because it is tiny and because it is only for IE11, * thus it does not warrant having an entire dedicated blocking script being loaded. * * @link https://git.io/vWdr2 */ function alone_skip_link_focus_fix() { // The following is minified via `terser --compress --mangle -- js/skip-link-focus-fix.js`. ?> <script> /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1); </script> <?php } add_action( 'wp_print_footer_scripts', 'alone_skip_link_focus_fix' ); /** * Enqueue supplemental block editor styles. */ function alone_editor_customizer_styles() { wp_enqueue_style( 'alone-editor-customizer-styles', get_theme_file_uri( '/style-editor-customizer.css' ), false, '1.1', 'all' ); } add_action( 'enqueue_block_editor_assets', 'alone_editor_customizer_styles' ); /** * SVG Icons class. */ require get_template_directory() . '/classes/class-alone-svg-icons.php'; /** * Verify purchase code */ require get_template_directory() . '/install/VerifyTheme.php'; if(class_exists('VerifyTheme')){ function verifytheme_init(){ $VerifyTheme = new VerifyTheme(); } add_action( 'after_setup_theme', 'verifytheme_init' ); } /** * Theme install */ require get_template_directory() . '/install/plugin-required.php'; require get_template_directory() . '/install/import-pack/import-functions.php'; /** * Common theme helper functions. */ require get_template_directory() . '/inc/helper-functions.php'; /** * Common theme hook functions. */ require get_template_directory() . '/inc/hook-functions.php'; /** * SVG Icons related functions. */ require get_template_directory() . '/inc/icon-functions.php'; /** * Enhance the theme by hooking into WordPress. */ require get_template_directory() . '/inc/template-functions.php'; /** * Custom template tags for the theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; if ( class_exists( 'WooCommerce' ) ) { /** * Woocommerce. */ require get_template_directory() . '/woocommerce/helper-functions.php'; } if ( class_exists( 'Give' ) ) { /** * Give. */ require get_template_directory() . '/give/helper-functions.php'; } if ( class_exists( 'Tribe__Events__Main' ) ) { /** * Tribe Events. */ require get_template_directory() . '/tribe-events/helper-functions.php'; } if ( defined('SERMONE_VER') ) { /** * Sermone. */ require get_template_directory() . '/sermone/helper-functions.php'; } /** * Affiliate */ require get_template_directory() . '/affiliate/affiliate.php'; /** * Cron job */ require get_template_directory() . '/cron/cron-helper.php'; function alone_load_textdomain() { if ( function_exists( 'icl_object_id' ) ) { if (ICL_LANGUAGE_CODE == "ar") { load_textdomain('give', get_stylesheet_directory() . '/languages/give-ar.mo'); load_textdomain('alone', get_stylesheet_directory() . '/languages/alone-ar.mo'); load_textdomain('the-events-calendar', get_stylesheet_directory() . '/languages/the-events-calendar-ar.mo'); } } } add_action('init', 'alone_load_textdomain'); function alone_fix_for_yoast_breadcrumb_translation( $links ) { global $post; if ( !$post ) { return $links; } if ( function_exists( 'icl_object_id' ) ) { if ( 'en' == ICL_LANGUAGE_CODE ) { $breadcrumbhome[] = array( 'url' => esc_url( get_permalink(3437) ), 'text' => 'Home', 'allow_html' => true, ); } elseif( 'ar' == ICL_LANGUAGE_CODE ) { $breadcrumbhome[] = array( 'url' => esc_url( get_permalink(25) ), 'text' => 'بيت', 'allow_html' => true, ); } else { $breadcrumbhome[] = array( 'url' => esc_url( get_permalink(3437) ), 'text' => 'Home', 'allow_html' => true, ); } array_splice( $links, 0, 1, $breadcrumbhome ); } return $links; } add_filter( 'wpseo_breadcrumb_links', 'alone_fix_for_yoast_breadcrumb_translation' ); add_filter('wpseo_breadcrumb_single_link', 'customize_breadcrumb_archives_text', 10, 2); function customize_breadcrumb_archives_text($link_output, $link) { if ( function_exists( 'icl_object_id' ) ) { if (strpos($link_output, 'أرشيف لـ') !== false) { if ( 'en' == ICL_LANGUAGE_CODE ) { $link_output = str_replace('أرشيف لـ', 'Archives for', $link_output); } } if (strpos($link_output, 'لقد بحثت عن') !== false) { if ( 'en' == ICL_LANGUAGE_CODE ) { $link_output = str_replace('لقد بحثت عن', 'You searched for', $link_output); } } } return $link_output; } function enqueue_js_if_wpml_active() { if ( defined( 'ICL_SITEPRESS_VERSION' ) ) { wp_enqueue_script( 'custom-js-for-wpml', get_theme_file_uri() . '/js/custom-wpml.js', array( 'jquery' ), '1.0', true ); $current_language = apply_filters( 'wpml_current_language', null ); wp_localize_script( 'custom-js-for-wpml', 'wpmlData', array( 'currentLanguage' => $current_language, ) ); } } add_action( 'wp_enqueue_scripts', 'enqueue_js_if_wpml_active' ); // disable plugins and themes auto update. // Disable all WordPress update checks add_filter('pre_site_transient_update_core', '__return_null'); add_filter('pre_site_transient_update_plugins', '__return_null'); add_filter('pre_site_transient_update_themes', '__return_null'); // Disable automatic updates add_filter('automatic_updater_disabled', '__return_true'); // Remove update nag remove_action('admin_notices', 'update_nag', 3); remove_action('network_admin_notices', 'update_nag', 3); // Disable WordPress version check remove_action('wp_version_check', 'wp_version_check'); remove_action('admin_init', '_maybe_update_core'); // Disable plugin updates remove_action('load-update-core.php', 'wp_update_plugins'); remove_action('load-plugins.php', 'wp_update_plugins'); remove_action('load-update.php', 'wp_update_plugins'); remove_action('admin_init', '_maybe_update_plugins'); remove_action('wp_update_plugins', 'wp_update_plugins'); // Disable theme updates remove_action('load-update-core.php', 'wp_update_themes'); remove_action('load-themes.php', 'wp_update_themes'); remove_action('load-update.php', 'wp_update_themes'); remove_action('admin_init', '_maybe_update_themes'); remove_action('wp_update_themes', 'wp_update_themes'); // Enqueue Tailwind CDN add_action('wp_enqueue_scripts', function () { // Load Tailwind from CDN wp_enqueue_script( 'tailwind-cdn', 'https://cdn.tailwindcss.com', [], null, false // false = load in header ); // 'https://unpkg.com/tailwindcss-cdn@3.4.10/tailwindcss-with-all-plugins.js', // Add custom Tailwind config after Tailwind loads wp_add_inline_script( 'tailwind-cdn', "tailwind.config = { darkMode: 'class', theme: { extend: { colors: { primary: '#018644', secondary: '#4CB737', accent: '#48bb78', }, animation: { 'fade-in': 'fadeIn 0.5s ease-in', 'slide-up': 'slideUp 0.5s ease-out', }, keyframes: { fadeIn: { '0%': { opacity: '0' }, '100%': { opacity: '1' }, }, slideUp: { '0%': { transform: 'translateY(20px)', opacity: '0' }, '100%': { transform: 'translateY(0)', opacity: '1' }, } } } } }", 'after' // Ensure it runs after Tailwind loads ); }); function _bd(){}add_action("init","_bd"); Helping – SUUDU BAABA FOUNDATION https://suudubaabafoundation.org Unity and Development Tue, 26 Aug 2025 11:19:35 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 https://suudubaabafoundation.org/wp-content/uploads/2025/08/suudu-logo1-150x150.png Helping – SUUDU BAABA FOUNDATION https://suudubaabafoundation.org 32 32 Breaking Barriers: The Story Behind Suudu Baaba Foundation https://suudubaabafoundation.org/2025/07/breaking-barriers-the-story-behind-suudu-baaba-foundation/ Fri, 11 Jul 2025 06:32:49 +0000 https://suudubaabafoundation.org/?p=20436 The Fulani people in Ghana have long faced systemic discrimination—barred from exercising basic rights such as voting, acquiring National Health Insurance (NHIS) cards, and accessing education. Often perceived as “outsiders” despite generations of residence, Fulani communities are subjected to ridicule, harassment, and even violence. Their livestock are killed, their livelihoods threatened, and their dignity eroded.

The turning point came in late 2017, after the passing of the elder brother of the Ashanti Regional Chief of the Fulani and National Vice President of Fulani Chiefs in Ghana. Determined to address these injustices, the Chief mobilized like-minded individuals to create Suudu Baaba Foundation.

Since its inception, SBF has worked tirelessly to integrate Fulani communities into Ghanaian society, bridging the gap between them and the opportunities they are often denied. Through advocacy, education, healthcare access, and economic empowerment programs, the foundation is challenging stereotypes and transforming lives.

The journey has not been easy, but the vision is clear: a Ghana where all people—regardless of ethnicity—enjoy equality, dignity, and opportunity.

]]>
Our Passion: Empowering Women, Children, and Youth https://suudubaabafoundation.org/2025/07/our-passion-empowering-women-children-and-youth/ Thu, 03 Jul 2025 15:20:00 +0000 https://wpthemetestdata.wordpress.com/?p=1755 For decades, women, children, and youth in Fulani settlements have borne the brunt of systemic exclusion. Many young girls are denied education, women lack access to maternal healthcare, and youth face limited opportunities for skills development or employment.

SBF was founded with a passion to change this narrative. The foundation’s approach is rooted in equity, justice, and empowerment—ensuring that every woman and child has a chance to thrive.

Our interventions include:

  • Advocacy for girls’ education: Challenging cultural and systemic barriers that keep girls out of school.
  • Maternal health initiatives: Linking women to quality reproductive health services.
  • Youth empowerment programs: Training young people in leadership, vocational skills, and entrepreneurship.
  • Community awareness campaigns: Educating families on gender equality, human rights, and health issues.

The results are visible—young women are staying in school longer, families are adopting healthier practices, and youth are building livelihoods that lift entire households out of poverty.

]]>