printTheForm();
}
/**
* Generates AFC editor HTML code
*/
class afceditorform{
/**
* Generates font faces for editor fonts list select element
* @return string
*/
function generateFontsSelect(){
$afcFonts = new afcfonts();
$fonts = $afcFonts->getCols();
$fontsStr = '';
foreach( $fonts as $font){
$fontsStr .= '';
}
return $fontsStr;
}
/**
* Generates a list of possible font weights
* @return string
*/
function generateFontWeightOptions(){
$weights = '';
for( $i=100; $i < 1000; $i += 100 ){
$weights .= '';
}
return $weights;
}
/**
* Generats pageTypes list for editor form
* @return string
*/
function generateTaxonomyList(){
$output = '
';
$pageTypes = afcStrings::getString('pagetypes');
foreach( $pageTypes as $pt=>$val ){
$output .= '
';
}
$output .= '
';
return $output;
}
/**
* Generates list of available properties
* @return string
*/
function generatePropertyList(){
$prop = '';
foreach( afcStrings::getString('propertyList') as $property=>$val ){
$prop .= '';
}
return $prop;
}
/**
* Prints final editor HTML code
*/
function printTheForm(){
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
$strings = afcStrings::getString('editorStrings');
$pStrings = afcStrings::getString('propertyList');
?>