/* * This theme styles the visual editor to resemble the theme style, * specifically font, colors, icons, and column width. */ /** * huza functions and definitions * * Set up the theme and provides some helper functions, which are used in the * theme as custom template tags. Others are attached to action and filter * hooks in WordPress to change core functionality. * * When using a child theme you can override certain functions (those wrapped * in a function_exists() call) by defining them first in your child theme's * functions.php file. The child theme's functions.php file is included before * the parent theme's file, so the child theme functions would be used. * * @link https://codex.wordpress.org/Theme_Development * @link https://codex.wordpress.org/Child_Themes * * Functions that are not pluggable (not wrapped in function_exists()) are * instead attached to a filter or action hook. * * For more information on hooks, actions, and filters, * {@link https://codex.wordpress.org/Plugin_API} * * @package WordPress * @subpackage Huza * @since Huza 1.13 */ define( 'HUZA_THEME_VERSION', '1.13' ); define( 'HUZA_DEMO_MODE', false ); if ( ! isset( $content_width ) ) { $content_width = 660; } if ( ! function_exists( 'huza_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. * * @since Huza 1.0 */ function huza_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on huza, use a find and replace * to change 'huza' to the name of your theme in all the template files */ load_theme_textdomain( 'huza', 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. * * See: https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 1200, 750, true ); add_image_size( 'huza-event-medium', 300, 300, true ); add_image_size( 'huza-event-grid', 275, 360, true ); add_image_size( 'huza-give-image-grid', 555 , 412, true ); add_image_size( 'huza-give-image-list', 270, 355, true ); // This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'huza' ), 'topmenu' => esc_html__( 'Top Menu', 'huza' ), ) ); /* * 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' ) ); /* * 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' ) ); $color_scheme = huza_get_color_scheme(); $default_color = trim( $color_scheme[0], '#' ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'huza_custom_background_args', array( 'default-color' => $default_color, 'default-attachment' => 'fixed', ) ) ); // woocommerce support add_theme_support( "woocommerce" ); add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); // Add support for Block Styles. add_theme_support( 'wp-block-styles' ); add_theme_support( 'responsive-embeds' ); // 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( array( 'css/style-editor.css', huza_get_fonts_url() ) ); huza_get_load_plugins(); } endif; // huza_setup add_action( 'after_setup_theme', 'huza_setup' ); /** * Load Google Front */ function huza_get_fonts_url() { $fonts_url = ''; /* Translators: If there are characters in your language that are not * supported by Montserrat, translate this to 'off'. Do not translate * into your own language. */ $montserrat = _x( 'on', 'Montserrat font: on or off', 'huza' ); $roboto = _x( 'on', 'Roboto font: on or off', 'huza' ); $open = _x( 'on', 'Open Sans font: on or off', 'huza' ); if ( 'off' !== $montserrat || 'off' !== $open || 'off' !== $roboto ) { $font_families = array(); if ( 'off' !== $montserrat ) { $font_families[] = 'Montserrat:300,400,500,600,700,800,900'; } if ( 'off' !== $roboto ) { $font_families[] = 'Roboto'; } if ( 'off' !== $open ) { $font_families[] = 'Open+Sans:400,600,700'; } $query_args = array( 'family' => ( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); $protocol = is_ssl() ? 'https:' : 'http:'; $fonts_url = add_query_arg( $query_args, $protocol .'//fonts.googleapis.com/css' ); } return esc_url_raw( $fonts_url ); } function huza_fonts_url() { $protocol = is_ssl() ? 'https:' : 'http:'; wp_enqueue_style( 'huza-theme-fonts', huza_get_fonts_url(), array(), null ); } add_action('wp_enqueue_scripts', 'huza_fonts_url'); /** * JavaScript Detection. * * Adds a `js` class to the root `<html>` element when JavaScript is detected. * * @since Huza 1.1 */ function huza_javascript_detection() { wp_add_inline_script( 'huza-typekit', "(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);" ); } add_action( 'wp_enqueue_scripts', 'huza_javascript_detection', 0 ); /** * Enqueue scripts and styles. * * @since Huza 1.0 */ function huza_scripts() { // Load our main stylesheet. //load font awesome wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.css', array(), '4.5.0' ); //load font awesome wp_enqueue_style( 'font-monia', get_template_directory_uri() . '/css/font-monia.css', array(), '1.0.0' ); wp_enqueue_style( 'font-themify', get_template_directory_uri() . '/css/themify-icons.css', array(), '1.0.0' ); // load animate version 1.2.0 wp_enqueue_style( 'material-design-iconic-font', get_template_directory_uri() . '/css/material-design-iconic-font.css', array(), '2.2.0' ); // load animate version 3.5.0 wp_enqueue_style( 'animate', get_template_directory_uri() . '/css/animate.css', array(), '3.5.0' ); // load bootstrap style if( is_rtl() ){ wp_enqueue_style( 'bootstrap-rtl', get_template_directory_uri() . '/css/bootstrap-rtl.css', array(), '3.2.0' ); }else{ wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array(), '3.2.0' ); } wp_enqueue_style( 'huza-template', get_template_directory_uri() . '/css/template.css', array(), '3.2' ); $footer_style = huza_print_style_footer(); if ( !empty($footer_style) ) { wp_add_inline_style( 'huza-template', $footer_style ); } $custom_style = huza_custom_styles(); if ( !empty($custom_style) ) { wp_add_inline_style( 'huza-template', $custom_style ); } wp_enqueue_style( 'huza-style', get_template_directory_uri() . '/style.css', array(), '3.2' ); wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20141010', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), '20150330', true ); wp_enqueue_script( 'owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ), '2.0.0', true ); wp_enqueue_script( 'huza-countdown', get_template_directory_uri() . '/js/countdown.js', array( 'jquery' ), '20150315', true ); wp_enqueue_script( 'circle-progress', get_template_directory_uri() . '/js/circle-progress.js', array( 'jquery' ), '20150315', true ); wp_enqueue_script( 'perfect-scrollbar', get_template_directory_uri() . '/js/perfect-scrollbar.jquery.min.js', array( 'jquery' ), '0.6.12', true ); wp_enqueue_style( 'perfect-scrollbar', get_template_directory_uri() . '/css/perfect-scrollbar.css', array(), '0.6.12' ); wp_enqueue_script( 'jquery-magnific-popup', get_template_directory_uri() . '/js/magnific/jquery.magnific-popup.min.js', array( 'jquery' ), '1.1.0', true ); wp_enqueue_style( 'magnific-popup', get_template_directory_uri() . '/js/magnific/magnific-popup.css', array(), '1.1.0' ); wp_enqueue_script( 'jquery-unveil', get_template_directory_uri() . '/js/jquery.unveil.js', array( 'jquery' ), '1.1.0', true ); wp_enqueue_script( 'jquery-appear', get_template_directory_uri() . '/js/jquery.appear.js', array( 'jquery' ), '0.3.3', true ); wp_register_script( 'huza-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150330', true ); wp_localize_script( 'huza-script', 'huza_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ))); wp_enqueue_script( 'huza-script' ); } add_action( 'wp_enqueue_scripts', 'huza_scripts', 100 ); // style compare wp_head function huza_head_compare_scripts() { wp_enqueue_style( 'huza-compare', get_template_directory_uri() . '/css/compare.css', array(), '3.2' ); } add_action('wp_enqueue_scripts', 'huza_head_compare_scripts'); /** * Display descriptions in main navigation. * * @since Huza 1.0 * * @param string $item_output The menu item output. * @param WP_Post $item Menu item object. * @param int $depth Depth of the menu. * @param array $args wp_nav_menu() arguments. * @return string Menu item with possible description. */ function huza_nav_description( $item_output, $item, $depth, $args ) { if ( 'primary' == $args->theme_location && $item->description ) { $item_output = str_replace( $args->link_after . '</a>', '<div class="menu-item-description">' . $item->description . '</div>' . $args->link_after . '</a>', $item_output ); } return $item_output; } add_filter( 'walker_nav_menu_start_el', 'huza_nav_description', 10, 4 ); /** * Add a `screen-reader-text` class to the search form's submit button. * * @since Huza 1.0 * * @param string $html Search form HTML. * @return string Modified search form HTML. */ function huza_search_form_modify( $html ) { return str_replace( 'class="search-submit"', 'class="search-submit screen-reader-text"', $html ); } add_filter( 'get_search_form', 'huza_search_form_modify' ); /** * Function for remove srcset (WP4.4) * */ function huza_disable_srcset( $sources ) { return false; } add_filter( 'wp_calculate_image_srcset', 'huza_disable_srcset' ); /** * Function get opt_name * */ function huza_get_opt_name() { return 'huza_theme_options'; } add_filter( 'apus_framework_get_opt_name', 'huza_get_opt_name' ); function huza_register_demo_mode() { if ( defined('HUZA_DEMO_MODE') && HUZA_DEMO_MODE ) { return true; } return false; } add_filter( 'apus_framework_register_demo_mode', 'huza_register_demo_mode' ); function huza_get_demo_preset() { $preset = ''; if ( defined('HUZA_DEMO_MODE') && HUZA_DEMO_MODE ) { if ( isset($_GET['_preset']) && $_GET['_preset'] ) { $presets = get_option( 'apus_framework_presets' ); if ( is_array($presets) && isset($presets[$_GET['_preset']]) ) { $preset = $_GET['_preset']; } } else { $preset = get_option( 'apus_framework_preset_default' ); } } return $preset; } function huza_get_config($name, $default = '') { global $apus_options; if ( isset($apus_options[$name]) ) { return $apus_options[$name]; } return $default; } function huza_get_global_config($name, $default = '') { $options = get_option( 'huza_theme_options', array() ); if ( isset($options[$name]) ) { return $options[$name]; } return $default; } function huza_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar Default', 'huza' ), 'id' => 'sidebar-default', 'description' => esc_html__( 'Add widgets here to appear in your Sidebar.', 'huza' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ) ); register_sidebar( array( 'name' => esc_html__( 'Shop sidebar', 'huza' ), 'id' => 'shop-sidebar', 'description' => esc_html__( 'Add widgets here to appear in your sidebar.', 'huza' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title"><span>', 'after_title' => '</span></h2>', ) ); register_sidebar( array( 'name' => esc_html__( 'Blog left sidebar', 'huza' ), 'id' => 'blog-left-sidebar', 'description' => esc_html__( 'Add widgets here to appear in your sidebar.', 'huza' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title"><span>', 'after_title' => '</span></h2>', ) ); register_sidebar( array( 'name' => esc_html__( 'Blog right sidebar', 'huza' ), 'id' => 'blog-right-sidebar', 'description' => esc_html__( 'Add widgets here to appear in your sidebar.', 'huza' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title"><span>', 'after_title' => '</span></h2>', ) ); } add_action( 'widgets_init', 'huza_widgets_init' ); function huza_get_load_plugins() { $plugins[] =(array( 'name' => esc_html__( 'Apus Framework For Themes', 'huza' ), 'slug' => 'apus-framework', 'required' => true , 'source' => get_template_directory() . '/inc/plugins/apus-framework.zip' )); $plugins[] =(array( 'name' => esc_html__( 'WPBakery Visual Composer', 'huza' ), 'slug' => 'js_composer', 'required' => true, 'source' => get_template_directory() . '/inc/plugins/js_composer.zip' )); $plugins[] =(array( 'name' => esc_html__( 'Revolution Slider', 'huza' ), 'slug' => 'revslider', 'required' => true , 'source' => get_template_directory() . '/inc/plugins/revslider.zip' )); $plugins[] =(array( 'name' => esc_html__( 'Cmb2', 'huza' ), 'slug' => 'cmb2', 'required' => true, )); $plugins[] =(array( 'name' => esc_html__( 'MailChimp for WordPress', 'huza' ), 'slug' => 'mailchimp-for-wp', 'required' => true )); $plugins[] =(array( 'name' => esc_html__( 'Contact Form 7', 'huza' ), 'slug' => 'contact-form-7', 'required' => true, )); $plugins[] =(array( 'name' => esc_html__( 'Give - Donation Plugin', 'huza' ), 'slug' => 'give', 'required' => true )); $plugins[] =(array( 'name' => esc_html__( 'Apus Chcharity', 'huza' ), 'slug' => 'apus-chcharity', 'required' => true , 'source' => get_template_directory() . '/inc/plugins/apus-chcharity.zip' )); $plugins[] =(array( 'name' => esc_html__( 'Woocommerce', 'huza' ), 'slug' => 'woocommerce', 'required' => true )); $plugins[] =(array( 'name' => esc_html__( 'The Events Calendar', 'huza' ), 'slug' => 'the-events-calendar', 'required' => true )); tgmpa( $plugins ); } require get_template_directory() . '/inc/plugins/class-tgm-plugin-activation.php'; require get_template_directory() . '/inc/functions-helper.php'; require get_template_directory() . '/inc/functions-frontend.php'; /** * Implement the Custom Header feature. * */ require get_template_directory() . '/inc/custom-header.php'; require get_template_directory() . '/inc/classes/megamenu.php'; require get_template_directory() . '/inc/classes/mobilemenu.php'; /** * Custom template tags for this theme. * */ require get_template_directory() . '/inc/template-tags.php'; if ( defined( 'APUS_FRAMEWORK_REDUX_ACTIVED' ) ) { require get_template_directory() . '/inc/vendors/redux-framework/redux-config.php'; define( 'HUZA_REDUX_FRAMEWORK_ACTIVED', true ); } if( huza_is_cmb2_activated() ) { require get_template_directory() . '/inc/vendors/cmb2/page.php'; require get_template_directory() . '/inc/vendors/cmb2/footer.php'; define( 'HUZA_CMB2_ACTIVED', true ); } if( huza_is_vc_activated() ) { require get_template_directory() . '/inc/vendors/visualcomposer/functions.php'; if ( defined('WPB_VC_VERSION') && version_compare( WPB_VC_VERSION, '6.0', '>=' ) ) { require get_template_directory() . '/inc/vendors/visualcomposer/vc-map-posts2.php'; } else { require get_template_directory() . '/inc/vendors/visualcomposer/vc-map-posts.php'; } require get_template_directory() . '/inc/vendors/visualcomposer/vc-map-theme.php'; define( 'HUZA_VISUALCOMPOSER_ACTIVED', true ); } if( huza_is_give_activated() ) { require get_template_directory() . '/inc/vendors/give/functions.php'; require get_template_directory() . '/inc/vendors/give/vc.php'; define( 'HUZA_GIVE_ACTIVED', true ); } if( huza_is_huza_activated() ) { require get_template_directory() . '/inc/vendors/apus-chcharity/functions.php'; require get_template_directory() . '/inc/vendors/apus-chcharity/vc-map.php'; } if( huza_is_woocommerce_activated() ) { require get_template_directory() . '/inc/vendors/woocommerce/functions.php'; define( 'HUZA_WOOCOMMERCE_ACTIVED', true ); } if( huza_is_event_activated() ) { require get_template_directory() . '/inc/vendors/the-events-calendar/functions.php'; require get_template_directory() . '/inc/vendors/the-events-calendar/vc-map.php'; define( 'HUZA_EVENT_ACTIVED', true ); } if( huza_is_apus_framework_activated() ) { require get_template_directory() . '/inc/widgets/custom_menu.php'; require get_template_directory() . '/inc/widgets/donations.php'; require get_template_directory() . '/inc/widgets/popup_newsletter.php'; require get_template_directory() . '/inc/widgets/posts.php'; require get_template_directory() . '/inc/widgets/recent_comment.php'; require get_template_directory() . '/inc/widgets/recent_post.php'; require get_template_directory() . '/inc/widgets/search.php'; require get_template_directory() . '/inc/widgets/single_image.php'; require get_template_directory() . '/inc/widgets/socials.php'; require get_template_directory() . '/inc/widgets/top_rate.php'; require get_template_directory() . '/inc/widgets/video.php'; define( 'HUZA_FRAMEWORK_ACTIVED', true ); } /** * Customizer additions. * */ require get_template_directory() . '/inc/customizer.php'; /** * Custom Styles * */ require get_template_directory() . '/inc/custom-styles.php';<!DOCTYPE html> <html lang="en-US" class="no-js"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="http://youthafricaandpeace.org/xmlrpc.php"> <meta name='robots' content='max-image-preview:large' /> <link rel='dns-prefetch' href='//s.w.org' /> <script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.1.0\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.1.0\/svg\/","svgExt":".svg","source":{"concatemoji":"http:\/\/youthafricaandpeace.org\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.9.3"}}; /*! This file is auto-generated */ !function(e,a,t){var n,r,o,i=a.createElement("canvas"),p=i.getContext&&i.getContext("2d");function s(e,t){var a=String.fromCharCode;p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,e),0,0);e=i.toDataURL();return p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,t),0,0),e===i.toDataURL()}function c(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(o=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},r=0;r<o.length;r++)t.supports[o[r]]=function(e){if(!p||!p.fillText)return!1;switch(p.textBaseline="top",p.font="600 32px Arial",e){case"flag":return s([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])?!1:!s([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!s([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]);case"emoji":return!s([10084,65039,8205,55357,56613],[10084,65039,8203,55357,56613])}return!1}(o[r]),t.supports.everything=t.supports.everything&&t.supports[o[r]],"flag"!==o[r]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[o[r]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(n=t.source||{}).concatemoji?c(n.concatemoji):n.wpemoji&&n.twemoji&&(c(n.twemoji),c(n.wpemoji)))}(window,document,window._wpemojiSettings); </script> <style 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; } </style> <link rel='stylesheet' id='wp-block-library-css' href='http://youthafricaandpeace.org/wp-includes/css/dist/block-library/style.min.css?ver=5.9.3' type='text/css' media='all' /> <style id='global-styles-inline-css' type='text/css'> body{--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #ffffff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--duotone--dark-grayscale: url('#wp-duotone-dark-grayscale');--wp--preset--duotone--grayscale: url('#wp-duotone-grayscale');--wp--preset--duotone--purple-yellow: url('#wp-duotone-purple-yellow');--wp--preset--duotone--blue-red: url('#wp-duotone-blue-red');--wp--preset--duotone--midnight: url('#wp-duotone-midnight');--wp--preset--duotone--magenta-yellow: url('#wp-duotone-magenta-yellow');--wp--preset--duotone--purple-green: url('#wp-duotone-purple-green');--wp--preset--duotone--blue-orange: url('#wp-duotone-blue-orange');--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;} </style> <link rel='stylesheet' id='contact-form-7-css' href='http://youthafricaandpeace.org/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.3.1' type='text/css' media='all' /> <link rel='stylesheet' id='rs-plugin-settings-css' href='http://youthafricaandpeace.org/wp-content/plugins/revslider/public/assets/css/rs6.css?ver=6.2.1' type='text/css' media='all' /> <style id='rs-plugin-settings-inline-css' type='text/css'> #rs-demo-id {} </style> <link rel='stylesheet' id='give-styles-css' href='http://youthafricaandpeace.org/wp-content/plugins/give/assets/dist/css/give.css?ver=2.19.8' type='text/css' media='all' /> <link rel='stylesheet' id='give-donation-summary-style-frontend-css' href='http://youthafricaandpeace.org/wp-content/plugins/give/assets/dist/css/give-donation-summary.css?ver=2.19.8' type='text/css' media='all' /> <link rel='stylesheet' id='js_composer_front-css' href='//youthafricaandpeace.org/wp-content/uploads/js_composer/js_composer_front_custom.css?ver=6.1' type='text/css' media='all' /> <script type='text/javascript' src='http://youthafricaandpeace.org/wp-includes/js/jquery/jquery.min.js?ver=3.6.0' id='jquery-core-js'></script> <script type='text/javascript' src='http://youthafricaandpeace.org/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2' id='jquery-migrate-js'></script> <script type='text/javascript' src='http://youthafricaandpeace.org/wp-content/plugins/revslider/public/assets/js/rbtools.min.js?ver=6.0' id='tp-tools-js'></script> <script type='text/javascript' src='http://youthafricaandpeace.org/wp-content/plugins/revslider/public/assets/js/rs6.min.js?ver=6.2.1' id='revmin-js'></script> <script type='text/javascript' src='http://youthafricaandpeace.org/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.9' id='regenerator-runtime-js'></script> <script type='text/javascript' src='http://youthafricaandpeace.org/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0' id='wp-polyfill-js'></script> <script type='text/javascript' src='http://youthafricaandpeace.org/wp-includes/js/dist/hooks.min.js?ver=1e58c8c5a32b2e97491080c5b10dc71c' id='wp-hooks-js'></script> <script type='text/javascript' src='http://youthafricaandpeace.org/wp-includes/js/dist/i18n.min.js?ver=30fcecb428a0e8383d3776bcdd3a7834' id='wp-i18n-js'></script> <script type='text/javascript' id='wp-i18n-js-after'> wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } ); </script> <script type='text/javascript' id='give-js-extra'> /* <![CDATA[ */ var give_global_vars = {"ajaxurl":"http:\/\/youthafricaandpeace.org\/wp-admin\/admin-ajax.php","checkout_nonce":"b2743bc53e","currency":"USD","currency_sign":"$","currency_pos":"before","thousands_separator":",","decimal_separator":".","no_gateway":"Please select a payment method.","bad_minimum":"The minimum custom donation amount for this form is","bad_maximum":"The maximum custom donation amount for this form is","general_loading":"Loading...","purchase_loading":"Please Wait...","textForOverlayScreen":"<h3>Processing...<\/h3><p>This will only take a second!<\/p>","number_decimals":"2","is_test_mode":"","give_version":"2.19.8","magnific_options":{"main_class":"give-modal","close_on_bg_click":false},"form_translation":{"payment-mode":"Please select payment mode.","give_first":"Please enter your first name.","give_last":"Please enter your last name.","give_email":"Please enter a valid email address.","give_user_login":"Invalid email address or username.","give_user_pass":"Enter a password.","give_user_pass_confirm":"Enter the password confirmation.","give_agree_to_terms":"You must agree to the terms and conditions."},"confirm_email_sent_message":"Please check your email and click on the link to access your complete donation history.","ajax_vars":{"ajaxurl":"http:\/\/youthafricaandpeace.org\/wp-admin\/admin-ajax.php","ajaxNonce":"652a06a3ad","loading":"Loading","select_option":"Please select an option","default_gateway":"offline","permalinks":"1","number_decimals":2},"cookie_hash":"c75146e55769d795cb3c604660437d90","session_nonce_cookie_name":"wp-give_session_reset_nonce_c75146e55769d795cb3c604660437d90","session_cookie_name":"wp-give_session_c75146e55769d795cb3c604660437d90","delete_session_nonce_cookie":"0"}; var giveApiSettings = {"root":"http:\/\/youthafricaandpeace.org\/wp-json\/give-api\/v2\/","rest_base":"give-api\/v2"}; /* ]]> */ </script> <script type='text/javascript' id='give-js-translations'> ( function( domain, translations ) { var localeData = translations.locale_data[ domain ] || translations.locale_data.messages; localeData[""].domain = domain; wp.i18n.setLocaleData( localeData, domain ); } )( "give", { "locale_data": { "messages": { "": {} } } } ); </script> <script type='text/javascript' src='http://youthafricaandpeace.org/wp-content/plugins/give/assets/dist/js/give.js?ver=15cdae8cb86a78d6' id='give-js'></script> <link rel="https://api.w.org/" href="http://youthafricaandpeace.org/wp-json/" /><link rel="alternate" type="application/json" href="http://youthafricaandpeace.org/wp-json/wp/v2/pages/111" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://youthafricaandpeace.org/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://youthafricaandpeace.org/wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 5.9.3" /> <link rel="canonical" href="http://youthafricaandpeace.org/" /> <link rel='shortlink' href='http://youthafricaandpeace.org/' /> <link rel="alternate" type="application/json+oembed" href="http://youthafricaandpeace.org/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fyouthafricaandpeace.org%2F" /> <link rel="alternate" type="text/xml+oembed" href="http://youthafricaandpeace.org/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fyouthafricaandpeace.org%2F&format=xml" /> <meta name="generator" content="Give v2.19.8" /> <meta name="generator" content="Powered by WPBakery Page Builder - drag and drop page builder for WordPress."/> <meta name="generator" content="Powered by Slider Revolution 6.2.1 - responsive, Mobile-Friendly Slider Plugin for WordPress with comfortable drag and drop interface." /> <script type="text/javascript">function setREVStartSize(e){ try { var pw = document.getElementById(e.c).parentNode.offsetWidth, newh; pw = pw===0 || isNaN(pw) ? window.innerWidth : pw; e.tabw = e.tabw===undefined ? 0 : parseInt(e.tabw); e.thumbw = e.thumbw===undefined ? 0 : parseInt(e.thumbw); e.tabh = e.tabh===undefined ? 0 : parseInt(e.tabh); e.thumbh = e.thumbh===undefined ? 0 : parseInt(e.thumbh); e.tabhide = e.tabhide===undefined ? 0 : parseInt(e.tabhide); e.thumbhide = e.thumbhide===undefined ? 0 : parseInt(e.thumbhide); e.mh = e.mh===undefined || e.mh=="" || e.mh==="auto" ? 0 : parseInt(e.mh,0); if(e.layout==="fullscreen" || e.l==="fullscreen") newh = Math.max(e.mh,window.innerHeight); else{ e.gw = Array.isArray(e.gw) ? e.gw : [e.gw]; for (var i in e.rl) if (e.gw[i]===undefined || e.gw[i]===0) e.gw[i] = e.gw[i-1]; e.gh = e.el===undefined || e.el==="" || (Array.isArray(e.el) && e.el.length==0)? e.gh : e.el; e.gh = Array.isArray(e.gh) ? e.gh : [e.gh]; for (var i in e.rl) if (e.gh[i]===undefined || e.gh[i]===0) e.gh[i] = e.gh[i-1]; var nl = new Array(e.rl.length), ix = 0, sl; e.tabw = e.tabhide>=pw ? 0 : e.tabw; e.thumbw = e.thumbhide>=pw ? 0 : e.thumbw; e.tabh = e.tabhide>=pw ? 0 : e.tabh; e.thumbh = e.thumbhide>=pw ? 0 : e.thumbh; for (var i in e.rl) nl[i] = e.rl[i]<window.innerWidth ? 0 : e.rl[i]; sl = nl[0]; for (var i in nl) if (sl>nl[i] && nl[i]>0) { sl = nl[i]; ix=i;} var m = pw>(e.gw[ix]+e.tabw+e.thumbw) ? 1 : (pw-(e.tabw+e.thumbw)) / (e.gw[ix]); newh = (e.type==="carousel" && e.justify==="true" ? e.gh[ix] : (e.gh[ix] * m)) + (e.tabh + e.thumbh); } if(window.rs_init_css===undefined) window.rs_init_css = document.head.appendChild(document.createElement("style")); document.getElementById(e.c).height = newh; window.rs_init_css.innerHTML += "#"+e.c+"_wrapper { height: "+newh+"px }"; } catch(e){ console.log("Failure at Presize of Slider:" + e) } };</script> <style type="text/css" id="wp-custom-css"> } /* line 128, ../sass/template/_layout.scss */ .apus-header .header-bottom-inner { background: #346daa; } </style> <style type="text/css" data-type="vc_shortcodes-custom-css">.vc_custom_1585221886953{background-color: #fd580b !important;}.vc_custom_1585589927085{background-image: url(http://youthafricaandpeace.org/wp-content/uploads/2020/03/footer-background-image.png?id=3763) !important;background-position: 0 0 !important;background-repeat: no-repeat !important;}</style><noscript><style> .wpb_animate_when_almost_visible { opacity: 1; }</style></noscript></head> <body class="home page-template-default page page-id-111 wpb-js-composer js-comp-ver-6.1 vc_responsive">