-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
120 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* | ||
* Advanced BBCode Box | ||
* | ||
* @copyright (c) 2021 Matt Friedman | ||
* @license GNU General Public License, version 2 (GPL-2.0) | ||
* | ||
*/ | ||
|
||
namespace vse\abbc3\migrations; | ||
|
||
class v333_m14_update_bbcodes extends bbcodes_migration_base | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public static function depends_on() | ||
{ | ||
return [ | ||
'\vse\abbc3\migrations\v310_m4_install_data', | ||
'\vse\abbc3\migrations\v310_m5_update_bbcodes']; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function update_data() | ||
{ | ||
return [ | ||
['custom', [[$this, 'install_abbc3_bbcodes']]], | ||
]; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected static $bbcode_data = [ | ||
'marq=' => [ | ||
'bbcode_helpline' => 'ABBC3_MARQUEE_HELPLINE', | ||
'bbcode_match' => '[marq={IDENTIFIER}]{TEXT}[/marq]', | ||
'bbcode_tpl' => '<div class="abbc3-marquee"><div class="abbc3-marquee-{IDENTIFIER}">{TEXT}</div></div>', | ||
], | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.