This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mw-ScratchBlocks2/ScratchBlocks.php

55 lines
1.6 KiB
PHP
Raw Permalink Normal View History

2013-05-22 14:27:16 +01:00
<?php
/*
* ScratchBlocks extension for MediaWiki
* Renders <scratchblocks> tags to shiny scratch blocks
*
* Copyright 2013, Tim Radvan
* MIT Licensed
* http://opensource.org/licenses/MIT
*
# This is a combination of 48 commits. # The first commit's message is: Delete .gitmodules # This is the 2nd commit message: Delete LICENSE # This is the 3rd commit message: Delete README.md # This is the 4th commit message: Delete ScratchBlocks2.php # This is the 5th commit message: Delete run_scratchblocks2.js # This is the 6th commit message: Updated to v3. # This is the 7th commit message: Added github link. # This is the 8th commit message: Changed language choosing method. # This is the 9th commit message: Test. # This is the 10th commit message: Deleting every file in folder. Sigh... # This is the 11th commit message: Deleting every file in folder. Sigh... # This is the 12th commit message: Deleting every file in folder. Sigh... # This is the 13th commit message: Deleting every file in folder. Sigh... # This is the 14th commit message: Deleting every file in folder. Sigh... # This is the 15th commit message: Deleting every file in folder. Sigh... # This is the 16th commit message: Deleting every file in folder. Sigh... # This is the 17th commit message: Deleting every file in folder. Sigh... # This is the 18th commit message: Deleting every file in folder. Sigh... # This is the 19th commit message: Deleting every file in folder. Sigh... # This is the 20th commit message: Deleting every file in folder. Sigh... # This is the 21st commit message: Deleting every file in folder. Sigh... # This is the 22nd commit message: Deleting every file in folder. Sigh... # This is the 23rd commit message: Deleting every file in folder. Sigh... # This is the 24th commit message: Deleting every file in folder. Sigh... # This is the 25th commit message: Deleting every file in folder. Sigh... # This is the 26th commit message: Deleting every file in folder. Sigh... # This is the 27th commit message: Deleting every file in folder. Sigh... # This is the 28th commit message: Deleting every file in folder. Sigh... # This is the 29th commit message: Deleting every file in folder. Sigh... # This is the 30th commit message: Deleting every file in folder. Sigh... # This is the 31st commit message: Deleting every file in folder. Sigh... # This is the 32nd commit message: Deleting every file in folder. Sigh... # This is the 33rd commit message: Deleting every file in folder. Sigh... # This is the 34th commit message: Deleting every file in folder. Sigh... # This is the 35th commit message: Deleting every file in folder. Sigh... # This is the 36th commit message: Deleting every file in folder. Sigh... # This is the 37th commit message: Deleting every file in folder. Sigh... # This is the 38th commit message: Deleting every file in folder. Sigh... # This is the 39th commit message: Deleting every file in folder. Sigh... # This is the 40th commit message: Submodule. *Crosses fingers. # This is the 41st commit message: Added inline support, fixed comment. # This is the 42nd commit message: Minor comment tweak. # This is the 43rd commit message: Removed unneeded line. # This is the 44th commit message: Inline SB Update Part 1 # This is the 45th commit message: Part 2 # This is the 46th commit message: Created css file for inline scratchblocks styling. # This is the 47th commit message: Enabled some extra inline scratchblocks styling. # This is the 48th commit message: Unsure what this is. Will rebase in moment.
2016-04-24 11:54:27 -04:00
* Includes scratchblocks v3
* https://github.com/tjvr/scratchblocks
2013-05-22 14:27:16 +01:00
*
*/
if (!defined('MEDIAWIKI')) {
die();
}
require_once __DIR__ . "/ScratchblockHooks.php";
2013-05-22 14:27:16 +01:00
// Hooks
$wgExtensionFunctions[] = 'ScratchblockHook::sbSetup';
$wgHooks['ParserFirstCallInit'][] = 'ScratchblockHook::sbParserInit';
2013-05-22 14:27:16 +01:00
// Define resources
$wgResourceModules['ext.scratchBlocks'] = array(
'scripts' => array(
'scratchblocks/src/scratchblocks.js',
'scratchblocks/src/translations.js',
# This is a combination of 48 commits. # The first commit's message is: Delete .gitmodules # This is the 2nd commit message: Delete LICENSE # This is the 3rd commit message: Delete README.md # This is the 4th commit message: Delete ScratchBlocks2.php # This is the 5th commit message: Delete run_scratchblocks2.js # This is the 6th commit message: Updated to v3. # This is the 7th commit message: Added github link. # This is the 8th commit message: Changed language choosing method. # This is the 9th commit message: Test. # This is the 10th commit message: Deleting every file in folder. Sigh... # This is the 11th commit message: Deleting every file in folder. Sigh... # This is the 12th commit message: Deleting every file in folder. Sigh... # This is the 13th commit message: Deleting every file in folder. Sigh... # This is the 14th commit message: Deleting every file in folder. Sigh... # This is the 15th commit message: Deleting every file in folder. Sigh... # This is the 16th commit message: Deleting every file in folder. Sigh... # This is the 17th commit message: Deleting every file in folder. Sigh... # This is the 18th commit message: Deleting every file in folder. Sigh... # This is the 19th commit message: Deleting every file in folder. Sigh... # This is the 20th commit message: Deleting every file in folder. Sigh... # This is the 21st commit message: Deleting every file in folder. Sigh... # This is the 22nd commit message: Deleting every file in folder. Sigh... # This is the 23rd commit message: Deleting every file in folder. Sigh... # This is the 24th commit message: Deleting every file in folder. Sigh... # This is the 25th commit message: Deleting every file in folder. Sigh... # This is the 26th commit message: Deleting every file in folder. Sigh... # This is the 27th commit message: Deleting every file in folder. Sigh... # This is the 28th commit message: Deleting every file in folder. Sigh... # This is the 29th commit message: Deleting every file in folder. Sigh... # This is the 30th commit message: Deleting every file in folder. Sigh... # This is the 31st commit message: Deleting every file in folder. Sigh... # This is the 32nd commit message: Deleting every file in folder. Sigh... # This is the 33rd commit message: Deleting every file in folder. Sigh... # This is the 34th commit message: Deleting every file in folder. Sigh... # This is the 35th commit message: Deleting every file in folder. Sigh... # This is the 36th commit message: Deleting every file in folder. Sigh... # This is the 37th commit message: Deleting every file in folder. Sigh... # This is the 38th commit message: Deleting every file in folder. Sigh... # This is the 39th commit message: Deleting every file in folder. Sigh... # This is the 40th commit message: Submodule. *Crosses fingers. # This is the 41st commit message: Added inline support, fixed comment. # This is the 42nd commit message: Minor comment tweak. # This is the 43rd commit message: Removed unneeded line. # This is the 44th commit message: Inline SB Update Part 1 # This is the 45th commit message: Part 2 # This is the 46th commit message: Created css file for inline scratchblocks styling. # This is the 47th commit message: Enabled some extra inline scratchblocks styling. # This is the 48th commit message: Unsure what this is. Will rebase in moment.
2016-04-24 11:54:27 -04:00
'run_scratchblocks.js',
2013-05-22 14:27:16 +01:00
),
# This is a combination of 48 commits. # The first commit's message is: Delete .gitmodules # This is the 2nd commit message: Delete LICENSE # This is the 3rd commit message: Delete README.md # This is the 4th commit message: Delete ScratchBlocks2.php # This is the 5th commit message: Delete run_scratchblocks2.js # This is the 6th commit message: Updated to v3. # This is the 7th commit message: Added github link. # This is the 8th commit message: Changed language choosing method. # This is the 9th commit message: Test. # This is the 10th commit message: Deleting every file in folder. Sigh... # This is the 11th commit message: Deleting every file in folder. Sigh... # This is the 12th commit message: Deleting every file in folder. Sigh... # This is the 13th commit message: Deleting every file in folder. Sigh... # This is the 14th commit message: Deleting every file in folder. Sigh... # This is the 15th commit message: Deleting every file in folder. Sigh... # This is the 16th commit message: Deleting every file in folder. Sigh... # This is the 17th commit message: Deleting every file in folder. Sigh... # This is the 18th commit message: Deleting every file in folder. Sigh... # This is the 19th commit message: Deleting every file in folder. Sigh... # This is the 20th commit message: Deleting every file in folder. Sigh... # This is the 21st commit message: Deleting every file in folder. Sigh... # This is the 22nd commit message: Deleting every file in folder. Sigh... # This is the 23rd commit message: Deleting every file in folder. Sigh... # This is the 24th commit message: Deleting every file in folder. Sigh... # This is the 25th commit message: Deleting every file in folder. Sigh... # This is the 26th commit message: Deleting every file in folder. Sigh... # This is the 27th commit message: Deleting every file in folder. Sigh... # This is the 28th commit message: Deleting every file in folder. Sigh... # This is the 29th commit message: Deleting every file in folder. Sigh... # This is the 30th commit message: Deleting every file in folder. Sigh... # This is the 31st commit message: Deleting every file in folder. Sigh... # This is the 32nd commit message: Deleting every file in folder. Sigh... # This is the 33rd commit message: Deleting every file in folder. Sigh... # This is the 34th commit message: Deleting every file in folder. Sigh... # This is the 35th commit message: Deleting every file in folder. Sigh... # This is the 36th commit message: Deleting every file in folder. Sigh... # This is the 37th commit message: Deleting every file in folder. Sigh... # This is the 38th commit message: Deleting every file in folder. Sigh... # This is the 39th commit message: Deleting every file in folder. Sigh... # This is the 40th commit message: Submodule. *Crosses fingers. # This is the 41st commit message: Added inline support, fixed comment. # This is the 42nd commit message: Minor comment tweak. # This is the 43rd commit message: Removed unneeded line. # This is the 44th commit message: Inline SB Update Part 1 # This is the 45th commit message: Part 2 # This is the 46th commit message: Created css file for inline scratchblocks styling. # This is the 47th commit message: Enabled some extra inline scratchblocks styling. # This is the 48th commit message: Unsure what this is. Will rebase in moment.
2016-04-24 11:54:27 -04:00
'styles' => '/inline.css',
2013-05-22 14:27:16 +01:00
// jQuery is loaded anyway
'dependencies' => array(),
// Where the files are
'localBasePath' => __DIR__,
# This is a combination of 48 commits. # The first commit's message is: Delete .gitmodules # This is the 2nd commit message: Delete LICENSE # This is the 3rd commit message: Delete README.md # This is the 4th commit message: Delete ScratchBlocks2.php # This is the 5th commit message: Delete run_scratchblocks2.js # This is the 6th commit message: Updated to v3. # This is the 7th commit message: Added github link. # This is the 8th commit message: Changed language choosing method. # This is the 9th commit message: Test. # This is the 10th commit message: Deleting every file in folder. Sigh... # This is the 11th commit message: Deleting every file in folder. Sigh... # This is the 12th commit message: Deleting every file in folder. Sigh... # This is the 13th commit message: Deleting every file in folder. Sigh... # This is the 14th commit message: Deleting every file in folder. Sigh... # This is the 15th commit message: Deleting every file in folder. Sigh... # This is the 16th commit message: Deleting every file in folder. Sigh... # This is the 17th commit message: Deleting every file in folder. Sigh... # This is the 18th commit message: Deleting every file in folder. Sigh... # This is the 19th commit message: Deleting every file in folder. Sigh... # This is the 20th commit message: Deleting every file in folder. Sigh... # This is the 21st commit message: Deleting every file in folder. Sigh... # This is the 22nd commit message: Deleting every file in folder. Sigh... # This is the 23rd commit message: Deleting every file in folder. Sigh... # This is the 24th commit message: Deleting every file in folder. Sigh... # This is the 25th commit message: Deleting every file in folder. Sigh... # This is the 26th commit message: Deleting every file in folder. Sigh... # This is the 27th commit message: Deleting every file in folder. Sigh... # This is the 28th commit message: Deleting every file in folder. Sigh... # This is the 29th commit message: Deleting every file in folder. Sigh... # This is the 30th commit message: Deleting every file in folder. Sigh... # This is the 31st commit message: Deleting every file in folder. Sigh... # This is the 32nd commit message: Deleting every file in folder. Sigh... # This is the 33rd commit message: Deleting every file in folder. Sigh... # This is the 34th commit message: Deleting every file in folder. Sigh... # This is the 35th commit message: Deleting every file in folder. Sigh... # This is the 36th commit message: Deleting every file in folder. Sigh... # This is the 37th commit message: Deleting every file in folder. Sigh... # This is the 38th commit message: Deleting every file in folder. Sigh... # This is the 39th commit message: Deleting every file in folder. Sigh... # This is the 40th commit message: Submodule. *Crosses fingers. # This is the 41st commit message: Added inline support, fixed comment. # This is the 42nd commit message: Minor comment tweak. # This is the 43rd commit message: Removed unneeded line. # This is the 44th commit message: Inline SB Update Part 1 # This is the 45th commit message: Part 2 # This is the 46th commit message: Created css file for inline scratchblocks styling. # This is the 47th commit message: Enabled some extra inline scratchblocks styling. # This is the 48th commit message: Unsure what this is. Will rebase in moment.
2016-04-24 11:54:27 -04:00
'remoteExtPath' => 'ScratchBlocks'
2013-05-22 14:27:16 +01:00
);
2016-05-01 19:56:10 -04:00
$wgExtensionCredits['parserhook'][] = array(
'name' => "Scratchblocks", // Name of extension - string
'description' => "This plugin takes text-based Scratch code and renders it in a graphical format.", // Description of what the extension does - string. Omit in favour of descriptionmsg.
'version' => 3.1, // Version number of extension - number or string
'author' => array("ErnieParke","blob8108"), // The extension author's name - string or array for multiple
2016-05-01 19:56:10 -04:00
'url' => "https://github.com/tjvr/wiki-scratchblocks", // URL of extension (usually instructions) - string
2016-05-01 22:19:37 -04:00
'license-name' => "MIT", // Short name of the license, links LICENSE or COPYING file if existing - string, added in 1.23.0
2016-05-01 19:56:10 -04:00
);