<?php // This post documents the changes made to VectorTemplate.php for the IndieWeb wiki. // More details at https://indieweb.org/mediawiki-customization // Some wiki pages have their own Microformats on the page, such as events. In these cases, we don't want to add the h-entry class. // Pre-render the HTML for the page and check if there are embedded microformats already. Add the following after the line `$this->html( 'headelement' );` $this->html('bodycontent'); $has_microformats = false; try { // Check for HTML tags that contain a top-level microformat object $mf2 = Mf2\parse($bodycontent); if($mf2) { $has_microformats = true; } } } } catch(Exception $e) { } ?> <!-- Change the `mw-body` element to the following to add `h-entry` when applicable: --> <div id="content" class="mw-body <?= $has_microformats ? '' : 'h-entry' ?>" role="main"> <!-- Just below that, add this line to set the `u-url` property to the page URL: --> <?= $has_microformats ? '' : '<a href="" class="u-url"></a>' ?> <!-- Change the h1 header to add `p-name` --> <h1 id="firstHeading" class="firstHeading <?= $has_microformats ? '' : 'p-name' ?>" lang="<?php $this->text( 'pageLanguage' ); ?>">
WeChat ID
aaronpk_tv