Localized Script

While Framework sites come by default with many PHP, XSLT and Velocity scripts that are a single line that points to a shared asset, site owners oftentimes localize these scripts by copying the content of the shared asset into a site, in order to apply customizations. In those cases, the script must be updated to properly apply landmarks. The steps below will help in determining which of a site’s scripts have been localized, and how to apply landmark updates to those scripts.

XSLT

Go to _internal/xsl/Template.

Your XSLT script has not been localized if it contains:

<xsl:import href="site://IU-FRAME-WEBS.common/xsl/{version}.x/Template"/>

If it has different code, it has been localized and must be updated.

Update localized XSLT

PHP

mobile navigation

Go to _php/nav-mobile.php.

Your script has not been localized if it is:

<?php include('{version}.x/nav-mobile.php')

If it does not match this script, go to nav-mobile.xsl.txt. If the file includes the script below, it has not been localized.

'/ip/iuframe/php/{version}.x/'.'nav-mobile.xsl.txt';

If it does not include the above script, it has been localized and must be updated.

Update localized PHP mobile navigation

primary navigation

Go to _php/nav-primary.php.

Your script has not been localized if it is:

<?php include('{version}.x/nav-primary.php')

If it does not match this script, go to nav-primary.xsl.txt. If the file includes the script below, it has not been localized.

'/ip/iuframe/php/{version}.x/'.'nav-primary.xsl.txt';

If it does not include the above script, it has been localized and must be updated.

Update localized PHP primary navigation

Velocity

Page/Default

Go to _internal/velocity/Page/Default.

Your code has not been localized if it contains:

#import('/_internal/velocity/Page/Imports')
#import('site://IU-FRAME-WEBS.common/velocity/{version}.x/Page/Default')

## Set page variables and common elements
#SetPageType()
 
## Render page content
#Banner()
#Notes()
 
## DEFAULT
 
#Default()
 
## 

If it does not look like the code above, the code has been localized and must be updated.

Update localized page default script

Page/Banner

Go to _internal/velocity/Page/Banner.

Your script has not been localized if it contains:

#import('site://IU-FRAME-WEBS.common/velocity/{version}.x/Page/Banner')

If it does not have this script, it has been localized and must be updated.

Update localized banner script

Page/Helpers

Go to _internal/velocity/Page/Helpers.

Your script has not been localized, if it is:

#import('site://IU-FRAME-WEBS.common/velocity/{version}.x/Page/Helpers')

If it does not look like the code above, the script has been localized and must be updated.

Update localized helpers script

Regions/Nav - Mobile

Go to _internal/velocity/Regions/Navigation - Mobile.

Your script has not been localized if it looks like:

##NAVIGATION Includes -
#import('site://IU-FRAME-WEBS.common/velocity/{version}.x/Regions/Navigation - Mobile')

If it does not have this script, it has been localized and must be updated.

Update localized mobile navigation script

Regions/Nav - Primary

Go to _internal/velocity/Regions/Navigation - Primary.

Your script has not been localized if it looks like:

##NAVIGATION Includes -
#import('site://IU-FRAME-WEBS.common/velocity/{version}.x/Regions/Navigation - Primary')

If it does not have this script, it has been localized and must be updated.

Update localized primary navigation script

Regions/Site Title

Go to _internal/velocity/Regions/Site Title.

Your script has not been localized if it looks like:

#import('/_internal/velocity/Page/Helpers')
#import('site://IU-FRAME-WEBS.common/velocity/{version}.x/Regions/Site Title')
## SITE TITLE OVERRIDE
#SiteTitle()

If it does not look like the script above, the script has been localized and must be updated.

Update localized site title script

Region/Includes

Go to _internal/Velocity/Region/Includes.

Your script has not been localized if it looks like the code below.

#import('/_internal/velocity/Page/Helpers')

## INCLUDE - 
#import('site://IU-FRAME-WEBS.common/velocity/{version}.x/Regions/Includes')


## OVERRIDE 
## INCLUDES MACRO that INCLUDES -  FILE INCLUDES, BRAND INCLUDES, BELT
## TO ADD/REMOVE INCLUDES ADD/DELETE VALUES IN THE HELPER FUNCTION - GetFileIncludes,GetBrandAssets
## CHANGES TO INCLUDE FOLDER PATH - GetIncludesFolderPath

## CALL THE INCLUDES MACRO - TO INCLUDE BRANDING ASSETS, FILE ASSETS, BELT
#INCLUDES()

If it does not, the script has been localized and requires updating.

Apply updates to localized Includes script