/covers/WhatisIslam/config.php<?php
define('USES_LOCAL_IMAGES',false); // only Allah web site sets this as true as of Feb-16,2019
// with this, image | mypic.jpg is looked for in the /covers/allah/images, not in covers/_assets/allah
// this is a better ( or more intuitive ) approach for manually built content.txt sites like Allah.org
define('FULL_PAGE_ACCORDION',true);
define ('MAKE_NAV_BAR_STICKY',true);
define ('SHOW_TOC_IN_MENU',true); // if you set this to true, it places the menu even if you had 1 folder like in what is ISLAM page.. so it can inset the titles automatically.
//----------------------------------------------------------------------------------------------------------------------
// serving priority
//----------------------------------------------------------------------------------------------------------------------
$servingPriority = 'cache';
// options fresh,ft1,cache... fresh does not fresh like in dictionary meaning. ( for that try FT1 or ft1 ) fresh is half-way fresh. cached functions still use their cache even if the rest of the non-cached areas are fresh. to see the fresh-fresh view, go expire=1 or ft=1. what you see is what cache gets (except the debugged areas, debugged area do not make it to the cache so it is OK that if you see them in ft=1 or expire=1 view. otherwise, how can you debug the latest and greatested ( if ft=1 and debug never got along? ) , unless there is a blp-do-not-cahe situation either programmaticaly generated or manually added somehere.
// there is also FT1 if this is FT1
// options:
// cache|fresh
// if this is set to cache, we always use cache whenever the cache is avaiable.
// note that cache never expires in super-pages...
// but if the priority is set to fresh, then entire cache system from top the bottom is wastefully ignored and we compute the same thing over and over again, including the time taking api calls...
// BUT.... when it comes to time taking api functions, super-page parser wishes to avoid to run them so it uses its own function level cache BUT, if on that function line you have a fresh | instruction, we run that too and ignore its cache... so when you are working on the items array that is not complete, you may wish to add fresh piece to the left of the | or you will not be able to see your updates!
$servingPriority_in_QS = blp_qs("serving");
if ( $servingPriority_in_QS != '' ):
if ( $servingPriority_in_QS == 'fresh' || $servingPriority_in_QS == 'ft1' || $servingPriority_in_QS == 'cache' ):
$servingPriority = $servingPriority_in_QS;
endif;
endif;
define ('SERVING_PRIORITY', $servingPriority );
if ( ORIGINAL_MHK ):
define ('CACHE_MATURITY',5); // 2 is 2 minute
else:
define ('CACHE_MATURITY',1440*7); // 1440 is 1 day
endif;
//----------------------------------------------------------------------------------------------------------------------
define ('MAIN_TEXT','What is Islam?'); // this goes into the nav Header
define ('MAIN_TEXT_SEO',MAIN_TEXT); // this goes into the HTMl TITLE
define('MAIN_TEXT_SHORT',MAIN_TEXT_SEO . ': '); // used in the header display when there are 20., 30. folders involved. example: "99 Names of God: Memorizer"
define ('HOME_CAPTION_ON_MENU', MAIN_TEXT_SEO );
define ('SOCIAL_IMAGE',''); // used by image/twitter social shares. see share. content.php
define ('MAIN_DESCRIPTION','An Introduction to Islam - Islam 101'); // this goes into the nav Header
define ('MAIN_FOLDER_ID', 'WhatisIslam'); // this is used by _MEDIA_
define ('MAIN_FOLDER',ROOT_FOLDER_NAME_HOSTING_ALL_SITES . '/' . MAIN_FOLDER_ID); // this is where the page is hosted. it is something like .org/covers/whatisislam
define ('THE_TEMPLATE','SW'); // this can be overwritten by the <config><config> $spConfig_ARY . But thatoverwrite would also affect the TEMPLATE_PATH and TEMPLATE_URL
define ('DEFAULT_FOLDER','10.Home'); // this is almost always 10.Home. must be found directly under MAIN_FOLDER such as /my-sites/prophet-muhammad/10.home
define ('MAX_TT_WIDTH_FOR_MOBILE', 650);
if ( !defined('GLOBAL_CONTENT_WIDTH') ):
define('GLOBAL_CONTENT_WIDTH',50); // tihs should be set at the top of the sw.php
endif;
if ( !defined('GLOBAL_LITE_COLOR') ):
define('GLOBAL_LITE_COLOR','transparent'); // this should be set at the top of the sw.php
endif;
if ( !defined('GLOBAL_DARK_COLOR') ):
define('GLOBAL_DARK_COLOR','black'); // tihs should be set at the top of the sw.php
endif;
if ( !defined('GLOBAL_ACCORDION_ICON') ):
//define('GLOBAL_ACCORDION_ICON',' fa fa-arrow-circle-o-down | fa fa-arrow-circle-o-up ' ); // pass the opener and closer cases by a pipe in between like this. this is used by the sw-authoring-tool.php's insertAccordionOpener
define('GLOBAL_ACCORDION_ICON',' fa fa-plus | fa fa-minus ' ); // pass the opener and closer cases by a pipe in between like this. this is used by the sw-authoring-tool.php's insertAccordionOpener
endif;
define('NAV_BAR_COLOR_ON_LANDING_DM','{{ #424345 ``` #424345 }} '); // this is a DM value. desktop/mobile ( transparent means, we want that smart-sticky header which comes on only upon back scroll )
define('NAV_BAR_COLOR_ON_SCROLL_DM',' {{ #424345 ``` #424345 }} '); // this is a DM value. as you can see we can pass a value without the /. these guys are outputted by echoLeft and echoRight goodies, and spReplacerCore's if mobile take out the --mobile-- greatness!
define('FOOTER_BAR_COLOR_DM',NAV_BAR_COLOR_ON_SCROLL_DM); // this is a DM value. as you can see we can pass a value without the /. these guys are outputted by echoLeft and echoRight goodies, and spReplacerCore's if mobile take out the --mobile-- greatness!
/*
reminder to me:
this is how I use these _DM's
in index.php:
<nav id='nav' title="Navigation"
style='background-color:<?php echoLeft(NAV_BAR_COLOR_ON_LANDING_DM);?>;--mobile--background-color:<?php echoRight(NAV_BAR_COLOR_ON_LANDING_DM);?>;width:100%; z-index: 9; height: 48px;'>
that's it. the rest is taken care of by the engine. cause spReplacerCore simply removes the --mobile--, effectively activsting the echoRight value!
bada bing.
*/
define('SMOOTH_SCROLL_SPEED',1500); // 0 means no smooth scroll, 1000 to 1500 is a good number to choose from. credits: css-tricks.com
define ('DEFAULT_CONTENT_WIDTH_IN_PERCENTAGE',90); //
/* DO NOT WRIT ANYTHIGNG AFTER THIS. LET THE loadSP THE LAST OIECE HERE. */
// --------------------------------------------------------------------
// load_... scripts area.
// --------------------------------------------------------------------
define('LOAD_SOUND_CITE',TRUE);
// the fact that we (may) use the soundcite on the overlay-99 and the fact that overlay-99.php loads this config DO NOT
// fool you to think, you should set this to true. the overlay-99 does not load index.php and these LOAD_XYZ constants have only to do with
define('LOAD_SOUND_MANAGER',TRUE);
//define ('L O A D _ S E R E N A',TRUE); // not in use anymore. THE_TEMPLATE SW/SH and spGetTemplatePart -> PURE_HTM is the new way to go.
define ('LOAD_FANCY_BOX',TRUE); /* used in overlay pop. */
define ('LOAD_SLICK_SLIDER',TRUE); /* used in memorizer */
define ('LOAD_WOWJS', FALSE); // animate.js + wow.js + https://wowjs.uk/
define('ALLOW_PHP_EXECUTION',false); // if you set this to true, <php></php> islands do execute for the non-mhk people. if you set it to false, <php></php> blocks execute only for mhk=1
define('NEVER_RUN_A_BLUEPRINT_CAMPAIGN_OR_ADS_ON_THIS_SITE',FALSE); // ONLY "allah.org" & "ic-home-office-project" sites have this as TRUE. the rest gets a FALSE so we can have the "potantial" of being able to run blueprint_campaign on those sites. ( note that if dev-index.php says BLUEPRINT_CAMPAIGN_IS_ON is false, then this value does not mean much. it means there is no campaign to be run at the moment to begin with anyway. So, this value's being FALSE here can only have a say when BLUEPRINT_CAMPAIGN_IS_ON is true by the dev-index.php )
define('IS_ALLAH',false); // detecting allah.org or not thru url is difficult. virtual mapping & cache creation process creates a mental challenge. this settings removes all confusion. only allah.org site has this as true obviously.
define('IS_SPANISH',false);