/home/tuzdhajd/ardaughters.org/wp-content/themes/ARDFoundation20/library/app.php
<?php
/**
* Theme settings
*
* @param array $settings
* @return array
*/
function theme_app_settings($settings) {
return json_decode(<<<JSON
{
"colorScheme": {
"bodyColors": [
"#747474",
"#ffffff"
],
"bgColor": "#ffffff",
"colors": [
"#e6737a",
"#a248ae",
"#f8a9b0",
"#f6bbdb",
"#dcdee1"
],
"customColors": [
{
"color": "#d0588f",
"status": 0,
"transparency": 1,
"index": 0
},
{
"color": "#c07da3",
"status": 0,
"transparency": 1,
"index": 1
},
{
"color": "#a347ad",
"status": 0,
"transparency": 1,
"index": 2
},
{
"color": "#4f1a7b",
"status": 0,
"transparency": 1,
"index": 3
},
{
"color": "#e7e4ea",
"status": 0,
"transparency": 1,
"index": 4
},
{
"color": "#eee7f5",
"status": 0,
"transparency": 1,
"index": 5
},
{
"color": "#f4f0f9",
"status": 0,
"transparency": 1,
"index": 6
},
{
"color": "#682a9a",
"status": 0,
"transparency": 1,
"index": 7
},
{
"color": "#f2e5fd",
"status": 0,
"transparency": 1,
"index": 8
},
{
"color": "#fe7ac0",
"status": 0,
"transparency": 1,
"index": 9
}
],
"shadingContrast": "body-alt-color",
"whiteContrast": "body-color",
"bgContrast": "body-color",
"name": "u17"
},
"fontScheme": {
"name": "custom-font-family-3",
"default": true,
"fonts": {
"heading": "Oswald, sans-serif",
"text": "Heebo",
"accent": "Arial, sans-serif",
"headingTitle": "Oswald",
"textTitle": "Heebo"
}
},
"typography": {
"name": "custom-page-typography-9",
"title": {
"font-weight": "400",
"font-size": 6,
"line-height": "1_1",
"margin-top": 20,
"margin-bottom": 20,
"LG": {
"font-size": 4.5
},
"SM": {
"font-size": 3.75
},
"XS": {
"font-size": 3
},
"text-color": "custom-color-2"
},
"subtitle": {
"font-weight": "400",
"font-size": 3,
"line-height": "1_1",
"margin-top": 20,
"margin-bottom": 20,
"SM": {
"font-size": 2.25
},
"XS": {
"font-size": 1.875
},
"text-color": "custom-color-4",
"text-transform": "uppercase",
"letter-spacing": "-1"
},
"h1": {
"font-weight": "400",
"font-size": 4.5,
"line-height": "1_1",
"margin-top": 20,
"margin-bottom": 20,
"LG": {
"font-size": 3.75
},
"SM": {
"font-size": 3
},
"XS": {
"font-size": 2.25
},
"text-color": "custom-color-4",
"text-transform": "uppercase",
"letter-spacing": "-3"
},
"h2": {
"font-weight": "400",
"font-size": 3,
"line-height": "1_1",
"margin-top": 20,
"margin-bottom": 20,
"SM": {
"font-size": 2.25
},
"XS": {
"font-size": 1.875
},
"text-color": "custom-color-4",
"text-transform": "uppercase",
"letter-spacing": "-1"
},
"h3": {
"font-size": 2.25,
"line-height": "1_2",
"margin-top": 20,
"margin-bottom": 20,
"SM": {
"font-size": 1.875
},
"XS": {
"font-size": 1.5
},
"text-color": "custom-color-4",
"text-transform": "uppercase",
"letter-spacing": "0",
"font-weight": "500"
},
"h4": {
"font-size": 1.5,
"line-height": "1_2",
"margin-top": 20,
"margin-bottom": 20,
"text-color": "custom-color-4",
"letter-spacing": "0",
"text-transform": "uppercase",
"font-weight": "500"
},
"h5": {
"font-size": 1.25,
"line-height": "1_2",
"margin-top": 20,
"margin-bottom": 20,
"text-color": "custom-color-4",
"text-transform": "uppercase",
"letter-spacing": "0",
"font-weight": "500"
},
"h6": {
"font-weight": "400",
"font-size": 1.125,
"line-height": "1_2",
"margin-top": 20,
"margin-bottom": 20,
"text-color": "custom-color-4"
},
"largeText": {
"font-size": 1.5,
"margin-top": 20,
"margin-bottom": 20
},
"smallText": {
"font-size": 0.875,
"margin-top": 20,
"margin-bottom": 20
},
"text": {
"font-size": 1.125,
"margin-top": 20,
"margin-bottom": 20,
"line-height": "1_6",
"SM": {
"font-size": 1
}
},
"hyperlink": {
"font-size": 1.125,
"text-color": "custom-color-2",
"line-height": "1_6",
"SM": {
"font-size": 1
},
"text-hover-color": "custom-color-2"
},
"link": {},
"button": {
"color": false,
"margin-top": 20,
"margin-bottom": 20,
"font": "Oswald, sans-serif",
"font-weight": "500",
"borders": "top right bottom left",
"border-color": "custom-color-4",
"border-top-style": "solid",
"border-left-style": "solid",
"border-right-style": "solid",
"border-bottom-style": "solid",
"border": "1",
"border-radius": "6",
"button-shape": "round",
"text-transform": "uppercase"
},
"blockquote": {
"font-size": 1.125,
"font-style": "italic",
"indent": 20,
"border": 4,
"border-color": "palette-1-base",
"margin-top": 20,
"margin-bottom": 20,
"line-height": "1_6",
"SM": {
"font-size": 1
}
},
"metadata": {
"margin-top": 20,
"margin-bottom": 20,
"line-height": "1_6"
},
"list": {
"font-size": 1.125,
"margin-top": 20,
"margin-bottom": 20,
"line-height": "1_6",
"SM": {
"font-size": 1
}
},
"orderedlist": {
"font-size": 1.125,
"margin-top": 20,
"margin-bottom": 20,
"line-height": "1_6",
"SM": {
"font-size": 1
}
},
"postContent": {
"font-size": 1.125,
"margin-top": 20,
"margin-bottom": 20,
"line-height": "1_6",
"SM": {
"font-size": 1
}
},
"theme": {
"gradient": "",
"image": "",
"sheet-width-xl": 1140,
"sheet-width-lg": 940,
"sheet-width-md": 720,
"sheet-width-sm": 540,
"sheet-width-xs": 340,
"sheet-width-xxl": 1320
},
"htmlBaseSize": 16,
"form-input": {
"border": 1,
"border-color": "grey-30",
"borders": "top right bottom left",
"color": "white",
"text-color": "black"
}
}
}
JSON
, true);
}
add_filter('np_theme_settings', 'theme_app_settings');
function theme_analytics() {
$pluginSiteSettings = get_plugin_site_settings();
if (empty($pluginSiteSettings->analyticsCode)) { ?>
<?php }
}
add_action('wp_head', 'theme_analytics', 0);
function theme_intlTelInputMeta() {
$GLOBALS['meta_tel_input'] = true; ?>
<meta data-intl-tel-input-cdn-path="<?php echo get_template_directory_uri(); ?>/intlTelInput/" />
<?php
}
add_action('wp_head', 'theme_intlTelInputMeta', 0);
function theme_favicon() {
$custom_favicon_id = get_theme_mod('custom_favicon');
@list($favicon_src, ,) = wp_get_attachment_image_src($custom_favicon_id, 'full');
if (!$favicon_src) {
$favicon_src = "";
if ($favicon_src) {
$favicon_src = get_template_directory_uri() . '/images/' . $favicon_src;
}
}
if ($favicon_src) {
echo "<link rel=\"icon\" href=\"$favicon_src\">";
}
}
add_action('wp_head', 'theme_favicon');
function theme_gtm_header() {
$pluginSiteSettings = get_plugin_site_settings();
if (empty($pluginSiteSettings->googleTagManager) || empty($pluginSiteSettings->googleTagManagerCode)) { ?>
<?php }
}
add_action('wp_head', 'theme_gtm_header', 0);
function theme_gtm_body() {
$pluginSiteSettings = get_plugin_site_settings();
if (empty($pluginSiteSettings->googleTagManager) || empty($pluginSiteSettings->googleTagManagerCodeNoScript)) {
ob_start(); ?>
<?php $gtmCodeNoScript = ob_get_clean(); ?>
<script>
jQuery(document).ready(function () {
jQuery(document).find('body').prepend(`<?php echo $gtmCodeNoScript; ?>`)
});
</script>
<?php }
}
add_action('wp_footer', 'theme_gtm_body');