forked from AlfredoRamos/phpbb-ext-seo-metadata
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Open Graph image width, height and MIME type
- Loading branch information
1 parent
faa0959
commit 2b74c79
Showing
7 changed files
with
169 additions
and
23 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
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
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
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
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
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
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,48 @@ | ||
<?php | ||
|
||
/** | ||
* SEO Metadata extension for phpBB. | ||
* @author Alfredo Ramos <alfredo.ramos@yandex.com> | ||
* @copyright 2018 Alfredo Ramos | ||
* @license GPL-2.0-only | ||
*/ | ||
|
||
namespace alfredoramos\seometadata\migrations\v12x; | ||
|
||
use phpbb\db\migration\migration; | ||
|
||
class m00_configuration extends migration | ||
{ | ||
/** | ||
* Migration dependencies. | ||
* | ||
* @return array | ||
*/ | ||
static public function depends_on() | ||
{ | ||
return ['\alfredoramos\seometadata\migrations\v11x\m00_configuration']; | ||
} | ||
|
||
/** | ||
* Add configuration. | ||
* | ||
* @return array | ||
*/ | ||
public function update_data() | ||
{ | ||
return [ | ||
[ | ||
'config.add', | ||
['seo_metadata_default_image_width', 0] | ||
], | ||
[ | ||
'config.add', | ||
['seo_metadata_default_image_height', 0] | ||
], | ||
[ | ||
'config.add', | ||
['seo_metadata_default_image_type', ''] | ||
] | ||
]; | ||
} | ||
} |