php js css php js css

Changes

Changes to Page: course-selector

34612
Today 5:07am
Vendeville, Mathieu
Modified page
Can't Undo: The page /wave/learn-french/course-selector/ does not currently exist, it may have been moved or deleted. In order to undo this change, you first need to restore the page
34618
Today 5:07am
Vendeville, Mathieu
Modified page
Can't Undo: The page /wave/learn-french/course-selector/ does not currently exist, it may have been moved or deleted. In order to undo this change, you first need to restore the page
Content:
Css:
Id:
/wave/learn-french/course-selector/
/wave/learn-french/course-selector/
Title:
Course Selector
Course Selector
Content Additional:

															

														
Js:

															

														
Php Source:
<?php

set_time_limit(10);

\Framework\Assets\JavaScript::includeJQuery(true);

function getRemainingSteps($arrVisibleSteps)
{
$arrRemainingSteps = array();

foreach(\Framework\AF\CourseSelector::getAvailableSteps() as $arrStep)
{
if(!in_array($arrStep, $arrVisibleSteps))
{
$arrRemainingSteps[] = $arrStep;
}
}

return $arrRemainingSteps;
}

function getRealLength($strVar)
{
// Because of a bug in the HTML Editor inserting the &#8203; character
return strlen(trim(strip_tags(str_replace('&#8203;', '', $strVar))));
}

function urlCleanup($arrCurrentStep)
{
$iInitialCount = count($_GET);

if($iInitialCount)
{
$arrParametersToClean = array('new_student', 'needs_test', 'reenroll');

if($arrCurrentStep && $arrCurrentStep['step_title'] !== 'Level' && \Components\AF\Courses\Configuration\Levels::configGetValue('course_selector_use_placement_page'))
{
foreach($arrParametersToClean as $strParameter)
{
if(array_key_exists($strParameter, $_GET))
{
unset($_GET[$strParameter]);
}
}

if(count($_GET) !== $iInitialCount)
{
$arrQueryString = array();
foreach($_GET as $strKey => $strValue)
{
$arrQueryString[] = urlencode($strKey) . '=' . urlencode($strValue);
}

$strQueryString = '';

if(count($arrQueryString))
{
$strQueryString = '?' . implode('&', $arrQueryString);
}

\Framework\HTTP\Redirection::redirect(\Components\Website\Pages::currentPageId() . $strQueryString);
}
}
}
}

?>
<?php

set_time_limit(10);

\Framework\Assets\JavaScript::includeJQuery(true);

function getRemainingSteps($arrVisibleSteps)
{
$arrRemainingSteps = array();

foreach(\Framework\AF\CourseSelector::getAvailableSteps() as $arrStep)
{
if(!in_array($arrStep, $arrVisibleSteps))
{
$arrRemainingSteps[] = $arrStep;
}
}

return $arrRemainingSteps;
}

function getRealLength($strVar)
{
// Because of a bug in the HTML Editor inserting the &#8203; character
return strlen(trim(strip_tags(str_replace('&#8203;', '', $strVar))));
}

function urlCleanup($arrCurrentStep)
{
$iInitialCount = count($_GET);

if($iInitialCount)
{
$arrParametersToClean = array('new_student', 'needs_test', 'reenroll');

if($arrCurrentStep && $arrCurrentStep['step_title'] !== 'Level' && \Components\AF\Courses\Configuration\Levels::configGetValue('course_selector_use_placement_page'))
{
foreach($arrParametersToClean as $strParameter)
{
if(array_key_exists($strParameter, $_GET))
{
unset($_GET[$strParameter]);
}
}

if(count($_GET) !== $iInitialCount)
{
$arrQueryString = array();
foreach($_GET as $strKey => $strValue)
{
$arrQueryString[] = urlencode($strKey) . '=' . urlencode($strValue);
}

$strQueryString = '';

if(count($arrQueryString))
{
$strQueryString = '?' . implode('&', $arrQueryString);
}

\Framework\HTTP\Redirection::redirect(\Components\Website\Pages::currentPageId() . $strQueryString);
}
}
}
}

?>
Accept Child 404:
0
0
Search Title:

															

														
Search Title Prefix:

															

														
Search Description:

															

														
Search Keywords:

															

														
Search Noindex:
0
0
Search Nofollow:
0
0
Search Change Frequency:

															

														
Search Priority:
0.5
0.5
Search Canonical Override:

															

														
Is Offline:
0
0
Is Hidden In Navigation:
1
1
Is Hidden In Sitemap:
1
1
Security New:
0
0
Security Contact Mode:

															

														
Security Contact Squeeze Viewlimit:

															

														
Security Contact Require Login:

															

														
Security Contact Groups:

															

														
Security Condition Id:

															

														
Security Heading:

															

														
Security Description:

															

														
Other Fields:

															

														
Order:
5
5
Parent Id:
/wave/learn-french/
/wave/learn-french/
Contact Id:
0
0
Design Id:
7
7
Header Functions:

															

														
Header Category:

															

														
Is Domain:
0
0