Klasyfikacja wiekowa
Implementacja
Storing the age-de.xml
file in the root directory of the domain concerned is trivial.
Less trivial is the entry of meta data into the HTML structure:
<meta name="age-de-meta-label" content="age=0 hash: YourDigitalCode v=1.0 kind=sl protocol=all"/>
The following HTML snippet is inserted for example in the Skin Vector in the function getTemplateData
of the class SkinVector
or in the Skin MonoBook in the function setupSkinUserCss
of the class SkinMonoBook
:
global $wgAgeClassificationMetaName, $wgAgeClassificationMetaContent;
if ( !empty( $wgAgeClassificationMetaName ) AND !empty( $wgAgeClassificationMetaContent ) ) {
$out->addMeta( $wgAgeClassificationMetaName, $wgAgeClassificationMetaContent );
}
Zmienne globalne $wgAgeClassificationMetaName
i $wgAgeClassificationMetaContent
są następnie ustawiane w LocalSettings.php
zgodnie ze specyfikacją - w Niemczech - "altersklassifizierung.de".
Zobacz też
Linki zewnętrzne
- Wikipedia - Age verification system