19 lines
No EOL
519 B
PHP
19 lines
No EOL
519 B
PHP
<?php
|
|
define("PROPERTIES_FILENAME", "properties.yml");
|
|
|
|
function load_properties(){
|
|
$property_file = fopen("properties.yml", "r") or die("Unable to open properties file!");
|
|
$YAML = fread($property_file, filesize(PROPERTIES_FILENAME));
|
|
fclose($property_file);
|
|
return yaml_parse($YAML);
|
|
}
|
|
|
|
function yandex_meta($properties) {
|
|
foreach ($properties as &$value){
|
|
if ($value != "fade"){
|
|
$value = "#" . $value;
|
|
}
|
|
}
|
|
echo vsprintf("<meta name=\"viewport\" content=\"ya-title=%s,ya-dock=%s\" />", $properties);
|
|
}
|
|
?>
|