<?php
// Ansible managed from template /opt/meza/src/roles/mediawiki/templates/Extensions.php.j2 on controller localhost.localdomain by user root
// Generated: 2017-06-09 15:23:34.591451


/**
 *  SECTION: CORE MEZA COMPOSER EXTENSIONS
 *
 *  Below is configuration for extensions installed by Composer, which are part
 *  of core meza. Further down the document is a section for Composer-installed
 *  local extensions config.
 **/

#
# Config for Extension:Semantic MediaWiki
#
// Enable Semantic MediaWiki semantics
enableSemantics( $wikiId );

// Semantic MediaWiki Settings
$smwgQMaxSize = 5000;

// allows adding semantic properties to Templates themselves
// (not just on pages via templates).
$smwgNamespacesWithSemanticLinks[NS_TALK] = true;
$smwgNamespacesWithSemanticLinks[NS_TEMPLATE] = true;



#
# Config for Extension:Semantic Result Formats
#
// SemanticResultFormats formats enabled (beyond defaults)
// These are disabled by default because they send data to external
// web services for rendering, which may be considered a data leak
// $srfgFormats[] = 'googlebar';
// $srfgFormats[] = 'googlepie';

// Disabled until the proper dependencies are added (PHPExcel I think)
// $srfgFormats[] = 'excel';

// Enables the "filtered" format. Where do we use this?
$srfgFormats[] = 'filtered';

// Disabled due to some issue on FOD wikis. Confirm, reenable if possible
// $srfgFormats[] = 'exhibit';





/**
 *  SECTION: CORE MEZA STANDARD EXTENSIONS
 *
 *  Extensions below are part of core Meza. Further down in this file there may
 *  be additional extensions specified by this particular installation of meza
 **/

wfLoadExtension( "ParserFunctions" );
// Also enable StringFunctions, like len, pos, sub, replace, explode
// https://www.mediawiki.org/wiki/Extension:StringFunctions
$wgPFEnableStringFunctions = true;

wfLoadExtension( "ExternalData" );
wfLoadExtension( "LabeledSectionTransclusion" );
wfLoadExtension( "Cite" );
$wgCiteEnablePopups = true;

wfLoadExtension( "ParserFunctionHelper" );
wfLoadExtension( "CharInsert" );
wfLoadExtension( "PageForms" );
wfLoadExtension( "DismissableSiteNotice" );
wfLoadExtension( "WikiEditor" );
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-publish'] = 1; # displays publish button
$wgDefaultUserOptions['wikieditor-preview'] = 1; # Displays the Preview and Changes tabs

wfLoadExtension( "SyntaxHighlight_GeSHi" );
wfLoadExtension( "InputBox" );
wfLoadExtension( "ReplaceText" );
wfLoadExtension( "Interwiki" );
$wgGroupPermissions['sysop']['interwiki'] = true;

wfLoadExtension( "YouTube" );
wfLoadExtension( "UniversalLanguageSelector" );
wfLoadExtension( "VisualEditor" );
// Parsoid servers are defined based upon Ansible hosts file and thus
// cannot be easily added to base-extensions.yml. As such, VisualEditor config
// is included directly in LocalSettings.php.j2

wfLoadExtension( "Elastica" );
wfLoadExtension( "Thanks" );
$wgThanksConfirmationRequired = false;

wfLoadExtension( "CollapsibleVector" );
require_once "$IP/extensions/SimpleMathJax/SimpleMathJax.php";
wfLoadExtension( "ImageMap" );
require_once "$IP/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php";
require_once "$IP/extensions/WhoIsWatching/WhoIsWatching.php";
$wgPageShowWatchingUsers = true;

require_once "$IP/extensions/SemanticInternalObjects/SemanticInternalObjects.php";
require_once "$IP/extensions/SemanticCompoundQueries/SemanticCompoundQueries.php";
require_once "$IP/extensions/SemanticDrilldown/SemanticDrilldown.php";
require_once "$IP/extensions/Arrays/Arrays.php";
require_once "$IP/extensions/TalkRight/TalkRight.php";
require_once "$IP/extensions/AdminLinks/AdminLinks.php";
$wgGroupPermissions['sysop']['adminlinks'] = true;

require_once "$IP/extensions/BatchUserRights/BatchUserRights.php";
require_once "$IP/extensions/HeaderTabs/HeaderTabs.php";
$wgHeaderTabsEditTabLink = false;
$wgHeaderTabsRenderSingleTab = true;

wfLoadExtension( "CopyWatchers" );
wfLoadExtension( "Wiretap" );
require_once "$IP/extensions/ApprovedRevs/ApprovedRevs.php";
$egApprovedRevsAutomaticApprovals = false;

wfLoadExtension( "ImagesLoaded" );
wfLoadExtension( "MasonryMainPage" );
require_once "$IP/extensions/WatchAnalytics/WatchAnalytics.php";
$egPendingReviewsEmphasizeDays = 10; // makes Pending Reviews shake after X days

require_once "$IP/extensions/Variables/Variables.php";
require_once "$IP/extensions/ContributionScores/ContributionScores.php";
// Exclude Bots from the reporting - Can be omitted.
$wgContribScoreIgnoreBots = true;

// Exclude Blocked Users from the reporting - Can be omitted.
$wgContribScoreIgnoreBlockedUsers = true;

// Use real user names when available - Can be omitted. Only for MediaWiki 1.19 and later.c
$wgContribScoresUseRealName = true;

// Set to true to disable cache for parser function and inclusion of table.
$wgContribScoreDisableCache = false;

// Each array defines a report - 7,50 is "past 7 days" and "LIMIT 50" - Can be omitted.
$wgContribScoreReports = array(
  array(7,50),
  array(30,50),
  array(0,50)
);

require_once "$IP/extensions/PipeEscape/PipeEscape.php";
require_once "$IP/extensions/CirrusSearch/CirrusSearch.php";
// CirrusSearch cluster(s) are defined based upon Ansible hosts file and thus
// cannot be easily added to base-extensions.yml. As such, CirrusSearch config
// is included directly in LocalSettings.php.j2

require_once "$IP/extensions/Echo/Echo.php";
$wgEchoEmailFooterAddress = $wgPasswordSender;

require_once "$IP/extensions/UploadWizard/UploadWizard.php";
// Needed to make UploadWizard work in IE, see bug 39877
// See also: https://www.mediawiki.org/wiki/Manual:$wgApiFrameOptions
$wgApiFrameOptions = 'SAMEORIGIN';

// Use UploadWizard by default in navigation bar
$wgUploadNavigationUrl = "$wgScriptPath/index.php/Special:UploadWizard";
$wgUploadWizardConfig = array(
  'debug' => false,
  'autoCategory' => 'Uploaded with UploadWizard',
  'feedbackPage' => 'Project:UploadWizard/Feedback',
  'altUploadForm' => 'Special:Upload',
  'fallbackToAltUploadForm' => false,
  'enableFormData' => true,  # Should FileAPI uploads be used on supported browsers?
  'enableMultipleFiles' => true,
  'enableMultiFileSelect' => true,
  'tutorial' => array('skip' => true),
  'fileExtensions' => $wgFileExtensions, //omitting this can cause errors
  'licensing' => array(
    // alternatively, use "thirdparty". Set in postLocalSettings.php like:
    // $wgUploadWizardConfig['licensing']['defaultType'] = 'thirdparty';
    'defaultType' => 'ownwork',

    'ownWork' => array(
      'type' => 'or',
      // Use [[Project:General disclaimer]] instead of default [[Template:Generic]]
      'template' => 'Project:General disclaimer',
      'defaults' => array( 'generic' ),
      'licenses' => array( 'generic' )
    ),

    'thirdParty' => array(
      'type' => 'or',
      'defaults' => array( 'generic' ),
      'licenseGroups' => array(
        array(
          'head' => 'mwe-upwiz-license-generic-head',
          'template' => 'Project:General disclaimer', // again, use General disclaimer
          'licenses' => array( 'generic' ),
        ),
      )
    ),
  ),
);

require_once "$IP/extensions/DataTransfer/DataTransfer.php";
require_once "$IP/extensions/PageImporter/PageImporter.php";
require_once "$IP/extensions/SemanticMeetingMinutes/SemanticMeetingMinutes.php";
require_once "$IP/extensions/HeaderFooter/HeaderFooter.php";
require_once "$IP/extensions/NumerAlpha/NumerAlpha.php";



/**
 *  SECTION: LOCAL MEZA COMPOSER EXTENSIONS
 *
 *  Below is configuration for extensions installed by Composer, which are part
 *  of this local meza installation. This section may be blank if no Composer
 *  extensions are required for this local installation.
 **/




/**
 *  SECTION: LOCAL MEZA STANDARD EXTENSIONS
 *
 *  Extensions configured by this installation of Meza, but not included in
 *  core meza. These extensions are defined in MezaLocalExtensions.yml in
 *  /opt/conf-meza/public. This section may be blank if no additional extensions
 *  are required for this local installation.
 **/