This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
2015-06-13 17:06:42 +01:00
|
|
|
<?php
|
2015-06-14 18:03:26 +01:00
|
|
|
define("PROPERTIES_FILE", "private/properties.yml");
|
2015-06-13 17:06:42 +01:00
|
|
|
|
|
|
|
function load_properties(){
|
2015-06-14 18:03:26 +01:00
|
|
|
$property_file = fopen(PROPERTIES_FILE, "r") or die("Unable to open properties file!");
|
|
|
|
$YAML = fread($property_file, filesize(PROPERTIES_FILE));
|
2015-06-13 17:06:42 +01:00
|
|
|
fclose($property_file);
|
|
|
|
return yaml_parse($YAML);
|
|
|
|
}
|
2015-06-14 18:02:08 +01:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
2015-06-13 17:06:42 +01:00
|
|
|
?>
|